/* Datasight, site public. Charte Lumina, mise en page éditoriale. */

@font-face { font-family: "Lufga"; src: url("/assets/fonts/lufga-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("/assets/fonts/lufga-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("/assets/fonts/lufga-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("/assets/fonts/lufga-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F2F5FC;
  --paper-2: #E9EDF6;
  --card: #FFFFFF;
  --ink: #0B0D12;
  --ink-2: #4A4F5C;
  --ink-3: #868B98;
  --line: #DDE2EC;
  --line-2: #C9D1DF;

  --night: #0E1420;
  --night-2: #131B2A;
  --night-3: #1A2436;
  --night-line: rgba(203, 213, 225, 0.11);
  --on-night: #E8ECF4;
  --on-night-2: #9BA6BB;
  --on-night-3: #66718A;

  --mint: #35F191;
  --mint-dim: #158F5B;
  --mint-deep: #0E6E45;
  --mint-soft: rgba(53, 241, 145, 0.12);
  --data: #0284C7;
  --purple: #9333EA;
  --amber: #D97706;
  --alert: #DC2626;

  --font: "Lufga", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1480px;
  --header: 72px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--night); }
:focus-visible { outline: 2px solid var(--mint-dim); outline-offset: 3px; border-radius: 4px; }
.section-night :focus-visible { outline-color: var(--mint); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- Typographie ---------- */

.label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-night .label { color: var(--on-night-3); }

.display {
  font-weight: 300;
  font-size: clamp(50px, 7.3vw, 128px);
  line-height: 0.93;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.h2 {
  font-weight: 300;
  font-size: clamp(34px, 4.3vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.037em;
  text-wrap: balance;
}
.h2 .soft { color: var(--ink-3); }
.section-night .h2 .soft { color: var(--on-night-3); }
.h3 {
  font-weight: 400;
  font-size: clamp(29px, 2.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 1.32vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 33em;
  text-wrap: pretty;
}
.body { color: var(--ink-2); font-size: 18px; line-height: 1.62; max-width: 31em; text-wrap: pretty; }
.section-night .body { color: var(--on-night-2); }

/* ---------- Boutons et liens ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #222632; }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #5cf5a8; }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link .arrow { transition: transform 0.3s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }
.section-night .link { color: var(--on-night); }
.section-night .link .arrow { color: var(--mint); }

.arrow { width: 16px; height: 16px; flex: none; }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(242, 245, 252, 0.84);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 21px; height: 25px; color: var(--mint-dim); }
.brand span { font-weight: 600; font-size: 15px; letter-spacing: 0.17em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  padding: 9px 15px; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(11, 13, 18, 0.05); }
.header-cta { margin-left: 12px; }
.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
  position: relative;
}
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease-out), opacity 0.2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header) 0 0; z-index: 49;
  background: var(--paper);
  padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.big {
  font-size: 34px; font-weight: 300; letter-spacing: -0.03em; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Ouverture ---------- */

.hero { position: relative; padding-top: var(--header); overflow: clip; }
.hero-grid { min-height: min(calc(100svh - var(--header) - 74px), 900px); align-items: center; }
.hero-copy { grid-column: 1 / span 6; grid-row: 1; position: relative; z-index: 2; padding-block: clamp(40px, 7vh, 96px); }
.hero-copy .label { margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.hero-copy .label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
.hero-copy .lead { margin-top: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 42px; }
.hero-stage { grid-column: 7 / -1; grid-row: 1; position: relative; height: clamp(500px, 74vh, 780px); margin-right: calc(var(--gutter) * -0.5); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.trusted { border-top: 1px solid var(--line); }
.trusted .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding-block: 26px; }
.trusted p { font-size: clamp(17px, 1.3vw, 20px); letter-spacing: -0.01em; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(96px, 15vh, 190px); position: relative; }
.section-night { background: var(--night); color: var(--on-night); }
.section-head { align-items: start; margin-bottom: clamp(56px, 10vh, 130px); }
.section-head .label { grid-column: 1 / span 3; padding-top: 0.9em; }
.section-head .h2 { grid-column: 4 / -1; }

/* ---------- Plateforme ---------- */

.product { align-items: center; padding-block: clamp(56px, 9vh, 120px); border-top: 1px solid var(--night-line); }
.product-copy { grid-column: 1 / span 5; }
.product-panel { grid-column: 7 / -1; }
.product.flip .product-copy { grid-column: 8 / -1; order: 2; }
.product.flip .product-panel { grid-column: 1 / span 6; order: 1; }
.product-name {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-night);
}
.product-name i { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
.product-name small { font-size: inherit; color: var(--on-night-3); }
.product .h3 { margin-top: 24px; }
.product .body { margin-top: 22px; }
.facts { margin-top: 34px; border-top: 1px solid var(--night-line); max-width: 31em; }
.facts li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--night-line);
  font-size: 15.5px; color: var(--on-night);
}
.facts li span { font-family: var(--mono); font-size: 11px; color: var(--on-night-3); letter-spacing: 0.08em; }
.product .link { margin-top: 34px; }

/* Fenêtre d'application, comme dans nos produits */
.window {
  background: var(--card); color: var(--ink);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.window-bar {
  height: 44px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; border-bottom: 1px solid #ECEEF2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6F7A;
}
.window-bar .app { font-family: var(--font); font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; text-transform: none; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.window-bar .app svg { width: 12px; height: 14px; color: var(--mint-dim); }
.window-bar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.window-body { position: relative; padding: 16px; height: 392px; overflow: hidden; }

/* Industrie et santé : deux produits côte à côte */
.sectors-head { align-items: start; border-top: 1px solid var(--night-line); padding-top: clamp(56px, 9vh, 120px); }
.sectors-head .label { grid-column: 1 / span 3; padding-top: 0.7em; }
.sectors-head .h3 { grid-column: 4 / -1; color: var(--on-night); max-width: 22em; }
.duo { margin-top: clamp(48px, 8vh, 96px); row-gap: 72px; }
.duo-item { grid-column: span 6; display: flex; flex-direction: column; }
.duo-item .h3 { margin-top: 22px; font-size: clamp(26px, 2.2vw, 36px); }
.duo-item .body { margin-top: 18px; }
.duo-item .window { margin-top: 36px; flex: 1 0 auto; display: flex; flex-direction: column; }
.duo-item .window .window-body { flex: 1; }
.duo-item .link { margin-top: 30px; align-self: flex-start; }
.window-body.short { height: auto; min-height: 250px; }

/* Mira */
.mira-chart { width: 100%; height: auto; display: block; }
.mira-chart text { font-family: var(--mono); font-size: 9.5px; fill: #9DA0A6; letter-spacing: 0.08em; }
.mira-rows { margin-top: 10px; border-top: 1px solid #ECEEF2; }
.mira-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: center; height: 30px; border-bottom: 1px solid #F0F2F6; font-size: 12.5px; }
.mira-row .k { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mira-row .m { font-family: var(--mono); font-size: 10.5px; color: #6B6F7A; }

/* Vita */
.vita { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; height: 100%; }
.record { border: 1px solid #ECEEF2; border-radius: 12px; padding: 12px 14px; background: #FAFBFD; align-self: start; }
.record .label { color: #6B6F7A; font-size: 9.5px; margin-bottom: 8px; display: block; }
.field { display: grid; grid-template-columns: 74px 1fr; align-items: center; height: 27px; border-bottom: 1px solid #F0F2F6; font-size: 12.5px; }
.field:last-child { border-bottom: 0; }
.field span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #9DA0A6; }
.field b { font-weight: 400; position: relative; height: 18px; overflow: hidden; }
.field b em { font-style: normal; position: absolute; inset: 0; transition: transform 0.6s var(--ease-expo), opacity 0.4s; white-space: nowrap; }
.field b em.tok { font-family: var(--mono); font-size: 11.5px; color: var(--mint-deep); transform: translateY(100%); opacity: 0; }
.field.masked b em.id { transform: translateY(-100%); opacity: 0; }
.field.masked b em.tok { transform: none; opacity: 1; }
.cohort { display: flex; flex-direction: column; }
.cohort .label { color: #6B6F7A; font-size: 9.5px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.cohort .label b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: #E3E7EF; transition: background-color 0.5s, transform 0.5s var(--ease-expo); }
.dots i.on { background: var(--data); }
.dots i.new { background: var(--mint); transform: scale(1.25); }

/* Ocean Hub : la porte d'entrée */
.gate-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.gate-counters div { background: #F8F9FC; border: 1px solid #ECEEF2; border-radius: 12px; padding: 10px 12px; }
.gate-counters b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.gate-counters span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6F7A; display: flex; align-items: center; gap: 7px; }
.gate-head, .gate-row { display: grid; grid-template-columns: 1.05fr 0.85fr 1.9fr 0.95fr; gap: 10px; align-items: center; }
.gate-head { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #9DA0A6; padding: 0 10px 8px; border-bottom: 1px solid #ECEEF2; }
.gate-rows { position: relative; }
.gate-row {
  padding: 0 10px; height: 46px; border-bottom: 1px solid #F0F2F6;
  position: absolute; left: 0; right: 0; top: 0;
  transition: transform 0.7s var(--ease-expo), opacity 0.5s var(--ease-out);
}
.gate-row .src { display: flex; align-items: center; gap: 8px; color: #3A3E48; }
.gate-row .fld { color: #6B6F7A; }
.gate-row .val { position: relative; font-family: var(--mono); font-size: 12px; height: 34px; overflow: hidden; }
.gate-row .val span { position: absolute; left: 0; right: 0; top: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; transition: transform 0.6s var(--ease-expo), opacity 0.4s; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.gate-row .val .raw { color: #8C919D; }
.gate-row .val .clean { transform: translateY(100%); opacity: 0; color: var(--ink); }
.gate-row .val .clean small { font-size: 10px; color: var(--alert); line-height: 1.2; }
.gate-row.done .val .raw { transform: translateY(-100%); opacity: 0; }
.gate-row.done .val .clean { transform: none; opacity: 1; }
.chip {
  justify-self: start;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: #F0F2F6; color: #6B6F7A; white-space: nowrap;
  transition: background-color 0.4s, color 0.4s;
}
.chip.ok { background: #EEF1F6; color: #3A3E48; }
.chip.fix { background: var(--mint-soft); color: var(--mint-deep); }
.chip.hold { background: rgba(220, 38, 38, 0.08); color: #B91C1C; }
.chip.sig { background: var(--mint-soft); color: var(--mint-deep); }

/* Stella */
.seg { display: inline-flex; background: #F0F2F6; border-radius: 8px; padding: 2px; position: relative; }
.seg b { position: relative; z-index: 1; padding: 4px 10px; font-weight: 500; color: #6B6F7A; transition: color 0.4s; }
.seg b.on { color: var(--ink); }
.seg::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s var(--ease-expo);
}
.seg.map::before { transform: translateX(100%); }
.stella-svg { width: 100%; height: 100%; }
.stella-svg text { font-family: var(--mono); font-size: 10px; fill: #4A4F5C; letter-spacing: 0.02em; }

/* Nora */
.case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #ECEEF2; }
.case-head h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.case-head p { font-family: var(--mono); font-size: 10.5px; color: #6B6F7A; margin-top: 3px; letter-spacing: 0.04em; }
.subjects { display: flex; gap: 6px; }
.subjects span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; background: #EEF1F8; color: #3A3E48; border: 2px solid #fff;
}
.timeline { position: relative; margin-top: 14px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: #E3E7EF; }
.tl-item {
  position: relative; padding: 9px 0 9px; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-expo);
}
.tl-item.in { opacity: 1; transform: none; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1.5px solid #B9C1D0;
}
.tl-item.sealed::before { background: var(--mint); border-color: var(--mint-dim); }
.tl-item .what { font-size: 13.5px; color: var(--ink); }
.tl-item .when { font-family: var(--mono); font-size: 10.5px; color: #9DA0A6; }
.tl-item .meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: #6B6F7A; }
.seal {
  width: 16px; height: 16px; color: var(--mint-dim);
  transform: scale(1.6); opacity: 0;
  transition: transform 0.55s var(--ease-expo) 0.2s, opacity 0.3s 0.2s;
}
.tl-item.in .seal { transform: none; opacity: 1; }

/* Anna AI */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; padding-bottom: 12px; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-expo); }
.bubble.in { opacity: 1; transform: none; }
.bubble.q { align-self: flex-end; background: var(--ink); color: #F2F5FC; border-bottom-right-radius: 4px; }
.bubble.a { align-self: flex-start; background: #F4F6FA; color: var(--ink); border-bottom-left-radius: 4px; }
.bubble .who { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint-deep); margin-bottom: 6px; }
.bubble .ent { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sources span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; color: #3A3E48;
  background: #fff; border: 1px solid #E3E7EF; border-radius: 6px; padding: 3px 7px;
  opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.45s var(--ease-expo);
}
.sources span.in { opacity: 1; transform: none; }
.composer {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px;
  border: 1px solid #E3E7EF; border-radius: 12px; background: #fff;
}
.composer .typed { flex: 1; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.composer .typed:empty::before { content: "Ask anything about your data"; color: #9DA0A6; }
.composer .caret { width: 1.5px; height: 16px; background: var(--ink); margin-left: 1px; display: inline-block; vertical-align: -3px; }
.composer .send { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; color: #fff; }

/* ---------- Du signal à la preuve ---------- */

.story-rail { position: relative; margin-top: clamp(40px, 7vh, 84px); }
.story-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.story-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.story-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.step { position: relative; padding-top: 40px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line-2);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-expo);
}
.step.on::before { background: var(--mint); border-color: var(--mint-dim); transform: scale(1.08); }
.step .label { display: block; margin-bottom: 14px; transition: color 0.4s; }
.step.on .label { color: var(--mint-deep); }
.step h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.step p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 16em; }
.story-foot { margin-top: clamp(48px, 8vh, 96px); }

/* ---------- Déploiement ---------- */

.sovereign .h2.big { font-size: clamp(48px, 7vw, 120px); line-height: 0.95; letter-spacing: -0.048em; grid-column: 1 / -1; }
.sovereign .h2.big span { display: block; }
.sovereign .h2.big span:nth-child(2) { color: var(--on-night-2); }
.sovereign .h2.big span:nth-child(3) { color: var(--on-night-3); }
.pillars { margin-top: clamp(64px, 11vh, 140px); }
.pillar { grid-column: span 4; border-top: 1px solid var(--night-line); padding-top: 26px; }
.pillar h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; display: flex; align-items: center; gap: 12px; }
.pillar h3 i { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
.pillar p { margin-top: 14px; color: var(--on-night-2); font-size: 17px; line-height: 1.6; max-width: 24em; }

/* ---------- Offres ---------- */

.offers { border-top: 1px solid var(--line); }
.offer {
  display: grid; grid-template-columns: 3fr 6fr 1fr; gap: 24px; align-items: center;
  padding: clamp(24px, 3.4vh, 38px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
}
.offer::after {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1;
  background: var(--card); opacity: 0; border-radius: 14px;
  transition: opacity 0.35s var(--ease-out);
}
.offer:hover::after { opacity: 1; }
.offer .name { font-size: clamp(22px, 2vw, 32px); font-weight: 500; letter-spacing: -0.025em; transition: transform 0.45s var(--ease-out); }
.offer .line { font-size: clamp(20px, 1.9vw, 30px); font-weight: 300; letter-spacing: -0.02em; color: var(--ink-2); transition: transform 0.45s var(--ease-out); }
.offer .go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.35s, border-color 0.35s, color 0.35s; }
.offer:hover .name, .offer:hover .line { transform: translateX(8px); }
.offer:hover .go { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Division défense ---------- */

.division { padding-block: clamp(96px, 14vh, 170px); background: #0A0F19; border-top: 1px solid var(--night-line); }
.division-grid { align-items: center; }
.division-copy { grid-column: 1 / span 5; }
.division-copy .body { margin-top: 24px; }
.division-visual { grid-column: 7 / -1; aspect-ratio: 14 / 9; border-radius: 18px; overflow: hidden; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.division-visual svg { width: 100%; height: 100%; display: block; }
.division-visual text { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; fill: var(--on-night-3); }

/* ---------- Confiance ---------- */

.trust-grid { align-items: center; }
.trust-copy { grid-column: 1 / span 5; }
.trust-copy .body { margin-top: 26px; }
.trust-copy .link { margin-top: 32px; }
.trust-panel { grid-column: 7 / -1; }
.chain { position: relative; height: 420px; overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 20px; }
.chain-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #ECEEF2; }
.chain-head .label { color: #6B6F7A; }
.chain-ok { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-deep); }
.chain-list { position: absolute; left: 20px; right: 20px; bottom: 20px; top: 66px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 56px); mask-image: linear-gradient(transparent, #000 56px); }
.block {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border: 1px solid #ECEEF2; border-radius: 12px; background: #FAFBFD;
  position: relative;
  animation: block-in 0.7s var(--ease-expo) both;
}
.block::before { content: ""; position: absolute; left: 38px; top: -11px; width: 1px; height: 11px; background: #CFD6E2; }
.block:first-child::before { display: none; }
.block .t { font-family: var(--mono); font-size: 10.5px; color: #9DA0A6; }
.block .e { font-size: 13px; color: var(--ink); }
.block .e small { display: block; font-family: var(--mono); font-size: 10px; color: #6B6F7A; margin-top: 2px; letter-spacing: 0.02em; }
.block .h { font-family: var(--mono); font-size: 10.5px; color: #3A3E48; background: #EEF1F6; padding: 3px 7px; border-radius: 6px; }
.block.new { border-color: rgba(21, 143, 91, 0.35); background: #fff; }
.block.new .h { background: var(--mint-soft); color: var(--mint-deep); }
@keyframes block-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Fin de page ---------- */

.closing { padding-block: clamp(110px, 17vh, 220px) clamp(72px, 10vh, 120px); }
.closing .display { font-size: clamp(48px, 7.6vw, 132px); max-width: 11ch; }
.closing-foot { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.closing-foot p { color: var(--on-night-2); font-size: 18px; }

.site-footer { background: var(--night); color: var(--on-night-2); padding-bottom: 36px; }
.footer-top { border-top: 1px solid var(--night-line); padding-top: 56px; row-gap: 40px; }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand .brand { color: var(--on-night); }
.footer-brand .brand svg { color: var(--mint); }
.footer-brand p { margin-top: 18px; font-size: 15px; max-width: 22em; }
.footer-brand .mail { display: inline-block; margin-top: 18px; color: var(--on-night); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--night-line); padding-bottom: 2px; transition: border-color .2s; }
.footer-brand .mail:hover { border-color: var(--mint); }
.footer-col { grid-column: span 2; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-3); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; font-size: 15px; padding: 5px 0; color: var(--on-night-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--on-night); }
.footer-bottom { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-3); }

/* ---------- Pages légales ---------- */

.legal { padding-block: calc(var(--header) + clamp(56px, 10vh, 120px)) clamp(96px, 14vh, 160px); }
.legal-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header) + 32px); }
.legal-head .label { margin-bottom: 22px; }
.legal-date { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.legal-body { grid-column: 6 / span 6; }
.legal-body h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 24px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-top: 14px; color: var(--ink-2); font-size: 17.5px; line-height: 1.65; max-width: 36em; }
.legal-body a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.legal-body a:hover { text-decoration-color: var(--ink); }

/* ---------- Page introuvable ---------- */

.introuvable { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header); }
.introuvable .label { margin-bottom: 28px; }
.introuvable .lead { margin-top: 28px; }
.introuvable .btn { margin-top: 40px; }

/* ---------- Page d'attente ---------- */

.attente { min-height: 100svh; display: flex; }
.attente .wrap { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding-block: 32px; }
.attente-centre { padding-block: 8vh; }
.attente-date {
  font-weight: 300; font-size: clamp(56px, 10vw, 168px); line-height: 0.9; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; color: var(--ink);
  animation: attente-date 1.6s var(--ease-expo) both;
}
.attente-texte {
  margin-top: clamp(24px, 4vh, 48px); font-size: clamp(30px, 4.2vw, 68px); color: var(--ink-2); max-width: 18ch;
  animation: attente-net 2.8s var(--ease-out) 0.5s both;
}
.attente-pied { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.attente-pied a { color: var(--ink); text-decoration: none; text-transform: none; letter-spacing: 0.02em; font-size: 14px; }
@keyframes attente-date { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes attente-net { from { opacity: 0; filter: blur(14px); } 40% { opacity: 1; } to { opacity: 1; filter: blur(0); } }

/* ---------- Apparitions ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-expo); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero [data-reveal] { transition-duration: 1s, 1.3s; }

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 1180px) {
  .nav a { padding: 9px 11px; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-stage { grid-column: 8 / -1; }
}

@media (max-width: 980px) {
  :root { --header: 64px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { min-height: 0; }
  .hero-copy, .hero-stage { grid-column: 1 / -1; grid-row: auto; }
  .hero-copy { padding-block: 40px 8px; }
  .hero-stage { height: clamp(440px, 110vw, 560px); margin-right: 0; }
  .section-head .label, .section-head .h2 { grid-column: 1 / -1; }
  .section-head .label { padding-top: 0; margin-bottom: 22px; }
  .product-copy, .product-panel, .product.flip .product-copy, .product.flip .product-panel { grid-column: 1 / -1; order: 0; }
  .product-panel { margin-top: 44px; }
  .product.flip .product-panel { order: 2; }
  .story-line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .story-line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .story-steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding: 0 0 0 44px; }
  .step p { max-width: 30em; }
  .pillar { grid-column: 1 / -1; margin-bottom: 36px; }
  .offer { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .offer .name { grid-column: 1; }
  .offer .line { grid-column: 1; grid-row: 2; font-size: 19px; }
  .offer .go { grid-column: 2; grid-row: 1 / span 2; }
  .trust-copy, .trust-panel { grid-column: 1 / -1; }
  .sectors-head .label, .sectors-head .h3, .duo-item { grid-column: 1 / -1; }
  .division-copy, .division-visual { grid-column: 1 / -1; }
  .division-visual { margin-top: 48px; }
  .sectors-head .label { margin-bottom: 18px; }
  .trust-panel { margin-top: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-head, .legal-body { grid-column: 1 / -1; }
  .legal-head { position: static; margin-bottom: 48px; }
  .footer-col { grid-column: span 6; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .window-body { height: 372px; padding: 12px; }
  .gate-head, .gate-row { grid-template-columns: 0.95fr 1.9fr 0.9fr; }
  .gate-head .fld, .gate-row .fld { display: none; }
  .gate-row .src { font-size: 12px; }
  .chain { height: 400px; padding: 14px; }
  .chain-list { left: 14px; right: 14px; bottom: 14px; }
  .block { grid-template-columns: 1fr auto; }
  .block .t { display: none; }
  .vita { grid-template-columns: 1fr; }
  .cohort { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
