/* =====================================================================
   Cabinet Dentaire Gloria — assets/css/home.css
   ---------------------------------------------------------------------
   Styles specifiques homepage. Inclus en complement des CSS core
   (main, header, footer, form, components) via $extra_css = ['home'].
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. HERO  (Task 3.1)
   ---------------------------------------------------------------------
   - Image plein ecran (picture + srcset webp/jpg, 4 tailles)
   - Overlay degrade navy 70% -> 45% (lisibilite texte blanc)
   - Header sticky transparent au repos -> hero remonte sous lui (-80px)
   - H1 Playfair clamp(40, 6vw, 64), animation fade-up echelonnee
   - 2 CTAs (or premium + outline blanc), trust + stars
   --------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 90vh;
    margin-top: -80px;                         /* passe SOUS le header sticky transparent */
    padding-top: calc(80px + var(--sp-9));
    padding-bottom: var(--sp-10);
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(15, 30, 51, 0.72) 0%,
        rgba(30, 58, 95, 0.46) 100%
    );
}

.hero__inner {
    max-width: 720px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-white);
    margin: 0 0 var(--sp-5);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    animation: hero-fade-up 800ms ease-out 100ms backwards;
}

.hero__subtitle {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 var(--sp-7);
    max-width: 600px;
    animation: hero-fade-up 800ms ease-out 250ms backwards;
}

.hero__ctas {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin-bottom: var(--sp-6);
    animation: hero-fade-up 800ms ease-out 400ms backwards;
}

.hero__cta-primary {
    height: 60px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(201, 169, 110, 0.32);
    transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}
.hero__cta-primary:hover,
.hero__cta-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(201, 169, 110, 0.42);
}

.hero__trust {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    animation: hero-fade-up 800ms ease-out 550ms backwards;
}
.hero__stars {
    color: var(--color-gold);
    letter-spacing: 1px;
    font-size: 15px;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile — full height, CTAs en colonne */
@media (max-width: 640px) {
    .hero {
        min-height: 100vh;
        padding-top: calc(80px + var(--sp-7));
        padding-bottom: var(--sp-9);
    }
    .hero__inner {
        text-align: left;
    }
    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero__ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion : desactive les fade-up */
@media (prefers-reduced-motion: reduce) {
    .hero__title,
    .hero__subtitle,
    .hero__ctas,
    .hero__trust {
        animation: none;
    }
    .hero__cta-primary {
        transition: none;
    }
}

/* ---------------------------------------------------------------------
   2. TRUST STRIP  (Task 3.2)
   ---------------------------------------------------------------------
   - Bandeau sand sous le hero
   - 4 colonnes egales desktop / stack mobile avec separateurs
   - Chiffre Playfair gras navy, prefixe (+) en or
   - Label uppercase Inter + sub-label discret
   - Animation count-up via Intersection Observer (cf trust-counter.js)
   --------------------------------------------------------------------- */

.trust-strip {
    background: var(--color-sand);
    padding: 0;
    position: relative;
}

.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: var(--sp-7) 0;
    position: relative;
}

/* Separateurs verticaux entre colonnes (desktop) */
.trust-strip__grid > * + * {
    position: relative;
}
.trust-strip__grid > * + *::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 60%;
    width: 1px;
    background: rgba(201, 169, 110, 0.30);
    transform: translateY(-50%);
    pointer-events: none;
}

.trust-stat {
    text-align: center;
    margin: 0;
    padding: var(--sp-3) var(--sp-4);
}

.trust-stat__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1;
    color: var(--color-navy);
    margin: 0 0 var(--sp-3);
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.trust-stat__prefix {
    color: var(--color-gold);
    font-weight: 600;
    margin-right: 2px;
}

.trust-stat__number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.trust-stat__suffix {
    margin-left: 2px;
    color: var(--color-gold);
    font-weight: 600;
}

.trust-stat__label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(30, 58, 95, 0.85);
    margin: 0;
    line-height: 1.4;
}

