/* Styles pour la section des avis et commentaires */
.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* En-tête des avis */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rating-number {
    text-align: center;
}

.big-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stars {
    margin: 0.5rem 0;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.total-reviews {
    color: #666;
    font-size: 0.9rem;
}

.write-review-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Formulaire d'avis */
.review-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-selector label {
    font-weight: 600;
    color: #333;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #ddd;
    transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group label::after {
    content: " *";
    color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: #999;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.submit-review-btn,
.cancel-review-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-review-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.cancel-review-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-review-btn:hover {
    background: #eee;
}

/* Message de connexion */
.login-prompt {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.login-prompt i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.login-prompt p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Liste des avis */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-header {
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.reviewer-avatar i {
    color: white;
    font-size: 1.5rem;
}

.reviewer-details h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.3rem;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-content {
    color: #444;
    line-height: 1.6;
}

/* Message aucun avis */
.no-reviews {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-reviews i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-reviews p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .overall-rating {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-review-btn,
    .cancel-review-btn {
        width: 100%;
        justify-content: center;
    }

    .reviewer-info {
        flex-direction: column;
        text-align: center;
    }

    .review-meta {
        justify-content: center;
    }
}

.rating-selector label::after,
.form-group label[for="comment"]::after {
    content: " *";
    color: #dc3545;
}

/* Styles pour les messages d'alerte */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.alert.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    font-size: 1.2em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles existants pour les commentaires */
.reviews-list {
    margin-top: 30px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
}

.reviewer-details h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

.review-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.review-rating {
    margin-bottom: 15px;
}

.review-rating .fa-star {
    color: #ddd;
    font-size: 1.1em;
}

.review-rating .fa-star.active {
    color: #ffc107;
}

.review-content {
    color: var(--text-color);
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.no-reviews i {
    font-size: 2em;
    color: #ddd;
    margin-bottom: 15px;
}

/* Styles pour le formulaire de commentaire */
.review-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.rating-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5em;
    color: #ddd;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.submit-review-btn,
.cancel-review-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-review-btn {
    background: var(--primary-color);
    color: white;
}

.submit-review-btn:hover {
    background: var(--primary-color-dark);
}

.cancel-review-btn {
    background: #f8f9fa;
    color: #666;
}

.cancel-review-btn:hover {
    background: #e9ecef;
}

/* Responsive styles */
@media (max-width: 768px) {
    .review-form-container {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-review-btn,
    .cancel-review-btn {
        width: 100%;
        justify-content: center;
    }
} 