/* ═══════════════════════════════════════════════════════════
   HOME ALT — Ebea Software  v4
   Page entièrement claire. Fond blanc/crème. Texte sombre.
   Accent rouge #BC171F. Zéro fond noir.
   ═══════════════════════════════════════════════════════════ */

/* ── Palette ──────────────────────────────────────────────── */
:root {
    --hp-white: #ffffff;
    --hp-alt: #fafafa;
    --hp-cream: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(250, 250, 250, 1) 70%, rgba(245, 245, 245, 1) 100%);
    /*#f5f3ef;   /* fond secondaire chaud          */
    --hp-pale: #ede9e3;
    /* fond tertiaire (cartes alt)    */
    --hp-ink: #1c1c1c;
    /* texte principal                */
    --hp-muted: rgba(28, 28, 28, 0.50);
    --hp-faint: rgba(28, 28, 28, 0.28);
    --hp-accent: #BC171F;
    /* rouge marque                   */
    --hp-border: rgba(0, 0, 0, 0.09);
    --hp-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

/* ── Lottie header : responsive ──────────────────────────── */
.ebea-home-animation lottie-player {
    height: 500px !important;
}

@media (max-width: 960px) {
    .ebea-home-animation lottie-player {
        height: 340px !important;
    }
}

@media (max-width: 640px) {
    .ebea-home-animation lottie-player {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .ebea-home-animation lottie-player {
        height: 160px !important;
    }
}

/* ── Override des tokens animation-components ─────────────────
   Tous les composants reçoivent des valeurs claires.           */
.hp-page {
    /* tokens globaux */
    --anim-accent: #BC171F;
    --anim-text: #1c1c1c;
    --anim-muted: rgba(28, 28, 28, 0.50);
    --anim-surface: rgba(0, 0, 0, 0.03);
    --anim-border: rgba(0, 0, 0, 0.09);
    --anim-bg: #ffffff;
    background: var(--hp-white);
    color: var(--hp-ink);
}


/* ═══════════════════════════════════════════════════════════
   01 — HERO  (seule section à fond légèrement teinté)
   ═══════════════════════════════════════════════════════════ */
.hp-hero {
    position: relative;
    /* min-height: 100svh; /**/
    /*background: var(--hp-cream);/**/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 2rem 7rem;
}

/* Grille décorative subtile */
.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 75%);
    pointer-events: none;
}

/* Orbe rouge très doux */
.hp-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 23, 31, 0.10) 0%, transparent 65%);
    top: -150px;
    right: -100px;
    pointer-events: none;
    filter: blur(60px);
}

.hp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.hp-hero__left {
    min-width: 0;
}

.hp-hero__eyebrow {
    /* display: inline-flex; /**/
    display: none;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hp-muted);
    border: 1px solid var(--hp-border);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.6);
}

.hp-hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hp-accent);
    flex-shrink: 0;
}

.hp-hero__title {
    font-size: clamp(3.4rem, 9vw, 8rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.04em;
    color: var(--hp-ink);
    margin-bottom: 2rem;
}

.hp-hero__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
    line-height: 9.9vw;
}

.hp-hero__title .anim-text-reveal {
    display: block;
}

/* Override text_reveal tokens dans le hero */
.hp-hero .anim-text-reveal {
    --anim-text: #1c1c1c;
}

.hp-hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--hp-muted);
    line-height: 1.75;
    max-width: 44ch;
    margin-bottom: 3rem;
    --anim-text: rgba(28, 28, 28, 0.50);
}

.hp-hero__sub.anim-text-reveal {
    display: block;
}

.hp-hero__cta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hp-btn {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.85rem 1.9rem;
    border-radius: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    transition: background 0.22s, transform 0.18s, border-color 0.22s, color 0.22s;
    cursor: pointer;
    border: 1px solid transparent;
}

.hp-btn--red {
    background: var(--hp-accent);
    color: #fff;
}

.hp-btn--red:hover {
    background: #e82530;
    transform: translateY(-2px);
}

.hp-btn--outline {
    background: rgba(255, 255, 255, 0.7);
    color: var(--hp-ink);
    border-color: var(--hp-border);
}

.hp-btn--outline:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.hp-hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 2rem;
}

.hp-hero__vertical {
    writing-mode: vertical-rl;
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--hp-faint);
    transform: rotate(180deg);
}

