/* Styles pour le système d'avis */

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label.star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 0.5rem;
}

.rating-input label.star:hover,
.rating-input label.star:hover ~ label.star,
.rating-input input[type="radio"]:checked ~ label.star {
    color: #ffc107;
}

.rating-input input[type="radio"]:checked ~ label.star {
    color: #ffc107;
}

/* Animation pour les étoiles */
.rating-input label.star:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Styles pour les avis existants */
.review-item {
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none !important;
}

.review-item h6 {
    color: #333;
    font-weight: 600;
}

.review-item .text-warning {
    font-size: 1.1rem;
}

.review-item p {
    color: #666;
    line-height: 1.6;
}

/* Statistiques des avis */
.progress {
    background-color: #f8f9fa;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-input label.star {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }
    
    .review-item {
        padding: 0.8rem 0;
    }
}

/* Animation pour l'ajout d'avis */
.review-form {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les messages de succès/erreur */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Styles pour le formulaire d'avis */
.review-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.review-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.review-form .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.review-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