.trust-stat__sub {
    display: block;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    color: rgba(30, 58, 95, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

/* Mobile : stack vertical, separateurs horizontaux */
@media (max-width: 768px) {
    .trust-strip__grid {
        grid-template-columns: 1fr;
        padding: var(--sp-5) 0;
    }
    .trust-strip__grid > * + *::before {
        top: 0;
        left: 50%;
        width: 60%;
        height: 1px;
        transform: translateX(-50%);
    }
    .trust-stat {
        padding: var(--sp-4) var(--sp-5);
    }
    .trust-stat__value {
        font-size: 44px;
    }
}

/* ---------------------------------------------------------------------
   3. SERVICES GRID (Task 3.3) — 6 cartes desktop / carousel mobile
   --------------------------------------------------------------------- */
.services-section {
    background: var(--color-white);
    padding: var(--sp-10) 0;
}

.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--sp-9);
}
.section-intro__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 var(--sp-3);
    line-height: 1.2;
}
.section-intro__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(30, 58, 95, 0.65);
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) and (min-width: 769px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop & tablet : annule les regles globales du carousel (components.css)
   pour afficher TOUTES les 6 cartes en grille statique */
@media (min-width: 769px) {
    .services-grid > .service-card[data-slide],
    .services-grid > .service-card[data-slide].is-active {
        position: relative;
        inset: auto;
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }
}

.service-card {
    list-style: none;
    position: relative;
    display: flex;
}
.service-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-cream);
    border: 1px solid var(--color-beige);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    text-decoration: none;
    color: var(--color-navy);
    box-shadow: var(--shadow-card);
    transition: transform var(--tx-fast), box-shadow var(--tx-fast), border-color var(--tx-fast);
}
.service-card__link:hover,
.service-card__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 169, 110, 0.5);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--sp-4);
    color: var(--color-gold);
    line-height: 0;
}
.service-card__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-card__image {
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: var(--sp-5);
    aspect-ratio: 16 / 9;
    background: var(--color-beige);
}
.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease-out;
}
.service-card__link:hover .service-card__image img,
.service-card__link:focus-visible .service-card__image img {
    transform: scale(1.05);
}
.service-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
    color: rgba(30, 58, 95, 0.35);
    font-size: 36px;
}

.service-card__name {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-navy);
    margin: 0 0 var(--sp-3);
    text-align: center;
    line-height: 1.3;
}
.service-card__tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(30, 58, 95, 0.7);
    margin: 0 0 var(--sp-5);
    text-align: center;
    flex-grow: 1;
}
.service-card__more {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gold);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    transition: gap var(--tx-fast);
}
.service-card__link:hover .service-card__more,
.service-card__link:focus-visible .service-card__more { gap: 12px; }

.services-grid__dots {
    display: none;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-5);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        position: relative;
        min-height: 520px;
        gap: 0;
    }
    .service-card[data-slide] {
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 600ms ease;
    }
    .service-card[data-slide].is-active {
        opacity: 1;
        pointer-events: auto;
        position: relative;
    }
    .services-grid__dots { display: flex; }
}

.services-section__cta {
    text-align: center;
    margin-top: var(--sp-8);
}
.services-section__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

/* ---------------------------------------------------------------------
   4. CABINET EN IMAGES (Task 3.4) — carousel coverflow
   --------------------------------------------------------------------- */
.cabinet-images-section {
    background: var(--color-cream);
    padding: var(--sp-10) 0;
}

.coverflow {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: var(--sp-7) 0;
}

.coverflow__track {
    position: relative;
    height: clamp(280px, 38vw, 480px);
    perspective: 1200px;
}

.coverflow__slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 50vw, 720px);
    aspect-ratio: 16 / 9;
    margin: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(30, 58, 95, 0.15);
    cursor: pointer;
    transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 800ms ease-in-out;
    transform-origin: center;
}

.coverflow__slide picture,
.coverflow__slide img {
    display: block;
    width: 100%;
    height: 100%;
}
.coverflow__slide img {
    object-fit: cover;
}

/* Position centrale — image principale */
.coverflow__slide[data-pos="0"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
}

