/* ------------------------------------------------------------------------------------------ SECTION avis-carrousel -----------------------------------------------------------------------------------*/

.avis-carrousel-section {
    width: 100%;
    padding: 28px 1rem 24px;
    background-color: #ffffff;
}

.avis-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.avis-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.1rem;
}

.avis-score {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background-color: #ffffff;
    padding: 0.45rem 1.1rem;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.1);
}

.avis-google-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.avis-google-wordmark {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.avis-google-wordmark .g-b { color: #4285F4; }
.avis-google-wordmark .g-r { color: #EA4335; }
.avis-google-wordmark .g-y { color: #FBBC05; }
.avis-google-wordmark .g-g { color: #34A853; }

.avis-google-reviews-label {
    color: #5f6368;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.avis-score-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #668ECB;
    line-height: 1;
}

.avis-score-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #003366;
    line-height: 1.25;
}

.avis-stage {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 30px;
    margin: -10px 0 -30px;
}

.avis-track {
    display: flex;
    gap: 1.5rem;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.avis-card {
    box-sizing: border-box;
    flex: 0 0 auto;
    background-color: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 51, 102, 0.15);
    border-color: rgba(0, 51, 102, 0.2);
}

.avis-stars {
    color: #f5a623;
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
    letter-spacing: 2px;
}

.avis-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333333;
    margin-bottom: 0.9rem;
    flex-grow: 1;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avis-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #003366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.avis-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.avis-author-name {
    font-weight: 600;
    color: #003366;
    font-size: 0.9rem;
}

.avis-author-date {
    font-size: 0.75rem;
    color: #888888;
}

.avis-google-icon {
    margin-left: auto;
    color: #668ECB;
    font-size: 1.05rem;
}

.avis-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.9rem;
}

.avis-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avis-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #cdd8e6;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.avis-dot.active {
    background-color: #003366;
    transform: scale(1.25);
}

.avis-cta {
    display: inline-block;
    width: fit-content;
    margin: 0;
    background-color: var(--pp-navy, #003366);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.avis-cta:hover {
    background-color: #668ECB;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 51, 102, 0.25);
}

@media screen and (max-width: 640px) {
    .avis-carrousel-section {
        padding: 22px 1rem 18px;
    }

    .avis-head {
        justify-content: center;
        text-align: center;
    }

    .avis-score {
        flex-wrap: wrap;
        justify-content: center;
        text-align: left;
        gap: 0.5rem 0.65rem;
        padding: 0.5rem 0.85rem;
    }

    .avis-cta {
        width: 100%;
        text-align: center;
    }

    .avis-google-reviews-label {
        display: none;
    }
}
/* -----------------------------------------------------------------------------
   Smartphone : carrousel d'avis un peu plus compact (textes, marges, bouton)
   Sélecteurs renforcés : presentation.css (.avis-large …) est chargé après.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
    .avis-carrousel-section.avis-large {
        padding-top: 1.4rem;
        padding-bottom: calc(1.2rem + 48px);
    }

    .avis-large .avis-head {
        gap: .9rem;
        margin-bottom: .8rem;
    }

    .avis-large .avis-score {
        padding: .35rem .8rem;
        gap: .4rem .55rem;
        border-radius: 12px;
    }

    .avis-large .avis-google-logo { width: 22px; height: 22px; }
    .avis-large .avis-google-wordmark { font-size: .92rem; }
    .avis-large .avis-score-num { font-size: 1.4rem; }
    .avis-large .avis-score-sub { font-size: .68rem; }

    .avis-large .avis-cta {
        width: auto;
        padding: .55rem 1.3rem;
        font-size: .85rem;
    }

    .avis-large .avis-card {
        padding: 1rem 1.05rem;
        border-radius: 14px;
    }

    .avis-large .avis-stars {
        font-size: .78rem;
        margin-bottom: .4rem;
    }

    .avis-large .avis-text {
        font-size: .84rem;
        line-height: 1.5;
        margin-bottom: .7rem;
    }

    .avis-large .avis-avatar {
        width: 32px;
        height: 32px;
        font-size: .75rem;
    }

    .avis-large .avis-author-name { font-size: .84rem; }
    .avis-large .avis-author-date { font-size: .7rem; }

    .avis-large .avis-controls { margin-top: .7rem; }
    .avis-large .avis-dot { width: 7px; height: 7px; }
}
