/* =============================================================
   Kantario — feuille de style unique

   Palette reprise du logo et de la page d'attente :
   fond #05060e, marque #7A83E9, encre chaude #E8EAFF.
   Aucune dependance externe (pas de webfont distante : les
   polices systeme evitent une requete tierce et un transfert
   d'adresse IP hors UE).
   ============================================================= */

/* ---------------------------------------------------- tokens */
:root {
  --bg:        #05060e;
  --bg-1:      #080a16;
  --bg-2:      #0d1020;
  --panel:     #111321;

  --ink:       #7a83e9;   /* marque */
  --ink-soft:  #9aa1de;
  --ink-hot:   #e8eaff;
  --muted:     #7b83bd;
  --dim:       #5a6199;

  --line:      rgba(122, 131, 233, 0.16);
  --line-2:    rgba(122, 131, 233, 0.30);
  --glow:      rgba(122, 131, 233, 0.45);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
          "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --head-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink-hot);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.018em; line-height: 1.3; }

p  { margin: 0; }
a  { color: var(--ink); text-decoration: none; }
img { max-width: 100%; display: block; }
/* la regle ci-dessus l emporte sur la feuille du navigateur :
   il faut retablir explicitement l attribut hidden */
[hidden] { display: none !important; }

::selection { background: rgba(122, 131, 233, .3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-160%);
  background: var(--ink); color: #06070f; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------- decor de fond */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
  background: rgba(122, 131, 233, .10);
}
.progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ink), var(--ink-hot));
  box-shadow: 0 0 12px var(--glow);
}

.bg-aurora {
  position: fixed; inset: -20vh -10vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(48vw 40vw at 78% 8%,  rgba(122, 131, 233, .16), transparent 62%),
    radial-gradient(52vw 44vw at 8% 52%,  rgba(122, 131, 233, .10), transparent 66%),
    radial-gradient(60vw 50vw at 60% 104%, rgba(122, 131, 233, .12), transparent 64%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 2.5%, 0) scale(1.08); }
}

.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--head-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 6, 14, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; }

/* Au sommet de la page, la marque est portee par la signature animee
   du hero : le logo du header n apparait qu au defilement. */
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.header .brand {
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.header.is-scrolled .brand,
.header .brand:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.brand__wordmark { height: 26px; width: auto; opacity: .95; transition: opacity .25s; }
.brand:hover .brand__wordmark { opacity: 1; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  position: relative;
  color: var(--muted);
  font-size: .92rem;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink-hot); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 16px; }

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .76rem; }
.lang__btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--dim); letter-spacing: .12em; font: inherit;
  transition: color .2s;
}
.lang__btn:hover { color: var(--ink-soft); }
.lang__btn.is-on { color: var(--ink-hot); }
.lang__sep { color: var(--dim); opacity: .5; }

.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(122, 131, 233, .05); cursor: pointer;
  padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink-hot);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease),
              background .25s, border-color .25s, color .25s;
}
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(180deg, #8b93ee, #6d76e0);
  color: #06070f;
  box-shadow: 0 0 0 0 var(--glow), 0 8px 24px -12px rgba(122, 131, 233, .8);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px -4px var(--glow), 0 14px 30px -14px rgba(122, 131, 233, .9);
}
.btn--ghost { border-color: var(--line-2); color: var(--ink-hot); background: rgba(122, 131, 233, .04); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(122, 131, 233, .10); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------------------------------------------------- typo utilitaire */
.kicker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--ink); margin-bottom: 20px;
}
.caret { animation: blink 1.9s steps(1) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }

.lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.66; text-wrap: pretty; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-hot); background: rgba(122, 131, 233, .14);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 4px 11px;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 8px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.badge--soon { color: var(--muted); background: transparent; border-color: var(--line); }
.badge--soon::before { background: var(--dim); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

/* ---------------------------------------------------- sections */
.section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }
.section--tight { padding-top: clamp(40px, 5vh, 70px); }
.section--trust { background: linear-gradient(180deg, transparent, rgba(122, 131, 233, .035), transparent); }

.section + .section::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 50%, transparent);
}

.head { max-width: 760px; margin: 0 auto clamp(48px, 6vh, 72px); text-align: center; }
.head .kicker { justify-content: center; }
.head--left { margin-inline: 0; text-align: left; }
.head--left .kicker { justify-content: flex-start; }
.head .lead { margin-top: 20px; }