/* Adjacentes (gauche / droite) — 60% opacity, scale 0.85 */
.coverflow__slide[data-pos="-1"] {
    transform: translate(-115%, -50%) scale(0.85);
    opacity: 0.55;
    z-index: 2;
    cursor: pointer;
}
.coverflow__slide[data-pos="1"] {
    transform: translate(15%, -50%) scale(0.85);
    opacity: 0.55;
    z-index: 2;
}

/* Lointaines — invisibles */
.coverflow__slide[data-pos="far"] {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Boutons navigation */
.coverflow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-beige);
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
    z-index: 10;
    transition: transform var(--tx-fast), box-shadow var(--tx-fast),
                background var(--tx-fast), border-color var(--tx-fast);
}
.coverflow__nav:hover,
.coverflow__nav:focus-visible {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 16px rgba(201, 169, 110, 0.4);
}
.coverflow__nav--prev { left: 16px; }
.coverflow__nav--next { right: 16px; }

/* Dots */
.coverflow__dots {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-6);
}

/* CTA section */
.cabinet-images-section__cta {
    text-align: center;
    margin-top: var(--sp-7);
}
.cabinet-images-section__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

/* Mobile : 1 image visible, navigation par swipe + dots */
@media (max-width: 768px) {
    .coverflow__track {
        height: clamp(200px, 56vw, 320px);
    }
    .coverflow__slide {
        width: 90vw;
        max-width: 480px;
    }
    /* En mobile : adjacentes invisibles, on swipe */
    .coverflow__slide[data-pos="-1"],
    .coverflow__slide[data-pos="1"] {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0;
        pointer-events: none;
    }
    .coverflow__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .coverflow__slide { transition: opacity 200ms ease; }
}

/* ---------------------------------------------------------------------
   5. ABOUT FOUNDER (Task 3.5) — Dr Kenmo Raissa featured
   --------------------------------------------------------------------- */
.about-founder {
    background: var(--color-white);
    padding: var(--sp-11) 0;
}

.about-founder__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: var(--sp-9);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-founder__portrait {
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 480px;
    justify-self: center;
    width: 100%;
}
.about-founder__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-md);
    box-shadow: 0 24px 48px rgba(30, 58, 95, 0.18);
    display: block;
}

/* Cadre offset polaroid premium */
.about-founder__portrait::before {
    content: '';
    position: absolute;
    inset: var(--sp-3) calc(-1 * var(--sp-3)) calc(-1 * var(--sp-3)) var(--sp-3);
    background: var(--color-sand);
    border-radius: var(--r-md);
    z-index: -1;
}

.about-founder__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
    margin: 0 0 var(--sp-4);
}

.about-founder__divider {
    width: 40px;
    height: 2px;
    background: var(--color-gold);
    border: 0;
    margin: 0 0 var(--sp-5);
}

.about-founder__paragraph {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(30, 58, 95, 0.8);
    margin: 0 0 var(--sp-4);
    max-width: 540px;
}

.about-founder__signature {
    margin: var(--sp-7) 0 var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--color-beige);
    max-width: 540px;
}
.about-founder__signature-image {
    display: block;
    height: auto;
    max-width: 200px;
    margin: 0 0 var(--sp-2);
    filter: brightness(0.9);
}
.about-founder__signature-name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 2px;
}
.about-founder__signature-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(30, 58, 95, 0.6);
    margin: 0;
    font-style: italic;
}

.about-founder__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

@media (max-width: 768px) {
    .about-founder { padding: var(--sp-9) 0; }
    .about-founder__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-7);
    }
    .about-founder__portrait {
        max-width: 360px;
    }
    .about-founder__portrait::before {
        inset: var(--sp-2) calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2)) var(--sp-2);
    }
}

/* ---------------------------------------------------------------------
   6. FIRST VISIT (Task 3.6) — bandeau navy 4 etapes timeline
   --------------------------------------------------------------------- */
.first-visit {
    position: relative;
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--sp-11) 0;
    overflow: hidden;
}

/* Texture geometrique or doré 5% opacity en background */
.first-visit__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201,169,110,1) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(201,169,110,1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(201,169,110,1) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 100px 100px;
    pointer-events: none;
}

.first-visit > .container {
    position: relative;
    z-index: 1;
}

.first-visit__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--sp-9);
}

.first-visit__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 var(--sp-4);
}

