/* Fichier css/responsive.css · chargé par : toutes les pages sauf assistant */
/* =====================================================================
   IAI v8 — SYSTÈME RESPONSIVE (chargé en dernier)
   ---------------------------------------------------------------------
   Un seul calcul de « format » (script dans <head>, window.IAI.fmt) pose des classes sur <html> :
     .f-stack  mise en page empilée  : téléphone en portrait, tablette en portrait
     .f-side   mise en page côte à côte : ordinateur, tablette en paysage, téléphone en paysage
     .f-short  peu de hauteur (< 560 px, téléphone en paysage) : tout est compacté
     .f-phone  plus petit côté < 600 px · .f-tablet  tablette tactile · .f-wide  écran ≥ 1600 px · .f-touch  doigt
   Les scripts des scènes (services, réalisations, clients, équipe, mascotte, planète) lisent le même objet,
   donc CSS et JavaScript ne peuvent plus être en désaccord.
   Paliers de largeur pour le reste (typographie, en-tête) : < 600 · 600-899 · 900-1199 · 1200-1599 · ≥ 1600.
   Hauteurs : 100svh partout dans les sections collantes (hauteur « petite barre d'adresse », qui ne bouge pas
   quand la barre apparaît ou disparaît : pas de saut pendant le défilement).
   ===================================================================== */

/* ---------- Jetons : zones de sécurité (encoche) et barre d'outils du bas ---------- */
:root {
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  /* marge latérale : jamais sous l'encoche en paysage */
  --gutter: max(clamp(18px, 3.4vw, 56px), calc(var(--sal) + 12px), calc(var(--sar) + 12px));
  /* hauteur de l'en-tête (pour placer le contenu des scènes juste dessous) */
  --hd-h: 88px;
  /* barre d'outils fixe en bas à droite : [haut de page] [couleurs] [bulle de chat] */
  --chat: 58px; --dock-btn: 44px; --dock-gap: 10px;
  --dock-r: max(var(--gutter), calc(var(--sar) + 12px));
  --dock-b: calc(18px + var(--sab));
  --dock-y2: calc(var(--dock-b) + (var(--chat) - var(--dock-btn)) / 2);
  --dock-x2: calc(var(--dock-r) + var(--chat) + var(--dock-gap));
  --dock-x3: calc(var(--dock-x2) + var(--dock-btn) + var(--dock-gap));
  --dock-h: calc(var(--dock-b) + var(--chat) + 14px);        /* bande réservée en bas de l'écran */
  /* ligne des commandes du bas des scènes (Revenir · points · Passer) : centrée sur la bulle de chat */
  --ui-b: calc(var(--dock-b) + var(--chat) / 2 - 22px);
  /* espacements de section */
  --sp-1: clamp(12px, 1.6vw, 20px); --sp-2: clamp(20px, 3vw, 40px); --sp-3: clamp(48px, 8vw, 140px);
}
@media (max-width: 900px) { :root { --hd-h: 72px; } }
html.f-phone { --chat: 52px; --dock-b: calc(14px + var(--sab)); --dock-gap: 8px; }
/* téléphone en portrait : pas la place de centrer les commandes à côté de la barre d'outils → elles passent au-dessus */
html.f-phone.f-stack { --ui-b: calc(var(--dock-h) + 2px); }
html.f-short { --hd-h: 64px; --chat: 48px; --dock-b: calc(10px + var(--sab)); --ui-b: calc(var(--dock-b) + 2px); }

/* ---------- Boutons fixes : alignés dans la barre d'outils, ils ne se chevauchent plus ---------- */
.chat-fab { right: var(--dock-r); bottom: var(--dock-b); width: var(--chat); height: var(--chat); }
.chat-fab svg { width: calc(var(--chat) * .38); height: auto; }
.to-top { left: auto; right: var(--dock-x2); bottom: var(--dock-y2); width: var(--dock-btn); height: var(--dock-btn); font-size: 1rem; }
/* téléphone : le logo de l'en-tête ramène déjà en haut de page ; on libère la place */
html.f-phone .to-top { display: none; }
/* infobulle de la bulle : seulement avec une souris (au doigt elle resterait collée) */
@media (hover: none) { .chat-fab__tip { display: none; } }