.hp-hero__scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(188, 23, 31, 0.5), transparent);
    animation: hp-pulse 2s ease-in-out infinite;
}

@keyframes hp-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}


/* ═══════════════════════════════════════════════════════════
   02 — MARQUEE  (bande rouge — point de couleur intentionnel)
   ═══════════════════════════════════════════════════════════ */
.hp-marquee {
    background: var(--hp-accent);
    padding: 2.4rem 0;
    overflow: hidden;
    rotate: -1deg;
}

/* Texte blanc sur la bande rouge */
.hp-marquee .anim-mq__item,
.hp-marquee .anim-mq__sep {
    color: rgba(255, 255, 255, 0.90);
}


/* ═══════════════════════════════════════════════════════════
   03 — MISSION  (fond blanc)
   ═══════════════════════════════════════════════════════════ */
.hp-mission {
    background: var(--hp-alt);
    padding: 9rem 2.5rem;
}

.hp-mission__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.hp-mission__title {
    font-size: clamp(3.4rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--hp-ink);
    --anim-text: #1c1c1c;
}

.hp-mission__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
}

.hp-mission__title.anim-text-reveal {
    display: block;
    overflow: visible;
}

.hp-mission__right {
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hp-mission__body {
    font-size: 1.05rem;
    color: var(--hp-muted);
    line-height: 1.8;
}

.hp-mission__detail {
    font-size: 0.82rem;
    color: var(--hp-faint);
    line-height: 1.75;
    border-left: 3px solid var(--hp-accent);
    padding-left: 1.2rem;
}

.hp-mission__link {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--hp-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.hp-mission__link:hover {
    gap: 0.7rem;
}


/* ═══════════════════════════════════════════════════════════
   04 — STATS  (fond crème)
   ═══════════════════════════════════════════════════════════ */
.hp-stats {
    background: var(--hp-cream);
    padding: 7rem 2.5rem;
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
}

.hp-stats__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hp-stats__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 2rem;
}

.hp-stats__title {
    font-size: clamp(3.4rem, 3vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hp-ink);
    line-height: 1.1;
}

.hp-stats__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
}

.hp-stats__sub {
    font-size: 0.85rem;
    color: var(--hp-muted);
    max-width: 32ch;
    line-height: 1.65;
    text-align: right;
}

.hp-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── Counter : carte blanche avec texte sombre ── */
.hp-stats .anim-counter {
    background: var(--hp-white) !important;
    border: 1px solid var(--hp-border) !important;
    border-radius: 1rem;
    padding: 2.5rem 1.8rem;
    box-shadow: var(--hp-shadow);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.hp-stats .anim-counter:hover {
    box-shadow: 0 6px 32px rgba(188, 23, 31, 0.10);
    border-color: rgba(188, 23, 31, 0.20) !important;
}

.hp-stats .anim-counter__num {
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: var(--hp-ink) !important;
}

.hp-stats .anim-counter__suffix {
    color: var(--hp-accent) !important;
    font-weight: 700 !important;
}

.hp-stats .anim-counter__label {
    font-size: 0.63rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hp-muted) !important;
}

.hp-stats .anim-counter__bar-wrap {
    background: rgba(0, 0, 0, 0.08) !important;
    margin-top: 1.2rem;
    height: 2px;
    border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════
   05 — SERVICES  (fond blanc, card_stack)
   ═══════════════════════════════════════════════════════════ */
.hp-services {
    background: var(--hp-white);
    padding-top: 8rem;
    padding-bottom: 0;
    border-top: 1px solid var(--hp-border);
    max-width: 1200px;
    margin: auto;
}

.hp-services__head {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem 5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.hp-services__title {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--hp-ink);
    --anim-text: #1c1c1c;
}

.hp-services__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
}

.hp-services__title.anim-text-reveal {
    display: block;
    overflow: visible;
}

.hp-services__sub {
    font-size: 0.88rem;
    color: var(--hp-muted);
    line-height: 1.7;
    max-width: 34ch;
    text-align: right;
}

/* ── card_stack : cartes blanches avec bordure colorée ── */
.hp-services .anim-card-stack {
    display: block;
}

