/* ==========================================================================
   Divli — feuille de style principale
   Maquette Figma : page « Maquettes » > section « Homepage » (1920 → 320 px)
   ========================================================================== */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face {
    font-family: "Bebas Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bebas Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/bebas-neue-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/geist-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
    /* Couleurs (Figma « Color ») */
    --dark: #222222;
    --violet: #443242;
    --orange: #f89c5b;
    --orange-light: #ffc194;
    --light: #f4efed;
    --white: #ffffff;

    /* Typo */
    --font-title: "Bebas Neue", "Arial Narrow", sans-serif;
    --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Mise en page */
    --content: 1920px; /* largeur max globale du contenu */
    --gutter: 10px; /* mobile : 10px comme le live et Figma 320 */
    --radius: 20px;
    --section: clamp(50px, 7vw, 100px);
    --header-h: 108px; /* 15px marge + 66px header + espace, comme le live */

    --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 600px)  { :root { --gutter: 32px; } }
@media (min-width: 768px)  { :root { --gutter: 50px; } }
@media (min-width: 1200px) { :root { --gutter: 100px; } }
@media (min-width: 1400px) { :root { --gutter: 150px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; } /* pas de carré bleu au toucher (mobile) */
body {
    min-height: 100vh;
    padding-top: var(--header-h);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip; /* pas `hidden` : html porte déjà l'overflow, `hidden` ici ferait du body un conteneur de scroll et casserait les `position: sticky` */
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 500; }
:focus:not(:focus-visible) { outline: none; } /* pas de contour au clic / toucher */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; } /* navigation clavier uniquement (accessibilité) */
::selection { background: var(--orange); color: var(--dark); -webkit-text-fill-color: var(--dark); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.container {
    width: min(100% - 1 * var(--gutter), var(--content));
    margin-inline: auto;
}
@media (max-width: 599px) {
    .container { width: min(100% - 1.2 * var(--gutter), var(--content)); }
}

/* ---------- Composants ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 10px 23px;
    border-radius: var(--radius);
    background: var(--orange-light);
    color: var(--dark);
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(68, 50, 66, .5); }
.btn:active { transform: none; }
@media (max-width: 767px) { .btn { min-height: 48px; font-size: 16px; } }

.title-xl {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: clamp(50px, 6.95vw, 100px);
    line-height: .97;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Apparition au scroll (activée seulement si JS) */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
/* Reprise fidèle du header du site live (#menu / .menu-active) :
   barre « verre » 92 % de large, blanc 67 % + flou, arrondi 20px ;
   au scroll elle descend de 5px et prend une ombre douce. */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: min(94%, 1940px); /* plafonné à 1940px, centré au-delà */
    min-height: 66px;
    margin: 15px auto 0;
    padding: 0 1%;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, .67);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: .5s;
}
.site-header.is-scrolled {
    margin-top: 20px;
    padding: 0 15px;
    box-shadow: 0 0 10px -3px #a0a0a0;
}
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--content);
    min-height: 66px;
    margin-inline: auto;
}
.site-header__logo img { width: 120px; height: 32px; }

.site-nav__list { display: flex; align-items: center; gap: 17px; }
.site-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    height: 30px;
    font-size: 22px;
    text-transform: uppercase;
}
/* Soulignement Elementor « underline / fade » */
.site-nav__link::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--orange-light);
    opacity: 0;
    transition: opacity .3s cubic-bezier(.58, .3, .005, 1);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { opacity: 1; }

.burger {
    display: none;
    place-items: center;
    width: 44px; height: 44px;
    margin-right: -11px;
}
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1199px) {
    .site-header { width: 97%; }
}
@media (max-width: 1024px) {
    .site-nav__link { font-size: 18px; }
}
/* Mobile (≤ 768px), valeurs du live : marge haute 10px, logo 90×24 */
@media (max-width: 768px) {
    :root { --header-h: 88px; }
    .site-header { width: 95%; margin-top: 10px; padding: 0; }
    .site-header.is-scrolled { margin-top: 20px; padding: 0 15px; }
    .site-header__logo img { width: 90px; height: 24px; }
    .site-nav { display: none; }
    .burger { display: grid; }
}

