/* ================================================================
   avis.css — Section avis Google
   ================================================================ */
.section-avis {
    background: #f8f9fb;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(48px, 6vw, 80px) 0;
}

.avis-wrap {
    padding: 0 clamp(16px, 4vw, 72px);
}

/* ----------------------------------------------------------------
   En-tête
   ---------------------------------------------------------------- */
.avis-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 44px);
    flex-wrap: wrap;
}

.avis-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a3963;
    margin: 0 0 6px;
    line-height: 1.15;
}

.avis-subtitle {
    font-size: .95rem;
    font-weight: 700;
    color: #c9a87c;
    margin: 0;
}

/* Score global */
.avis-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.avis-score-note {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a3963;
    line-height: 1;
}

.avis-score-stars {
    display: flex;
    gap: 3px;
}

.avis-score-stars svg {
    width: 18px;
    height: 18px;
}

.avis-score-count {
    font-size: .78rem;
    color: #6b7280;
    font-weight: 600;
}

.avis-score-source {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.avis-score-source svg {
    width: 16px;
    height: 16px;
}

/* ----------------------------------------------------------------
   Carousel
   ---------------------------------------------------------------- */
.avis-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avis-track-wrap {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.avis-track-wrap::-webkit-scrollbar { display: none; }

.avis-track {
    display: flex;
    gap: 16px;
    padding: 8px 2px 12px;
}

/* ----------------------------------------------------------------
   Carte avis
   ---------------------------------------------------------------- */
.avis-card {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 4px 16px rgba(26,57,99,.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #eef0f3;
    transition: box-shadow .2s, transform .2s;
}

.avis-card:hover {
    box-shadow: 0 8px 28px rgba(26,57,99,.13);
    transform: translateY(-2px);
}

/* Auteur */
.avis-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avis-author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #dce3ed;
}

.avis-author-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a3963;
    color: #ffffff;
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avis-author-info {}

.avis-author-name {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #1a3963;
    line-height: 1.3;
}

.avis-author-date {
    display: block;
    font-size: .72rem;
    color: #9ca3af;
}

/* Étoiles */
.avis-card-stars {
    display: flex;
    gap: 2px;
}

.avis-card-stars svg {
    width: 15px;
    height: 15px;
}

/* Texte */
.avis-card-text {
    font-size: .82rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------------------
   Étoile SVG (réutilisée partout)
   ---------------------------------------------------------------- */
.star-full  { fill: #f59e0b; }
.star-empty { fill: #e5e7eb; }

/* ----------------------------------------------------------------
   Boutons prev/next
   ---------------------------------------------------------------- */
.avis-prev,
.avis-next {
    display: inline-flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 2px solid #1a3963;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}

.avis-prev svg,
.avis-next svg {
    width: 20px;
    height: 20px;
    fill: #1a3963;
    display: block;
}

.avis-prev:hover,
.avis-next:hover { background: #1a3963; }
.avis-prev:hover svg,
.avis-next:hover svg { fill: #fff; }
.avis-prev:disabled,
.avis-next:disabled { opacity: .4; cursor: default; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .avis-card { flex: 0 0 260px; }

    .avis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .avis-score {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .avis-score-note { font-size: 2rem; }
}
