/* ==========================================================================
   TYNEXA — feuille de style principale
   Sommaire : polices · tokens · base · boutons & nav · hero · références ·
   sections · services · solutions (démos) · méthode · contact · légal ·
   footer · responsive · mouvement réduit
   Les démos sont pilotées par des classes d'étape cumulatives (.s1, .s2…)
   posées par assets/js/tynexa.js sur la racine de chaque timeline.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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 Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
  --gutter: 40px;
  --nav-h: 72px;

  /* Thème clair */
  --bg: #FFFFFF;
  --bg2: #F6F7F9;
  --surface: #FFFFFF;
  --line: #E6E8EC;
  --line2: #D5D8DE;
  --ink: #0B0D12;
  --muted: #5A606C;
  --faint: #6E747F;
  --accent: #1F4BFF;
  --accent2: #5B7CFF;
  --accentText: #1D45EB;
  --accentSoft: #EEF2FF;
  --accentLine: rgba(31, 75, 255, .38);
  --ok: #15803D;
  --okSoft: #DCFCE7;
  --warn: #B45309;
  --warnSoft: #FEF3C7;
  --err: #C2410C;
  --grid: rgba(11, 13, 18, .055);
  --grid2: rgba(11, 13, 18, .1);
  --glow: rgba(31, 75, 255, .2);
  --glow2: rgba(31, 75, 255, .07);
  --spotLine: rgba(31, 75, 255, .55);
  --spotFill: rgba(31, 75, 255, .055);
  --shine: rgba(255, 255, 255, .28);
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, .05);
  --shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 12px 40px rgba(11, 13, 18, .07);
  --shadow-lg: 0 2px 4px rgba(11, 13, 18, .04), 0 30px 70px -24px rgba(11, 13, 18, .22);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #050608;
  --bg2: #0A0C11;
  --surface: #0E1117;
  --line: #1A1E27;
  --line2: #2A2F3B;
  --ink: #F4F6FA;
  --muted: #A3A9B5;
  --faint: #7F8592;
  --accent: #3366FF;
  --accent2: #6F8FFF;
  --accentText: #8EABFF;
  --accentSoft: rgba(51, 102, 255, .14);
  --accentLine: rgba(120, 150, 255, .5);
  --ok: #4ADE80;
  --okSoft: rgba(74, 222, 128, .12);
  --warn: #FBBF24;
  --warnSoft: rgba(251, 191, 36, .12);
  --err: #FF9B73;
  --grid: rgba(255, 255, 255, .045);
  --grid2: rgba(255, 255, 255, .07);
  --glow: rgba(51, 102, 255, .3);
  --glow2: rgba(51, 102, 255, .11);
  --spotLine: rgba(130, 160, 255, .65);
  --spotFill: rgba(51, 102, 255, .09);
  --shine: rgba(51, 102, 255, .22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 50px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 34px 80px -24px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--accentText); }
b, strong { font-weight: 650; }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dim { color: var(--faint); }
[hidden] { display: none !important; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

/* Bordure lumineuse qui suit le pointeur (variables --mx/--my posées en JS) */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), var(--spotLine), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
  z-index: 6;
}
@media (hover: hover) { .spot:hover::after { opacity: 1; } }

/* Apparitions au scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Réinitialisation instantanée d'une timeline */
.tl-reset, .tl-reset *, .tl-reset *::before, .tl-reset *::after { transition: none !important; animation: none !important; }