/* ---------- Menu mobile : carte déroulante (reprise du live) ---------- */
.mobile-menu {
    position: fixed;
    top: calc(10px + 66px + 14px);
    left: 3%;
    z-index: 99;
    width: 94%;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 20px;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, .67); /* même effet « verre » que la barre */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px -3px #a0a0a0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.site-header.is-scrolled ~ .mobile-menu { top: calc(20px + 66px + 14px); }
@media (max-width: 1199px) { .mobile-menu { left: 1.5%; width: 97%; } }
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__tagline {
    font-weight: 200;
    font-size: 18px;
    line-height: 19px;
    text-align: center;
    text-transform: uppercase;
    color: var(--dark);
}
.mobile-menu__tagline::after { /* séparateur orange 1px, ~61 % */
    content: "";
    display: block;
    width: 61%;
    height: 1px;
    margin: 29px auto 15px;
    background: var(--orange);
}
.mobile-menu__list a {
    display: flex;
    align-items: center;
    height: 38px;
    font-weight: 300;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--dark);
}
.mobile-menu__list a:hover { color: var(--orange); }
.mobile-menu__cta { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.mobile-menu__cta .btn { flex: 1 1 0; min-width: 0; max-width: 200px; padding-inline: 8px; font-size: clamp(13px, 3.8vw, 15px); }
.btn--sm { min-height: 0; padding: 18px; font-size: 15px; line-height: 1; }
@media (min-width: 769px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: 12px; }
/* Valeurs reprises du live (3 paliers, arrondi 25px partout) :
   ≥ 1025px : hero 75vh (min 500, max 760), titre 120/97, bloc titre 20/20/8, logo 219 (padding 31/23)
   769–1024 : hero 586px, titre 90/97, bloc titre 10/10/0, logo 177 (padding 15)
   ≤ 768px  : hero 300px, titre 35/35, bloc titre 10, logo 90 (padding 15) */
.hero__media {
    --r: 25px;
    position: relative;
    height: clamp(500px, 75vh, 760px); /* live : 75vh, min 500px, max 760px */
}
/* La vidéo est seule dans le cadre arrondi : les encoches ne sont pas
   découpées par l'overflow, donc pas de liseré d'anticrénelage. */
.hero__frame {
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--violet) url("../img/hero-poster.webp") center / cover no-repeat;
}
.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__notch {
    --c: var(--white);
    position: absolute;
    z-index: 1;
    background: var(--c);
}
/* Coins concaves façon « découpe » */
.hero__notch::before,
.hero__notch::after {
    content: "";
    position: absolute;
    width: var(--r);
    height: var(--r);
}
.hero__notch--title {
    top: 0; left: 0;
    padding: 20px 20px 8px;
    border-bottom-right-radius: var(--r);
}
.hero__notch--title::before,
.hero__notch--title::after {
    background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), var(--c) var(--r));
}
.hero__notch--title::before { top: 0; left: 100%; }
.hero__notch--title::after  { top: 100%; left: 0; }

.hero__title {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 120px;
    line-height: 97px;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__notch--brand {
    right: 0; bottom: 0;
    display: flex;
    align-items: center;
    padding: 31px 23px;
    border-top-left-radius: var(--r);
}
.hero__notch--brand::before,
.hero__notch--brand::after {
    background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--c) var(--r));
}
.hero__notch--brand::before { right: 100%; bottom: 0; }
.hero__notch--brand::after  { bottom: 100%; right: 0; }
.hero__notch--brand img { width: 219px; height: auto; }

@media (max-width: 1024px) {
    .hero__media { height: 586px; }
    .hero__notch--title { padding: 10px 10px 0; }
    .hero__title { font-size: 90px; }
    .hero__notch--brand { padding: 15px; }
    .hero__notch--brand img { width: 177px; }
}
@media (max-width: 768px) {
    .hero__media { height: 300px; }
    .hero__notch--title { padding: 10px; }
    .hero__title { font-size: 35px; line-height: 35px; }
    .hero__notch--brand img { width: 90px; }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding-top: 50px; } /* valeurs du live */