/* ---------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--head-h) + clamp(44px, 7vh, 96px)) 0 clamp(70px, 10vh, 120px);
}
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
/* signature animee du nom */
.hero__brand { position: relative; width: clamp(300px, 35vw, 480px); margin-bottom: 14px; }
.hero__brand canvas {
  display: block; width: 100%; height: auto;
  /* estompe les bords : le nuage se dissout au lieu d etre coupe net */
  -webkit-mask-image: radial-gradient(52% 54% at 50% 50%, #000 84%, transparent 100%);
          mask-image: radial-gradient(52% 54% at 50% 50%, #000 84%, transparent 100%);
}
/* la couche d effets se superpose exactement a la couche particules */
.hero__brand #brandOv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__brand img:not([hidden]) {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 20px rgba(122, 131, 233, .28));
}

.hero__copy .lead { margin-top: 26px; max-width: 34em; }
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero__note {
  display: flex; gap: 12px; margin-top: 34px;
  font-size: .88rem; color: var(--muted); max-width: 40em;
}
.hero__note .dot {
  flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 10px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero__viz {
  margin: 0; padding: 20px 18px 16px;
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(122, 131, 233, .10), transparent 70%),
    linear-gradient(180deg, rgba(122, 131, 233, .05), rgba(122, 131, 233, .012));
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(232, 234, 255, .05);
}
.chart { width: 100%; height: auto; display: block; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 8px 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.sw { width: 9px; height: 9px; border-radius: 2px; background: var(--ink); }
.sw--1 { opacity: 1; }
.sw--2 { opacity: .58; }
.sw--3 { opacity: .3; }

.scrollcue { display: flex; justify-content: center; margin-top: 18px; }
.scrollcue span {
  display: block; width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, var(--ink));
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0; transform: translateY(-10px) scaleY(.6); }
  50%      { opacity: 1; transform: none; }
}

/* ---------------------------------------------------- svg partage */
.grid line { stroke: rgba(122, 131, 233, .13); stroke-width: 1; }
.line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.band { opacity: 0; transition: opacity 1s var(--ease) .6s; }
.is-in .band, .panel.is-active .band { opacity: 1; }

/* une serie par canal : magasin plein, e-commerce et B2B en retrait */
.s-1 { stroke: var(--ink); }
.chart .s-1 { stroke: url(#gLine); }
.s-2 { stroke: var(--ink); stroke-width: 2.1; opacity: .62; }
.s-3 { stroke: var(--ink); stroke-width: 1.8; opacity: .34; }
.line--fcst.s-1 { stroke: var(--ink-hot); }
.line--fcst.s-2, .line--fcst.s-3 { stroke: var(--ink); }
.is-in .line--fcst.s-2, .panel.is-active .line--fcst.s-2 { opacity: .62; }
.is-in .line--fcst.s-3, .panel.is-active .line--fcst.s-3 { opacity: .34; }

.split { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 5; opacity: .45; }
.node { fill: var(--ink-hot); filter: drop-shadow(0 0 7px var(--glow)); }

/* ligne de prevision : pointilles animes, revelee par glissement */
.line--fcst {
  stroke-dasharray: 7 8; opacity: 0; transform: translateX(-12px);
  transition: opacity .9s var(--ease) var(--d, .4s), transform .9s var(--ease) var(--d, .4s);
}
.is-in .line--fcst, .panel.is-active .line--fcst { opacity: 1; transform: none; animation: march 14s linear infinite; }
@keyframes march { to { stroke-dashoffset: -300; } }

/* trace progressif (longueur mesuree en JS) */
.js-draw { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); }
.is-in .js-draw, .panel.is-active .js-draw {
  animation: draw var(--dur, 1.2s) var(--ease) var(--d, 0s) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

text.tag { font-family: var(--mono); font-size: 12px; fill: var(--muted); letter-spacing: .1em; }
text.tag--hot { fill: var(--ink-hot); }
text.tag--dim { fill: var(--dim); }

/* ---------------------------------------------------- cartes */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  padding: 28px 26px 30px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(122, 131, 233, .05), rgba(122, 131, 233, .012));
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(122, 131, 233, .16), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 24px 60px -40px rgba(122, 131, 233, .75);
}
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card__idx {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--dim);
}
.card--soft { background: linear-gradient(180deg, rgba(122, 131, 233, .035), transparent); }