/* ---------- En-tête : encoche et peu de hauteur ---------- */
.hd { padding-left: max(var(--gutter), calc(var(--sal) + 12px)); padding-right: max(var(--gutter), calc(var(--sar) + 12px)); }
html.f-short .hd { top: 0; height: 56px; }
html.f-short .hd.is-pill { top: 8px; }
html.f-short .mnav { padding-top: 76px; padding-bottom: 20px; }
html.f-short .mnav__links a { font-size: clamp(1.4rem, 7vh, 2rem); padding: 10px 0; }
/* bouton de l'en-tête sur petit téléphone : texte lisible (12 px) et zone tactile de 44 px */
@media (max-width: 520px) { .btn--hd { height: 44px; padding: 0 16px; font-size: .75rem; } }
@media (max-width: 359px) { .btn--hd { padding: 0 12px; letter-spacing: .03em; } }

/* ---------- Typographie : plancher de 12 px pour tout texte informatif ---------- */
.mono, .eyebrow, .btn, .lang a, .sound, .path__labels, .tunnel__hud, .station__tags li, .hd__nav { font-size: max(.75rem, 12px); }
.station__num { font-size: .75rem; width: 28px; height: 28px; }
.path__ia { font-size: .75rem; }
.pj4__tag { font-size: .75rem; }
.pj4__lbl, .pj4__det small { font-size: .78rem; }
.ft__badges { font-size: .8125rem; }
.svc__info-p { font-size: max(.9rem, 14px); }

/* ---------- Grands écrans (≥ 1600 px) : la mise en page grandit au lieu de laisser des vides ---------- */
html.f-wide .wrap { max-width: min(2200px, 100vw); }
html.f-wide { --gutter: clamp(56px, 4.4vw, 112px); }
html.f-wide .hd { max-width: none; }
html.f-wide .mono, html.f-wide .eyebrow, html.f-wide .btn { font-size: calc(.75rem * var(--fs, 1)); }
html.f-wide .btn { height: calc(44px * var(--fs, 1)); padding: 0 calc(22px * var(--fs, 1)); }
html.f-wide .btn--lg { height: calc(54px * var(--fs, 1)); }

/* =====================================================================
   SERVICES (services.js calcule les positions ; ici : tailles et commandes par format)
   ===================================================================== */
.solutions, .solutions__stick { height: 100svh; }
.scard { --w0: clamp(220px, 20vw, calc(320px * var(--fs, 1))); --h0: min(56svh, calc(460px * var(--fs, 1))); }
.svc__info { width: min(calc(600px * var(--fs, 1)), 44vw); }
/* commandes du bas : Revenir · points · Passer, sur une seule ligne, au-dessus de la barre d'outils si besoin */
.svc__back, .svc__skip { bottom: var(--ui-b); min-height: 44px; display: inline-flex; align-items: center; }
.svc__dots { bottom: calc(var(--ui-b) + 19.5px); }
/* empilé (portrait) */
html.f-stack .svc__head { top: calc(var(--hd-h) + 8px); left: var(--gutter); right: var(--gutter); }
html.f-stack .svc__head .h2 { font-size: clamp(1.6rem, 7.4vw, 3rem); max-width: 14ch; }
html.f-stack .scard { --w0: min(58vw, 250px); --h0: min(40svh, 330px); }
html.f-stack.f-tablet .scard { --w0: min(34vw, 300px); --h0: min(36svh, 400px); }
html.f-stack .svc__info { width: calc(100vw - 32px); padding: 16px 18px 18px; }
html.f-stack.f-tablet .svc__info, html.f-stack:not(.f-phone) .svc__info { width: min(640px, calc(100vw - 2 * max(24px, 4.5vw))); padding: 20px 24px 22px; }
html.f-stack .svc__go { height: 48px; padding: 0 22px; }
html.f-stack .svc__skip { margin-left: 56px; } html.f-stack .svc__back { margin-right: 56px; }
/* peu de hauteur (téléphone en paysage) : titre compact, carte texte dans la colonne de droite */
html.f-short .svc__head { top: 62px; }
html.f-short .svc__head .eyebrow { margin-bottom: 6px; }
html.f-short .svc__head .h2 { font-size: clamp(1.2rem, 6.4vh, 1.8rem); }
html.f-short .scard { --w0: min(26vw, 190px); --h0: min(58svh, 240px); }
html.f-short .svc__info { width: var(--svc-rc, 300px); padding: 12px 16px 14px; border-radius: 16px; }
html.f-short .svc__info-t { font-size: 1.05rem; margin-bottom: 6px; }
html.f-short .svc__info-p { font-size: .875rem; line-height: 1.35; }
html.f-short .svc__go { height: 44px; padding: 0 18px; }
html.f-short .svc__skip { margin-left: 52px; } html.f-short .svc__back { margin-right: 52px; }
/* sur petit écran, la carte texte montre tout le texte du service (pas de coupure en « … ») */
html.f-stack .svc__info-p, html.f-short .svc__info-p { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }

/* =====================================================================
   LONGUEURS DE DÉFILEMENT des sections (un seul endroit ; valeurs inchangées)
   Les sections collantes gardent des hauteurs en vh (stables) ; leur scène intérieure fait 100svh.
   ===================================================================== */
.hero { height: 170vh; }
.tunnel { height: 1000vh; }
.pj4 { height: 650vh; }
.cl { height: 460vh; }
.stance { height: 300vh; }
.crew { height: 620vh; }
@media (max-width: 900px) { .tunnel { height: 860vh; } .pj4 { height: 600vh; } .cl { height: 420vh; } .crew { height: 580vh; } }

/* =====================================================================
   CLIENTS (clients.js : anneau de logos sur grand écran, ligne de logos ailleurs)
   ===================================================================== */
.cl__head { top: max(128px, calc(var(--hd-h) + 40px)); max-width: calc(360px * var(--fs, 1)); }
.cl__title { font-size: clamp(2rem, 1.2rem + 2.4vw, calc(3.6rem * var(--fs, 1))); }
.cl__lead { font-size: max(.95rem, 15px); }
html.f-stack .cl__head { left: var(--gutter); right: var(--gutter); top: calc(var(--hd-h) + 10px); max-width: 560px; }
html.f-stack .cl__title { font-size: clamp(2rem, 8vw, 3.2rem); margin: 4px 0 8px; }
html.f-stack .cl__lead { font-size: .9375rem; max-width: 38ch; }
/* nom du client : centré sous la ligne de logos (position verticale calculée par clients.js) */
html.f-stack .cl__hud { left: var(--gutter); right: var(--gutter); display: flex; justify-content: center; align-items: baseline; gap: 12px; }
html.f-stack .cl__name { font-size: 1.15rem; }
html.f-short .cl__head { left: var(--gutter); top: 64px; max-width: min(40vw, 340px); }
html.f-short .cl__title { font-size: clamp(1.3rem, 7vh, 2rem); margin: 2px 0 6px; }
html.f-short .cl__lead { font-size: .8125rem; line-height: 1.4; }
html.f-short .cl__hud { left: var(--gutter); right: auto; display: flex; align-items: baseline; gap: 10px; justify-items: start; }
html.f-short .cl__name { font-size: 1rem; }
/* ligne de logos : le soulignement du logo du milieu reste sous lui */
.cl[data-cl-mode^="band"] .cl__tile::after { bottom: -10px; }

/* =====================================================================
   ÉQUIPE (crew.js : constellation et caméra calculées selon le format)
   ===================================================================== */