.intro__text {
    max-width: 698px;
    font-size: 22px;
    line-height: 35px;
    letter-spacing: 1px;
}
.intro__text + .intro__text { margin-top: 14px; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 50px; }
.intro__cta .btn { min-height: 58px; padding: 19px 43px; font-size: 20px; line-height: 1; }
.intro__cta .btn svg { width: auto; height: 1em; }
.intro__reassurance { margin-top: 10px; font-size: 13px; line-height: 19.5px; letter-spacing: 1px; }

@media (max-width: 1024px) {
    .intro__text { font-size: 20px; line-height: 30px; }
    .intro__cta .btn { min-height: 54px; padding: 19px 41px; font-size: 16px; }
}
@media (max-width: 768px) {
    .intro__text { max-width: none; font-size: 18px; line-height: 25px; }
    .intro__cta { gap: 10px; margin-top: 40px; }
    .intro__cta .btn { min-height: 52px; padding: 19px 25px; font-size: 14px; }
    .intro__reassurance { margin-top: 20px; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
    padding-block: var(--section);
    overflow: hidden;
    font-family: var(--font-title);
    font-size: clamp(48px, 8.33vw, 120px);
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.marquee__row { display: flex; }
.marquee__row + .marquee__row { margin-top: 5px; }
.marquee__track {
    display: flex;
    flex-shrink: 0;
    animation: marquee var(--duration, 50s) linear infinite;
}
.marquee__row--reverse .marquee__track { animation-direction: reverse; --duration: 60s; }
.marquee__row:nth-child(3) .marquee__track { --duration: 55s; }
.marquee__list { display: flex; flex-shrink: 0; gap: .48em; padding-right: .48em; }
.marquee__word--dark    { color: var(--dark); }
.marquee__word--violet  { color: var(--violet); }
.marquee__word--orange  { color: var(--orange); }
.marquee__word--outline {
    color: transparent;
    -webkit-text-stroke: clamp(1px, .12vw, 2px) var(--violet);
}
/* 4 copies de la liste : on défile d’une copie (-25 %) puis on boucle → jamais de trou, même sur très grand écran */
@keyframes marquee { to { transform: translateX(-25%); } }

/* ==========================================================================
   SERVICES (cartes accordéon)
   ========================================================================== */
.services { padding-bottom: var(--section); }
.services__list {
    --gap: 25px;
    --pad: 25px;
    --grow: 1.8; /* la carte ouverte = 1.8 × une carte fermée */
    /* Largeurs FINALES du texte, fixes pendant l'animation (unités de conteneur) */
    --w-full: calc((100cqw - 2 * var(--gap)) * var(--grow) / (var(--grow) + 2) - 2 * var(--pad));
    --w-compact: calc((100cqw - 2 * var(--gap)) / (var(--grow) + 2) - 2 * var(--pad));
    container-type: inline-size;
    display: flex;
    gap: var(--gap);
    /* Dépend de la largeur ET de la hauteur d'écran : inchangé sur écran de bureau,
       plus compact sur les portables peu hauts (ex. 1440×900 → 675px, 1366×650 → 488px). */
    height: clamp(480px, min(53vw, 75vh), 766px);
}
.service-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--light);
    text-shadow: 0 0 10px rgba(0, 0, 0, .25);
    transition: flex-grow .7s var(--ease), height .7s var(--ease);
}
.service-card.is-active { flex-grow: var(--grow); }
.service-card::before { /* voile du live : noir 24 % */
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0, 0, 0, .24);
}
.service-card__bg {
    /* Taille FIXE = taille de la carte ouverte, centrée : l'image n'est jamais
       redimensionnée pendant l'ouverture, la carte ne fait que la recadrer. */
    /* Position horizontale : centrée par défaut ; en desktop, main.js fixe --ox (px)
       pour que l'image reste immobile à l'écran pendant l'ouverture des cartes. */
    position: absolute;
    top: 50%; left: var(--ox, 50%);
    width: calc(var(--w-full) + 2 * var(--pad));
    max-width: none;
    height: var(--h-full, 100%);
    object-fit: cover;
    object-position: center;
    transform: translate(var(--tx, -50%), -50%) scale(1); /* pas de zoom au repos */
    transition: transform 1.2s var(--ease);
}
.service-card:hover .service-card__bg { transform: translate(var(--tx, -50%), -50%) scale(var(--zoom, 1.3)); } /* zoom uniquement au survol */