.hp-services .anim-cs__card {
    position: sticky;
    min-height: 90vh;
    border-radius: 1.25rem 1.25rem 0 0;
    overflow: hidden;
    will-change: transform, filter;
    background: var(--hp-alt) !important;
    border: 1px solid var(--hp-border) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.06) !important;

    border-top: 3px solid #BC171F !important;
}

/*
.hp-services .anim-cs__card[data-index="0"] {
    top: 5rem;
    border-top: 3px solid #BC171F !important;
    z-index: 1;
}
.hp-services .anim-cs__card[data-index="1"] {
    top: calc(5rem + 36px);
    border-top: 3px solid #4a2dff !important;
    z-index: 2;
}
.hp-services .anim-cs__card[data-index="2"] {
    top: calc(5rem + 72px);
    border-top: 3px solid #00875a !important;
    z-index: 3;
}
/**/
.hp-services .anim-cs__inner {
    padding: 3.5rem 4rem;
    max-width: 800px;
}

.hp-services .anim-cs__tag {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hp-faint);
    border: 1px solid var(--hp-border);
    border-radius: 2em;
    padding: 0.3em 0.8em;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.hp-services .anim-cs__title {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--hp-ink) !important;
    color: #BC171F !important;
}

/*
.hp-services .anim-cs__card[data-index="0"] .anim-cs__title { color: #BC171F !important; }
.hp-services .anim-cs__card[data-index="1"] .anim-cs__title { color: #4a2dff !important; }
.hp-services .anim-cs__card[data-index="2"] .anim-cs__title { color: #00875a !important; }
/**/

.hp-services .anim-cs__body {
    color: var(--hp-muted) !important;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 52ch;
}

.hp-services .anim-cs__link {
    color: var(--hp-ink) !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s, gap 0.2s;
    margin-top: 2rem;
}

.hp-services .anim-cs__link:hover {
    color: var(--hp-accent) !important;
    gap: 0.65rem;
}


/* ═══════════════════════════════════════════════════════════
   06 — PROCESSUS  (fond crème, swipe_slider)
   ═══════════════════════════════════════════════════════════ */
.hp-process {
    background: var(--hp-cream);
    padding: 9rem 2.5rem 7rem;
    border-top: 1px solid var(--hp-border);
}

.hp-process__head {
    max-width: 1200px;
    margin: 0 auto 4.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.hp-process__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--hp-ink);
    --anim-text: #1c1c1c;
}

.hp-process__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
}

.hp-process__title.anim-text-reveal {
    display: block;
    overflow: visible;
}

.hp-process__sub {
    font-size: 0.88rem;
    color: var(--hp-muted);
    line-height: 1.7;
    max-width: 34ch;
    text-align: right;
}

/* ── card_stack variante process ── */
.hp-process .hp-process__stack {
    display: block;
}

.hp-process .anim-cs__card {
    position: sticky;
    min-height: 52vh;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    will-change: transform, filter;
    background: var(--hp-white) !important;
    border: 1px solid var(--hp-border) !important;
    border-bottom: none !important;
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.05) !important;
}

.hp-process .anim-cs__card[data-index="0"] {
    top: 5rem;
    border-top: 3px solid #BC171F !important;
    z-index: 1;
}

.hp-process .anim-cs__card[data-index="1"] {
    top: calc(5rem + 28px);
    border-top: 3px solid #4a2dff !important;
    z-index: 2;
}

.hp-process .anim-cs__card[data-index="2"] {
    top: calc(5rem + 56px);
    border-top: 3px solid #00875a !important;
    z-index: 3;
}

.hp-process .anim-cs__card[data-index="3"] {
    top: calc(5rem + 84px);
    border-top: 3px solid #c47900 !important;
    z-index: 4;
}

.hp-process .anim-cs__inner {
    padding: 3rem 4rem;
    max-width: 900px;
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 3rem;
    align-items: start;
}

/* Numéro d'étape — grand et discret */
.hp-process .anim-cs__tag {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--hp-pale);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: block;
    /* couleur via --card-accent */
    color: color-mix(in srgb, var(--card-accent, #BC171F) 18%, var(--hp-pale));
}

.hp-process .anim-cs__card[data-index="0"] .anim-cs__tag {
    color: rgba(188, 23, 31, 0.20);
}

.hp-process .anim-cs__card[data-index="1"] .anim-cs__tag {
    color: rgba(74, 45, 255, 0.20);
}

.hp-process .anim-cs__card[data-index="2"] .anim-cs__tag {
    color: rgba(0, 135, 90, 0.20);
}

.hp-process .anim-cs__card[data-index="3"] .anim-cs__tag {
    color: rgba(196, 121, 0, 0.20);
}

.hp-process .anim-cs__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hp-ink) !important;
    margin-bottom: 0.9rem;
}