.crew__head { top: max(118px, calc(var(--hd-h) + 30px)); width: min(calc(420px * var(--fs, 1)), 32vw); }
.crew__title { font-size: clamp(2rem, 1.1rem + 2.3vw, calc(3.5rem * var(--fs, 1))); }
.crew__focus { width: min(calc(560px * var(--fs, 1)), 42vw); }
.crew__big { font-size: clamp(3.2rem, 1.4rem + 5.6vw, calc(8rem * var(--fs, 1))); }
.crew__lab { font-size: .75rem; min-height: 32px; padding: 7px 10px; }
.crew__bar { bottom: max(14px, calc(var(--ui-b) + 20px)); }
/* empilé : titre en haut, fiche du membre en bas au-dessus de la barre d'outils */
html.f-stack .crew__head { top: calc(var(--hd-h) + 10px); left: var(--gutter); right: var(--gutter); width: auto; max-width: 620px; }
html.f-stack .crew__title { font-size: clamp(2rem, 8vw, 3.4rem); margin: 4px 0 8px; }
html.f-stack .crew__lead { display: block; font-size: .9375rem; max-width: 40ch; }
html.f-stack .crew__head .crew__go { margin-top: 14px; }
html.f-stack .crew__focus { top: auto; bottom: calc(var(--dock-h) + 4px); left: var(--gutter); right: var(--gutter); width: auto; max-width: 640px; transform: none; }
html.f-stack .crew__big { font-size: clamp(2.8rem, 13vw, 5.5rem); }
html.f-stack .crew__role { margin: 14px 0 4px; font-size: 1.0625rem; }
html.f-stack .crew__desc { font-size: .9375rem; }
html.f-stack .crew__lab { font-size: .75rem; padding: 6px 9px; }
html.f-stack.f-phone .crew__bar { bottom: max(6px, var(--sab)); width: 40vw; left: var(--gutter); transform: none; }
/* petit téléphone : l'intro (texte secondaire) laisse la place à la constellation */
@media (max-height: 759px) { html.f-stack.f-phone .crew__lead { display: none; } }
/* peu de hauteur : texte à gauche, compact */
html.f-short .crew__head { top: 62px; width: min(40vw, 340px); }
html.f-short .crew__title { font-size: clamp(1.3rem, 7vh, 2rem); margin: 2px 0 6px; }
html.f-short .crew__lead { display: none; }
html.f-short .crew__head .crew__go { margin-top: 8px; }
html.f-short .crew__focus { top: 58%; width: min(44vw, 400px); transform: translateY(-50%); }
html.f-short .crew__big { font-size: clamp(2rem, 13vh, 3rem); }
html.f-short .crew__role { margin: 12px 0 2px; font-size: .95rem; }
html.f-short .crew__desc { display: block; font-size: .8125rem; line-height: 1.4; }
html.f-short .crew__bar { bottom: 8px; }

/* =====================================================================
   HAUT DE PAGE (hero)
   ===================================================================== */
.hero__title { font-size: clamp(2.375rem, .4rem + 7.4vw, calc(8.75rem * var(--fs, 1))); }
/* empilé : titre, texte et boutons regroupés en bas ; le haut de l'écran reste libre pour la planète et la mascotte */
html.f-stack .hero__bottom { margin-top: 22px; padding-top: 0; }
html.f-stack .hero__copy { justify-content: flex-end; padding-top: calc(var(--hd-h) + 40px); padding-bottom: max(40px, calc(var(--dock-h) - 6px)); }
html.f-stack .hero__title { font-size: clamp(2.2rem, 10.5vw, 5.6rem); }
html.f-stack .ln { white-space: normal; }
html.f-stack .hero__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
html.f-stack .hero__ctas { margin-right: 0; flex-wrap: wrap; }
/* la légende ne déborde jamais de l'écran : sur petit téléphone, une seule ligne courte */
/* boutons pleine largeur sur petit téléphone (zone tactile confortable, pas de retour à la ligne bancal) */
@media (max-width: 400px) { html.f-stack .hero__ctas { width: 100%; } html.f-stack .hero__ctas .btn { flex: 1 1 100%; } }
/* téléphone en paysage : titre à gauche sur la hauteur, texte et boutons côte à côte, rien ne sort par le haut */
html.f-short .hero__copy { justify-content: flex-start; padding-top: 66px; padding-bottom: 14px; }
html.f-short .hero__copy .eyebrow { margin-bottom: 8px; }
html.f-short .hero__title { font-size: clamp(1.6rem, 10vh, 2.6rem); max-width: 60vw; }
html.f-short .ln { white-space: nowrap; }
html.f-short .hero__bottom { flex-direction: row; align-items: flex-end; gap: 18px; padding-top: 12px; }
html.f-short .hero__lead { font-size: .9375rem; max-width: 36ch; }
html.f-short .hero__ctas { margin-right: 0; flex-direction: column; gap: 8px; padding-right: calc(var(--dock-x2) + var(--dock-btn) + 10px - var(--gutter)); }
html.f-short .hero__ctas .btn--lg { height: 44px; padding: 0 18px; }