.first-visit__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Steps grid 4 colonnes desktop */
.first-visit__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    counter-reset: step;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Lignes pointillees or doré entre les cards (desktop) */
.first-visit__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    right: -50%;
    width: 100%;
    border-top: 1px dashed rgba(201, 169, 110, 0.3);
    transform: translateX(50%);
    z-index: 0;
}

.first-visit__step {
    list-style: none;
    text-align: center;
    padding: 0 var(--sp-3);
    position: relative;
}

.first-visit__num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--sp-3);
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    background: var(--color-navy);
    display: inline-block;
    padding: 0 16px;
}

.first-visit__icon {
    color: var(--color-gold);
    margin-bottom: var(--sp-4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}
.first-visit__icon svg {
    width: 40px;
    height: 40px;
}

.first-visit__step-title {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-white);
    margin: 0 0 var(--sp-3);
    line-height: 1.3;
}

.first-visit__step-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.first-visit__cta {
    text-align: center;
    margin-top: var(--sp-9);
}
.first-visit__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

/* Tablet : 2 cols */
@media (max-width: 1023px) and (min-width: 641px) {
    .first-visit__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-7);
    }
    .first-visit__step:nth-child(2)::after,
    .first-visit__step:nth-child(4)::after { display: none; }
}

/* Mobile : 1 col + ligne pointillee verticale */
@media (max-width: 640px) {
    .first-visit { padding: var(--sp-9) 0; }
    .first-visit__steps {
        grid-template-columns: 1fr;
        gap: var(--sp-7);
    }
    .first-visit__step:not(:last-child)::after {
        top: auto;
        bottom: calc(-1 * var(--sp-7) / 2);
        right: auto;
        left: 50%;
        width: 1px;
        height: var(--sp-7);
        border-top: 0;
        border-left: 1px dashed rgba(201, 169, 110, 0.3);
        transform: translateX(-50%);
    }
}

/* ---------------------------------------------------------------------
   7. TESTIMONIALS (Task 3.7) — carrousel scroll-snap horizontal
   --------------------------------------------------------------------- */
.testimonials {
    background: var(--color-cream);
    padding: var(--sp-10) 0;
}

.testimonials__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--sp-8);
}

.testimonials__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
    margin: 0 0 var(--sp-3);
}

.testimonials__rating {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-gold);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Viewport scrollable */
.testimonials__viewport {
    margin: 0 calc(-1 * var(--sp-5));
    padding: 0 var(--sp-5) var(--sp-5);
    overflow: hidden;
}

.testimonials__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--sp-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) transparent;
    padding-bottom: var(--sp-4);
    scroll-padding: 0 var(--sp-5);
}
.testimonials__track::-webkit-scrollbar {
    height: 6px;
}
.testimonials__track::-webkit-scrollbar-track {
    background: transparent;
}
.testimonials__track::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 3px;
}

.testimonial-card {
    list-style: none;
    flex: 0 0 calc((100% - 2 * var(--sp-5)) / 3);
    min-width: 280px;
    background: var(--color-white);
    border: 1px solid var(--color-beige);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
    transition: box-shadow var(--tx-fast), transform var(--tx-fast);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.testimonial-card__rating {
    color: var(--color-gold);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: var(--sp-4);
}

.testimonial-card__quote {
    margin: 0 0 var(--sp-5);
    flex-grow: 1;
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(30, 58, 95, 0.85);
    quotes: "«" "»";
}
.testimonial-card__quote p {
    margin: 0;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-beige);
}

.testimonial-card__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.testimonial-card__meta {
    flex: 1;
    min-width: 0;
}
.testimonial-card__name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.3;
}
.testimonial-card__service {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-gold);
    margin: 2px 0 0;
}
.testimonial-card__date {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(30, 58, 95, 0.55);
    font-style: italic;
    margin: 2px 0 0;
}

.testimonials__cta {
    text-align: center;
    margin-top: var(--sp-7);
}
.testimonials__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

/* Tablet : 2 cards visibles */
@media (max-width: 1023px) {
    .testimonial-card {
        flex: 0 0 calc((100% - var(--sp-5)) / 2);
    }
}

