/* ==========================================================================
   Arktype — feuille de style
   ========================================================================== */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2-variations"), url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var.woff2") format("woff2-variations"), url("../fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens : clair par défaut ---------- */
:root {
  --bg: #ffffff;
  --fg: #0b0b0c;
  --fg-2: #3f3f43;
  --fg-3: #707075;
  --fg-4: #a8a8ac;
  --card: #f5f5f6;
  --card-2: #ececee;
  --line: #e7e7ea;
  --line-2: #d6d6da;
  --btn2: #eeeef0;
  --btn2-h: #e2e2e6;
  --ink: #0e0e10;
  --ink-2: #1a1a1d;
  --ink-line: #26262a;
  --ink-fg: #ededee;
  --ink-fg-3: #8a8a90;
  --accent: #c41e2a;
  --accent-soft: #fdeceb;
  --ok: #138a52;
  --ok-soft: #e6f5ed;
  --warn: #b4561b;
  --header-bg: rgba(255, 255, 255, 0.8);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1232px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 22px;
  --r-s: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --fg: #f3f3f4;
  --fg-2: #c8c8cc;
  --fg-3: #8e8e94;
  --fg-4: #5c5c62;
  --card: #141416;
  --card-2: #1c1c1f;
  --line: #222225;
  --line-2: #2e2e32;
  --btn2: #1c1c1f;
  --btn2-h: #26262a;
  --ink: #161618;
  --ink-2: #1f1f22;
  --ink-line: #2c2c30;
  --accent: #ec5a5f;
  --accent-soft: rgba(236, 90, 95, 0.14);
  --ok: #3dd68c;
  --ok-soft: rgba(61, 214, 140, 0.12);
  --warn: #f0a35e;
  --header-bg: rgba(10, 10, 11, 0.78);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 17px; line-height: 1.55; letter-spacing: -0.006em; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.3s ease both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-new(root) { z-index: 2; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Typo ---------- */
.h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 450; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.032em; font-weight: 450; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.022em; font-weight: 450; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--fg-2); max-width: 36em; }
.kicker { font-size: 15px; color: var(--fg-3); }
.muted { color: var(--fg-3); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15.5px; font-weight: 450; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--fg); color: var(--bg); }
.btn--dark:hover { background: var(--fg-2); }
.btn--soft { background: var(--btn2); color: var(--fg); }
.btn--soft:hover { background: var(--btn2-h); }
.btn--line { border: 1px solid var(--line-2); color: var(--fg); }
.btn--line:hover { background: var(--card); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.center .btn-row { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.link svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 64px; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { flex-shrink: 0; display: inline-flex; }
.brand img { height: 24px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: none; gap: 28px; font-size: 15px; }
.nav a { color: var(--fg-2); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { display: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--fg-2); transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--btn2); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle .bars span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.menu-toggle .bars span + span { margin-top: 5px; }
body.menu-open .menu-toggle .bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-toggle .bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .menu-toggle { display: none; }
}
.mobile-menu {
  position: fixed; inset: 64px 0 0; z-index: 49; background: var(--bg); padding: 24px var(--gutter);
  display: grid; align-content: start; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.3s;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font-size: 28px; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-row { display: grid; }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.hero .h1 { max-width: 15em; margin: 0 auto; }
.hero .lead { margin: 24px auto 0; max-width: 34em; }
.hero .btn-row { margin-top: 34px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 6px; margin-bottom: 30px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: var(--bg);
  transition: border-color 0.2s, background-color 0.2s;
}
.badge:hover { border-color: var(--line-2); background: var(--card); }
.badge .new { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.badge .sub { color: var(--fg-3); }
.badge .go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--btn2); }
.badge .go svg { width: 11px; height: 11px; }
@media (max-width: 600px) { .badge .sub { display: none; } }

/* Apparition mot par mot, façon "perspective" */
.words .wd { display: inline-block; opacity: 0; transform: translateY(0.35em) rotateX(-55deg); filter: blur(6px); transform-origin: 50% 100%; }
.words.is-in .wd { animation: wd-in 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
@keyframes wd-in { to { opacity: 1; transform: none; filter: blur(0); } }
.words { perspective: 1200px; }

/* Mot qui change */
.rotator { position: relative; display: inline-block; vertical-align: bottom; white-space: nowrap; transition: width 0.55s var(--ease); }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.055em; border-radius: 2px;
  background: var(--line-2);
}
.rotator .ch { display: inline-block; transition: opacity 0.35s, filter 0.35s, transform 0.45s var(--ease); }
.rotator .ch.out { opacity: 0; filter: blur(8px); transform: translateY(-0.12em); }
.rotator .ch.pre { opacity: 0; filter: blur(8px); transform: translateY(0.12em); }

.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-up.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; } .d2 { transition-delay: 0.24s; } .d3 { transition-delay: 0.36s; } .d4 { transition-delay: 0.48s; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .span-2 { grid-column: span 2; } }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 430px; border-radius: var(--r);
  background: var(--card); overflow: hidden; isolation: isolate; transition: transform 0.5s var(--ease);
}
a.tile:hover { transform: translateY(-3px); }
.tile--ink { background: var(--ink); color: var(--ink-fg); }
.tile-stage { position: relative; flex: 1; overflow: hidden; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 18px; font-size: 16px; position: relative; z-index: 2; }
.tile-foot .t { display: grid; gap: 2px; }
.tile-foot .t small { font-size: 13.5px; color: var(--fg-3); }
.tile--ink .tile-foot .t small, .tile--ink .tile-foot .link { color: var(--ink-fg-3); }
.tile-foot .link { color: var(--fg-2); font-size: 14.5px; flex-shrink: 0; }
.tile-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
.tile--ink .tile-stage::after { background: linear-gradient(transparent, var(--ink)); }
.tile-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 1; background: linear-gradient(var(--card), transparent); pointer-events: none; }
.tile--ink .tile-stage::before { background: linear-gradient(var(--ink), transparent); }
.tile--orb .tile-stage::before, .tile--orb .tile-stage::after { display: none; }
.tile--orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-overlay { position: absolute; left: 24px; top: 22px; right: 24px; z-index: 2; display: grid; gap: 10px; max-width: 26em; }
.tile-overlay .h3 { max-width: 13em; }