/* =====================================================================
   TUNNEL « Pourquoi IAI »
   ===================================================================== */
.station__title { font-size: clamp(2.2rem, .6rem + 5.6vw, calc(6.4rem * var(--fs, 1))); }
h3.station__title { font-size: clamp(2rem, .6rem + 4.8vw, calc(5.6rem * var(--fs, 1))); }
.tunnel__hud { bottom: max(var(--ui-b), 22px); }
html.f-stack .station { padding: calc(var(--hd-h) + 8px) var(--gutter) calc(var(--ui-b) + 56px); }
html.f-stack .station__title { font-size: clamp(2rem, 9.4vw, 4.6rem); }
html.f-stack h3.station__title { font-size: clamp(1.75rem, 8.4vw, 4rem); }
html.f-stack .station__text { font-size: clamp(1.0625rem, 4.4vw, 1.4rem); }
/* la méthode sur téléphone : 6 étapes en grille 3 × 2, texte horizontal (plus de texte vertical illisible) */
html.f-phone.f-stack .path__steps { grid-template-columns: repeat(3, 1fr); row-gap: 12px; margin-top: 16px; }
html.f-phone.f-stack .path__steps li { writing-mode: horizontal-tb; transform: none; height: auto; padding: 0 0 0 16px; text-align: left; font-size: .8125rem; justify-self: start; }
html.f-phone.f-stack .path__steps li::before { top: .45em; bottom: auto; left: 0; right: auto; transform: none; }
html.f-phone.f-stack .path__steps li.is-on::before { transform: scale(1.25); }
html.f-phone.f-stack .path__labels { font-size: .75rem; }
html.f-phone.f-stack .station__cta { margin-top: 18px; }
/* tablette en portrait : étapes horizontales normales */
html.f-stack:not(.f-phone) .path__steps li { writing-mode: horizontal-tb; transform: none; height: auto; padding: 26px 0 0; text-align: center; font-size: .875rem; justify-self: stretch; }
html.f-stack:not(.f-phone) .path__steps li::before { top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
html.f-stack:not(.f-phone) .path__steps li.is-on::before { transform: translateX(-50%) scale(1.25); }
/* téléphone en paysage : tout tient dans la hauteur */
html.f-short .station { padding: 60px calc(var(--gutter) + 20px) 50px; }
html.f-short .station__eyebrow { margin-bottom: 8px; }
html.f-short .station__title, html.f-short h3.station__title { font-size: clamp(1.4rem, 9vh, 2.4rem); max-width: 24ch; }
html.f-short .station__text { font-size: .9375rem; max-width: 62ch; margin-top: 8px; }
html.f-short .path { margin-top: 12px; }
html.f-short .path__labels { margin-bottom: 8px; }
html.f-short .path__steps li { writing-mode: horizontal-tb; transform: none; height: auto; padding: 20px 0 0; font-size: .75rem; text-align: center; justify-self: stretch; }
html.f-short .path__steps li::before { top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
html.f-short .path__steps li.is-on::before { transform: translateX(-50%) scale(1.25); }
html.f-short .station__cta { margin-top: 10px; height: 40px; }
html.f-short .tunnel__hud { bottom: 10px; }
html.f-short .station::before { height: 100%; }

/* =====================================================================
   NOTRE POSITION
   ===================================================================== */
.stance__l { font-size: clamp(1.8rem, 1rem + 2.8vw, calc(4rem * var(--fs, 1))); }
.stance__dots { bottom: max(14vh, calc(var(--ui-b) + 30px)); }
html.f-stack .stance__l { font-size: clamp(1.6rem, 7vw, 3rem); }
html.f-short .stance__lines { padding-top: 40px; }
html.f-short .stance__l { font-size: clamp(1.3rem, 8vh, 2.2rem); }
html.f-short .stance__end .h2 { font-size: clamp(1.8rem, 12vh, 3rem); margin-bottom: 14px; }
html.f-short .stance__dots { bottom: 12px; }

/* =====================================================================
   AGENCE et PIED DE PAGE
   ===================================================================== */
html.f-stack .agency { padding: clamp(64px, 12vw, 120px) 0; }
html.f-stack.f-phone .agency__grid { grid-template-columns: 1fr; gap: 36px; }
html.f-stack:not(.f-phone) .agency__grid { grid-template-columns: 1fr 1fr; gap: 5vw; }
/* le cadre de la mascotte n'occupe plus tout l'écran sur téléphone */
html.f-stack.f-phone .agency__frame { aspect-ratio: 4 / 3; max-height: 46svh; margin-inline: auto; }
html.f-short .agency { padding: 60px 0; }
html.f-short .agency__grid { grid-template-columns: .8fr 1.2fr; gap: 5vw; }
html.f-short .agency__frame { max-height: 70svh; aspect-ratio: 1; }
html.f-short .agency__txt img { width: 130px; margin-bottom: 14px; }
html.f-short .agency__txt .lead { margin-bottom: 18px; font-size: 1rem; }
html.f-short .badges { margin-bottom: 18px; gap: 18px; }
/* pied de page : moins de vide au-dessus du grand titre sur petit écran ; le bas de page passe à côté de la barre d'outils */
html.f-stack .ft[data-tone], html.f-short .ft[data-tone] { padding-top: 170px; }
html.f-stack .ft__cta, html.f-short .ft__cta { padding-bottom: 64px; }
html.f-stack .ft__big { font-size: clamp(2.6rem, 11vw, 5rem); }
html.f-short .ft__big { font-size: clamp(2rem, 12vh, 3rem); }
html.f-stack:not(.f-phone) .ft__top { grid-template-columns: 1fr 1fr; }
html.f-stack:not(.f-phone) .ft__grid { grid-template-columns: 1fr 1fr 1fr; }
html.f-stack:not(.f-phone) .ft__badges { grid-column: 1 / -1; }
.ft__bottom { padding-right: max(0px, calc(var(--dock-x2) + var(--dock-btn) + 12px - var(--gutter))); flex-wrap: wrap; gap: 8px 20px; }
html.f-phone .ft__bottom { padding-right: max(0px, calc(var(--dock-x2) + var(--dock-btn) + 12px - var(--gutter))); }
html.f-wide .ft__big { font-size: clamp(3rem, 1.4rem + 6.4vw, calc(8.4rem * var(--fs, 1))); }

/* =====================================================================
   RETAKES (15/11) — haut de page : légende Prospect / Client sous le texte
   ===================================================================== */
.hero__txt { display: grid; gap: 14px; }
.hero__key { display: flex; gap: 18px; color: rgb(var(--text-rgb) / .72); }
.hero__key span { display: inline-flex; align-items: center; }
html.f-short .hero__key { display: none; }

/* tunnel : mots-clés sur une ligne (remplace les étiquettes) */
.station__kw { margin-top: clamp(18px, 2.8vh, 30px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--text-rgb) / .8); opacity: clamp(0, calc(var(--a) * 2 - .9), 1); }
.station__kw i { font-style: normal; color: var(--action); margin: 0 .9em; }
html.f-short .station__kw { margin-top: 10px; }
/* la méthode en « S » : seulement en mise en page empilée (téléphone, tablette en portrait) */
.path__s { display: none; }
html.f-stack .path__labels, html.f-stack .path__bar { display: none; }
html.f-stack .path { position: relative; width: min(100%, 380px, calc(var(--fh, 100svh) * .4)); aspect-ratio: 320 / 300; margin: clamp(22px, 3.4vh, 36px) auto 0; }
html.f-stack .path__s { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path__s path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.path__s-bg { stroke: rgb(var(--text-rgb) / .2); }
.path__s-fill { stroke: var(--action); stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--action)); }
html.f-stack .path__steps { display: block; position: absolute; inset: 0; margin: 0; }
/* étape : point sur le tracé, nom centré juste au-dessus */
html.f-stack .path__steps li, html.f-phone.f-stack .path__steps li, html.f-stack:not(.f-phone) .path__steps li { position: absolute; left: var(--sx); top: var(--sy); writing-mode: horizontal-tb; transform: translate(-50%, calc(-100% - 12px)); height: auto; padding: 0; white-space: nowrap; text-align: center; font-size: clamp(.8125rem, 1.9vh, 1rem); justify-self: auto; }
html.f-stack .path__steps li.is-a0, html.f-phone.f-stack .path__steps li.is-a0, html.f-stack:not(.f-phone) .path__steps li.is-a0 { transform: translate(-14px, calc(-100% - 12px)); }
html.f-stack .path__steps li.is-a1, html.f-phone.f-stack .path__steps li.is-a1, html.f-stack:not(.f-phone) .path__steps li.is-a1 { transform: translate(calc(-100% + 14px), calc(-100% - 12px)); }
html.f-stack .path__steps li::before, html.f-phone.f-stack .path__steps li::before, html.f-stack:not(.f-phone) .path__steps li::before { top: calc(100% + 12px); left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
html.f-stack .path__steps li.is-a0::before, html.f-phone.f-stack .path__steps li.is-a0::before, html.f-stack:not(.f-phone) .path__steps li.is-a0::before { left: 14px; }
html.f-stack .path__steps li.is-a1::before, html.f-phone.f-stack .path__steps li.is-a1::before, html.f-stack:not(.f-phone) .path__steps li.is-a1::before { left: calc(100% - 14px); }
html.f-stack .path__steps li.is-on::before, html.f-phone.f-stack .path__steps li.is-on::before, html.f-stack:not(.f-phone) .path__steps li.is-on::before { transform: translate(-50%, -50%) scale(1.3); }

@media (max-height: 720px) { html.f-stack .path { width: min(100%, 340px, calc(var(--fh, 100svh) * .34)); margin-top: 14px; } }

/* =====================================================================
   RETAKES — Réalisations
   ===================================================================== */
/* pointeur clair sur les cartes et boutons orange */
.cursor.on-acc .cursor__dot { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .9); box-shadow: 0 0 0 1px rgb(255 255 255 / .55), 0 6px 20px rgb(0 0 0 / .25); }
.pj4__det:hover .pj4__in { filter: none; background: color-mix(in srgb, var(--action) 88%, #fff); }
/* annonce finale : de l'air sous le bouton */
.pj4__more { bottom: calc(var(--ui-b, 34px) + 64px + 7svh); }
html.f-stack .pj4__more { bottom: calc(var(--ui-b, 34px) + 56px + 5svh); }
html.f-short .pj4__more { bottom: calc(var(--ui-b) + 56px); }
/* pluie de pixels : fondu entre les Réalisations et les Clients */
.pj3 { z-index: 5; }
.pxrain { position: absolute; left: 0; right: 0; bottom: -16svh; width: 100%; height: 40svh; z-index: 7; pointer-events: none; }

/* =====================================================================
   RETAKES — Clients : « Ils nous ont fait confiance » sous le texte, nom du client dessous, anneau à droite
   ===================================================================== */
.cl__trust { margin-top: 18px; color: var(--text); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cl__hud { left: var(--gutter); right: auto; justify-items: start; }
.cl__name { font-weight: 650; }
html.f-stack .cl__hud { left: var(--gutter); right: var(--gutter); justify-content: center; }
html.f-stack .cl__trust { margin-top: 10px; }
html.f-short .cl__trust { margin-top: 6px; }

/* =====================================================================
   RETAKES — Notre position : titre clair + bouton (la mascotte devient le bouton), révélation en pixels
   ===================================================================== */
.stance__title { font-size: clamp(2.4rem, 1rem + 4.2vw, calc(5.4rem * var(--fs, 1))); line-height: .98; letter-spacing: -.045em; margin-bottom: 18px; }
.stance__sub { max-width: 46ch; margin: 0 auto 30px; font-size: max(1rem, 15px); line-height: 1.5; color: rgb(var(--text-rgb) / .78); }
.stance__go { opacity: var(--bo, 0); transform: scale(calc(.35 + .65 * var(--bo, 0))); transform-origin: 50% 50%; transition: none; }
.stance__reveal { background: none !important; clip-path: none !important; width: 100%; height: 100%; display: block; }
html.f-stack .stance__title { font-size: clamp(2.1rem, 9.6vw, 4.4rem); }
html.f-stack .stance__sub { font-size: .9375rem; margin-bottom: 24px; }
html.f-short .stance__title { font-size: clamp(1.6rem, 10vh, 2.6rem); margin-bottom: 8px; }
html.f-short .stance__sub { font-size: .8125rem; margin-bottom: 12px; }
html.f-short .stance__go { height: 42px; }

/* =====================================================================
   RETAKES — Équipe : le poste en orange (orange foncé : lisible sur le vert d'eau), plus de « 01 / 10 · sa forme »
   ===================================================================== */
.crew__role { color: rgb(170 62 8); font-weight: 700; font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); margin-top: 10px; }
html:not([data-da]) .crew__role { color: rgb(170 62 8); }
html.f-stack .crew__role { font-size: 1.15rem; margin-top: 10px; }
html.f-short .crew__role { font-size: 1rem; margin-top: 6px; }

/* =====================================================================
   RETAKES — L'Agence monte par-dessus l'Équipe (panneau aux coins arrondis)
   ===================================================================== */
.agency { margin-top: -100svh; z-index: 6; border-radius: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) 0 0; box-shadow: 0 -40px 90px -20px rgb(0 0 0 / .45); }
.agency::before { content: ""; position: absolute; left: 50%; top: 14px; width: 54px; height: 4px; margin-left: -27px; border-radius: 4px; background: rgb(var(--text-rgb) / .22); }
.crew__head { width: min(calc(540px * var(--fs, 1)), 40vw); }
html.f-stack .crew__head { width: auto; }
html.f-short .crew__head { width: min(44vw, 380px); }

/* l'Agence couvre toujours au moins un écran (sinon l'Équipe réapparaîtrait dessous) */
.agency { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.agency > .wrap { width: 100%; }
.crew__tl { display: block; }
/* écrit en capitales dans le texte : la mise en capitales automatique de Manrope dédouble la virgule */
.crew__title { text-transform: none; }
.crew__c { font-family: Arial, Helvetica, sans-serif; font-weight: 700; letter-spacing: 0; }

/* ---------- transition en pixels (pxfx.js) ---------- */
.pxfx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 100000; pointer-events: none; display: block; }
html.px-in::before { content: ""; position: fixed; inset: 0; z-index: 100001; background: #080112; }

/* =====================================================================
   SERVICES : animations vidéo (Katana / Higgsfield) à la place des scènes faites à la main
   ===================================================================== */
.scard__stage--vid { overflow: hidden; background: #0c0a18 !important; }
.svc-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* compositions centrées : pas de recadrage particulier */
/* léger voile en bas : la vidéo se fond dans la carte */
.scard__stage--vid::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(8 1 18 / .45), transparent 34%), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgb(8 1 18 / .35)); }

/* mobile : la planète est épurée (sans points), la légende Prospect / Client n'a plus lieu d'être */
html.f-stack .hero__key { display: none; }

/* l'Agence monte par-dessus l'Équipe : sur petit écran, son contenu commence sous l'en-tête */
html.f-stack .agency { padding-top: calc(var(--hd-h) + 28px); }
