/* Site wailo.ai V3 : socle commun (étape 3, nuit du 19 au 20/10/2026).
   Jetons repris du prototype validé (hero) et du deck v106. */
:root {
  --bg: #F4F7FC; --navy: #2C3E50; --blue: #4A90E2; --slate: #5A7BA5; --slate-dark: #4F6D93;
  --text: #5A6577; --white: #FFFFFF; --night: #0B1626; --night-2: #12223A; --line: rgba(44,62,80,.08);
  --soft: #E8F2FC; --soft-2: #D9E7F8; --ok: #2FA84F;
  --k: 1; /* échelle des appareils, posée par site.js : min(largeur/1440, hauteur/900) */
  --nav-h: 72px;
  --ease: cubic-bezier(.22,.8,.24,1);
  --ff-title: Poppins, 'Helvetica Neue', Arial, sans-serif;
  --ff-text: 'Heebo App', Heebo, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--navy); font-family: var(--ff-text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

/* ---------- Menu ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(44,62,80,.06); display: flex; align-items: center; gap: 32px; padding: 0 40px 0 64px; font-family: var(--ff-title); }
.nav__logo { height: 38px; display: block; } .nav__logo img { height: 100%; width: auto; display: block; }
.nav__links { display: flex; gap: 26px; margin: 0 auto; }
.nav__links a { position: relative; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; padding: 6px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav__links a.on::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--slate); }
/* Jauge d'avancement de la scène en cours (site.js, 20/10) : verticale à droite, près de l'ascenseur, un trait fin par étape ; s'efface quand on ne défile plus */
.sbar { position: fixed; z-index: 49; right: 14px; top: calc(var(--nav-h) + 18px); bottom: 18px; width: 3px; border-radius: 2px; background: rgba(90,123,165,.18); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.sbar.on.live { opacity: 1; transition-duration: .25s; }
.sbar__fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, #5A7BA5, #4C89E3); transform-origin: top; transform: scaleY(var(--gp, 0)); }
.sbar__dots b { position: absolute; left: 50%; width: 7px; height: 1.5px; margin: -.75px 0 0 -3.5px; border-radius: 1px; background: rgba(90,123,165,.45); transition: background .3s, width .3s var(--ease), margin .3s var(--ease); }
.sbar__dots b.on { background: #4C89E3; width: 9px; margin-left: -4.5px; }
@media (max-width: 899px) { .sbar { right: 5px; width: 2px; } .sbar__dots b { width: 6px; margin-left: -3px; } .sbar__dots b.on { width: 8px; margin-left: -4px; } }
.nav__account { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(90,123,165,.30); color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__account svg { width: 16px; height: 16px; color: var(--slate); }
@media (max-width: 1180px) { .nav__links { gap: 16px; } .nav__links a { font-size: 14px; } .nav { gap: 18px; padding: 0 24px 0 32px; } }
@media (max-width: 1023px) { .nav__links { display: none; } .nav { justify-content: space-between; padding: 0 16px; --nav-h: 64px; height: 64px; } .nav__logo { height: 32px; } }
/* Menu « ☰ » sur tablette et téléphone (21/10 : sur téléphone, le menu n'existait pas). Le bouton est créé par site.js, caché sur PC. */
.nav__burger { display: none; }
@media (max-width: 1023px) {
  .nav__burger { display: grid; place-items: center; width: 42px; height: 42px; margin-left: 10px; border: 0; border-radius: 12px; background: rgba(90,123,165,.10); color: var(--navy); cursor: pointer; }
  .nav__burger svg { width: 22px; height: 22px; }
  .nav__burger .x { display: none; } .nav.open .nav__burger .x { display: block; } .nav.open .nav__burger .b { display: none; }
  .nav__account { margin-left: auto; }
  .nav.open .nav__links { display: flex; position: fixed; left: 12px; right: 12px; top: 72px; flex-direction: column; gap: 0; margin: 0; padding: 8px; border-radius: 20px;
    background: #fff; box-shadow: 0 18px 50px rgba(11,22,38,.22); animation: nav-in .25s var(--ease); }
  .nav.open .nav__links a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav.open .nav__links a::after { display: none; }
  .nav.open .nav__links a.on, .nav.open .nav__links a:active { background: var(--soft); color: var(--slate-dark); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }
}
@media (max-width: 599px) { .nav__account { font-size: 0; gap: 0; width: 42px; padding: 0; justify-content: center; } .nav__account svg { width: 18px; height: 18px; } }

/* ---------- Typographie (grammaire du deck) ---------- */
.kicker { margin: 0 0 14px; font-family: var(--ff-text); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.h2 { margin: 0; font-family: var(--ff-title); font-weight: 800; font-size: clamp(30px, 3.3vw, 58px); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.h2 span { display: block; } .h2 .l2 { color: var(--blue); }
/* téléphone : ne pas laisser Android grossir le texte des animations (réglage d'affichage), sinon les étiquettes débordent (Oppo, 21/10) */
@media (max-width: 899px) { html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } }
/* téléphone (21/10) : titres des scènes un peu plus petits, pour laisser la place aux appareils sous le titre */
@media (max-width: 599px) { .stage .copy .h2 { font-size: 26px; } .stage .copy .kicker { margin-bottom: 8px; font-size: 12px; } }
.txt { font-size: clamp(16px, 1.15vw, 20px); line-height: 1.6; color: var(--text); max-width: 34em; text-wrap: pretty; }
.night .kicker { color: #8DB4F0; } .night .h2 { color: #fff; } .night .h2 .l2 { color: #8DB4F0; } .night .txt { color: #B9C6D8; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 34px; border-radius: 999px; background: var(--slate); color: #fff; font-family: var(--ff-title); font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 10px 24px rgba(90,123,165,.28); transition: background .2s, transform .2s; }
.btn:hover { background: var(--slate-dark); transform: translateY(-1px); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(90px, 11vw, 160px) 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.night { background: var(--night); color: #fff; }

/* Apparition au défilement (vignettes qui arrivent, comme le site actuel) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Scènes à crans (le défilement fait avancer les étapes) ----------
   <section class="scene" data-steps="N"><div class="stage">…</div></section>
   site.js pose sur .stage les classes st0…stN (cumulatives) et --p (0→1 sur toute la scène). */
.scene { position: relative; height: calc(100svh + var(--steps, 3) * 35svh); } /* 35svh par cran (70 avant le 20/10 : il fallait 2 gestes par étape) */
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.stage .copy { position: absolute; z-index: 5; }
.step-txt { transition: opacity .6s var(--ease), transform .6s var(--ease), color .4s; }

/* Liste d'étapes numérotées : l'étape en cours s'allume */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.5; color: var(--text); opacity: .35; transform: translateX(-6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.steps li b { color: var(--navy); font-weight: 700; }
.steps li i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; background: #fff; color: var(--slate); box-shadow: inset 0 0 0 1.5px rgba(90,123,165,.35); transition: background .5s, color .5s, box-shadow .5s; }
.steps li.on { opacity: 1; transform: none; }
.steps li.on i { background: var(--slate); color: #fff; box-shadow: 0 6px 14px rgba(90,123,165,.35); }
.night .steps li { color: #B9C6D8; } .night .steps li b { color: #fff; } .night .steps li i { background: transparent; color: #8DB4F0; box-shadow: inset 0 0 0 1.5px rgba(141,180,240,.45); }
.night .steps li.on i { background: #4C89E3; color: #fff; }

/* Sous-titres : une seule étape affichée à la fois, en bas de la scène */
.caps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.caps li { grid-area: 1 / 1; display: flex; gap: 14px; align-items: flex-start; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.5; color: var(--text);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.caps li.cur { opacity: 1; transform: none; }
.caps li b { color: var(--navy); } .caps li i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; background: var(--slate); color: #fff; }
.caps-dots { display: flex; gap: 6px; margin: 0 0 12px 44px; } .caps-dots span { width: 22px; height: 4px; border-radius: 2px; background: rgba(90,123,165,.25); transition: background .4s; }
.night .caps li { color: #B9C6D8; } .night .caps li b { color: #fff; }

/* Appareils placés dans une scène : position absolue, taille en fonction de --k */
.dev { position: absolute; transition: transform 1s var(--ease), opacity .8s var(--ease), left 1s var(--ease), top 1s var(--ease); will-change: transform; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.layer.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .scene { height: auto; } .stage { position: relative; height: auto; min-height: 100svh; }
  * { transition-duration: .01s !important; animation-duration: .01s !important; }
}

/* ---------- Hero (repris du prototype validé ; chiffres allégés suite à la review) ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); font-family: var(--ff-title); }
.hero__media { position: absolute; top: var(--nav-h); right: 0; bottom: 0; left: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; background: var(--bg); }
.hero__inner { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-columns: 43% 57%; align-items: center; }
.hero__text { grid-column: 1; padding: 120px 24px 48px 64px; max-width: 760px; }
.hero h1 { margin: 0 0 24px; font-weight: 800; font-size: clamp(34px, 2.75vw, 56px); line-height: 1.16; letter-spacing: -.02em; color: var(--navy); }
.hero h1 span { display: block; } .hero h1 .l2 { color: var(--blue); }
.hero .lead { margin: 0 0 22px; font-size: clamp(16px, 1.1vw, 20px); line-height: 1.6; color: var(--text); max-width: 34em; }
.hero .lead--2 { margin-top: -6px; margin-bottom: 34px; } .hero .lead--2 b { color: var(--navy); font-weight: 600; }
.actions { display: inline-flex; flex-direction: column; align-items: stretch; gap: 14px; }
.stores__row { display: flex; flex-direction: column; align-items: stretch; }
.stores__label { margin: 4px 0 10px; font-size: 13px; color: #8A94A6; text-align: center; }
.stores { display: flex; justify-content: center; align-items: center; gap: 14px; } .stores img { height: 42px; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 48px; margin-top: 36px; max-width: 34em; }
.stat__num { display: block; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--slate), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text); font-family: var(--ff-text); }
.trust { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 34em; }
.trust__label { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #8A94A6; }
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.trust__logos img { height: 58px; width: auto; filter: brightness(0) invert(27%) sepia(14%) saturate(900%) hue-rotate(176deg); opacity: .75; }
.hero .in-load { opacity: 0; transform: translateY(14px); animation: hero-in .9s var(--ease) forwards; animation-delay: var(--d, .1s); }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__media { top: auto; height: 46vh; } .hero__text { padding: 96px 16px 52vh; text-align: center; }
  .stats { justify-content: center; gap: 8px 24px; } .stat__num { font-size: 24px; } .trust { margin: 36px auto 0; } .trust__logos { justify-content: center; }
}
/* Dans une scène, « night » ne sert qu'aux couleurs du texte : le fond est celui de la scène */
.stage .night { background: transparent; }

/* ---------- Liaisons Wailo (links.js, 20/10) : celles du hero, pour tout le site ---------- */
.wl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.wl-g { opacity: 0; transition: opacity .5s var(--ease); }
.wl-g.on { opacity: 1; transition-duration: .2s; transition-delay: var(--wld, 0s); }
.wl-ln, .wl-tube { fill: none; stroke-linecap: round; }
.wl-ln { stroke: var(--wlc, #4A90E2); stroke-width: max(2px, calc(var(--k) * 3.4px)); stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset 0s .5s; }
.wl-g.on .wl-ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) var(--wld, 0s); }
.wl-plug { fill: #fff; stroke: var(--wlc, #4A90E2); stroke-width: max(2px, calc(var(--k) * 3px)); opacity: 0; transition: opacity .3s; }
/* ordre (21/10) : le point de départ s'allume avec la liaison, celui d'arrivée quand le tracé l'atteint */
.wl-g.on .wl-plug.a { opacity: 1; transition: opacity .3s var(--wld, 0s); }
.wl-g.on .wl-plug.b { opacity: 1; transition: opacity .3s calc(.75s + var(--wld, 0s)); }
.wl-pulse, .wl-halo { fill: none; stroke-linecap: round; }
.wl-pulse { stroke: #fff; stroke-width: max(4px, calc(var(--k) * 7px)); stroke-dasharray: .14 1; stroke-dashoffset: .14; opacity: 0; }
.wl-halo { stroke: color-mix(in srgb, var(--wlc, #4A90E2) 32%, transparent); stroke-width: max(9px, calc(var(--k) * 16px)); stroke-dasharray: .14 1; stroke-dashoffset: .14; opacity: 0; }
.wl-g.flow:not(.round) .wl-pulse, .wl-g.flow:not(.round) .wl-halo { opacity: 1; animation: wl-run 1.9s var(--ease) infinite calc(1s + var(--wld, 0s)); }
@keyframes wl-run { from { stroke-dashoffset: .14; } to { stroke-dashoffset: -1; } }
/* option round : électron rond, même style (cœur blanc, halo bleu discret) ; position animée par links.js (beat) */
.wl-eh, .wl-ec { opacity: 0; transition: opacity .4s; }
.wl-eh { fill: color-mix(in srgb, var(--wlc, #4A90E2) 35%, transparent); }
.wl-ec { fill: #fff; }
.wl-g.flow.round .wl-eh, .wl-g.flow.round .wl-ec { opacity: 1; }
/* option dash : pointillés qui avancent doucement, au lieu de l'électron ; la liaison apparaît en fondu */
.wl-g.dash .wl-ln, .wl-g.dash.on .wl-ln { stroke-dasharray: max(4px, calc(var(--k) * 6px)) max(5px, calc(var(--k) * 7px)); stroke-dashoffset: 0; transition: none; animation: wl-march 1.4s linear infinite; }
.wl-g.dash .wl-pulse, .wl-g.dash .wl-halo, .wl-g.dash .wl-eh, .wl-g.dash .wl-ec { display: none; }
/* masque qui déroule les pointillés de A vers B en .8 s, après le délai --wld */
.wl-mk { fill: none; stroke: #fff; stroke-width: 40px; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0s .5s; }
.wl-g.on .wl-mk { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) var(--wld, 0s); }
@media (prefers-reduced-motion: reduce) { .wl-mk { stroke-dashoffset: 0 !important; transition: none !important; } }
@keyframes wl-march { to { stroke-dashoffset: calc(-2 * max(4.5px, calc(var(--k) * 6.5px))); } }
@media (prefers-reduced-motion: reduce) { .wl-g.dash .wl-ln { animation: none; } }
/* Tuyau : une gaine blanche bordée de bleu clair, dans laquelle circulent les fiches */
.wl-tube { stroke: rgba(74,144,226,.22); stroke-width: calc(var(--k) * 44px); stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0s .5s; }
.wl-tube.in { stroke: #fff; stroke-width: calc(var(--k) * 38px); }
.wl-g.on .wl-tube { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
/* Fiches qui glissent le long d'une liaison (le « tuyau ») */
.wl-meas { fill: none; stroke: none; }
.wl-chip { position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: calc(var(--k) * 8px);
  padding: calc(var(--k) * 6px) calc(var(--k) * 13px) calc(var(--k) * 6px) calc(var(--k) * 6px); border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(44,62,80,.18);
  font-family: var(--ff-text); font-weight: 700; font-size: calc(var(--k) * 13px); color: var(--navy); white-space: nowrap; opacity: 0; pointer-events: none; }
.wl-chip i { width: calc(var(--k) * 26px); height: calc(var(--k) * 26px); border-radius: 50%; background: #E8F2FC; color: #4C89E3; font-style: normal; font-size: calc(var(--k) * 10px); display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .wl-chip { display: none; } .wl-g.flow .wl-pulse, .wl-g.flow .wl-halo { animation: none; opacity: 0; } .wl-g.flow .wl-eh, .wl-g.flow .wl-ec { opacity: 0; } }

/* ---------- Chevrons « continuez à descendre » (site.js setupHint, 20/10) ---------- */
.shint { position: fixed; z-index: 48; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: var(--slate); opacity: 0; transition: opacity .35s var(--ease), bottom 0s .35s; pointer-events: none; }
.shint.on { opacity: .9; transition: opacity .9s var(--ease); }
.shint.on { pointer-events: auto; cursor: pointer; } /* cliquable : l'étape suivante (21/10) */
.shint::after { content: ''; position: absolute; inset: -16px -36px; } /* zone de clic plus large que les chevrons */
.shint.on:hover svg { opacity: 1; }
.shint.dark { color: #fff; }
.shint svg { width: 28px; height: 15px; margin-top: -3px; opacity: .18; filter: drop-shadow(0 1px 2px rgba(0,0,0,.08)); }
.shint.on svg { animation: shint 1.5s ease-in-out infinite; }
.shint.on svg:nth-child(2) { animation-delay: .2s; } .shint.on svg:nth-child(3) { animation-delay: .4s; }
@keyframes shint { 0%, 100% { opacity: .18; } 35% { opacity: 1; } }
@media (max-width: 899px) { .shint svg { width: 24px; height: 13px; } }
@media (prefers-reduced-motion: reduce) { .shint.on svg { animation: none; opacity: .7; } }

/* Review 22/10 : animations en pause quand leur section est hors écran (classe posée par site.js) */
.off, .off *, .off *::before, .off *::after { animation-play-state: paused !important; }
/* Review 22/10 : de 1024 à 1280 px, le logo était écrasé (largeur 0 à 1024 et 1200) par les liens du menu : il ne rétrécit plus, et
   « Mon compte Entreprise » passe en icône seule (comme sur téléphone) tant que la place manque (jusqu’à 1349 px : à 1280 il sortait de l’écran) */
.nav__logo { flex: none; }
@media (min-width: 1024px) and (max-width: 1349px) { .nav__account { font-size: 0; gap: 0; width: 38px; padding: 0; justify-content: center; } .nav__account svg { width: 18px; height: 18px; } }
.dl-menu { display: flex; gap: 10px; justify-content: center; margin-top: 12px; } .dl-menu img { height: 40px; width: auto; display: block; }