/* Mobile : 1 card visible 90% */
@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 90%;
    }
}

/* ---------------------------------------------------------------------
   8. FAQ TEASER (Task 3.8) — image gauche / accordeons droite
   --------------------------------------------------------------------- */
.faq-teaser {
    background: var(--color-white);
    padding: var(--sp-10) 0;
}

.faq-teaser__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: var(--sp-8);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-teaser__image {
    margin: 0;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(30, 58, 95, 0.10);
    position: sticky;
    top: 100px;
}
.faq-teaser__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faq-teaser__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
    margin: 0 0 var(--sp-3);
}

.faq-teaser__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(30, 58, 95, 0.65);
    margin: 0 0 var(--sp-6);
}

.faq-teaser__list {
    list-style: none;
    margin: 0 0 var(--sp-7);
    padding: 0;
}

.faq-teaser__item {
    border-bottom: 1px solid var(--color-beige);
    padding: 0;
}
.faq-teaser__item:first-child {
    border-top: 1px solid var(--color-beige);
}

.faq-teaser__trigger {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-navy);
    padding: var(--sp-5) 40px var(--sp-5) 0;
    position: relative;
    cursor: pointer;
    line-height: 1.4;
    transition: color var(--tx-fast);
}
.faq-teaser__trigger:hover { color: rgba(30, 58, 95, 0.75); }
.faq-teaser__trigger::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    color: var(--color-gold);
    font-size: 26px;
    font-weight: 300;
    transition: transform var(--tx-fast);
    line-height: 1;
}
.faq-teaser__trigger[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-teaser__panel {
    padding: 0 0 var(--sp-5);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-medium);
    max-width: 640px;
}
.faq-teaser__panel[hidden] { display: none; }
.faq-teaser__panel p { margin: 0; }

.faq-teaser__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

@media (max-width: 1023px) {
    .faq-teaser__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-7);
    }
    .faq-teaser__image {
        max-width: 360px;
        margin: 0 auto;
        position: static;
    }
}

/* ---------------------------------------------------------------------
   9. CTA PRE-FOOTER (Task 3.9) — block conversion navy degrade
   --------------------------------------------------------------------- */
.cta-prefooter {
    position: relative;
    background: linear-gradient(135deg, #1E3A5F 0%, #0F1E33 100%);
    color: var(--color-white);
    padding: var(--sp-11) 0;
    overflow: hidden;
    text-align: center;
}

.cta-prefooter__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(201,169,110,1) 1px, transparent 1px),
        radial-gradient(circle at 85% 70%, rgba(201,169,110,1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(201,169,110,1) 1px, transparent 1px);
    background-size: 60px 60px, 100px 100px, 80px 80px;
}

.cta-prefooter__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-prefooter__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 var(--sp-4);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.cta-prefooter__subtitle {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 var(--sp-7);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-prefooter__ctas {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--sp-7);
}

.cta-prefooter__btn-primary {
    height: 64px;
    padding: 0 36px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
    transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}
.cta-prefooter__btn-primary:hover,
.cta-prefooter__btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 169, 110, 0.45);
}

.cta-prefooter__btn-call {
    height: 64px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}
.cta-prefooter__btn-call svg {
    color: var(--color-gold);
    flex-shrink: 0;
}
.cta-prefooter__btn-call:hover svg,
.cta-prefooter__btn-call:focus-visible svg {
    color: var(--color-navy);
}

.cta-prefooter__secondary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.cta-prefooter__secondary li {
    list-style: none;
}

.cta-prefooter__secondary a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    transition: color var(--tx-fast);
}
.cta-prefooter__secondary a:hover,
.cta-prefooter__secondary a:focus-visible {
    color: var(--color-gold);
}
.cta-prefooter__secondary svg {
    color: var(--color-gold);
}

@media (max-width: 640px) {
    .cta-prefooter { padding: var(--sp-9) 0; }
    .cta-prefooter__ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-prefooter__ctas .btn { width: 100%; }
    .cta-prefooter__secondary {
        gap: var(--sp-4);
    }
    .cta-prefooter__secondary li {
        flex: 1 1 calc(50% - var(--sp-4));
        text-align: center;
    }
}