/* ---------- Démo : Data (un chiffre, une valeur) ---------- */
.demo { position: absolute; inset: 0; padding: 22px 22px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dd-row {
  display: grid; grid-template-columns: 1fr auto 10px; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--bg); border-radius: 12px; border: 1px solid var(--line);
  transition: border-color 0.5s, opacity 0.6s, transform 0.7s var(--ease);
}
.dd-row .src { color: var(--fg-3); }
.dd-row .val { font-variant-numeric: tabular-nums; font-weight: 500; }
.dd-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transition: background-color 0.4s, box-shadow 0.4s; }
.demo-data.s1 .dd-row i, .demo-data.s2 .dd-row i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.demo-data.s2 .dd-row { opacity: 0.45; transform: scale(0.97); }
.dd-merge { display: flex; justify-content: center; color: var(--fg-4); height: 14px; }
.dd-merge svg { width: 14px; height: 14px; }
.dd-result {
  display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--fg); color: var(--bg);
  opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.5s, transform 0.6s var(--ease);
}
.demo-data.s2 .dd-result { opacity: 1; transform: none; }
.dd-result .k { font-size: 12.5px; opacity: 0.6; }
.dd-result .v { font-size: 30px; letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.dd-result .ok { font-size: 12.5px; color: var(--ok); }
:root:not([data-theme="dark"]) .dd-result .ok { color: #6be3a4; }

/* ---------- Démo : IA (chat sourcé) ---------- */
.chat { position: absolute; inset: 0; overflow: hidden; }
.chat-track { position: absolute; left: 0; right: 0; top: 0; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.7s var(--ease); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; animation: msg-in 0.5s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg.q { align-self: flex-end; background: var(--ink-2); color: var(--ink-fg); border: 1px solid var(--ink-line); }
.tile:not(.tile--ink) .msg.q { background: var(--fg); color: var(--bg); border: 0; }
.msg.a { align-self: flex-start; background: transparent; padding-left: 0; color: var(--ink-fg); }
.tile:not(.tile--ink) .msg.a { color: var(--fg); }
.msg.sys { align-self: flex-start; padding: 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-fg-3); display: grid; gap: 3px; }
.tile:not(.tile--ink) .msg.sys { color: var(--fg-3); }
.msg.sys span::before { content: "✓ "; color: var(--ok); }
.msg.sys span.wait::before { content: "◌ "; color: var(--ink-fg-3); }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.srcs span { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--ink-line); color: var(--ink-fg-3); animation: msg-in 0.4s var(--ease) both; }
.tile:not(.tile--ink) .srcs span { border-color: var(--line-2); color: var(--fg-3); }
.caret { display: inline-block; width: 6px; height: 1em; vertical-align: -2px; background: currentColor; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Démo : Gouvernance (journal) ---------- */
.log { position: absolute; inset: 0; padding: 22px 20px 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.log-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--fg-3); padding: 0 2px 6px; }
.log-head b { font-weight: 400; color: var(--ok); }
.log-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.4;
  animation: log-in 0.6s var(--ease) both;
}
@keyframes log-in { from { opacity: 0; transform: translateY(-10px); max-height: 0; padding-top: 0; padding-bottom: 0; } to { max-height: 80px; } }
.log-row time { font-family: var(--mono); font-size: 11px; color: var(--fg-4); padding-top: 2px; }
.log-row .who { color: var(--fg-3); display: block; font-size: 12px; }
.tag { font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.no { background: var(--accent-soft); color: var(--accent); }
.tag.info { background: var(--btn2); color: var(--fg-2); }

/* ---------- Démo : Harnais IA ---------- */
.harness { position: absolute; inset: 0; padding: 28px 24px 0; display: grid; align-content: start; gap: 0; }
.h-step { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 18px; }
.h-step::before { content: ""; position: absolute; left: 10.5px; top: 22px; bottom: 0; width: 1px; background: var(--line-2); }
.h-step:last-child::before { display: none; }
.h-step::after { content: ""; position: absolute; left: 10.5px; top: 22px; width: 1px; height: 0; background: var(--fg); transition: height 0.5s var(--ease); }
.h-step.done::after { height: calc(100% - 22px); }
.h-step:last-child::after { display: none; }
.h-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; transition: all 0.35s; }
.h-dot svg { width: 11px; height: 11px; opacity: 0; transition: opacity 0.3s; }
.h-step.on .h-dot { border-color: var(--fg); box-shadow: 0 0 0 5px var(--btn2); }
.h-step.done .h-dot { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.h-step.done .h-dot svg { opacity: 1; }
.h-step.deny .h-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.h-txt { font-size: 14px; color: var(--fg-3); transition: color 0.3s; padding-top: 1px; }
.h-txt small { display: block; font-family: var(--mono); font-size: 11px; color: var(--fg-4); margin-top: 2px; }
.h-step.on .h-txt, .h-step.done .h-txt { color: var(--fg); }

/* ---------- Démo : feuille de route ---------- */
.roadmap { background: var(--bg); color: var(--fg); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); overflow: hidden; }
.rm-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rm-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.rm-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.rm-bar b { margin-left: auto; font-weight: 400; font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.rm-head, .rm-row { display: grid; grid-template-columns: 24px 1fr 64px 92px; gap: 12px; align-items: center; padding: 11px 16px; font-size: 13.5px; }
.rm-head { font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.rm-row { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.rm-row:last-of-type { border-bottom: 0; }
.rm-row.on { opacity: 1; transform: none; }
.rm-row .n { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.rm-row .val { font-family: var(--mono); color: var(--ok); letter-spacing: 0.05em; }
.rm-row .val .off { color: var(--fg-4); }
.rm-row .eff { height: 6px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.rm-row .eff i { display: block; height: 100%; width: var(--w); background: var(--fg-3); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.2s; }
.rm-row.on .eff i { transform: scaleX(1); }
.rm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); font-size: 12.5px; color: var(--fg-3); opacity: 0; transition: opacity 0.5s; }
.rm-foot.on { opacity: 1; }
.rm-foot b { font-weight: 500; color: var(--fg); }
@media (max-width: 520px) { .rm-head, .rm-row { grid-template-columns: 20px 1fr 54px; } .rm-head span:last-child, .rm-row .eff { display: none; } }

/* ---------- Split + art granuleux ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1.15fr; gap: 72px; } .split--rev > :first-child { order: 2; } }
.split-copy { display: grid; gap: 22px; align-content: start; }
.split-copy .h2 { max-width: 12em; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 10px; }
.facts div { display: grid; gap: 2px; }
.facts b { font-weight: 450; font-size: 17px; }
.facts span { font-size: 13px; color: var(--fg-4); }

.art {
  position: relative; border-radius: 4px; padding: clamp(28px, 5vw, 56px); overflow: hidden; isolation: isolate;
  background: var(--card);
}
.art::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 15%, #e5484d 0%, transparent 60%),
    radial-gradient(55% 60% at 100% 100%, #8d8d96 0%, transparent 65%),
    radial-gradient(50% 55% at 10% 90%, #d4d4d9 0%, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.art--cool::before {
  background:
    radial-gradient(60% 70% at 85% 15%, #c41e2a 0%, transparent 60%),
    radial-gradient(55% 60% at 100% 100%, #3b3b45 0%, transparent 65%),
    radial-gradient(50% 55% at 10% 90%, #cfcfd5 0%, transparent 70%);
}
.art--ink::before {
  background:
    radial-gradient(60% 70% at 80% 20%, #7a1820 0%, transparent 60%),
    radial-gradient(55% 60% at 100% 100%, #e5484d 0%, transparent 60%),
    radial-gradient(60% 60% at 0% 100%, #24242a 0%, transparent 70%);
}
.art::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift { to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.px { position: absolute; width: 14px; height: 14px; background: var(--bg); z-index: 1; }
.px.tl { top: 0; left: 0; } .px.tr { top: 0; right: 0; } .px.bl { bottom: 0; left: 0; } .px.br { bottom: 0; right: 0; }
.px.s { width: 8px; height: 8px; }
.art .window { position: relative; }
.art .tile { min-height: 420px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); }

/* ---------- Stats / points forts ---------- */
.points { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { padding: 36px 0; display: grid; gap: 12px; align-content: start; }
.point + .point { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .point { padding: 44px 36px; }
  .point:first-child { padding-left: 0; }
  .point + .point { border-top: 0; border-left: 1px solid var(--line); }
}
.point b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 450; letter-spacing: -0.035em; line-height: 1.05; }
.point p { color: var(--fg-3); font-size: 15.5px; max-width: 24em; }

/* ---------- Offres ---------- */
.offers { display: grid; gap: 14px; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer { border-radius: var(--r); background: var(--card); padding: 32px 30px 30px; display: flex; flex-direction: column; gap: 18px; }
.offer .tagline { font-size: 15px; color: var(--fg-3); }
.offer .h3 { min-height: 2.4em; }
.offer hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; width: 100%; }
.checks { display: grid; gap: 11px; font-size: 15px; color: var(--fg-2); }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; background: var(--fg-4);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.6'/></svg>") center / contain no-repeat; }
.offer .btn { margin-top: auto; }
.offer--entry { background: var(--fg); color: var(--bg); }
.offer--entry .tagline, .offer--entry .checks { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.offer--entry hr { border-color: color-mix(in srgb, var(--bg) 20%, transparent); }
.offer--entry .checks li::before { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.offer--entry .btn--dark { background: var(--bg); color: var(--fg); }

/* ---------- Parcours (diagnostic → missions) ---------- */
.flow { display: grid; gap: 14px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr 1fr 1fr; } }
.flow-card { border-radius: var(--r); background: var(--card); padding: 28px; display: grid; gap: 12px; align-content: start; }
.flow-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; margin-bottom: 8px; }
.flow-card .ico svg { width: 20px; height: 20px; }
.flow-card p { color: var(--fg-3); font-size: 15.5px; }
.flow-card em { font-style: normal; color: var(--fg); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--fg-3); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--fg-2); max-width: 44em; }

/* ---------- CTA final ---------- */
.cta { text-align: center; }
.cta .h2 { max-width: 14em; margin: 0 auto; }
.cta .lead { margin: 18px auto 0; }
.cta .btn-row { margin-top: 30px; }

/* ---------- Formulaire ---------- */
.form-card { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; color: var(--fg-2); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg-3); }
.field textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; cursor: pointer; transition: all 0.2s; }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--fg-3); text-align: center; }
.form-status { font-size: 14.5px; color: var(--ok); text-align: center; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.foot { display: grid; gap: 40px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1.3fr 2fr; } .foot-brand { border-right: 1px dashed var(--line-2); } }
.foot-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-brand img { height: 22px; width: auto; }
.foot-brand small { font-size: 13px; color: var(--fg-3); }
.foot-brand .foot-tools { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 40px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 600px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot-cols h3 { font-size: 14.5px; font-weight: 450; margin-bottom: 12px; }
.foot-cols ul { display: grid; gap: 8px; }
.foot-cols a { font-size: 14.5px; color: var(--fg-3); transition: color 0.2s; }
.foot-cols a:hover { color: var(--fg); }

/* ---------- Légal ---------- */
.prose { max-width: 760px; display: grid; gap: 16px; color: var(--fg-2); }
.prose h2 { font-size: 22px; font-weight: 450; color: var(--fg); margin-top: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .words .wd, .fade-up { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ==========================================================================
   Ajouts : menu Missions, onglets, page démo
   ========================================================================== */

/* ---------- Menu déroulant « Offres » : la liste à gauche, l'aperçu à droite. Sobre : un fondu, rien d'autre. ---------- */
.nav { align-items: center; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--fg-2); transition: color 0.2s; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--fg); }
.nav-btn svg { width: 10px; height: 10px; transition: transform 0.25s; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 48; padding-top: 6px; }
.mega.open { display: block; }
.mega.open .mega-in { animation: mega-in 0.22s ease-out both; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega-in { display: grid; grid-template-columns: 330px 1fr; gap: 14px; max-width: 1040px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.3); }
.mega-list { display: grid; align-content: start; gap: 2px; }
.mega-list a { display: grid; gap: 3px; padding: 15px 18px; border-radius: 16px; transition: background-color 0.15s; }
.mega-list a.on { background: var(--card); }
.mega-list b { font-size: 19px; font-weight: 450; letter-spacing: -0.02em; }
.mega-list span { font-size: 15px; line-height: 1.4; color: var(--fg-3); }
.mega-stage { position: relative; min-height: 400px; border-radius: 18px; overflow: hidden; background: var(--card); }
.mega-pane.tile { position: absolute; inset: 0; min-height: 0; border-radius: 0; display: none; }
.mega-pane.tile.on { display: flex; animation: pane-in 0.25s ease-out both; }
@keyframes pane-in { from { opacity: 0; } }
.mega-pane .demo, .mega-pane .log { padding: 30px 30px 0; }
.mega-pane .chat-track { padding: 30px; }
.mega-pane .roadmap { margin: 30px; }
@media (max-width: 959px) { .mega { display: none !important; } }

/* Carte diagnostic : le titre ne touche plus le visuel */
.tile-overlay .h3 { max-width: 9.5em; }

/* ---------- Onglets sur le champ de points ---------- */
.field-tile { min-height: min(600px, 74vh); }
.seg { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.25); }
.seg button { position: relative; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; color: var(--fg-3); transition: color 0.25s, background-color 0.25s; overflow: hidden; }
.seg button.on { color: var(--fg); background: var(--btn2); }
.seg button.on.auto::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: seg-fill 7s linear both; }
@keyframes seg-fill { from { transform: scaleX(0); } }
.seg-cap { position: absolute; left: 24px; top: 22px; z-index: 3; display: grid; gap: 8px; max-width: 16em; }
.seg-cap .h3 { transition: opacity 0.3s, filter 0.3s; }
.seg-cap.swap .h3 { opacity: 0; filter: blur(6px); }