/* Seul ce carré est cliquable (bouton CSS net, la flèche ne tourne pas) */
.service-card__arrow {
    position: absolute;
    top: var(--pad); right: var(--pad);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 70px; height: 70px;
    border-radius: var(--radius);
    background: var(--light);
    color: var(--dark);
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card__arrow:hover,
.service-card__arrow:focus-visible,
.service-card:hover .service-card__arrow { background: var(--orange); } /* live : #F89C5B au survol de la carte */
.service-card__arrow svg { width: 40px; height: 40px; }

/* Couches de texte : largeur fixe + fondu → aucun retour à la ligne en cours d'animation */
.service-card__compact,
.service-card__full {
    position: absolute;
    left: var(--pad);
    bottom: calc(var(--pad) * 2);
    z-index: 2;
}
.service-card__compact {
    width: var(--w-compact);
    font-weight: 600;
    font-size: clamp(18px, 1.95vw, 28px);
    line-height: 1.4;
    transition: opacity .25s var(--ease) .35s;
}
.service-card__full {
    width: var(--w-full);
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease);
}
.service-card.is-active .service-card__compact { opacity: 0; transition-delay: 0s; }
.service-card.is-active .service-card__full {
    opacity: 1;
    transition: opacity .45s var(--ease) .35s;
}
.service-card__title { font-weight: 600; font-size: clamp(28px, min(3.9vw, 5.2vh), 56px); line-height: 1; } /* réduit sur écrans peu hauts */
.service-card__tags {
    font-weight: 300;
    font-size: clamp(14px, min(1.8vw, 2.4vh), 26px);
    line-height: 1.25;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.services__more { display: flex; justify-content: flex-end; margin-top: 25px; }

@media (max-width: 1023px) {
    .services__list {
        --w-full: calc(100cqw - 2 * var(--pad));
        --w-compact: calc(100cqw - 2 * var(--pad) - 90px);
        --h-full: clamp(330px, 60vh, 450px);   /* carte ouverte, s'adapte à la hauteur d'écran */
        --h-closed: clamp(150px, 28vh, 225px); /* carte fermée */
        flex-direction: column;
        /* PERF : une seule carte ouverte à la fois → hauteur totale CONSTANTE.
           Avec `contain`, l'ouverture d'une carte ne recalcule plus le reste de la page
           (et le contenu en dessous ne bouge plus pendant le scroll). */
        height: calc(var(--h-full) + 2 * var(--h-closed) + 2 * var(--gap));
        contain: layout paint;
    }
    .service-card { flex: none; height: var(--h-closed); transition: height .5s var(--ease); }
    .service-card.is-active { height: var(--h-full); }
    /* PERF : fond STATIQUE, calé en haut de la carte et sur son propre calque (GPU) :
       il est dessiné une fois, l'ouverture ne fait que le découvrir (aucun redessin). */
    .service-card__bg,
    .service-card:hover .service-card__bg {
        top: 0; left: 0;
        width: 100%;
        transform: none;
        transition: none;
        will-change: transform;
    }
    .service-card { text-shadow: none; } /* ombre de texte coûteuse à redessiner, peu visible sur mobile */
    .service-card__title { font-size: 40px; }
    .service-card__tags { font-size: 20px; }
    .service-card__compact { font-size: 28px; }
}
@media (max-width: 599px) {
    .services__list { --gap: 20px; --pad: 20px; --h-full: clamp(330px, 55vh, 350px); --h-closed: clamp(120px, 22vh, 150px); }
    .service-card__compact, .service-card__full { bottom: var(--pad); }
    .service-card__arrow { width: 50px; height: 50px; }
    .service-card__arrow svg { width: 28px; height: 28px; }
    .service-card__title { font-size: 28px; }
    .service-card__tags { font-size: 16px; }
    .service-card__compact { --w-compact: calc(100cqw - 2 * var(--pad) - 60px); font-size: 18px; line-height: 20px; }
}

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.clients { display: flex; padding-block: var(--section); }
.clients__intro {
    flex: 0 0 auto;
    width: min(475px, 40%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 40px 40px 0;
    border-right: 2px solid var(--light);
}
.clients__intro > :not(.btn) { align-self: stretch; }
.clients__lead { margin-top: 10px; font-weight: 500; font-size: 20px; line-height: 30px; }
.clients__text { margin-top: 14px; font-weight: 300; font-size: 20px; line-height: 30px; }
.clients__intro .btn { margin-top: 25px; }

/* Grille : rangées de 130px séparées par un trait de 2px (valeurs du live) */
.clients__grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
}
.clients__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: 130px;
    padding-inline: 5%;
}
.clients__row:not(:last-child) { border-bottom: 2px solid var(--light); }
.clients__row--short { grid-template-columns: repeat(2, 1fr); padding-inline: 10%; }
.clients__item { display: grid; place-items: center; }
.clients__item img {
    width: 150px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .4s var(--ease);
}
.clients__item:hover img { transform: scale(1.06); }