.card--mod { padding-top: 24px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.card--mod.is-live .ico { stroke: var(--ink); }
.card--mod:hover .ico { stroke: var(--ink-hot); }
.card--mod.is-live { border-color: var(--line-2); background: linear-gradient(180deg, rgba(122, 131, 233, .10), rgba(122, 131, 233, .02)); }

/* ---------------------------------------------------- chiffres */
.stats {
  list-style: none; margin: 56px 0 0; padding: 26px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; align-items: baseline; gap: 12px; }
.stats b {
  font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500; color: var(--ink-hot); line-height: 1;
}
.stats span { font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------- constat */
.rows { display: grid; gap: 2px; }
.row {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  padding: 26px 20px; border-radius: 14px;
  transition: background .35s var(--ease);
}
.row:hover { background: rgba(122, 131, 233, .04); }
.row__n { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--ink); padding-top: 3px; }
.row h3 { margin-bottom: 8px; }
.row p { color: var(--ink-soft); font-size: .97rem; max-width: 62ch; }

/* ---------------------------------------------------- scrollytelling */
.scrolly { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: start; }

.scrolly__visual {
  position: sticky; top: var(--head-h);
  height: calc(100vh - var(--head-h));
  display: flex; align-items: center;
}
.scrolly__frame {
  position: relative; width: 100%; aspect-ratio: 700 / 380;
  max-height: calc(100vh - var(--head-h) - 96px);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(122, 131, 233, .09), transparent 70%),
    linear-gradient(180deg, rgba(122, 131, 233, .05), rgba(122, 131, 233, .012));
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(232, 234, 255, .05);
}
.panel {
  position: absolute; inset: 16px; margin: 0;
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.panel.is-active { opacity: 1; transform: none; }
.panel svg { width: 100%; height: 100%; display: block; }

.scrolly__steps { display: grid; }
.step {
  min-height: 74vh; display: flex; flex-direction: column; justify-content: center;
  padding-left: 26px; border-left: 1px solid var(--line);
  opacity: .32; transition: opacity .5s var(--ease), border-color .5s;
}
.step.is-active { opacity: 1; border-left-color: var(--ink); }
.step__n { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; color: var(--ink); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); margin-bottom: 14px; }
.step p { color: var(--ink-soft); max-width: 46ch; }

/* --- visuel 1 : sources -> hub */
.src rect { fill: rgba(122, 131, 233, .07); stroke: var(--line-2); stroke-width: 1; }
.src text, .out text { font-family: var(--mono); font-size: 13px; fill: var(--ink-soft); }
.src g { opacity: 0; transform: translateX(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.panel.is-active .src g { opacity: 1; transform: none; }
.wires path { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.wire-out { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.pulses path {
  fill: none; stroke: var(--ink-hot); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 3 260; opacity: 0;
}
.panel.is-active .pulses path { opacity: .9; animation: flow 2.4s linear infinite var(--p, 0s); }
@keyframes flow { from { stroke-dashoffset: 263; } to { stroke-dashoffset: 0; } }

.hub__disc { fill: rgba(122, 131, 233, .12); stroke: var(--ink); stroke-width: 1.4; }
.hub__ring { fill: none; stroke: var(--line-2); stroke-width: 1; transform-box: view-box; transform-origin: 412px 180px; }
.panel.is-active .hub__ring { animation: halo 3.4s ease-out infinite; }
@keyframes halo { 0% { opacity: .9; transform: scale(.78); } 100% { opacity: 0; transform: scale(1.22); } }
.hub text { font-family: var(--mono); font-size: 30px; fill: var(--ink-hot); }
.out rect { fill: rgba(122, 131, 233, .06); stroke: var(--line-2); stroke-width: 1; }
.out { opacity: 0; transition: opacity .6s var(--ease) .75s; }
.panel.is-active .out { opacity: 1; }
.spark { fill: none; stroke: var(--ink-hot); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- visuel 2 : promo */
.flag line { stroke: var(--ink-hot); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.flag rect { fill: rgba(232, 234, 255, .10); stroke: var(--line-2); stroke-width: 1; }
.flag text { font-family: var(--mono); font-size: 12px; fill: var(--ink-hot); letter-spacing: .1em; }
.flag { opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease) .9s, transform .5s var(--ease) .9s; }
.panel.is-active .flag { opacity: 1; transform: none; }

/* --- visuel 3 : matrice */
.mx-lab text { font-family: var(--mono); font-size: 12.5px; fill: var(--muted); letter-spacing: .08em; }
.cell {
  fill: var(--ink); stroke: rgba(122, 131, 233, .22); stroke-width: 1;
  opacity: 0; transform: scale(.72);
  transform-box: fill-box; transform-origin: center;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.panel.is-active .cell { opacity: 1; transform: none; }

/* --- visuel 4 : couverture */
.bar-lab { font-family: var(--mono); font-size: 13px; fill: var(--ink-soft); letter-spacing: .06em; }
.bar-bg { fill: rgba(122, 131, 233, .08); }
.bar-fill {
  fill: var(--ink); transform: scaleX(0);
  transform-box: fill-box; transform-origin: left center;
  transition: transform 1.1s var(--ease) var(--d, 0s);
}
.panel.is-active .bar-fill { transform: scaleX(var(--v)); }
.bar-tgt { stroke: var(--ink-hot); stroke-width: 2.4; stroke-dasharray: 4 3; opacity: 0; transition: opacity .5s ease .9s; }
.panel.is-active .bar-tgt { opacity: .85; }

/* ---------------------------------------------------- chips domaines */
.chips { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.chips__lab {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--dim);
}
.chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li {
  font-size: .82rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px;
  transition: color .3s, border-color .3s, background .3s;
}
.chips li:hover { color: var(--ink-hot); border-color: var(--line-2); background: rgba(122, 131, 233, .07); }

/* ---------------------------------------------------- demo */
.section--demo { padding-bottom: clamp(70px, 9vh, 110px); }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.demo__copy .lead { margin-top: 20px; }

.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--ink); background: rgba(122, 131, 233, .3);
}

/* Bloc de contact affiche a la place du formulaire. */
.contact {
  padding: 34px 32px 38px;
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(122, 131, 233, .10), transparent 70%),
    linear-gradient(180deg, rgba(122, 131, 233, .05), rgba(122, 131, 233, .012));
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9);
}
.contact__lab {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--muted); margin-bottom: 18px;
}
.contact__mail {
  display: inline-block;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink-hot);
  border-bottom: 1px solid var(--line-2); padding-bottom: 5px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact__mail:hover { color: #fff; border-bottom-color: var(--ink); }
.contact__txt { margin-top: 22px; font-size: .94rem; color: var(--ink-soft); max-width: 42ch; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 30px; border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(122, 131, 233, .10), transparent 70%),
    linear-gradient(180deg, rgba(122, 131, 233, .05), rgba(122, 131, 233, .012));
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9);
}
.field { display: grid; gap: 7px; }
.field--full, .consent, .form .btn, .form__msg { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink-hot);
  background: rgba(5, 6, 14, .6); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a83e9' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field select option { background: #0d1020; color: #e8eaff; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(122, 131, 233, .18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e9757a; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: #7a83e9; }
