/* En-tête Avis */
.avis-header {
    margin-top: 70px;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-color) 100%);
    text-align: center;
    color: var(--text-light);
}

.avis-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.avis-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Section résumé des avis */
.avis-summary {
    padding: 3rem 0;
    background: #FFF;
}

.summary-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.rating-main {
    text-align: center;
    margin-bottom: 2rem;
}

.stars-display {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.rating-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Barres de notation */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-label {
    font-weight: 600;
    color: var(--dark-brown);
    min-width: 15px;
}

.rating-bar {
    flex: 1;
    height: 12px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.5s ease;
    border-radius: 10px;
}

.rating-percent {
    min-width: 40px;
    text-align: right;
    color: #666;
    font-size: 0.95rem;
}

/* Liste des avis */
.avis-list {
    padding: 3rem 0 5rem;
    background: linear-gradient(180deg, #FFF 0%, var(--light-cream) 100%);
}

.avis-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.avis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.avis-card.negative {
    border-left-color: #e74c3c;
}

.avis-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-initial {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-details h3 {
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 0.2rem;
}

.avis-date {
    font-size: 0.9rem;
    color: #888;
}

.avis-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stars {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.rating-number {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
}

.avis-category {
    display: inline-block;
    background: var(--light-cream);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.avis-text {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.avis-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Réponse de l'artisan */
.response-artisan {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.response-artisan strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.response-artisan p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .avis-header-info {
        flex-direction: column;
        gap: 1rem;
    }

    .avis-rating {
        align-items: flex-start;
    }

    .summary-box {
        padding: 1.5rem;
    }

    .stars-display {
        font-size: 2.5rem;
    }

    .avis-card {
        padding: 1.5rem;
    }
}