/* 769–1024px (live) : textes à gauche, bouton à droite, grille pleine largeur dessous */
@media (max-width: 1024px) {
    .clients { flex-direction: column; }
    .clients__intro {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 40px;
        width: auto;
        padding: 0;
        border-right: 0;
    }
    .clients__intro > :not(.btn) { grid-column: 1; }
    .clients__intro .title-xl { font-size: 90px; line-height: 97px; }
    .clients__lead { margin-top: 0; }
    .clients__intro .btn {
        grid-column: 2; grid-row: 1 / span 2; align-self: end;
        min-height: 0; margin: 0 0 -14px; padding: 18px 23px; font-size: 20px; line-height: 20px;
    }
    .clients__grid { margin-top: 55px; padding-left: 0; }
}
/* ≤ 768px (live) : tout empilé à gauche, 3 logos par rangée, cases 95×80 */
@media (max-width: 768px) {
    .clients__intro { display: flex; flex-direction: column; align-items: flex-start; }
    .clients__intro > :not(.btn) { padding-inline: 10px; }
    .clients__intro .title-xl { font-size: 35px; line-height: 46px; }
    .clients__lead { font-size: 18px; line-height: 27px; }
    .clients__text { font-size: 16px; line-height: 24px; }
    .clients__intro .btn { align-self: flex-start; margin: 24px 0 0; padding: 18px 25px; font-size: 14px; line-height: 14px; }
    .clients__grid { margin-top: 40px; }
    .clients__item img { width: 95px; }
}
@media (max-width: 400px) {
    .clients__item img { width: 80px; height: 60px; }
}

/* ==========================================================================
   STRATÉGIE
   ========================================================================== */
.strategy { display: flex; gap: 50px; padding-block: var(--section); }
.strategy__label {
    flex: 0 0 199px;
    display: flex;
    justify-content: center;
    padding: 80px 10px;
    border-radius: var(--radius);
    background: var(--violet);
}
.strategy__title {
    position: sticky;
    top: max(110px, calc(50vh - 480px));
    align-self: flex-start;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 100px;
    line-height: .97;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--light);
    white-space: nowrap;
}
.strategy__list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 50px; }

/* Cartes étapes — valeurs du live.
   ≥ 1440px : 2 colonnes (texte / grand numéro image), alternées.
   ≤ 1439px : texte pleine largeur + numéro en badge 69px dans un coin. */
.step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    align-items: center;
    padding: 0 7%;
    border-radius: var(--radius);
    background: var(--light);
}
.step__content { padding-block: 73px; } /* + 14.4px de marge du dernier paragraphe en bas, comme le live */
.step__title { margin-bottom: 10px; font-weight: 600; font-size: 28px; line-height: 28px; }
.step__lead { margin-bottom: 24px; font-size: 20px; line-height: 14px; }
.step__text { margin-bottom: 14.4px; font-weight: 300; font-size: 20px; line-height: 30px; }
.step__number {
    justify-self: center;
    width: auto;
    max-width: 93%;
    height: auto;
    max-height: 335px;
}
.step--reverse .step__content { order: 2; }
.step--reverse .step__number { order: 1; }