/* Transition de thème (repli sans View Transitions) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease), box-shadow .45s var(--ease) !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Boutons, liens ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateX(110%); }
.btn:active { transform: scale(.97); }
.btn--pill { background: var(--ink); color: var(--bg); }
.btn--pill:hover { color: var(--bg); box-shadow: 0 0 0 3px var(--accentSoft); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--glow { }
.btn .arr { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease); }
.textlink .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.textlink:hover { color: var(--ink); background-size: 100% 1px; }
.textlink:hover .i { transform: translateX(3px); }
.ulink { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); transition: text-decoration-color .25s; }
.ulink:hover { color: var(--ink); text-decoration-color: var(--accent); }

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
}
.icon-btn:hover { border-color: var(--line2); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s; }
.nav.is-scrolled, .nav.is-open { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .35s var(--ease); }
.nav.is-scrolled .nav__inner { height: 62px; }
.brand { color: var(--ink); text-decoration: none; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__ty { font-weight: 300; }
.brand__nexa { font-weight: 700; }
.brand__dot { display: inline-block; color: var(--accent); font-weight: 700; transition: transform .45s var(--spring); }
.brand:hover .brand__dot { transform: translateY(-4px); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.navlink { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 12px 2px; transition: color .2s; }
.navlink::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.navlink:hover, .navlink.is-active { color: var(--ink); }
.navlink:hover::after, .navlink.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle .i { grid-area: 1 / 1; transition: transform .55s var(--spring), opacity .3s; }
[data-theme="dark"] .theme-toggle .i--moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .theme-toggle .i--sun { opacity: 0; transform: rotate(90deg) scale(.4); }
.burger { display: none; }
.burger__l { grid-area: 1 / 1; width: 16px; height: 1.7px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.burger__l:first-child { transform: translateY(-4px); }
.burger__l:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] .burger__l:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__l:last-child { transform: rotate(-45deg); }
.mmenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.nav.is-open .mmenu { grid-template-rows: 1fr; }
.mmenu__inner { width: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.nav.is-open { background: var(--bg); }
.mmenu__link { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 20px; letter-spacing: -.02em; opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .45s var(--ease), color .2s; }
.mmenu__link:first-child { margin-top: 8px; }
.mmenu__link .i { color: var(--faint); transition: transform .3s var(--ease); }
.mmenu__link:hover { color: var(--accentText); }
.mmenu__link:hover .i { transform: translateX(3px); }
.mmenu__cta { margin: 20px 0 24px; opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .45s var(--ease); }
.nav.is-open .mmenu__link, .nav.is-open .mmenu__cta { opacity: 1; transform: none; }
.nav.is-open .mmenu__link:nth-child(2) { transition-delay: .04s; }
.nav.is-open .mmenu__link:nth-child(3) { transition-delay: .08s; }
.nav.is-open .mmenu__link:nth-child(4) { transition-delay: .12s; }
.nav.is-open .mmenu__cta { transition-delay: .16s; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 172px 0 104px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid { display: none; }
.hero__glow { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; color: var(--faint); }
.eyebrow--accent { color: var(--accentText); font-weight: 500; }
.eyebrow--live { margin-bottom: 20px; font-size: 13px; color: var(--faint); }
.live-dot { width: 7px; height: 7px; border-radius: 9px; background: var(--accent); animation: live 2.2s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--accentLine); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.hero__title { margin: 0; max-width: 1100px; font-weight: 300; font-size: clamp(42px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.hero__title b { font-weight: 650; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .w__i { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 42ms + .08s); }
.hero__title.is-in .w__i { transform: none; }
.ia { position: relative; }
.ia .w__i, .ia:not(:has(.w)) { color: var(--accentText); }
.ia::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: .02em; height: .07em; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: scaleX(0); transition: transform 1.2s var(--ease-out) 1.1s; }
.hero__title.is-in .ia::after, .hero__title:not(.is-split) .ia::after { transform: scaleX(1); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; margin-top: 44px; }
.hero__lead { margin: 0; max-width: 540px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-card { display: inline-flex; align-items: center; gap: 16px; padding: 10px 10px 10px 10px; border: 1px solid var(--line2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); text-decoration: none; transition: border-color .3s, box-shadow .45s var(--ease), transform .35s var(--ease); }
.cta-card img { flex: none; width: 52px; height: 52px; border-radius: 99px; box-shadow: 0 0 0 1px var(--line2); }
.cta-card__txt { display: flex; flex-direction: column; gap: 3px; }
.cta-card__t { font-size: 17px; font-weight: 600; color: var(--ink); }
.cta-card__s { font-size: 14px; color: var(--muted); }
.cta-card__go { flex: none; width: 42px; height: 42px; margin-left: 6px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; transition: transform .4s var(--spring), box-shadow .4s; }
.cta-card__go .i { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.cta-card:hover { border-color: var(--accentLine); transform: translateY(-2px); }
.cta-card:hover .cta-card__go { box-shadow: 0 0 0 5px var(--accentSoft); }
.cta-card:hover .cta-card__go .i { transform: translateX(2px); }
.cta-card:active { transform: scale(.98); }

/* Aperçu animé du flux IA */
.hflow-wrap { margin-top: 76px; perspective: 1800px; }
.hflow { border: 1px solid var(--line2); border-radius: 20px; background: linear-gradient(180deg, var(--surface), var(--bg2)); box-shadow: var(--shadow-lg); overflow: hidden; container-type: inline-size; transform-origin: 50% 0; }
.js .hflow-wrap .hflow { transform: rotateX(16deg) translateY(24px) scale(.98); transition: transform 1.6s var(--ease-out) var(--d, 0s); }
.js .hflow-wrap.is-in .hflow { transform: none; }
.hflow__bar, .app__bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wdots { display: flex; gap: 6px; }
.wdots i { width: 9px; height: 9px; border-radius: 9px; background: var(--line2); }
.hflow__title, .app__name { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.hflow__title .i, .app__name .i { width: 15px; height: 15px; color: var(--accentText); }
.demo-badge { margin-left: auto; font: 500 10.5px var(--mono); letter-spacing: .04em; color: var(--faint); border: 1px dashed var(--line2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.hflow__canvas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, .5fr) minmax(0, 1fr) minmax(40px, .5fr) minmax(0, .95fr); grid-template-rows: minmax(0, 1fr); height: 344px; padding: 30px; }
.hflow__src { display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; }
.hflow__out { display: grid; grid-template-rows: repeat(4, 1fr); align-items: center; }
.wires { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: visible; }
.wire { fill: none; stroke: var(--line2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wire__pulse { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 22 140; stroke-dashoffset: 22; opacity: 0; transition: opacity .5s; }
.wire__pulse.is-on { opacity: 1; animation: pulseRun .9s var(--ease-io) forwards; }
.wire__pulse.is-lit { opacity: .45; stroke-dasharray: 100 0; animation: none; }
@keyframes pulseRun { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -100; } }
.hnode { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .45s, box-shadow .45s, transform .5s var(--ease); }
.hnode__ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); transition: background-color .4s, color .4s, border-color .4s; }
.hnode__ic .i { width: 16px; height: 16px; }
.hnode__txt { min-width: 0; }
.hnode__txt b { display: block; font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnode__txt small { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnode__ping { position: absolute; right: 10px; top: 10px; width: 7px; height: 7px; border-radius: 9px; background: var(--accent); opacity: 0; transition: opacity .3s; }
.hnode.is-on { border-color: var(--accentLine); box-shadow: 0 0 0 4px var(--accentSoft), var(--shadow-sm); transform: translateX(4px); }
.hnode.is-on .hnode__ic { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.hnode.is-on .hnode__ping { opacity: 1; animation: live 1.4s var(--ease) infinite; }
.hnode--out { padding: 8px 10px; }
.hnode--out .hnode__ic { width: 28px; height: 28px; border-radius: 8px; }
.hnode--out .hnode__txt b { font-size: 13px; font-weight: 500; }
.hnode__ok { margin-left: auto; flex: none; width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; background: var(--okSoft); color: var(--ok); transform: scale(0); transition: transform .45s var(--spring); }
.hnode__ok .i { width: 12px; height: 12px; stroke-width: 2.6; }
.hnode--out.is-done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line2)); transform: translateX(-4px); }
.hnode--out.is-done .hnode__ic { color: var(--ink); }
.hnode--out.is-done .hnode__ok { transform: scale(1); }
.hcore { align-self: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 16px 16px; border: 1px solid var(--line2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.hcore__orb { position: relative; width: 62px; height: 62px; border-radius: 19px; display: grid; place-items: center; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.hcore__mark { width: 30px; height: 30px; fill: none; stroke: #FFFFFF; stroke-linecap: round; }
.hcore__ring { position: absolute; inset: -6px; border-radius: 24px; border: 1px solid var(--accentLine); opacity: 0; }
.hflow.is-thinking .hcore__ring { animation: ringOut 1.5s var(--ease-out) infinite; }
.hflow.is-thinking .hcore__ring--2 { animation-delay: .75s; }
@keyframes ringOut { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.hcore__meta { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.hcore__label { font-size: 13.5px; font-weight: 600; }
.hcore__status { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--mono); color: var(--faint); }
.hcore__status i { width: 6px; height: 6px; border-radius: 9px; background: var(--faint); transition: background-color .3s; }
.hflow.is-thinking .hcore__status { color: var(--accentText); }
.hflow.is-thinking .hcore__status i { background: var(--accent); animation: blinkDot .8s steps(2) infinite; }
.hflow.is-done .hcore__status { color: var(--ok); }
.hflow.is-done .hcore__status i { background: var(--ok); }
@keyframes blinkDot { 50% { opacity: .25; } }
.hcore__log { list-style: none; margin: 0; padding: 9px 11px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.hcore__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .25; transform: translateY(3px); transition: opacity .4s, transform .5s var(--ease); }
.hcore__log li::before { content: "› "; color: var(--accentText); }
.hcore__log li.is-on { opacity: 1; transform: none; }

/* ---------- Références ---------- */
.refs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refs__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 34px; padding-bottom: 34px; }
.refs__title { margin: 0; font-size: 14px; font-weight: 400; color: var(--faint); }
.refs__logos { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 64px; }
.lg { width: auto; opacity: .62; transition: opacity .3s, transform .35s var(--ease); }
.lg:hover { opacity: 1; transform: translateY(-1px); }
[data-theme="light"] .lg { filter: brightness(0); }
[data-theme="dark"] .lg { filter: brightness(0) invert(1); }

/* ---------- Sections ---------- */
.section { position: relative; padding-top: 136px; }
.shead { max-width: 720px; margin-bottom: 48px; }
.shead--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 56px; }
.shead--split > div { max-width: 660px; }
.shead__p { margin: 0; max-width: 360px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.h2 { margin: 0; font-weight: 400; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.h2 b { font-weight: 650; }
.h2--strong { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.035em; }

/* Deux portes */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 128px; }
.door { display: flex; flex-direction: column; gap: 16px; min-height: 300px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); text-decoration: none; overflow: hidden; transition: border-color .3s, background-color .3s, transform .5s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--spotFill), transparent 45%); opacity: 0; transition: opacity .45s; }
.door:hover { background: var(--surface); transform: translateY(-3px); }
.door:hover::before { opacity: 1; }
.door__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--surface); color: var(--accentText); transition: transform .55s var(--spring), background-color .3s, color .3s, border-color .3s; }
.door:hover .door__ic { transform: rotate(-8deg) scale(1.06); background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.door__k { font-size: 13px; color: var(--accentText); }
.door__t { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.door__p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.door__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.door__go .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.door:hover .door__go .i { transform: translateX(4px); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.svc { grid-column: span 6; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; transition: border-color .35s, transform .55s var(--ease), box-shadow .55s var(--ease); }
.svc--video { grid-column: span 5; }
.svc--auto { grid-column: span 7; }
.svc--web { grid-column: span 12; flex-direction: row; }
.svc--web .svc__viz { flex: 1; height: auto; min-height: 400px; border-bottom: none; border-right: 1px solid var(--line); }
.svc--web .svc__body { flex: 0 0 360px; justify-content: center; }
@media (max-width: 760px) { .svc--web { flex-direction: column; } .svc--web .svc__viz { min-height: 320px; border-right: none; border-bottom: 1px solid var(--line); } .svc--web .svc__body { flex: none; } }
.svc:hover { border-color: var(--line2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc__viz { position: relative; height: 440px; overflow: hidden; background-color: var(--bg2); border-bottom: 1px solid var(--line); container-type: inline-size; }
.vtag { position: absolute; top: 15px; left: 16px; z-index: 5; font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--faint); }
.vtag--r { left: auto; right: 16px; }
.svc__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; }
.svc__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc__n { font-size: 13px; color: var(--faint); }
.svc__badge { font-size: 12px; color: var(--accentText); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; }
.svc__t { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.svc__p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tag { font-size: 13px; color: var(--ink); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 13px; transition: border-color .25s, background-color .25s, transform .3s var(--ease); }
.tag:hover { border-color: var(--accentLine); background: var(--accentSoft); transform: translateY(-1px); }

/* 01 — Lecteur vidéo */
.viz-video { background: radial-gradient(110% 80% at 25% 15%, #13204A 0%, #080A11 58%, #05060A 100%); border-bottom-color: #10131B; }
.viz-video .vtag { color: rgba(255, 255, 255, .5); }
.player { position: absolute; inset: 44px 18px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; color: rgba(255, 255, 255, .85); }
.player__screen { position: relative; height: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .09); }
.player__screen video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .9s var(--ease); }
.svc--video:hover .player__screen video { transform: scale(1.04); }
.player__big { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border: 0; border-radius: 99px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0B0D12; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); cursor: pointer; opacity: 0; transform: scale(.85); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.player__big .i { width: 20px; height: 20px; margin-left: 3px; }
.player.is-paused .player__big { opacity: 1; transform: none; pointer-events: auto; }
.player__expand { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; display: grid; place-items: center; background: rgba(10, 12, 18, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #FFFFFF; cursor: pointer; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .35s var(--ease), background-color .2s; }
.player__expand .i { width: 14px; height: 14px; }
.svc--video:hover .player__expand, .player__expand:focus-visible { opacity: 1; transform: none; }
.player__expand:hover { background: rgba(51, 102, 255, .8); }
.player__side { min-width: 0; display: flex; }
.tl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.tl__head, .tl__keys { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.tl__keys { margin-top: auto; }
.tl__rows { position: relative; display: flex; flex-direction: column; gap: 9px; }
.tl__row { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, .62); transition: color .3s; }
.svc--video:hover .tl__row { color: rgba(255, 255, 255, .85); }
.tl__lane { position: relative; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .045); }
.tl__lane i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: linear-gradient(90deg, #3366FF, #6F8FFF); }
.tl__lane i.alt { background: rgba(255, 255, 255, .2); }
.tl__lane i.dot { top: 3px; width: 8px; height: 8px; border-radius: 1px; background: #FFFFFF; transform: rotate(45deg); }
.tl__playhead { position: absolute; top: -5px; bottom: -5px; left: 70px; right: 0; pointer-events: none; transform: translateX(calc(var(--p, 0) * 100%)); }
.tl__playhead::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1.5px; background: #FF6B6B; box-shadow: 0 0 10px rgba(255, 107, 107, .7); }
.player__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.player__btn { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #FFFFFF; cursor: pointer; transition: background-color .2s, transform .2s; }
.player__btn:hover { background: rgba(255, 255, 255, .2); }
.player__btn:active { transform: scale(.92); }
.player__btn .i { grid-area: 1 / 1; width: 14px; height: 14px; }
.player__btn .i--play { display: none; }
.player.is-paused .player__btn .i--play { display: block; }
.player.is-paused .player__btn .i--pause { display: none; }
.player__track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.player__prog { display: block; height: 100%; background: #FFFFFF; transform-origin: left; transform: scaleX(var(--p, 0)); }
.player__clock { font-size: 11px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
@container (max-width: 400px) {
  .player__side { display: none; }
  .player { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .player__bar { justify-self: stretch; }
}

/* 02 — Workflow */
.wf-status { position: absolute; top: 12px; right: 14px; z-index: 5; display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); font-size: 10.5px; color: var(--accentText); }
.wf-status i { width: 6px; height: 6px; border-radius: 9px; background: var(--accent); animation: blinkDot .9s steps(2) infinite; }
.wf-status__run, .wf-status__done { grid-column: 2; grid-row: 1; transition: opacity .3s; }
.wf-status__done { opacity: 0; color: var(--ok); }
.s5 .wf-status__run { opacity: 0; }
.s5 .wf-status__done { opacity: 1; }
.s5 .wf-status i { background: var(--ok); animation: none; }
.wf { position: absolute; left: 22px; right: 22px; top: 104px; display: flex; align-items: stretch; transition: opacity .6s; }
.wf-link { align-self: center; }
.wf-node { position: relative; flex: 0 1 136px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); opacity: .5; transform: translateY(4px); transition: opacity .45s, transform .55s var(--ease), border-color .45s, box-shadow .45s; }
.wf-node__ic { width: 32px; height: 32px; margin-bottom: 8px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); transition: background-color .4s, color .4s, border-color .4s; }
.wf-node__ic .i { width: 16px; height: 16px; }
.wf-node__k { font-size: 12.5px; font-weight: 600; line-height: 1.25; max-width: 100%; }
.wf-node__s { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wf-node__ok { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; background: var(--okSoft); color: var(--ok); transform: scale(0); transition: transform .45s var(--spring); }
.wf-node__ok .i { width: 11px; height: 11px; stroke-width: 2.8; }
.wf-node--ai .wf-node__ic { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.wf-link { position: relative; flex: 1 1 0; min-width: 14px; height: 2px; margin: 0 6px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.wf-link i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease-io); }
.wf-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); transform: translateX(-100%); }
.s5 .wf-link::after { animation: flowline 1.4s var(--ease-io) infinite; }
@keyframes flowline { to { transform: translateX(100%); } }
/* nœud actif */
.s1 .wf-node[data-n="1"], .s2 .wf-node[data-n="2"], .s3 .wf-node[data-n="3"], .s4 .wf-node[data-n="4"] { opacity: 1; transform: none; border-color: var(--accentLine); box-shadow: 0 0 0 4px var(--accentSoft), var(--shadow-sm); }
.s1 .wf-node[data-n="1"] .wf-node__ic, .s3 .wf-node[data-n="3"] .wf-node__ic, .s4 .wf-node[data-n="4"] .wf-node__ic { background: var(--accentSoft); color: var(--accentText); border-color: var(--accentLine); }
.s2:not(.s3) .wf-node--ai .wf-node__ic .i { animation: spinSlow 1.6s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
/* nœud terminé */
.s2 .wf-node[data-n="1"], .s3 .wf-node[data-n="2"], .s4 .wf-node[data-n="3"], .s5 .wf-node[data-n="4"] { opacity: 1; transform: none; border-color: var(--line2); box-shadow: var(--shadow-sm); }
.s2 .wf-node[data-n="1"] .wf-node__ok, .s3 .wf-node[data-n="2"] .wf-node__ok, .s4 .wf-node[data-n="3"] .wf-node__ok, .s5 .wf-node[data-n="4"] .wf-node__ok { transform: scale(1); }
.s2 .wf-link[data-n="1"] i, .s3 .wf-link[data-n="2"] i, .s4 .wf-link[data-n="3"] i { clip-path: inset(0); }
.s6 .wf, .s6 .wf-log { opacity: 0; }
.svc--auto:hover .wf-node { box-shadow: var(--shadow); }
.wf-log { position: absolute; left: 22px; right: 22px; bottom: 22px; margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 11.5px; color: var(--muted); transition: opacity .6s; }
.wf-log li { opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-log li span { color: var(--accentText); }
.wf-log li span.ok { color: var(--ok); }
.s1 .wf-log li[data-n="1"], .s2 .wf-log li[data-n="2"], .s3 .wf-log li[data-n="3"], .s4 .wf-log li[data-n="4"] { opacity: 1; transform: none; }
@container (max-width: 520px) {
  .wf { flex-direction: column; align-items: stretch; top: 52px; }
  .wf-node { flex: none; display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 10px 12px; }
  .wf-node__ic { grid-row: 1 / 3; margin: 0; }
  .wf-link { flex: none; width: 2px; min-width: 0; height: 16px; margin: 0 0 0 27px; align-self: flex-start; }
  .wf-link i { clip-path: inset(0 0 100% 0); }
  .wf-link::after { display: none; }
  .wf-log { left: 16px; right: 16px; bottom: 16px; padding: 10px 12px; }
  .wf-log li:nth-child(-n+2) { display: none; }
}

/* 03 — Site web */
.bw { position: absolute; left: 22px; top: 46px; width: calc(100% - 44px); border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: 50% 100%; transition: transform .7s var(--ease); z-index: 1; }
.svc--web:hover .bw { transform: translateY(-4px) rotate(-.4deg); }
.bw__bar { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.bw__bar .wdots i { width: 7px; height: 7px; }
.bw__url { flex: 1; max-width: 200px; height: 21px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 7px; background: var(--bg2); font-size: 10.5px; color: var(--faint); }
.bw__url .i { width: 10px; height: 10px; }
.bw__live { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--ok); opacity: 0; transition: opacity .4s; }
.bw__live i { width: 6px; height: 6px; border-radius: 9px; background: var(--ok); }
.s5 .bw__live { opacity: 1; }
.bw__view { position: relative; aspect-ratio: 900 / 291; background: #F8F9FB; overflow: hidden; }
.bw__view > * { transition: opacity .6s; }
.bw__wire { position: absolute; inset: 0; }
.wb { position: absolute; display: block; border: 1px dashed rgba(31, 75, 255, .45); border-radius: 3px; background: rgba(31, 75, 255, .06); opacity: 0; transform: scale(.85); transform-origin: 0 50%; transition: opacity .4s, transform .6s var(--ease-out); }
.wb--nav { left: 1.5%; right: 1.5%; top: 2.5%; height: 8%; transition-delay: 0s; }
.wb--t1 { left: 19.5%; top: 24%; width: 20%; height: 8%; transition-delay: .1s; }
.wb--t2 { left: 19.5%; top: 36%; width: 25%; height: 8%; transition-delay: .16s; }
.wb--t3 { left: 19.5%; top: 48%; width: 24%; height: 8%; transition-delay: .22s; }
.wb--t4 { left: 19.5%; top: 60%; width: 22%; height: 8%; transition-delay: .28s; }
.wb--p1 { left: 19.5%; top: 68.5%; width: 30%; height: 3.5%; transition-delay: .34s; }
.wb--p2 { left: 19.5%; top: 74%; width: 22%; height: 3.5%; transition-delay: .38s; }
.wb--btn { left: 19.5%; top: 80%; width: 13.5%; height: 6%; transition-delay: .44s; }
.wb--card { left: 52.5%; top: 20.5%; width: 27.5%; height: 61%; transition-delay: .3s; }
.wb--c1 { left: 6%; top: 18%; width: 40%; height: 26%; }
.wb--c2 { left: 54%; top: 18%; width: 40%; height: 26%; }
.wb .wb { opacity: 1; transform: none; }
.s1 .wb { opacity: 1; transform: none; }
.bw__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease-io), opacity .6s; }
.s2 .bw__shot { clip-path: inset(0); }
.bw__scan { position: absolute; inset: 0; transform: translateX(-100%); opacity: 0; pointer-events: none; }
.bw__scan::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--accent); box-shadow: 0 0 14px 3px rgba(51, 102, 255, .55); }
.s2 .bw__scan { transform: none; opacity: 1; transition: transform 1.6s var(--ease-io), opacity .2s; }
.s3 .bw__scan { opacity: 0; }
.bw__cursor { position: absolute; left: 25%; top: 82%; width: 18px; height: 18px; color: #0B0D12; opacity: 0; transform: translate(120px, 40px); transition: transform 1s var(--ease-io), opacity .4s; --cursorStroke: #FFFFFF; z-index: 2; }
.bw__cursor .i { width: 18px; height: 18px; }
.bw__ripple { position: absolute; left: -10px; top: -10px; width: 22px; height: 22px; border-radius: 99px; border: 2px solid var(--accent); opacity: 0; }
.s3 .bw__cursor { opacity: 1; transform: none; }
.s4 .bw__cursor .i { animation: press .35s var(--ease); }
.s4 .bw__ripple { animation: ripple .8s var(--ease-out); }
@keyframes press { 50% { transform: scale(.8); } }
@keyframes ripple { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }
.s6 .bw__view > * { opacity: 0; }
.ph { position: absolute; right: 26px; top: 176px; width: 112px; aspect-ratio: 9 / 19; padding: 5px; border: 1px solid var(--line2); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 2; opacity: 0; transform: translateY(18px) rotate(2deg); transition: opacity .6s, transform .9s var(--ease-out); }
.s2 .ph { opacity: 1; transform: none; transition-delay: .5s; }
.svc--web:hover .ph { transform: translateY(-6px) rotate(-1deg); }
.s6 .ph { opacity: 0; }
.ph__screen { position: relative; height: 100%; padding: 26px 9px 9px; border-radius: 15px; background: #F8F9FB; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.ph__screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30px; height: 5px; margin-left: -15px; border-radius: 9px; background: #DCDFE5; }
.pb { display: block; flex: none; border-radius: 3px; background: #E3E6EB; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out); }
.pb--nav { height: 6px; width: 40%; margin-bottom: 6px; }
.pb--t { height: 7px; background: #15171C; }
.pb--p { height: 3.5px; }
.pb--btn { height: 13px; width: 70%; margin-top: 4px; border-radius: 4px; background: #6D3BEB; }
.pb--card { flex: 1; margin-top: 6px; border: 1px solid #E3E6EB; background: #FFFFFF; border-radius: 6px; }
.s2 .pb { opacity: 1; transform: none; }
.s2 .pb:nth-child(2) { transition-delay: .65s; } .s2 .pb:nth-child(3) { transition-delay: .7s; } .s2 .pb:nth-child(4) { transition-delay: .75s; } .s2 .pb:nth-child(5) { transition-delay: .8s; } .s2 .pb:nth-child(6) { transition-delay: .85s; } .s2 .pb:nth-child(7) { transition-delay: .9s; } .s2 .pb:nth-child(8) { transition-delay: .95s; } .s2 .pb:nth-child(9) { transition-delay: 1s; }
.bw-checks { position: absolute; left: 26px; bottom: 76px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bw-checks li { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); }
.bw-checks .i { width: 16px; height: 16px; padding: 3px; border-radius: 99px; background: var(--okSoft); color: var(--ok); stroke-width: 3; }
.s5 .bw-checks li { opacity: 1; transform: none; }
.s5 .bw-checks li:nth-child(2) { transition-delay: .12s; }
.s5 .bw-checks li:nth-child(3) { transition-delay: .24s; }
.s6 .bw-checks li { opacity: 0; }
.bw-steps { position: absolute; left: 22px; right: 168px; bottom: 22px; margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; font-size: 10.5px; color: var(--faint); }
.bw-steps li { flex: 1; display: flex; flex-direction: column; gap: 7px; transition: color .3s; }
.bw-steps li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line2); transition: background-color .4s; }
.s1 .bw-steps li[data-n="1"], .s2 .bw-steps li[data-n="2"], .s5 .bw-steps li[data-n="3"] { color: var(--ink); }
.s1 .bw-steps li[data-n="1"]::before, .s2 .bw-steps li[data-n="2"]::before, .s5 .bw-steps li[data-n="3"]::before { background: var(--accent); }
@container (min-width: 560px) {
  .bw { width: calc(100% - 200px); max-width: 620px; }
  .ph { right: 40px; width: 140px; top: 64px; }
  .bw-steps { right: 200px; }
}
@container (max-width: 360px) {
  .ph { width: 88px; top: 150px; right: 16px; }
  .bw-steps { right: 22px; }
  .bw-checks { font-size: 11.5px; bottom: 80px; }
}

/* ── nat-web mini site (viz-web) ── */
.svc--web .bw { position: relative; left: auto; top: auto; width: auto; max-width: none; margin: 48px 24px 24px; }
.svc--web .bw__live { opacity: 1; }
.svc--web .bw__view { aspect-ratio: 900 / 500; background: #0D1117; container-type: inline-size; }
.nw { display: flex; flex-direction: column; width: 100%; height: 100%; background: #0D1117; color: #f0f6fc; overflow: hidden; }
.nw__nav { display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 46px; border-bottom: 1px solid rgba(240,246,252,.07); flex-shrink: 0; }
.nw__logo { display: flex; align-items: center; gap: 8px; }
.nw__badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border: 1.5px solid #2D6BE4; border-radius: 4px; color: #2D6BE4; letter-spacing: .02em; font-family: 'Courier New',monospace; line-height: 1.4; }
.nw__wordmark { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #f0f6fc; }
.nw__navlinks { display: flex; gap: 20px; flex: 1; }
.nw__navlinks span { font-size: 10px; color: rgba(240,246,252,.5); }
.nw__navcta { font-size: 10px; font-weight: 500; padding: 6px 14px; background: #2D6BE4; color: #fff; border-radius: 6px; white-space: nowrap; }
.nw__hero { display: flex; flex: 1; padding: 36px 28px 24px; gap: 24px; align-items: center; min-height: 0; }
.nw__copy { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nw__eyebrow { font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,246,252,.35); }
.nw__h1 { font-size: 34px; font-weight: 500; line-height: 1.08; letter-spacing: -.04em; color: #f0f6fc; margin: 0; }
.nw__h1 em { color: #2D6BE4; font-style: normal; }
.nw__sub { font-size: 11px; color: rgba(240,246,252,.5); line-height: 1.65; margin: 0; max-width: 380px; }
.nw__btns { display: flex; gap: 10px; align-items: center; }
.nw__btn { font-size: 10px; font-weight: 500; padding: 7px 16px; border-radius: 6px; }
.nw__btn--fill { background: #2D6BE4; color: #fff; }
.nw__btn--out { border: 1px solid rgba(240,246,252,.18); color: rgba(240,246,252,.75); }
.nw__visual { flex: 0 0 220px; display: flex; justify-content: center; align-items: center; }
.nw__card { width: 150px; height: 160px; background: rgba(45,107,228,.07); border: 1px solid rgba(45,107,228,.2); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.nw__bigbadge { font-size: 44px; font-weight: 700; color: #2D6BE4; font-family: 'Courier New',monospace; letter-spacing: -.05em; line-height: 1; }
.nw__cardline { width: 60%; height: 1px; background: rgba(45,107,228,.25); }
.nw__cardtag { font-size: 8px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(240,246,252,.35); }
.nw__strip { display: flex; border-top: 1px solid rgba(240,246,252,.07); flex-shrink: 0; }
.nw__stripitem { flex: 1; display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-right: 1px solid rgba(240,246,252,.07); }
.nw__stripitem:last-child { border-right: none; }
.nw__stripn { font-size: 9px; font-weight: 500; color: #2D6BE4; font-family: 'Courier New',monospace; flex-shrink: 0; }
.nw__stripitem > span:last-child { font-size: 10px; color: rgba(240,246,252,.5); }
@container (max-width: 620px) {
  .nw__navlinks span, .nw__visual, .nw__btn--out, .nw__eyebrow { display: none; }
  .nw__navlinks { flex: 1; }
  .nw__nav { padding: 0 12px; height: 34px; gap: 8px; }
  .nw__navcta { padding: 5px 10px; }
  .nw__hero { padding: 14px; }
  .nw__copy { gap: 8px; }
  .nw__h1 { font-size: 20px; }
  .nw__sub { font-size: 10px; line-height: 1.5; }
  .nw__stripitem { padding: 8px 12px; }
  .nw__stripitem:nth-child(n+3) { display: none; }
}
@media (max-width: 760px) { .svc--web .bw { margin: 44px 16px 16px; } .svc--web .bw__view { aspect-ratio: 4 / 3.4; } }

/* 04 — CRM */
.crm { position: absolute; inset: 44px 18px 18px; display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; font-size: 12px; transition: transform .6s var(--ease), box-shadow .6s; }
.svc--crm:hover .crm { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.crm__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.crm__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm__title b { font-size: 13px; font-weight: 600; }
.crm__logo { flex: none; width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(145deg, var(--accent), var(--accent2)); }
.crm__count { display: inline-grid; overflow: hidden; padding: 2px 8px; border: 1px solid var(--line2); border-radius: 999px; font-size: 10.5px; color: var(--faint); }
.c-old, .c-new { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .4s; }
.c-new { transform: translateY(100%); opacity: 0; color: var(--accentText); }
.s2 .c-old { transform: translateY(-100%); opacity: 0; }
.s2 .c-new { transform: none; opacity: 1; }
.s4 .c-old { transform: none; opacity: 1; }
.s4 .c-new { transform: translateY(100%); opacity: 0; }
.crm__view { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--accentText); white-space: nowrap; }
.crm__view .i { width: 12px; height: 12px; }
.crm__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.crm-stat { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg2); }
.crm-stat__k { font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-stat__v { font-size: 12px; font-weight: 600; min-height: 15px; }
.crm-stat__v--warn { color: var(--warn); }
.crm-stat__live { display: inline-flex; align-items: center; gap: 6px; color: var(--accentText); opacity: 0; transition: opacity .4s; }
.crm-stat__live i { width: 6px; height: 6px; border-radius: 9px; background: var(--accent); animation: live 1.6s infinite; }
.s1 .crm-stat__live { opacity: 1; }
.s4 .crm-stat__live { opacity: 0; }
.crm-stat__bar { display: flex; gap: 3px; height: 6px; margin-top: 4px; }
.crm-stat__bar i { width: var(--w); border-radius: 3px; background: var(--accent); transform-origin: left; }
.crm-stat__bar i:nth-child(2) { background: var(--accent2); }
.crm-stat__bar i:nth-child(3) { background: var(--ok); }
.s2 .crm-stat__bar i:first-child { animation: barNudge .8s var(--ease); }
@keyframes barNudge { 50% { transform: scaleX(1.15); } }
.crm__main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.crm__table { min-width: 0; border-right: 1px solid var(--line); overflow: hidden; }
.crm__thead, .crm-row { display: grid; grid-template-columns: 1.35fr 1.35fr .85fr .8fr; gap: 8px; align-items: center; padding: 0 14px; }
.crm__thead { position: relative; z-index: 1; height: 26px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.crm__rows { transform: translateY(-36px); transition: transform .7s var(--ease-out); }
.s1 .crm__rows { transform: none; }
.s4 .crm__rows { transform: translateY(-36px); }
.crm-row { height: 36px; border-bottom: 1px solid var(--line); transition: background-color .5s; }
.crm-row:hover { background: var(--bg2); }
.crm-row__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm-row__role { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-row--new { opacity: 0; transition: opacity .5s, background-color .6s; }
.s1 .crm-row--new { opacity: 1; background: var(--accentSoft); }
.s3 .crm-row--new { background: transparent; }
.s4 .crm-row--new { opacity: 0; }
.redact { display: block; height: 7px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--line2) 0 3px, var(--bg2) 3px 6px); }
.crm-row__who .redact { flex: 1; max-width: 80px; }
.av { flex: none; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--accentSoft); color: var(--accentText); font: 600 8.5px/1 var(--font); font-style: normal; }
.av--accent { background: var(--accent); color: #FFFFFF; }
.av--lg { width: 34px; height: 34px; font-size: 12px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.av--lg.av--accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.st { display: inline-block; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.st--new { background: var(--accent); color: #FFFFFF; }
.st--qual { background: var(--accentSoft); color: var(--accentText); }
.st--client { background: var(--okSoft); color: var(--ok); }
.st--warn { background: var(--warnSoft); color: var(--warn); }
.st--muted { border-color: var(--line2); color: var(--muted); }
.st--hot { background: var(--accent); color: #FFFFFF; }
.crm__pipe { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; background: var(--bg2); }
.pcol { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pcol__h { font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 2px 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard { display: flex; align-items: center; gap: 5px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.pcard .av { width: 16px; height: 16px; font-size: 6.5px; }
.pcard .redact { flex: 1; height: 5px; }
.pcard--won { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.pcard--new { opacity: 0; transform: translateY(-10px) scale(.94); transition: opacity .4s, transform .6s var(--spring), border-color .5s, box-shadow .5s; }
.s2 .pcard--new { opacity: 1; transform: none; border-color: var(--accentLine); box-shadow: 0 0 0 3px var(--accentSoft); }
.s3 .pcard--new { box-shadow: none; }
.s4 .pcard--new { opacity: 0; }
@container (max-width: 560px) {
  .crm__main { grid-template-columns: minmax(0, 1fr); }
  .crm__pipe { display: none; }
  .crm__table { border-right: 0; }
}
@container (max-width: 420px) {
  .hide-xs, .crm-stat--hide-sm { display: none; }
  .crm__thead, .crm-row { grid-template-columns: 1.2fr 1.4fr .9fr; }
  .crm__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm__view { display: none; }
}

/* ---------- Promesse ---------- */
.promise__t { margin: 0; max-width: 1050px; font-weight: 300; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.12; letter-spacing: -.04em; }
.promise__t b { font-weight: 650; }
.promise__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 80px; }
.promise__col { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.promise__col h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.promise__col p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.promise__col .tags { margin-top: 6px; padding-top: 0; }
.promise__col .tag { font-size: 14px; padding: 8px 14px; }

/* ---------- Solutions ---------- */
.sol { overflow-x: clip; }
.sol__halo { position: absolute; left: 50%; top: 360px; width: 1200px; height: 760px; margin-left: -600px; background: radial-gradient(closest-side, var(--glow2), transparent); pointer-events: none; }
.sol__bar { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.sol__tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sol-tab { position: relative; min-height: 70px; padding: 16px 16px 18px 0; border: 0; background: none; text-align: left; color: var(--faint); font-size: 15px; font-weight: 500; cursor: pointer; transition: color .25s; }
.sol-tab:hover, .sol-tab[aria-selected="true"] { color: var(--ink); }
.sol-tab:focus-visible { outline-offset: -2px; }
.sol-tab__n { display: block; margin-bottom: 4px; font-size: 12px; color: var(--faint); transition: color .25s; }
.sol-tab[aria-selected="true"] .sol-tab__n { color: var(--accentText); }
.sol-tab__l { display: block; }
.sol-tab__bar { position: absolute; left: 0; right: 14px; top: -1px; height: 2px; overflow: hidden; border-radius: 2px; transition: background-color .3s; }
.sol-tab[aria-selected="true"] .sol-tab__bar { background: var(--line2); }
.sol-tab__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.sol-tab[aria-selected="true"] .sol-tab__bar i { box-shadow: 0 0 10px var(--accent); }
.sol__play { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.sol__play:hover { border-color: var(--ink); color: var(--ink); }
.sol__play .i { width: 13px; height: 13px; }
.sol__play .i--play { display: none; }
.sol__play[aria-pressed="true"] .i--play { display: block; }
.sol__play[aria-pressed="true"] .i--pause { display: none; }
.sol__panels { display: grid; margin-top: 40px; }
/* Changement d'onglet : glissé directionnel + flou (sens posé en JS via style inline) */
.sol-panel { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 56px; align-items: start; opacity: 0; visibility: hidden; transform: translateX(48px); filter: blur(8px); transition: opacity .4s var(--ease), transform .6s var(--ease-io), filter .45s var(--ease), visibility 0s .6s; }
.sol-panel.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .6s var(--ease) .12s, transform .95s var(--ease-out) .12s, filter .6s var(--ease) .12s, visibility 0s; }
.sol-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.sol-copy > * { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease-out); }
.sol-panel.is-active .sol-copy > * { opacity: 1; transform: none; }
.sol-panel.is-active .sol-copy > :nth-child(1) { transition-delay: .15s; }
.sol-panel.is-active .sol-copy > :nth-child(2) { transition-delay: .23s; }
.sol-panel.is-active .sol-copy > :nth-child(3) { transition-delay: .31s; }
.sol-copy__t { margin: 0; font-weight: 600; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.sol-copy__p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.benefits { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.benefits li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.benefits .i { width: 16px; height: 16px; color: var(--accentText); stroke-width: 2.2; }
.sol-stage { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg2); container-type: inline-size; }
.app { position: relative; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.app__body { position: relative; height: 400px; }
.tracker { display: flex; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 10.5px; color: var(--faint); }
.tracker li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .35s; }
.tracker li::before { content: ""; flex: none; height: 3px; border-radius: 3px; background: var(--line2); transition: background-color .45s; }
.s1 .tracker li:nth-child(1), .s2 .tracker li:nth-child(2), .s3 .tracker li:nth-child(3), .s4 .tracker li:nth-child(4), .s5 .tracker li:nth-child(5), .s6 .tracker li:nth-child(6), .s7 .tracker li:nth-child(6) { color: var(--ink); }
.s1 .tracker li:nth-child(1)::before, .s2 .tracker li:nth-child(2)::before, .s3 .tracker li:nth-child(3)::before, .s4 .tracker li:nth-child(4)::before, .s5 .tracker li:nth-child(5)::before, .s6 .tracker li:nth-child(6)::before, .s7 .tracker li:nth-child(6)::before { background: var(--accent); }
.sol__note { margin: 14px 0 0; text-align: right; font-size: 11px; color: var(--faint); min-height: 16px; }
.sol__paused { opacity: 0; transition: opacity .3s; }
.sol.is-hover-paused .sol__paused { opacity: 1; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accentSoft); color: var(--accentText); font-size: 12px; font-weight: 600; }
.ai-chip .i { width: 13px; height: 13px; }
.ai-chip--sm { padding: 3px 8px; font-size: 10.5px; }
.ai-chip--sm .i { width: 11px; height: 11px; }

/* Démo 1 — qualification */
.lead-app { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.lead-list { position: relative; border-right: 1px solid var(--line); overflow: hidden; }
.lead-list__h { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.lead-list__h b { font-weight: 600; }
.lead-list__h span { font-size: 11px; color: var(--faint); }
.lead { position: relative; height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; transform: translateY(-66px); transition: transform .8s var(--ease-out), background-color .6s; }
.s1 .lead { transform: none; }
.lead__txt { flex: 1; min-width: 0; }
.lead__txt b { display: block; font-size: 13.5px; font-weight: 550; }
.lead__txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__st { display: grid; justify-items: end; }
.lead__st > .st { grid-area: 1 / 1; }
.lead--new { opacity: 0; transition: transform .8s var(--ease-out), opacity .5s, background-color .6s; }
.lead--new::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transition: transform .5s var(--ease); }
.s1 .lead--new { opacity: 1; background: var(--accentSoft); }
.s2 .lead--new::before { transform: scaleY(1); }
.lead--new .st { opacity: 0; transform: scale(.85); transition: opacity .3s, transform .45s var(--spring); }
.s1 .st-a { opacity: 1; transform: none; }
.s2 .st-a { opacity: 0; }
.s2 .st-b { opacity: 1; transform: none; }
.s4 .st-b { opacity: 0; }
.s4 .st-c { opacity: 1; transform: none; }
.lead__crm { position: absolute; right: 16px; bottom: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ok); opacity: 0; transform: translateY(3px); transition: opacity .4s, transform .5s var(--ease); }
.lead__crm .i { width: 11px; height: 11px; stroke-width: 2.6; }
.s5 .lead__crm { opacity: 1; transform: none; }
.lead-ai { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--surface); overflow: hidden; opacity: 0; transform: translateX(18px); transition: opacity .6s, transform .8s var(--ease-out); }
.s2 .lead-ai { opacity: 1; transform: none; }
.lead-ai__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-ai__src { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.lead-ai__q { margin: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.lead-ai__q mark { padding: 0 2px; border-radius: 3px; color: inherit; background: linear-gradient(var(--accentSoft), var(--accentSoft)) no-repeat 0 0 / 0 100%; transition: background-size .6s var(--ease), color .4s; }
.s2 .lead-ai__q mark { background-size: 100% 100%; color: var(--ink); }
.s2 .lead-ai__q mark:nth-of-type(1) { transition-delay: .5s; }
.s2 .lead-ai__q mark:nth-of-type(2) { transition-delay: .85s; }
.s2 .lead-ai__q mark:nth-of-type(3) { transition-delay: 1.2s; }
.lead-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xchip { padding: 4px 8px; border: 1px solid var(--line2); border-radius: 7px; font-size: 11px; color: var(--ink); opacity: 0; transform: translateY(6px) scale(.95); transition: opacity .35s, transform .5s var(--spring); }
.xchip b { margin-right: 5px; font-weight: 500; color: var(--faint); }
.s3 .xchip { opacity: 1; transform: none; }
.s3 .xchip:nth-child(2) { transition-delay: .12s; }
.s3 .xchip:nth-child(3) { transition-delay: .24s; }
.score { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; opacity: 0; transform: translateY(8px); transition: opacity .4s .3s, transform .6s var(--ease-out) .3s, border-color .5s; }
.s3 .score { opacity: 1; transform: none; }
.s4 .score { border-color: var(--accentLine); }
.score__ring { flex: none; width: 48px; height: 48px; transform: rotate(-90deg); }
.score__ring circle { fill: none; stroke-width: 4; }
.score__bg { stroke: var(--line); }
.score__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease-io) .3s; }
.s3 .score__fg { stroke-dashoffset: 18; }
.score__v { position: absolute; left: 12px; top: 50%; width: 48px; margin-top: -10px; text-align: center; font-size: 14px; font-weight: 650; line-height: 20px; }
.score__v small { display: none; }
.score__l b { display: block; font-size: 13px; font-weight: 600; }
.score__l small { display: block; font-size: 11.5px; color: var(--faint); }
.scan-sheen { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--accentSoft) 50%, transparent); transform: translateY(-100%); opacity: 0; pointer-events: none; }
.s2:not(.s4) .scan-sheen { opacity: 1; animation: sheen 1.7s var(--ease-io) infinite; }
@keyframes sheen { to { transform: translateY(100%); } }
.toasts { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 12.5px; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s var(--ease), transform .65s var(--spring); }
.toast b { display: block; font-weight: 600; }
.toast small { display: block; font-size: 11.5px; opacity: .72; }
.toast__ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 16%, transparent); }
.toast__ic .i { width: 15px; height: 15px; }
.toast--accent { background: var(--accent); color: #FFFFFF; }
.toast--accent .toast__ic { background: rgba(255, 255, 255, .18); }
.s5 .toast--a, .s6 .toast--b { opacity: 1; transform: none; }
@container (max-width: 600px) {
  .lead-app { grid-template-columns: minmax(0, 1fr); }
  .lead-list { border-right: 0; }
  .lead-ai { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; border-top: 1px solid var(--line2); border-radius: 14px 14px 0 0; box-shadow: 0 -24px 40px -24px rgba(0, 0, 0, .45); transform: translateY(102%); opacity: 1; gap: 10px; padding: 14px; }
  .lead-ai__q { display: none; }
  .toasts { left: auto; right: 12px; bottom: auto; top: 54px; align-items: flex-end; }
}

/* Démo 2 — assistant */
.chat-app { display: grid; grid-template-columns: minmax(0, 1fr) 196px; }
.chat { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.chat__h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat__avatar { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); }
.chat__avatar svg { width: 15px; height: 15px; fill: none; stroke: var(--bg); stroke-linecap: round; }
.chat__who { min-width: 0; }
.chat__who b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chat__who small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ok); }
.chat__who small i { width: 6px; height: 6px; border-radius: 9px; background: var(--ok); }
.chat__ch { margin-left: auto; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }
.chat__ch span { padding: 3px 7px; border-radius: 6px; color: var(--faint); }
.chat__ch .on { background: var(--bg2); color: var(--ink); box-shadow: var(--shadow-sm); }
.chat__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow: hidden; }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .4s var(--ease), transform .55s var(--spring); }
.msg--in { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); border-bottom-left-radius: 4px; transform-origin: 0 100%; }
.msg--out { align-self: flex-end; background: var(--accent); color: #FFFFFF; border-bottom-right-radius: 4px; transform-origin: 100% 100%; }
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.slot .msg--out { justify-self: end; }
.typing { justify-self: end; align-self: end; display: flex; gap: 4px; padding: 11px 13px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); opacity: 0; transition: opacity .3s; }
.typing span { width: 5px; height: 5px; border-radius: 9px; background: var(--faint); animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }
.chat__sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); color: var(--faint); opacity: 0; transition: opacity .4s; }
.chat__sys .i { width: 12px; height: 12px; color: var(--accentText); }
.quick { display: flex; justify-content: flex-end; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .4s .25s, transform .5s var(--ease) .25s; }
.quick__b { padding: 5px 10px; border: 1px solid var(--accentLine); border-radius: 999px; background: var(--surface); color: var(--accentText); font-size: 11.5px; transition: background-color .3s, color .3s, transform .3s var(--spring); }
.chat__done { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--okSoft); color: var(--ok); font-size: 12px; font-weight: 500; opacity: 0; transform: scale(.94); transition: opacity .4s, transform .5s var(--spring); }
.chat__done .i { width: 13px; height: 13px; stroke-width: 2.6; }
.s1 .m1, .s3 .m3, .s5 .m5, .s6 .m6 { opacity: 1; transform: none; }
.s2 .m2, .s7 .m7 { opacity: 1; transform: none; }
.s2 .ty1 { opacity: 1; }
.s3 .ty1 { opacity: 0; }
.s4 .q1 { background: var(--accent); color: #FFFFFF; transform: scale(.95); }
.s5 .ty2 { opacity: 1; transition-delay: .55s; }
.s6 .ty2 { opacity: 0; transition-delay: 0s; }
.agenda { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--bg2); }
.agenda__h { display: flex; flex-direction: column; gap: 1px; }
.agenda__h b { font-size: 12.5px; font-weight: 600; }
.agenda__h span { font-size: 10px; color: var(--faint); }
.agenda__grid { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(5, minmax(0, 1fr)); gap: 4px; }
.agenda__d { padding-bottom: 2px; text-align: center; font-size: 10px; color: var(--faint); }
.agenda__d.is-day { color: var(--accentText); font-weight: 600; }
.ab { min-height: 0; border-radius: 5px; background: var(--line); }
.ab--slot { background: transparent; border: 1px dashed var(--line2); transition: border-color .4s, background-color .4s; }
.s2 .ab--slot { border-color: var(--accentLine); background: var(--accentSoft); }
.s7 .ab--slot { border-color: transparent; background: transparent; }
.ab--new { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 5px; overflow: hidden; background: var(--accent); color: #FFFFFF; opacity: 0; transform: translateY(-16px) scale(.9); transition: opacity .4s, transform .65s var(--spring); }
.ab--new b { font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.ab--new small { font-size: 8px; opacity: .85; }
.s7 .ab--new { opacity: 1; transform: none; box-shadow: 0 8px 20px -8px var(--glow); }
.agenda__note { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ok); opacity: 0; transition: opacity .4s .5s; }
.agenda__note .i { width: 12px; height: 12px; }
.s7 .agenda__note { opacity: 1; }
@container (max-width: 600px) {
  .chat-app { grid-template-columns: minmax(0, 1fr); }
  .chat { border-right: 0; }
  .agenda { display: none; }
  .chat__ch span:not(.on) { display: none; }
}

/* Démo 3 — documents */
.doc-app { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.doc-left { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-right: 1px solid var(--line); background: var(--bg2); }
.mailrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); font-size: 12px; opacity: 0; transform: translateY(-8px); transition: opacity .45s, transform .6s var(--spring); }
.s1 .mailrow { opacity: 1; transform: none; }
.s3 .mailrow { opacity: .55; }
.mailrow__ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accentSoft); color: var(--accentText); }
.mailrow__ic .i { width: 14px; height: 14px; }
.mailrow__t { min-width: 0; }
.mailrow__t b { display: block; font-size: 12px; font-weight: 600; }
.mailrow__t small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.mailrow__t small .i { width: 11px; height: 11px; }
.mailrow__time { margin-left: auto; font-size: 10px; color: var(--faint); white-space: nowrap; }
.docwrap { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; }
.doc { position: relative; width: 100%; max-width: 230px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.95); transform-origin: 50% 100%; transition: opacity .5s, transform .8s var(--ease-out); }
.s2 .doc { opacity: 1; transform: none; }
.s5 .doc { opacity: 0; transform: translateY(150px) scale(.2); transition: transform .9s var(--ease-io), opacity .4s .5s; }
.doc__h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.doc__h b { font-weight: 600; }
.doc__h span { font-size: 10px; color: var(--faint); }
.dl { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.doc__tbl { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc__tbl .dl { width: 100%; }
.doc__tbl .dl--total { width: 42%; align-self: flex-end; background: var(--accent); }
.hl { position: absolute; border: 1.5px solid var(--accent); border-radius: 4px; background: var(--accentSoft); opacity: 0; transform: scale(1.12); transition: opacity .35s, transform .5s var(--spring); }
.hl--1 { left: 9px; top: 36px; width: 60%; height: 14px; }
.hl--2 { left: 9px; top: 50px; width: 80%; height: 14px; }
.hl--3 { right: 9px; bottom: 9px; width: 46%; height: 14px; }
.hl--4 { left: 9px; top: 64px; width: 47%; height: 14px; }
.s3 .hl { opacity: 1; transform: none; }
.s3 .hl--2 { transition-delay: .5s; }
.s3 .hl--3 { transition-delay: 1s; }
.s3 .hl--4 { transition-delay: 1.5s; }
.s4 .hl { opacity: .35; }
.doc__beam { position: absolute; left: 0; right: 0; top: 0; height: 38px; border-bottom: 2px solid var(--accent); background: linear-gradient(180deg, transparent, rgba(51, 102, 255, .2)); transform: translateY(-110%); opacity: 0; }
.s2:not(.s4) .doc__beam { opacity: 1; animation: beam 1.5s var(--ease-io) infinite; }
@keyframes beam { from { transform: translateY(-110%); } to { transform: translateY(360%); } }
.dfolder { position: absolute; left: 50%; bottom: 2px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); font-size: 10.5px; color: var(--muted); white-space: nowrap; opacity: 0; transform: translateX(-50%) translateY(10px); transition: opacity .45s, transform .6s var(--ease-out), border-color .4s; }
.dfolder__ic { color: var(--accentText); display: grid; transition: transform .5s var(--spring), color .3s; }
.dfolder__ic .i { width: 18px; height: 18px; }
.s4 .dfolder { opacity: 1; transform: translateX(-50%); }
.s5 .dfolder__ic { transform: scale(1.18); transition-delay: .7s; }
.s6 .dfolder { border-color: color-mix(in srgb, var(--ok) 50%, var(--line2)); }
.s6 .dfolder__ic { color: var(--ok); transform: none; }
.fields { min-width: 0; display: flex; flex-direction: column; }
.fields__h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.fields__h b { font-weight: 600; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; transition: background-color .4s; }
.frow__k { color: var(--muted); }
.frow__v { font: 500 12px var(--mono); clip-path: inset(0 100% 0 0); transition: clip-path .7s steps(12); }
.s3 .frow__v { clip-path: inset(0); transition-delay: calc(var(--k) * .5s); }
.frow__ck { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; background: var(--okSoft); color: var(--ok); transform: scale(0); transition: transform .45s var(--spring); }
.frow__ck .i { width: 12px; height: 12px; stroke-width: 2.8; }
.s4 .frow__ck { transform: scale(1); transition-delay: calc(var(--k) * .12s); }
.verify { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; opacity: 0; transform: translateY(6px); transition: opacity .4s .55s, transform .55s var(--ease) .55s; }
.verify > .i { color: var(--ok); }
.verify b { display: block; font-weight: 600; }
.verify small { display: block; font-size: 11px; color: var(--muted); }
.verify__ok { margin-left: auto; padding: 3px 7px; border-radius: 6px; background: var(--okSoft); color: var(--ok); font-size: 10px; }
.s4 .verify { opacity: 1; transform: none; }
.fields__done { display: flex; align-items: center; gap: 8px; margin: auto 16px 16px; padding: 11px 13px; border-radius: 10px; background: var(--accentSoft); color: var(--accentText); font-size: 12.5px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .6s var(--spring); }
.fields__done .i { width: 15px; height: 15px; }
.s6 .fields__done { opacity: 1; transform: none; }
@container (max-width: 600px) {
  .doc-app { grid-template-columns: minmax(0, 1fr); }
  .doc-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .docwrap { min-height: 200px; }
  .doc { max-width: 210px; }
  .fields__done { margin-top: 14px; }
}
@container (max-width: 440px) {
  .app__sub { display: none; }
}

/* Démo 4 — reporting */
.rep-app { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.rep-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rep-h b { display: block; font-size: 13.5px; font-weight: 600; }
.rep-h small { display: block; font-size: 11.5px; color: var(--faint); }
.rep-h__tag { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .55s var(--ease-out); transition-delay: calc(var(--k) * .08s); }
.kpi__k, .kpi__v { grid-column: 1; }
.kpi__k { font-size: 10px; color: var(--faint); }
.kpi__v { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__v--up { color: var(--ok); }
.kpi__spark { grid-column: 2; grid-row: 1 / 3; width: 50px; height: 22px; align-self: center; overflow: visible; }
.kpi__spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease); transition-delay: calc(.3s + var(--k) * .1s); }
.s1 .kpi { opacity: 1; transform: none; }
.s1 .kpi__spark path { stroke-dashoffset: 0; }
.chart { display: flex; flex-direction: column; gap: 6px; }
.chart__plot { position: relative; height: 112px; border-bottom: 1px solid var(--line); }
.chart__gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--line); }
.bars { position: absolute; inset: 0 4px; display: flex; align-items: flex-end; gap: 10px; }
.bar { position: relative; flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: var(--line2); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease-out), background-color .5s; transition-delay: calc(var(--k) * .07s), 0s; }
.s2 .bar { transform: none; }
.s3 .bar--hi { background: var(--accent); }
.bar__tip { position: absolute; left: 50%; bottom: calc(100% + 6px); padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 9.5px; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: opacity .4s .6s, transform .5s var(--ease) .6s; }
.s3 .bar__tip { opacity: 1; transform: translate(-50%, 0); }
.chart__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__line path { fill: none; stroke: var(--accentText); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease-io); }
.s3 .chart__line path { stroke-dashoffset: 0; }
.chart__x { display: flex; gap: 10px; padding: 0 4px; font-size: 10px; color: var(--faint); }
.chart__x span { flex: 1; text-align: center; }
.synth { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .55s var(--ease-out), border-color .5s; }
.s4 .synth { opacity: 1; transform: none; border-color: var(--accentLine); }
.s5 .synth { border-color: var(--line); }
.synth__ic { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); }
.synth__ic svg { width: 12px; height: 12px; fill: none; stroke: var(--bg); stroke-linecap: round; }
.synth__t { margin: 0; min-height: 3em; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.synth__t b { color: var(--ink); font-weight: 550; }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blinkDot 1s steps(1) infinite; }
.s5 .caret { display: none; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.send__btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.send__btn .i { width: 13px; height: 13px; }
.send__fill { position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-io) .25s; }
.send__l2 { display: none; }
.s5 .send__btn { opacity: 1; transform: none; color: #FFFFFF; }
.s5 .send__fill { transform: scaleX(1); }
.send__done { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); }
.send__done .i { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.4; }
.s6 .send__done { opacity: 1; transform: none; }
@container (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi--hide-sm, .kpi__spark { display: none; }
  .bars { gap: 6px; }
  .chart__x { gap: 6px; }
}

/* ---------- Méthode ---------- */
.method { padding-bottom: 136px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps__rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line2); }
.steps__rail i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-io) .2s; }
.steps.is-in .steps__rail i { clip-path: inset(0); }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.step__dot { position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 99px; border: 2px solid var(--line2); background: var(--bg); transition: border-color .4s, background-color .4s, box-shadow .4s, transform .4s var(--spring); }
.steps.is-in .step__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accentSoft); }
.steps.is-in .step:nth-child(2) .step__dot { transition-delay: .2s; }
.steps.is-in .step:nth-child(3) .step__dot { transition-delay: .7s; }
.steps.is-in .step:nth-child(4) .step__dot { transition-delay: 1.2s; }
.steps.is-in .step:nth-child(5) .step__dot { transition-delay: 1.7s; }
.step:hover .step__dot { transform: scale(1.3); }
.step__n { font-size: 13px; color: var(--accentText); }
.step h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Contact & clôture ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--bg2); border-top: 1px solid var(--line); }
.contact__halo { display: none; }
.contact__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; padding-top: 120px; padding-bottom: 120px; }
.contact__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 12px; }
.contact__intro .eyebrow { margin: 0; }
.contact__p { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact__dl { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 16px 0 0; font-size: 15px; }
.contact__dl div { display: flex; flex-direction: column; gap: 4px; }
.contact__dl dt { font-size: 13px; color: var(--faint); }
.contact__dl dd { margin: 0; font-weight: 500; }
/* Formulaire de contact */
.cform { position: relative; border: 1px solid var(--line2); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.cform__head { display: flex; align-items: flex-start; gap: 14px; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.cform__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accentSoft); color: var(--accentText); }
.cform__t { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cform__s { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.cform__body { display: flex; flex-direction: column; gap: 18px; padding: 24px 30px 30px; }
.cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { min-width: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.lbl { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--faint); }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg2); color: var(--ink); font: 400 15px/1.5 var(--font); outline: none; transition: border-color .2s, box-shadow .25s, background-color .2s; }
.field::placeholder { color: var(--faint); }
.field:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line2)); }
.field:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accentSoft); }
textarea.field { min-height: 132px; resize: vertical; }
.field[aria-invalid="true"] { border-color: var(--err); }
.field[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 18%, transparent); }
.err { margin: 0; font-size: 13px; font-weight: 500; color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--spring); }
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.cform__note { flex: 1; min-width: 200px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--faint); }
.cform__done { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 40px 30px 36px; }
.cform__done-ic { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 99px; display: grid; place-items: center; background: var(--okSoft); color: var(--ok); animation: popIn .5s var(--spring); }
.cform__done-ic .i { stroke-width: 2.6; }
.cform__done .textlink { margin-top: 14px; border: 0; background-color: transparent; cursor: pointer; }
.cform.is-sent .cform__body { display: none; }
.hp { display: none !important; }
.cform__captcha-box { min-height: 78px; }
.cform__fail { margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--err) 9%, transparent); color: var(--err); font-size: 14px; line-height: 1.5; }
.cform__link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cform__submit-busy { display: none; }
.cform.is-sending .cform__submit-l { display: none; }
.cform.is-sending .cform__submit-busy { display: inline; }
.cform.is-sending .cform__submit { opacity: .75; pointer-events: none; }
.cform.is-sending .cform__submit .arr { animation: sendPulse 1s var(--ease-io) infinite; }
@keyframes sendPulse { 50% { transform: translate(4px, -4px); opacity: .4; } }
@keyframes popIn { from { transform: scale(.5); opacity: 0; } }