.hp-process .anim-cs__body {
    font-size: 1rem !important;
    color: var(--hp-muted) !important;
    line-height: 1.8;
    max-width: 54ch;
}


/* ═══════════════════════════════════════════════════════════
   06b — PROCESSUS STORY  (scroll storytelling, fond crème)
   ═══════════════════════════════════════════════════════════ */
.hp-story {
    background: var(--hp-cream);
    border-top: 1px solid var(--hp-border);
}

.hp-story__head {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2.5rem 5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.hp-story__title {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--hp-ink);
    --anim-text: #1c1c1c;
}

.hp-story__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
}

.hp-story__title.anim-text-reveal {
    display: block;
    overflow: visible;
}

.hp-story__sub {
    font-size: 0.88rem;
    color: var(--hp-muted);
    line-height: 1.7;
    max-width: 34ch;
    text-align: right;
}

/* ── scroll_story overrides : tokens clairs ── */
.hp-story .anim-scroll-story {
    --anim-text: #1c1c1c;
    --anim-muted: rgba(28, 28, 28, 0.50);
    --anim-border: rgba(0, 0, 0, 0.09);
    --anim-surface: rgba(0, 0, 0, 0.03);
    --anim-accent: #BC171F;
}

.hp-story .anim-ss__wrap {
   /* background: var(--hp-cream); /**/
}

/* Panneau texte */
.hp-story .anim-ss__label {
    color: var(--hp-accent) !important;
    font-weight: 600;
}

.hp-story .anim-ss__title {
    color: var(--hp-ink) !important;
}

.hp-story .anim-ss__body {
    color: var(--hp-muted) !important;
}

.hp-story .anim-ss__link {
    color: var(--hp-accent) !important;
}

/* Dots de navigation */
.hp-story .anim-ss__dot {
    background: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.hp-story .anim-ss__dot.is-active {
    background: var(--hp-accent) !important;
    border-color: var(--hp-accent) !important;
}

/* Panneau visuel : coins arrondis, ombre légère */
.hp-story .anim-ss__visual {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
}

/* Caption overlay sur fond clair */
.hp-story .anim-ss__visual-label {
    background: rgba(255, 255, 255, 0.80) !important;
    color: var(--hp-ink) !important;
    backdrop-filter: blur(8px);
    border-radius: 0.4rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* scroll_story mobile : override du padding des étapes dans le contexte hp-story */
@media (max-width: 768px) {
    .hp-story .anim-ss__step {
        padding: 2.5rem 2rem;
    }

    .hp-story .anim-ss__step:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .hp-story .anim-ss__step {
        padding: 2rem 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   07 — CE QUE NOUS CRÉONS  (fond blanc, text_replace)
   ═══════════════════════════════════════════════════════════ */
.hp-txr {
    background: var(--hp-alt);
    border-top: 1px solid var(--hp-border);
    padding: 9rem 0;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.hp-txr__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.hp-txr__label {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hp-faint);
    margin-bottom: 2.5rem;
}

.hp-txr .anim-text-replace {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5em;
    flex-wrap: wrap;
}

.hp-txr .anim-tr__prefix {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--hp-ink);
}

.hp-txr .anim-tr__slot {
    height: clamp(3rem, 8vw, 6rem);
    display: flex;
    align-items: center;
    position: relative;
}

.hp-txr .anim-tr__word {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--hp-accent);
    padding: 0.05em 0.4rem;
}

.hp-txr .anim-tr__pill {
    background: var(--hp-accent);
    opacity: 0.08;
    border-radius: 0.5em;
}


/* ═══════════════════════════════════════════════════════════
   08 — FAQ  (accordion éditorial avec numéros)
   ═══════════════════════════════════════════════════════════ */
.hp-faq {
    position: relative;
    background: var(--hp-alt);
    padding: 9rem 2.5rem;
}

.hp-faq__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── En-tête : titre gauche / intro + lien droite ── */
.hp-faq__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--hp-border);
}