@media (max-width: 1439px) {
    .step { display: block; }
    .step__number { position: absolute; top: 25px; right: 31px; width: 69px; max-width: none; }
    .step + .step .step__number { top: 30px; } /* live : 25px sur la 1re carte, 30px ensuite */
    .step--reverse .step__number { right: auto; left: 20px; }
    /* cartes 02 et 04 : titre + sous-titre à droite à partir de 1439px (à gauche au-dessus) */
    .step--reverse .step__title,
    .step--reverse .step__lead { text-align: right; }
}
/* ≤ 1024px : bandeau « Notre stratégie » horizontal, calé à droite */
@media (max-width: 1024px) {
    .strategy { flex-direction: column; gap: 50px; }
    .strategy__label { flex: none; align-self: flex-end; justify-content: flex-end; width: 86%; padding: 10px; }
    .strategy__title { position: static; writing-mode: horizontal-tb; transform: none; padding: 12px 30px 0 0; font-size: 90px; line-height: 97px; text-align: right; }
    .step__content { padding-block: 35px; }
}
@media (max-width: 768px) {
    .strategy__label { width: 80%; }
    .strategy__title { padding: 4px 12px 0 0; font-size: 35px; line-height: 55px; }
    .strategy__list { gap: 24px; }
    .step__content { padding-block: 25px; }
    /* Largeur du titre réglée carte par carte sur le live (54 / 68 / 56 / 47 % de la carte),
       exprimée ici en % de la zone de texte (carte - 2 × 7 %) pour laisser la place au badge. */
    .step__title { width: 63%; font-size: 24px; line-height: 28px; }
    .step:nth-child(2) .step__title { width: 79%; }
    .step:nth-child(3) .step__title { width: 65%; }
    .step:nth-child(4) .step__title { width: 55%; }
    .step--reverse .step__title { margin-left: auto; }
    .step__lead { font-size: 18px; line-height: 22px; }
    .step__text { font-size: 16px; line-height: 24px; }
}

/* ==========================================================================
   ENTRE HUMAINS
   ========================================================================== */
/* Valeurs du live. ≥ 1025px : carte à gauche (≈ 49,5 %), à droite les valeurs + la vidéo ;
   la vidéo remplit la hauteur restante (16:9 minimum). ≤ 1024px : valeurs, vidéo, puis carte. */