/* ---------- Démo IA : avec ou sans gouvernance ---------- */
.lab { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 1040px) { .lab { grid-template-columns: 270px minmax(0, 1fr) 340px; } }
.lab-col { background: var(--card); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lab-col h2 { font-size: 13.5px; font-weight: 400; color: var(--fg-3); }
.lab-col > div { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.mode button { height: 38px; border-radius: 999px; font-size: 14px; color: var(--fg-3); transition: background-color 0.3s, color 0.3s; }
.mode button.on { background: var(--fg); color: var(--bg); }
.pf { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 1040px) { .pf { grid-template-columns: 1fr; } }
.pf button { text-align: left; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 1px; font-size: 14.5px; transition: border-color 0.2s, box-shadow 0.2s; }
.pf button small { font-size: 12.5px; color: var(--fg-3); }
.pf button.on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.sugg { display: grid; gap: 6px; }
.sugg button { text-align: left; padding: 9px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.35; color: var(--fg-2); background: var(--bg); border: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.sugg button:hover { border-color: var(--line-2); color: var(--fg); }
.lab.busy .sugg button, .lab.busy .pf button, .lab.busy .mode button { pointer-events: none; opacity: 0.6; }

.lab-chat { padding: 0; gap: 0; overflow: hidden; height: 640px; transition: box-shadow 0.4s; }
.lab[data-state="off"] .lab-chat { box-shadow: inset 0 0 0 1px var(--accent-soft); }
.lab[data-state="on"] .lab-chat { box-shadow: inset 0 0 0 1px var(--ok-soft); }
.lab-bar { display: flex !important; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); }
.lab-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transition: background-color 0.4s, box-shadow 0.4s; }
.lab[data-state="on"] .lab-bar i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.lab-bar span { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.lab-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex !important; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.lm { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: msg-in 0.5s var(--ease) both; }
.lm.q { align-self: flex-end; background: var(--fg); color: var(--bg); }
.lm.a { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.lm.a .srcs span { border-color: var(--line-2); color: var(--fg-3); }
.lm.sys { align-self: center; max-width: 100%; padding: 2px 8px; font-size: 13px; color: var(--fg-3); text-align: center; }
.lm.sys b, .lm.warn b, .lm.good b { font-weight: 500; color: inherit; }
.lm.sys b { color: var(--fg); }
.lm.warn, .lm.good { align-self: stretch; max-width: 100%; font-size: 13.5px; border-radius: 12px; }
.lm.warn { background: var(--accent-soft); color: var(--accent); }
.lm.warn.soft { background: var(--btn2); color: var(--fg-2); }
.lm.good { background: var(--ok-soft); color: var(--ok); }
.lm.cta { align-self: stretch; max-width: 100%; padding: 0; }
.lm.cta button { width: 100%; height: 42px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14.5px; }
.lab-input { display: flex !important; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.lab-input input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.lab-input input:focus { outline: none; border-color: var(--fg-3); }

.lab .harness, .lab .log { position: static; padding: 0; }
.lab .h-step { padding-bottom: 12px; }
.lab .h-step.skip { opacity: 0.35; }
.lab .h-step.skip .h-dot { border-style: dashed; }
.lab .log { max-height: 250px; overflow: hidden; }
.log-empty { font-size: 13px; color: var(--fg-3); padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.meter { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.meter div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 9px; display: grid; gap: 2px; }
.meter b { font-size: 26px; font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.meter span { font-size: 11.5px; line-height: 1.25; color: var(--fg-3); }
.meter.off div:first-child b { color: var(--accent); }
.meter.on div:first-child b { color: var(--ok); }
.lab-note { text-align: center; font-size: 13px; color: var(--fg-3); margin-top: 18px; }
@media (max-width: 1039px) { .lab-chat { height: 560px; order: -1; } }

/* Corrections */
.choice { position: relative; }               /* la case masquée ne fait plus déborder la page */
.cta .btn-row { justify-content: center; }    /* boutons du bloc final centrés */
/* ---------- Ajustements ---------- */
.site-header { height: 68px; }
.brand img { height: 31px; }
.foot-brand img { height: 27px; }
.mobile-menu { inset: 68px 0 0; }
.nav a, .nav-btn { white-space: nowrap; }
@media (max-width: 1180px) { .header-inner { gap: 26px; } .nav { gap: 20px; } .header-actions .btn--soft { display: none !important; } }

/* Film (rendu Blender) */
.film { position: relative; border-radius: var(--r); overflow: hidden; background: #e6e6e8; }
.film video { display: block; width: 100%; height: auto; }
.film-cap { position: absolute; left: 24px; top: 22px; right: 24px; display: grid; gap: 10px; max-width: 24em; color: #0b0b0c; }
.film-cap .kicker { color: #55555a; }
.film-steps { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.film-steps span { font-size: 13.5px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: #0b0b0c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 700px) { .film-cap { position: static; padding: 20px 20px 0; max-width: none; } .film-steps { position: static; padding: 0 16px 16px; } }
@media (min-width: 900px) { .flow.four { grid-template-columns: repeat(4, 1fr); } }
.flow-card .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* Tuiles vidéo (rendus Blender) : toujours sombres, dans les deux thèmes */
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #070708; }
.tile--film { background: #070708; color: #ededee; }
.tile--film .tile-stage::before, .tile--film .tile-stage::after { display: none; }
.tile--film .tile-foot .t small, .tile--film .tile-foot .link, .tile--film .kicker { color: #8a8a90; }
.tile--film .tile-overlay { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.mega-pane.tile--film { background: #070708; }
.film { background: #070708; }
.film video { aspect-ratio: 16 / 8; object-fit: cover; }
.film-cap { color: #f3f3f4; }
.film-cap .kicker { color: #9a9aa0; }

/* Calendrier (page Conformité) */
.tl { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.4vw, 18px); }
.tl-row b { font-weight: 450; }
.tl-row > span:nth-child(2) { color: var(--fg-2); }
@media (max-width: 700px) { .tl-row { grid-template-columns: 1fr auto; } .tl-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* Page « Pourquoi Arktype » */
.point small { font-size: 12.5px; color: var(--fg-4); }
.narrow { max-width: 46em; }
.ba { border-top: 1px solid var(--line); }
.ba-row { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.4; }
.ba-row > :first-child { color: var(--fg-3); }
.ba-row i { font-style: normal; color: var(--accent); }
.ba-head { font-size: 13.5px; padding: 14px 0; }
.ba-head > * { color: var(--fg-4) !important; }
@media (max-width: 700px) { .ba-row { grid-template-columns: 1fr; gap: 6px; } .ba-row i, .ba-head { display: none; } .ba-row > :last-child::before { content: "→ "; color: var(--accent); } }
.offer .pb { font-size: 13.5px; color: var(--accent); }
.sources { display: grid; gap: 8px; font-size: 13.5px; color: var(--fg-3); max-width: 60em; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