.closing__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 144px; padding-bottom: 144px; text-align: center; }
.closing__t { margin: 0; font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.closing__t b { font-weight: 650; background: linear-gradient(95deg, var(--ink) 20%, var(--accentText)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing__p { margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- Mentions légales ---------- */
.legal__inner { max-width: 760px; padding-top: 150px; padding-bottom: 120px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; padding: 0; }
.legal__back .i { width: 16px; height: 16px; }
.legal__back::after { display: none; }
.legal__h1 { margin: 0 0 8px; font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.03em; }
.legal__date { margin: 0 0 48px; font-size: 14px; color: var(--faint); }
.legal__body { display: flex; flex-direction: column; gap: 40px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.legal__body h2 { margin: 0 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.legal__body p { margin: 0; }
.legal__body p + p { margin-top: 12px; }
.legal__body b { color: var(--ink); font-weight: 600; }
mark.todo { padding: 1px 5px; border-radius: 4px; background: var(--warnSoft); color: var(--warn); outline: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent); outline-offset: -1px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand span { font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; }

/* ---------- Lecteur agrandi ---------- */
.vdialog { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.vdialog::backdrop { background: rgba(4, 5, 8, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vdialog[open] .vdialog__inner { animation: dlgIn .45s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: scale(.96); } }
.vdialog__inner { position: relative; height: 100%; display: grid; place-items: center; padding: 24px; }
.vdialog video { max-width: 100%; max-height: calc(100vh - 48px); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); }
.vdialog__close { position: absolute; top: 16px; right: 16px; border-color: rgba(255, 255, 255, .2); background: rgba(14, 17, 23, .7); color: #FFFFFF; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc--video, .svc--web { grid-column: span 6; }
  .svc--auto, .svc--crm { grid-column: span 6; }
  .hflow__canvas { padding: 24px; grid-template-columns: minmax(0, 1fr) minmax(28px, .4fr) minmax(0, 1fr) minmax(28px, .4fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: inline-grid; }
  .sol-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .svc { grid-column: 1 / -1 !important; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 32px; }
  .steps__rail { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .steps__rail i { clip-path: inset(0 0 100% 0); }
  .step { padding-top: 0; }
  .step__dot { left: -32px; top: 3px; }
}
@media (min-width: 961px) { .mmenu { display: none; } }
@container (max-width: 780px) {
  .hflow__canvas { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 30px auto 30px auto; height: auto; padding: 20px 16px; }
  .wires { display: none; }
  .hflow__src { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hflow__src .hnode { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; }
  .hflow__src .hnode.is-on { transform: translateY(-3px); }
  .hnode__txt b { font-size: 12px; white-space: normal; }
  .hnode__txt small { display: none; }
  .hflow__out { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hnode--out { gap: 8px; padding: 8px; }
  .hnode--out .hnode__ic { width: 26px; height: 26px; }
  .hnode--out .hnode__txt b { font-size: 12px; line-height: 1.25; }
  .hnode__ok { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; }
  .hnode--out.is-done { transform: none; }
  .hcore { grid-row: 3; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 14px; }
  .hcore::before, .hcore::after { content: ""; position: absolute; left: 50%; width: 1px; height: 30px; background: linear-gradient(var(--line2), var(--accentLine)); }
  .hcore::before { bottom: 100%; }
  .hcore::after { top: 100%; background: linear-gradient(var(--accentLine), var(--line2)); }
  .hcore__orb { width: 48px; height: 48px; border-radius: 15px; }
  .hcore__mark { width: 24px; height: 24px; }
  .hcore__meta { align-items: flex-start; text-align: left; }
  .hcore__log { grid-column: 1 / -1; }
  .hflow__out { grid-row: 5; }
}
@media (max-width: 760px) {
  .sol__panels { display: block; }
  .sol-panel { display: none; filter: none; }
  .sol-panel.is-active { display: grid; filter: none; }
  @starting-style { .sol-panel.is-active { opacity: 0; transform: translateX(28px); } }
  .sol__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sol__tabs::-webkit-scrollbar { display: none; }
  .sol-tab { flex: 0 0 auto; min-width: 150px; padding-right: 22px; scroll-snap-align: start; }
  .sol__play-l { display: none; }
  .sol__play { width: 36px; padding: 0; justify-content: center; }
  .promise__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .app__body { height: auto; min-height: 340px; }
  .lead-app.app__body { height: 400px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  .hero { padding: 128px 0 72px; }
  .hero__row { margin-top: 32px; }
  .hflow-wrap { margin-top: 48px; }
  .section { padding-top: 96px; }
  .refs__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .refs__logos { gap: 18px 36px; }
  .doors { grid-template-columns: minmax(0, 1fr); margin-bottom: 96px; }
  .door { padding: 26px; min-height: 0; }
  .svc__viz { height: 400px; }
  .svc__body { padding: 22px 20px 24px; }
  .sol-stage { padding: 10px; border-radius: 18px; }
  .tracker { margin-top: 12px; gap: 4px; }
  .tracker li { font-size: 0; gap: 0; }
  .method { padding-bottom: 96px; }
  .contact__inner { padding-top: 88px; padding-bottom: 88px; }
  .cform__head { padding: 22px 20px 18px; }
  .cform__body { padding: 20px 20px 24px; }
  .cform__row { grid-template-columns: minmax(0, 1fr); }
  .cform__foot .btn { width: 100%; }
  .closing__inner { padding-top: 104px; padding-bottom: 104px; }
  .cta-card { width: 100%; }
  .cta-card__txt { flex: 1; min-width: 0; }
  .demo-badge { font-size: 9.5px; padding: 2px 7px; }
  .app__bar, .hflow__bar { gap: 10px; padding: 0 12px; }
  .wdots { display: none; }
}

/* ==========================================================================
   Couche motion (assets/js/tynexa-motion.js, classe .motion sur <html>)
   ========================================================================== */

/* Intro de marque (pure CSS, première visite de la session) */
.curtain { display: none; }
html.intro .curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); pointer-events: none; clip-path: inset(0 0 0 0); animation: curtainUp .9s var(--ease-io) 1.15s forwards; }
.curtain__mark { display: flex; overflow: hidden; padding-bottom: .1em; font-size: clamp(48px, 9vw, 120px); line-height: 1; letter-spacing: -.045em; color: var(--ink); animation: markOut .65s var(--ease-io) 1.05s forwards; }
.curtain__mark span { display: inline-block; transform: translateY(110%); animation: markUp .9s var(--ease-out) forwards; }
.curtain__mark .curtain__ty { font-weight: 300; animation-delay: .05s; }
.curtain__mark .curtain__nx { font-weight: 700; animation-delay: .14s; }
.curtain__mark .curtain__dot { font-weight: 700; color: var(--accent); animation-delay: .34s; }
.curtain__line { position: absolute; left: 50%; top: calc(50% + clamp(44px, 7vw, 92px)); width: 200px; height: 1px; margin-left: -100px; overflow: hidden; background: var(--line2); }
.curtain__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: lineFill .9s var(--ease-io) .15s forwards; }
@keyframes curtainUp { to { clip-path: inset(0 0 100% 0); } }
@keyframes markUp { to { transform: none; } }
@keyframes markOut { to { transform: translateY(-40%); opacity: 0; } }
@keyframes lineFill { to { transform: none; } }
html.intro .hero__title .w__i { transition-delay: calc(var(--i) * 42ms + 1.35s); }
html.intro .hero [data-reveal] { transition-delay: calc(var(--d, 0s) + 1.3s); }
html.intro .ia::after { transition-delay: 2.5s; }

/* Défilement fluide (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Progression de lecture */
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: left; transform: scaleX(var(--sp, 0)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nav.is-scrolled .nav__progress { opacity: 1; }

/* Hero : grille révélée sous la souris, faisceaux, second halo */
.hero__grid--hi { background-image: linear-gradient(var(--accentLine) 1px, transparent 1px), linear-gradient(90deg, var(--accentLine) 1px, transparent 1px); -webkit-mask-image: radial-gradient(280px circle at var(--hx, 50%) var(--hy, -40%), #000, transparent 72%); mask-image: radial-gradient(280px circle at var(--hx, 50%) var(--hy, -40%), #000, transparent 72%); opacity: .6; }
.hero__beams { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 28%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 75% 55% at 50% 28%, #000 25%, transparent 72%); }
.hero__beams i { position: absolute; display: block; opacity: 0; }
.hero__beams .bx { left: 0; top: calc(var(--r) * 64px - .5px); width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent2), transparent); animation: beamX 9s linear var(--t) infinite; }
.hero__beams .by { top: 0; left: calc(50% + var(--c) * 64px - .5px); width: 1px; height: 200px; background: linear-gradient(180deg, transparent, var(--accent2), transparent); animation: beamY 9s linear var(--t) infinite; }
@keyframes beamX { 0% { transform: translateX(-220px); opacity: 0; } 6%, 50% { opacity: 1; } 62%, 100% { transform: translateX(100vw); opacity: 0; } }
@keyframes beamY { 0% { transform: translateY(-220px); opacity: 0; } 6%, 50% { opacity: 1; } 62%, 100% { transform: translateY(900px); opacity: 0; } }
.hero__glow--2 { left: 12%; top: 48%; width: 760px; height: 520px; margin-left: 0; opacity: .35; animation-duration: 30s; animation-direction: alternate-reverse; }
.hflow-scroll, .hflow-tilt { transform-style: preserve-3d; }
.motion .hflow-wrap .hflow { transform: none; transition: none; }

/* Bandeau des expertises */
:root { --mq2: #0B0D12; }
[data-theme="dark"] { --mq2: #DCE5FF; }
.mq { display: flex; flex-direction: column; gap: 4px; padding: 80px 0 0; overflow: hidden; }
.mq__row { display: flex; width: max-content; }
.mq__track { flex: none; display: flex; align-items: center; }
.mq__track span { padding: 0 .3em .06em; white-space: nowrap; font-size: clamp(60px, 10.5vw, 168px); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; background: linear-gradient(90deg, var(--accent) 0%, var(--mq2) 40%, var(--mq2) 60%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mq__track i { flex: none; width: .14em; height: .14em; font-size: clamp(60px, 10.5vw, 168px); border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.mq__row--ghost .mq__track span { padding: 0 .45em .06em; font-size: clamp(26px, 4vw, 60px); font-weight: 400; letter-spacing: -.03em; background: none; color: color-mix(in srgb, var(--accent) 55%, var(--muted)); -webkit-text-stroke: 0; }
.mq__row--ghost .mq__track i { font-size: clamp(26px, 4vw, 60px); background: var(--accentLine); }

/* Titres : montée mot à mot */
.kin .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.kin .w__i { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.kin.is-on .w__i { transform: none; }

/* Méthode : ligne remplie au défilement, étapes allumées au passage */
.motion .steps__rail i, .motion .steps.is-in .steps__rail i { clip-path: none; transform: scaleX(var(--rp, 0)); transform-origin: left; transition: none; }
.motion .steps.is-in .step__dot { border-color: var(--line2); background: var(--bg); box-shadow: none; transition-delay: 0s; }
.motion .steps .step.is-lit .step__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accentSoft); }
.motion .step h3 { transition: color .4s; }
.motion .step:not(.is-lit) h3 { color: var(--muted); }
@media (max-width: 960px) {
  .motion .steps__rail i, .motion .steps.is-in .steps__rail i { transform: scaleY(var(--rp, 0)); transform-origin: top; }
}

/* SaaS sur mesure */
.svc--saas { grid-column: span 12; flex-direction: row; }
.svc--saas .svc__viz { flex: 1; height: auto; min-height: 440px; border-bottom: none; border-right: 1px solid var(--line); }
.svc--saas .svc__body { flex: 0 0 360px; justify-content: center; }
@media (max-width: 760px) { .svc--saas { flex-direction: column; } .svc--saas .svc__viz { min-height: 320px; border-right: none; border-bottom: 1px solid var(--line); } .svc--saas .svc__body { flex: none; } }
.viz-saas { background: radial-gradient(ellipse 120% 90% at 70% 15%, color-mix(in srgb, var(--accent) 9%, var(--bg2)) 0%, var(--bg2) 65%); }
.sapp { position: absolute; left: 18px; right: 18px; top: 14px; bottom: 14px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.s1 .sapp { opacity: 1; transform: none; }
.s6 .sapp { opacity: 0; transition: opacity .4s; }
.sapp__bar { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.sapp__brand { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.sapp__dot { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); }
.sapp__nav-tabs { display: flex; gap: 2px; }
.sapp__ntab { padding: 4px 10px; border-radius: 6px; font-size: 11.5px; color: var(--faint); }
.sapp__ntab--on { background: var(--bg2); color: var(--ink); }
.sapp__head-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sapp__live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ok); opacity: 0; transition: opacity .4s; }
.sapp__live-badge i { width: 6px; height: 6px; border-radius: 9px; background: var(--ok); }
.s5 .sapp__live-badge { opacity: 1; }
.s6 .sapp__live-badge { opacity: 0; transition: opacity .3s; }
.sapp__body { display: flex; flex: 1; min-height: 0; }
.sapp__side { width: 140px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 10px 6px; display: flex; flex-direction: column; gap: 1px; }
.sapp__si { display: block; padding: 6px 10px; border-radius: 7px; font-size: 11.5px; color: var(--faint); }
.sapp__si--on { background: var(--accentSoft); color: var(--accentText); }
.sapp__main { flex: 1; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.sapp__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sapp__kpi { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); display: flex; flex-direction: column; gap: 3px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.s2 .sapp__kpi { opacity: 1; transform: none; }
.s2 .sapp__kpi:nth-child(2) { transition-delay: .07s; }
.s2 .sapp__kpi:nth-child(3) { transition-delay: .14s; }
.s2 .sapp__kpi:nth-child(4) { transition-delay: .21s; }
.sapp__kk { font-size: 9.5px; color: var(--faint); font-family: var(--mono); }
.sapp__kv { font-size: 19px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.sapp__row2 { display: flex; gap: 10px; flex: 1; min-height: 0; }
.sapp__chart-wrap { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sapp__chart-l { font-size: 9.5px; color: var(--faint); font-family: var(--mono); }
.sapp__bars { display: flex; align-items: flex-end; gap: 3px; flex: 1; }
.sapp__b { flex: 1; background: var(--accentSoft); border-radius: 3px 3px 0 0; border-bottom: 2px solid var(--accentLine); height: 0; transition: height .6s var(--ease); }
.sapp__b--today { background: color-mix(in srgb, var(--accent) 30%, var(--accentSoft)); border-color: var(--accent); }
.s3 .sapp__b { height: var(--bh); }
.s3 .sapp__b:nth-child(2) { transition-delay: .05s; }
.s3 .sapp__b:nth-child(3) { transition-delay: .10s; }
.s3 .sapp__b:nth-child(4) { transition-delay: .15s; }
.s3 .sapp__b:nth-child(5) { transition-delay: .20s; }
.s3 .sapp__b:nth-child(6) { transition-delay: .25s; }
.s3 .sapp__b:nth-child(7) { transition-delay: .30s; }
.sapp__users { flex: 0 0 280px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); overflow: hidden; }
.sapp__uhead { display: grid; grid-template-columns: 1fr 70px 65px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 9.5px; color: var(--faint); }
.sapp__urow { display: grid; grid-template-columns: 1fr 70px 65px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); gap: 6px; transition: background .4s; }
.sapp__urow:last-child { border-bottom: none; }
.s4 .sapp__urow--sel { background: var(--accentSoft); }
.sapp__uwho { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.sapp__plan { font-size: 10px; font-weight: 500; color: var(--accentText); }
.sapp__plan--ent { color: var(--ok); }
.sapp__plan--warn { color: var(--warn); }
.sapp__deploy { position: absolute; bottom: 22px; right: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--ok); border-radius: 999px; background: var(--okSoft); color: var(--ok); font-size: 11.5px; font-weight: 500; opacity: 0; transform: translateY(6px) scale(.95); transition: opacity .5s, transform .6s var(--ease); z-index: 5; }
.sapp__deploy .i { width: 13px; height: 13px; stroke-width: 2.5; }
.s5 .sapp__deploy { opacity: 1; transform: none; }
.s6 .sapp__deploy { opacity: 0; transition: opacity .3s; }
@container (max-width: 560px) { .sapp__side { display: none; } .sapp__kpis { grid-template-columns: repeat(2, 1fr); } .sapp__users { flex: 0 0 200px; } }

/* Boutons magnétiques */
.magnetic { translate: calc(var(--mgx, 0) * 1px) calc(var(--mgy, 0) * 1px); }


/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hflow-wrap .hflow { transform: none; }
  .hero__title .w__i, .kin .w__i { transform: none; }
  .hero__glow { animation: none; }
  .hero__beams, .hero__grid--hi, .curtain { display: none !important; }
}