.humans { display: flex; align-items: stretch; gap: 34px; padding-block: var(--section); }
.humans__card {
    flex: 0 0 49.5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--light);
}
.humans__title { font-weight: 600; font-size: 40px; line-height: 45px; }
.humans__text { margin-bottom: 10px; font-weight: 300; font-size: 20px; line-height: 30px; }
.humans__text p + p { margin-top: 14px; }
.humans__card .btn { align-self: flex-end; min-height: 0; padding: 18px 25px; font-size: 20px; line-height: 20px; }
.humans__side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.humans__values { display: flex; gap: 34px; }
.value-card {
    flex: 1;
    display: grid;
    place-items: center;
    height: 236px;
    padding: 25px;
    border-radius: var(--radius);
    background: var(--orange-light);
    font-size: 30px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.value-card--all { display: none; }
.rotator {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    padding-right: 6px;
    border-right: 2px solid currentColor;
    transition: width .6s var(--ease);
}
.humans__media {
    position: relative;
    flex: 1 0 auto;
    aspect-ratio: 16 / 9; /* hauteur mini ; s'étire si la carte est plus haute */
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
}
.humans__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1439px) {
    .humans__values { flex-direction: column; }
    .value-card { flex: none; height: 190px; }
}
@media (max-width: 1024px) {
    .humans { flex-direction: column; gap: 50px; }
    .humans__side { order: -1; }
    .humans__card { flex: none; }
    .humans__values { flex-direction: row; }
    .value-card { flex: 1; }
    .humans__media { flex: none; }
}
@media (max-width: 768px) {
    .humans__card { padding: 25px; }
    .humans__title { font-size: 30px; line-height: 36px; }
    .humans__text { font-size: 16px; line-height: 24px; }
    .humans__card .btn { font-size: 14px; line-height: 14px; }
    .humans__values .value-card { display: none; }
    .humans__values .value-card--all { display: grid; flex: none; width: 65%; height: 100px; font-size: 23px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 30px 0 10px 0; } /* 30px au-dessus, 10px en dessous */
main > section:last-child { padding-bottom: 0; } /* l'écart avant le footer = le padding du footer */
.footer-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 50px;
    border-radius: var(--radius);
    background: var(--violet);
    color: var(--light);
}
.footer-card__top { display: flex; justify-content: space-between; gap: 40px; }
.footer-card__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.footer-card__brand img { width: 220px; height: auto; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: block; transition: color .3s, transform .3s var(--ease); }
.footer-social a:hover { color: var(--orange-light); transform: translateY(-2px); }
.footer-social svg { width: 24px; height: 24px; }
.footer-social svg path[fill] { fill: currentColor; }
.footer-card__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; text-align: right; }
.footer-card__title {
    font-family: var(--font-title);
    font-size: clamp(50px, 5.6vw, 80px);
    line-height: .81;
    padding-top: .1em;
    text-transform: uppercase;
}
.footer-card__text { font-weight: 300; font-size: clamp(16px, 1.4vw, 20px); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--orange-light); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 17px; font-size: 18px; text-transform: uppercase; }
.footer-card__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; font-weight: 300; font-size: 16px; color: var(--white); }
@media (max-width: 850px) {
    /* liens légaux en haut, « © 2026 Divli » en dessous */
    .footer-card__bottom { flex-direction: column-reverse; align-items: flex-start; }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ≤ 768px (live) : tout centré, rythme de 25px */
@media (max-width: 768px) {
    .footer-card { padding: 25px; text-align: center; }
    .footer-card__top { flex-direction: column-reverse; gap: 25px; }
    .footer-card__cta { align-items: center; gap: 25px; text-align: center; }
    .footer-card__title { font-size: 35px; line-height: 29px; padding-top: 0; }
    .footer-card__text { font-size: 18px; line-height: 14px; }
    .footer-card__cta .btn { min-height: 0; margin-top: 4px; padding: 15px 23px; font-size: 14px; line-height: 14px; }
    /* logo au centre de la moitié gauche, réseaux au centre de la moitié droite */
    .footer-card__brand { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 0; }
    .footer-card__brand img { width: 110px; }
    .footer-nav ul { justify-content: center; gap: 0 10px; font-size: 16px; line-height: 30px; }
    .footer-card__bottom { align-items: center; gap: 25px; font-size: 14px; }
    .footer-legal { flex-direction: column; align-items: center; gap: 0; font-size: 18px; line-height: 30px; }
}

/* ==========================================================================
   Accessibilité : mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .marquee__track { animation: none; }
    .marquee__row { overflow-x: auto; scrollbar-width: none; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Bandeau cookies (en bas à gauche, au-dessus du contenu)
   ========================================================================== */
.footer-legal__btn { font: inherit; color: inherit; cursor: pointer; }
.footer-legal__btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(440px, calc(100% - 40px));
    border-radius: var(--radius);
    padding: 25px;
    background: var(--violet);
    color: var(--light);
    box-shadow: 0 10px 40px -10px rgba(34, 34, 34, .5);
    font-size: 15px;
    line-height: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__title { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; justify-content: flex-end; gap: 10px; }
.cookie-banner__btn { min-height: 44px; padding: 8px 20px; border-radius: 14px; font-size: 15px; cursor: pointer; }
.cookie-banner__btn:not(.btn) { border: 1px solid rgba(244, 239, 237, .5); color: var(--light); transition: background-color .3s var(--ease); }
.cookie-banner__btn:not(.btn):hover { background: rgba(244, 239, 237, .12); }
@media (max-width: 599px) {
    .cookie-banner { left: 10px; bottom: 10px; width: calc(100% - 20px); padding: 20px; }
    .cookie-banner__actions > * { flex: 1; }
}

/* ==========================================================================
   404
   ========================================================================== */
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 120px; }
.not-found .title-xl { font-size: clamp(120px, 20vw, 280px); color: var(--orange); }
.not-found__title { font-weight: 600; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.1; }
