/* Styles pour la section des avis */
.reviews-section-2025 {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reviews-header-2025 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.reviews-stats-2025 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.reviews-average-2025 {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.average-rating {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stars-container {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.stars-background {
    color: #e0e0e0;
}

.stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffd700;
}

.total-reviews {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
}

.reviews-distribution-2025 {
    flex: 1;
    min-width: 300px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 40px;
    font-weight: 600;
    color: #495057;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background-color: #2e7d32;
    border-radius: 4px;
}

.rating-count {
    width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Styles pour le formulaire d'avis */
.reviews-form-2025 {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.reviews-form-2025 h4 {
    color: #2e7d32;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.reviews-form-2025 .form-group {
    margin-bottom: 1.25rem;
}

.reviews-form-2025 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.reviews-form-2025 .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.reviews-form-2025 .form-control:focus {
    border-color: #2e7d32;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.reviews-form-2025 textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.reviews-form-2025 .btn-primary {
    background-color: #2e7d32;
    border-color: #2e7d32;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.reviews-form-2025 .btn-primary:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

/* Styles pour la liste des avis */
.reviews-list-2025 {
    margin-top: 2rem;
}

.review-item-2025 {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.review-header-2025 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #6c757d;
    font-weight: 600;
}

.reviewer-name {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.review-rating {
    color: #ffd700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-image:hover {
    transform: scale(1.05);
}

/* Style pour le message de connexion */
.reviews-login-prompt-2025 {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reviews-login-prompt-2025 p {
    margin-bottom: 1rem;
    color: #495057;
}

.reviews-login-btn-2025 {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.reviews-login-btn-2025:hover {
    background-color: #1b5e20;
    color: white;
    text-decoration: none;
}

/* Style pour la prévisualisation des images uploadées */
.reviews-upload-preview-2025 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.upload-preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 100px;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
}

.remove-image-btn:hover {
    background-color: #dc3545;
}