.hp-faq__title {
    font-size: clamp(3.6rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--hp-ink);
    margin-top: 1rem;
}

.hp-faq__title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--hp-accent);
    font-weight: 400;
}

.hp-faq__header-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: flex-end;
}

.hp-faq__intro {
    font-size: 1rem;
    color: var(--hp-muted);
    line-height: 1.8;
    max-width: 42ch;
}

.hp-faq__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hp-accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.15rem;
    width: fit-content;
    transition: gap 0.2s ease;
}

.hp-faq__contact-link:hover {
    gap: 0.9rem;
}

/* ── Liste ── */
.hp-faq__list {
    margin: 0;
    padding: 0;
}

.hp-faq__item {
    border-top: 1px solid var(--hp-border);
    position: relative;
    transition: border-color 0.25s;
}

.hp-faq__item:last-child {
    border-bottom: 1px solid var(--hp-border);
}

.hp-faq__item.is-open {
    border-top-color: var(--hp-accent);
}

.hp-faq__item.is-open+.hp-faq__item {
    border-top-color: transparent;
}

/* ── Bouton question ── */
.hp-faq__btn {
    display: grid;
    grid-template-columns: 3.5rem 1fr 2.5rem;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

/* Numéro */
.hp-faq__num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--hp-muted);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s, font-size 0.3s;
    line-height: 1;
    align-self: start;
    padding-top: 0.35em;
}

.hp-faq__item.is-open .hp-faq__num {
    color: var(--hp-accent);
    font-size: 0.8rem;
}

/* Texte de la question */
.hp-faq__q-text {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: var(--hp-ink);
    letter-spacing: -0.025em;
    line-height: 1.25;
    transition: color 0.25s;
}

.hp-faq__item.is-open .hp-faq__q-text,
.hp-faq__btn:hover .hp-faq__q-text {
    color: var(--hp-accent);
}

/* Icône circulaire +/× */
.hp-faq__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1.5px solid var(--hp-border);
    position: relative;
    flex-shrink: 0;
    justify-self: end;
    transition: background 0.3s, border-color 0.3s, transform 0.45s ease;
}

.hp-faq__icon::before,
.hp-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--hp-ink);
    border-radius: 2px;
    transition: transform 0.35s ease, background 0.25s;
}

.hp-faq__icon::before {
    width: 11px;
    height: 1.5px;
    translate: -50% -50%;
}

.hp-faq__icon::after {
    width: 1.5px;
    height: 11px;
    translate: -50% -50%;
}

.hp-faq__item.is-open .hp-faq__icon {
    background: var(--hp-accent);
    border-color: var(--hp-accent);
}

.hp-faq__item.is-open .hp-faq__icon::before,
.hp-faq__item.is-open .hp-faq__icon::after {
    background: #fff;
}

.hp-faq__item.is-open .hp-faq__icon::after {
    transform: rotate(90deg);
}

/* ── Panel réponse (GSAP gère la hauteur) ── */
.hp-faq__panel {
    overflow: hidden;
}

.hp-faq__panel-inner {
    padding: 0 0 2.5rem calc(3.5rem + 1.5rem);
    /* aligne avec le texte de la question */
}

.hp-faq__panel-inner p {
    font-size: 1rem;
    color: var(--hp-muted);
    line-height: 1.85;
    max-width: 62ch;
    margin: 0;
    border-left: 2px solid var(--hp-pale);
    padding-left: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hp-faq__header {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3.5rem;
        padding-bottom: 3rem;
    }

    .hp-faq__btn {
        grid-template-columns: 2.5rem 1fr 2rem;
        gap: 1rem;
    }

    .hp-faq__panel-inner {
        padding-left: calc(2.5rem + 1rem);
    }
}


/* ═══════════════════════════════════════════════════════════
   TAGS — labels partagés
   ═══════════════════════════════════════════════════════════ */
.hp-tag {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hp-faint);
    margin-bottom: 1rem;
}