.gotcha { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__msg { font-size: .9rem; margin-top: 2px; min-height: 1.2em; }
.form__msg.is-ok  { color: var(--ink-hot); }
.form__msg.is-err { color: #f0989c; }
.form.is-sent { text-align: center; }

/* ---------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: linear-gradient(180deg, transparent, rgba(122, 131, 233, .035)); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.footer__brand .brand__wordmark { height: 24px; margin-bottom: 16px; opacity: .9; }
.footer__brand p { font-size: .88rem; color: var(--muted); max-width: 32ch; }
.footer__nav, .footer__legal { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__legal a { color: var(--muted); font-size: .88rem; transition: color .25s; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--ink-hot); }
.footer__copy {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--dim);
}

/* ---------------------------------------------------- reveal au scroll */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal--scale { transform: translateY(26px) scale(.975); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__viz { order: 2; }
}

@media (max-width: 900px) {
  :root { --head-h: 60px; }
  body { font-size: 16px; }

  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(5, 6, 14, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header__in { gap: 12px; }
  .header__actions { margin-left: auto; }
  .brand__wordmark { height: 22px; }

  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .demo { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px 20px; }
  .contact { padding: 26px 22px 30px; }
  .footer__in { grid-template-columns: 1fr; gap: 28px; }
  .row { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 8px; }

  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly__visual {
    top: var(--head-h); height: auto; display: block; z-index: 2;
    padding: 10px 0 22px;
    /* masque le texte qui defile derriere le cadre colle */
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 82%, transparent 100%);
  }
  .scrolly__frame { padding: 10px; aspect-ratio: 700 / 330; }
  .panel { inset: 10px; }
  /* sous le visuel colle : on place le texte juste apres, pas au centre */
  .step { min-height: 66vh; padding-left: 18px; padding-top: 24vh; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
  .scrollcue { display: none; }
}

/* ---------------------------------------------------- mouvement reduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js-draw { stroke-dashoffset: 0; }
  .band, .out, .flag, .line--fcst { opacity: 1; transform: none; }
  .cell, .src g { opacity: 1; transform: none; }
  .bar-fill { transform: scaleX(var(--v)); }
  .step { opacity: 1; }
}