.hp-tag--light {
    color: var(--hp-muted);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first progressif
   Breakpoints : 960 | 768 | 640 | 480
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet  ≤960px ─────────────────────────────────────── */
@media (max-width: 960px) {

    /* Hero */
    .hp-hero {
        padding: 6rem 2rem 5rem;
    }

    .hp-hero__inner {
        grid-template-columns: 1fr;
    }

    .hp-hero__right {
        display: none;
    }

    /* Mission */
    .hp-mission {
        padding: 6rem 2rem;
    }

    .hp-mission__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hp-mission__right {
        padding-top: 0;
    }

    /* Stats */
    .hp-stats {
        padding: 5rem 2rem;
    }

    .hp-stats__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .hp-stats__sub {
        text-align: left;
        max-width: none;
    }

    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services */
    .hp-services {
        padding-top: 6rem;
    }

    .hp-services__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0 2rem 4rem;
    }

    .hp-services__sub {
        text-align: left;
        max-width: none;
    }

    .hp-services .anim-cs__inner {
        padding: 2.5rem 2.5rem;
    }

    .hp-services .anim-cs__card {
        min-height: 56vh;
    }

    /* Process */
    .hp-process {
        padding: 6rem 2rem 5rem;
    }

    .hp-process__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hp-process__sub {
        text-align: left;
        max-width: none;
    }

    .hp-process .anim-cs__inner {
        padding: 2.5rem 2rem;
    }

    .hp-process .anim-cs__card {
        min-height: 42vh;
    }

    /* Story head */
    .hp-story__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 6rem 2rem 4rem;
    }

    .hp-story__sub {
        text-align: left;
        max-width: none;
    }

    /* Text replace */
    .hp-txr {
        padding: 6rem 0;
        min-height: 40vh;
    }

    /* FAQ */
    .hp-faq {
        padding: 6rem 2rem;
    }
}


/* ── Mobile paysage / grande tablette  ≤768px ────────────── */
@media (max-width: 768px) {

    /* Process inner — numéro au-dessus du texte */
    .hp-process .anim-cs__inner {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hp-process .anim-cs__tag {
        font-size: 3rem;
    }

    /* Story : ajustement visuel bande */
    .hp-story .anim-ss__visuals {
        min-height: 260px;
        max-height: 340px;
    }
}


/* ── Mobile portrait  ≤640px ─────────────────────────────── */
@media (max-width: 640px) {

        
    .hp-hero__title em {
        line-height: 14.3vw;
    }


    html {
        /* overflow: hidden;*/
    }

    .footer-brand {
        max-width: 100%;
    }

    .info-description {
        margin: 0;
    }

    .contact-info {
        order: 5;
    }

    .anim-ss__step {
        height: auto !important;
    }

    /* Espacement global : sections condensées */
    .hp-hero {
        padding: 4rem 1.25rem 4rem;
        /*min-height: 85svh;/**/
    }

    .hp-mission {
        padding: 4rem 1.25rem;
    }

    .hp-stats {
        padding: 4rem 1.25rem;
    }

    .hp-services {
        padding-top: 4rem;
    }

    .hp-services__head {
        padding: 0 1.25rem 3rem;
        gap: 1.2rem;
    }

    .hp-process {
        padding: 4rem 1.25rem;
    }

    .hp-process__head {
        margin-bottom: 3rem;
    }

    .hp-story__head {
        padding: 4rem 1.25rem 3rem;
    }

    .hp-txr {
        padding: 4rem 0;
        min-height: auto;
    }

    .hp-txr__inner {
        padding: 0 1.25rem;
    }

    .hp-faq {
        padding: 4rem 1.25rem;
    }

    .hp-faq__header {
        margin-bottom: 3rem;
        padding-bottom: 2.5rem;
    }

    /* Hero : boutons pleine largeur */
    .hp-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-btn {
        justify-content: center;
    }

    .hp-hero__eyebrow {
        font-size: 0.55rem;
    }

    /* Mission : titre réduit */
    .hp-mission__body {
        font-size: 0.95rem;
    }

    /* Stats : 2 colonnes compactes */
    .hp-stats__grid {
        gap: 0.85rem;
    }

    .hp-stats__head {
        margin-bottom: 2.5rem;
    }

    .hp-stats .anim-counter {
        padding: 1.75rem 1.25rem;
    }

    /* Services cards : hauteur auto, plein écran */
    .hp-services .anim-cs__card {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hp-services .anim-cs__card[data-index="0"] {
        top: 3.5rem;
    }

    .hp-services .anim-cs__card[data-index="1"] {
        top: calc(3.5rem + 28px);
    }

    .hp-services .anim-cs__card[data-index="2"] {
        top: calc(3.5rem + 56px);
    }

    .hp-services .anim-cs__inner {
        padding: 2rem 1.5rem;
    }

    .hp-services .anim-cs__title {
        font-size: 2.4rem !important;
    }

    /* Process cards */
    .hp-process .anim-cs__card {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hp-process .anim-cs__card[data-index="0"] {
        top: 3.5rem;
    }

    .hp-process .anim-cs__card[data-index="1"] {
        top: calc(3.5rem + 22px);
    }

    .hp-process .anim-cs__card[data-index="2"] {
        top: calc(3.5rem + 44px);
    }

    .hp-process .anim-cs__card[data-index="3"] {
        top: calc(3.5rem + 66px);
    }

    .hp-process .anim-cs__inner {
        padding: 1.75rem 1.5rem;
        gap: 0.4rem;
    }

    .hp-process .anim-cs__tag {
        font-size: 2.5rem;
    }

    /* Story : visuel mobile */
    .hp-story .anim-ss__visuals {
        min-height: 200px;
        max-height: 280px;
    }

    /* Text replace : layout colonne, tailles généreuses */
    .hp-txr .anim-text-replace {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25em;
    }

    .hp-txr .anim-tr__prefix {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
    }

    .hp-txr .anim-tr__slot {
        height: clamp(3rem, 12vw, 4.5rem);
        width: 100%;
    }

    .hp-txr .anim-tr__word {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
    }

    .hp-txr .anim-tr__reel {
        width: 100%;
    }

    .hp-txr .anim-tr__pill {
        width: 100%;
    }

    /* FAQ */
    .hp-faq__btn {
        padding: 1.5rem 0;
    }

    .hp-faq__q-text {
        font-size: 1rem;
    }

    .hp-faq__panel-inner {
        padding-left: 0;
        padding-bottom: 2rem;
    }

    .hp-faq__panel-inner p {
        border-left: none;
        padding-left: 0;
    }

    .hp-hero__title .anim-text-reveal,
    .hp-hero__sub.anim-text-reveal {
        display: block;
        text-align: center;
    }


    .hp-btn {
        font-size: 0.95rem;

    }
}


/* ── Petit mobile  ≤480px ────────────────────────────────── */
@media (max-width: 480px) {

    /* Hero : réduction padding pour conserver le contenu visible */
    .hp-hero {
        padding: 3.5rem 1rem 3rem;
    }

    .hp-hero__title {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .hp-hero__sub {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Stats en 2 col compactes */
    .hp-stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .hp-stats .anim-counter {
        padding: 1.4rem 1rem;
        border-radius: 0.75rem;
    }

    .hp-stats .anim-counter__num {
        font-size: 1.9rem !important;
    }

    /* Sections */
    .hp-mission {
        padding: 3.5rem 1rem;
    }

    .hp-process {
        padding: 3.5rem 1rem;
    }

    .hp-faq {
        padding: 3.5rem 1rem;
    }

    .hp-services__head {
        padding: 0 1rem 2.5rem;
    }

    .hp-txr__inner {
        padding: 0 1rem;
    }

    /* Story : visuel plus petit */
    .hp-story__head {
        padding: 3.5rem 1rem 2.5rem;
    }

    .hp-story .anim-ss__visuals {
        min-height: 160px;
        max-height: 220px;
    }

    /* FAQ : icône plus petite */
    .hp-faq__icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .hp-faq__btn {
        grid-template-columns: 2.5rem 1fr 1.9rem;
        gap: 0.75rem;
    }
}

/* ── Marquee : padding réduit sur mobile ─────────────────── */
@media (max-width: 640px) {
    .hp-marquee {
        padding: .6rem 0;
    }
}

/* ── Touch : supprimer les effets hover non voulus ─────────
   Sur écrans tactiles, les états :hover restent collants.    */
@media (hover: none) {
    .hp-btn:hover {
        transform: none;
    }

    .hp-mission__link:hover {
        gap: 0.4rem;
    }

    .hp-faq__contact-link:hover {
        gap: 0.6rem;
    }

    .hp-services .anim-cs__link:hover {
        gap: 0.4rem;
        color: var(--hp-ink) !important;
    }
}