/* Castelid par RSMIND · site v2 · charte Castelid (Spectral, IBM Plex), thèmes Nuit et Pierre.
   Aucune ressource externe, aucun style en ligne : compatible avec la CSP stricte du site. */

@font-face { font-family: "Spectral"; src: url("../fonts/spectral-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --f-display: "Spectral", Georgia, "Times New Roman", serif;
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --r-sm: 2px; --r-md: 4px; --r-lg: 8px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --rose: #ea4492;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root, [data-theme="pierre"] {
  color-scheme: light;
  --ground: #f5f2ec; --surface: #ffffff; --sunken: #ece7dd; --stone: #e1d9ca;
  --line: #d6cebf; --line-strong: #857e70;
  --ink: #16233f; --muted: #515a6c; --on-ink: #ffffff;
  --rose-text: #b21f63;
  --crit: #a3152e; --eleve: #a8430c; --moyen: #7a5e00; --faible: #566175; --resolu: #1e67a0;
  --logo-ink: #16233f; --logo-muted: #515a6c;
  --shadow: 0 8px 24px rgba(22, 35, 63, .14);
  --grid-line: rgba(22, 35, 63, .07);
  --glow: rgba(225, 217, 202, .9);
}
[data-theme="nuit"], .scope-nuit {
  color-scheme: dark;
  --ground: #0d1524; --surface: #152036; --sunken: #0a101c; --stone: #24314b;
  --line: #2a3853; --line-strong: #6b7891;
  --ink: #eef0f4; --muted: #a4aec0; --on-ink: #0d1524;
  --rose-text: #f48bbe;
  --crit: #ff8f99; --eleve: #ffa66e; --moyen: #e5c04f; --faible: #b0b9c9; --resolu: #86bbe8;
  --logo-ink: #f5f2ec; --logo-muted: #a4aec0;
  --shadow: 0 8px 24px rgba(0, 0, 0, .5);
  --grid-line: rgba(164, 174, 192, .07);
  --glow: rgba(36, 49, 75, .85);
}
.scope-nuit { color: var(--ink); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--stone); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose-text); outline-offset: 2px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.ar { width: .95em; height: .95em; vertical-align: -.14em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .875em; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.visually-hidden { position: absolute !important; 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: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-text); }
.display { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.3rem, 1.35rem + 2.9vw, 3.85rem); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 24px; text-wrap: balance; }
.display-muted { color: var(--muted); }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 1.25rem + 1.95vw, 2.85rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font: 600 18px/26px var(--f-sans); }
.lead { font-size: clamp(17px, 1rem + .25vw, 19px); line-height: 1.6; color: var(--muted); max-width: 64ch; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin: 18px 0 0; }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); max-width: 90ch; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1px solid transparent; border-radius: var(--r-md); font: 600 15px/20px var(--f-sans); text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease); white-space: nowrap; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--rose)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--stone); border-color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: 14px; gap: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; color: var(--ink); transition: border-color .2s ease, background-color .2s ease; }
.icon-btn:hover { border-color: var(--line-strong); background: var(--stone); }
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn-sm { width: 30px; height: 30px; }
.icon-btn-sm .i { width: 14px; height: 14px; }

.tag { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); font: 400 11px/16px var(--f-mono); color: var(--muted); letter-spacing: 0; text-transform: none; vertical-align: 2px; white-space: nowrap; }
.tag-you { color: var(--rose-text); border-color: currentColor; }

/* Badges de gravité : mot + pictogramme + couleur */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--r-sm); background: var(--surface); font: 600 11px/16px var(--f-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge .i { width: 12px; height: 12px; }
.sev-critique { color: var(--crit); }
.sev-eleve { color: var(--eleve); }
.sev-moyen { color: var(--moyen); }
.sev-faible { color: var(--faible); }
.sev-resolu { color: var(--resolu); }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }

/* ---------- Barre de progression, annonce, en-tête ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--rose); transform-origin: 0 50%; transform: scaleX(0); }
.announce { background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 14px; }
.announce-row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 8px; }
.announce p { margin: 0; color: var(--muted); }
.announce strong { color: var(--ink); font-weight: 600; }
.announce-short { display: none; }
.announce a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.announce a:hover { color: var(--rose-text); }
.announce-dot { width: 8px; height: 8px; flex: none; background: var(--rose); border-radius: 50%; box-shadow: 0 0 0 0 rgba(234, 68, 146, .5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234, 68, 146, .45); } 70% { box-shadow: 0 0 0 8px rgba(234, 68, 146, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 68, 146, 0); } }

.site-header { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--ground) 84%, transparent); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 36px; width: auto; }
.lg-ink { fill: var(--logo-ink); }
.lg-rose { fill: var(--rose); }
.lg-muted { fill: var(--logo-muted); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a { position: relative; display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: var(--r-md); transition: color .2s ease; }
.site-nav a:not(.btn):hover, .site-nav a.is-current { color: var(--ink); }
.site-nav a.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink); }
.nav-cta-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
[data-theme="nuit"] .i-moon, [data-theme="pierre"] .i-sun { display: none; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline-block; }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(44px, 6.5vw, 96px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%); }
.hero-bg::after { content: ""; position: absolute; width: 900px; height: 900px; right: -220px; top: -260px; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--surface) 70%, transparent); font: 500 13px/18px var(--f-sans); color: var(--muted); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: pulse 2.4s ease-out infinite; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-proofs { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.hero-proofs li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proofs .i { color: var(--ink); }

/* Console d'agent */
.console { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.console::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); opacity: .6; }
.console-top, .console-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.console-title { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/18px var(--f-mono); color: var(--muted); }
.console-title .i { color: var(--ink); }
.console-ctrl { display: flex; gap: 6px; }
.console-ctrl .i-play { display: none; }
.console.is-paused .console-ctrl .i-play { display: inline-block; }
.console.is-paused .console-ctrl .i-pause { display: none; }
.console-meta { background: var(--sunken); font-size: 13px; color: var(--muted); flex-wrap: wrap; row-gap: 8px; }
.console-mods { display: flex; gap: 6px; }
.mod { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); font: 400 12px/16px var(--f-mono); color: var(--muted); transition: color .3s ease, border-color .3s ease, background-color .3s ease; }
.mod::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--line-strong); transition: background-color .3s ease; }
.mod.is-on { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.mod.is-on::before { background: var(--ink); animation: blink 1.2s steps(2, start) infinite; }
.mod.is-done { color: var(--ink); }
.mod.is-done::before { background: var(--resolu); }
@keyframes blink { to { visibility: hidden; } }
.console-log { height: 392px; overflow-y: auto; padding: 16px 14px 8px; background: var(--sunken); font: 400 13px/1.55 var(--f-mono); scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.console-log:focus-visible { outline-offset: -2px; }
.cl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; margin-bottom: 9px; color: var(--ink); animation: type .5s steps(18, end) both; }
.cl-tag { color: var(--muted); font-size: 12px; }
.cl-tag::before { content: "› "; color: var(--line-strong); }
.cl-txt { min-width: 0; overflow-wrap: anywhere; }
.cl .m { color: var(--muted); }
.cl .k { font-weight: 600; }
.cl .badge { padding: 0 6px; font-size: 10px; line-height: 16px; vertical-align: 1px; background: transparent; }
.cl .badge .i { width: 10px; height: 10px; }
.cl.is-phase { margin-top: 14px; }
.cl.thinking { color: var(--muted); animation: none; }
.cl.thinking .cl-txt::after { content: ""; display: inline-block; width: 1.6em; text-align: left; animation: dots 1s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cl.gate { margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-left: 2px solid var(--rose); border-radius: var(--r-md); background: var(--surface); animation: none; }
.cl.gate .cl-tag { color: var(--rose-text); }
.cl.gate p { margin: 0 0 10px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-sans); }
.gate-actions .btn-primary { animation: halo 2.2s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(234, 68, 146, .45); } 70% { box-shadow: 0 0 0 10px rgba(234, 68, 146, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 68, 146, 0); } }
.gate-done { display: inline-flex; align-items: center; gap: 8px; color: var(--resolu); font-weight: 600; }
.cl-caret { display: inline-block; width: 8px; height: 15px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
.console-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); }
.console-phases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; flex: 1 1 320px; counter-reset: ph; }
.console-phases li { position: relative; padding-top: 8px; font: 400 11px/14px var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-phases li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--stone); border-radius: 1px; transition: background-color .4s ease; }
.console-phases li.is-done { color: var(--ink); }
.console-phases li.is-done::before { background: var(--line-strong); }
.console-phases li.is-active { color: var(--ink); }
.console-phases li.is-active::before { background: var(--ink); }
.console-phases li[data-phase="valider"].is-active::before { background: var(--rose); }
.console-note { font: 400 11px/14px var(--f-mono); color: var(--muted); }

/* Bandeau défilant */
.ticker { position: relative; margin-top: clamp(48px, 6vw, 80px); border-block: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list li { display: inline-flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; font: 400 13px/18px var(--f-mono); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.ticker-list li::after { content: ""; width: 5px; height: 5px; background: var(--line-strong); transform: rotate(0deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 32px 24px 32px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font: 600 clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 124px); }
.section-alt { background: var(--sunken); border-block: 1px solid var(--line); }

/* Boucle */
.loop-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.loop-figure { position: relative; }
.loop-svg { width: 100%; max-width: 600px; height: auto; margin-inline: auto; overflow: visible; }
.loop-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.loop-ring-active { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 260px 210px; transition: stroke-dasharray .9s var(--ease); stroke-dasharray: 0 943; }
.loop-dot { transform-origin: 260px 210px; transition: transform .9s var(--ease); }
.loop-dot circle { fill: var(--ink); }
.loop-tour { color: var(--line-strong); fill: currentColor; }
.loop-tour use { fill: currentColor; }
.loop-center-k { fill: var(--muted); font: 600 13px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; text-anchor: middle; }
.loop-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; transition: fill .4s ease, stroke .4s ease; }
.loop-node use { fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s ease; }
.loop-node text { fill: var(--muted); font: 600 17px var(--f-sans); transition: fill .4s ease; }
.loop-node.is-active rect { fill: var(--ink); stroke: var(--ink); }
.loop-node.is-active use { stroke: var(--on-ink); }
.loop-node.is-active text { fill: var(--ink); }
.loop-gate rect { stroke: var(--rose); stroke-width: 2; }
.loop-gate.is-active rect { stroke: var(--rose); }
.loop-steps { display: flex; flex-direction: column; gap: 4px; }
.loop-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r-md); background: transparent; text-align: left; position: relative; transition: background-color .3s ease, border-color .3s ease; }
.loop-step::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; background: transparent; transition: background-color .3s ease; }
.loop-step:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.loop-step[aria-pressed="true"] { background: var(--surface); border-color: var(--line); }
.loop-step[aria-pressed="true"]::before { background: var(--ink); }
.loop-step.is-gate[aria-pressed="true"]::before { background: var(--rose); }
.ls-num { font: 400 13px/24px var(--f-mono); color: var(--muted); }
.ls-body { display: flex; flex-direction: column; gap: 4px; }
.ls-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.ls-text { color: var(--muted); font-size: 15px; line-height: 1.55; }

.guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.guard, .bento-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: radial-gradient(420px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--ink) 7%, transparent), transparent 45%), var(--surface); transition: border-color .3s ease, transform .3s var(--ease); }
.guard:hover, .bento-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.guard .i, .bento-card > .i { width: 22px; height: 22px; color: var(--ink); margin-bottom: 18px; }
.guard h3, .bento-card h3 { font: 600 16px/24px var(--f-sans); margin-bottom: 6px; }
.guard p, .bento-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Explorateur Tier 0 */
.t0 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.t0-graph { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 0 clamp(36px, 5vw, 64px); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--ground); background-image: radial-gradient(var(--grid-line) 1.2px, transparent 1.2px); background-size: 18px 18px; }
.t0-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.t0-edges path { fill: none; stroke-width: 1.5; transition: stroke .4s ease, opacity .4s ease; }
.t0-edges path.is-open { stroke: var(--crit); stroke-dasharray: 5 7; animation: flow 1.1s linear infinite; opacity: .85; }
.t0-edges path.is-closed { stroke: var(--line-strong); stroke-dasharray: 2 6; opacity: .45; }
.t0-edges path.is-sel { stroke-width: 2.6; opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.t0-col { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.t0-col-title { margin: 0 0 4px; font: 600 11px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t0-node { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); text-align: left; font-size: 14px; line-height: 1.35; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.t0-node strong { font-weight: 600; }
.t0-node .mono, .t0-via { overflow-wrap: anywhere; }
.t0-node .mono { font-size: 12px; color: var(--muted); }
.t0-node .badge { font-size: 10px; padding: 0 6px; margin-bottom: 3px; }
.t0-node .badge .i { width: 10px; height: 10px; }
.t0-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; font-weight: 600; }
.t0-state .i { width: 12px; height: 12px; }
.t0-via { display: none; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.choke:hover { border-color: var(--ink); }
.choke.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choke.is-closed { background: var(--sunken); border-style: dashed; }
.choke.is-closed strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.target .i { width: 18px; height: 18px; margin-bottom: 4px; }
.target.is-safe { border-color: var(--resolu); }
.entry.is-safe { border-color: var(--resolu); }
.t0-panel { display: flex; flex-direction: column; gap: 14px; }
.t0-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.kpi-num { font-size: 24px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.kpi-num.is-good { color: var(--resolu); }
.kpi-label { font-size: 12px; color: var(--muted); line-height: 1.3; }
.t0-agent, .t0-fiche { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.t0-agent { border-left: 2px solid var(--ink); }
.t0-agent-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 11px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t0-agent p:not(.t0-agent-k) { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.t0-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fiche-head .eyebrow { margin: 0; }
.fiche-head .mono { color: var(--muted); }
.fiche-title { margin: 8px 0 2px; font: 600 18px/26px var(--f-sans); }
.fiche-sub { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.fiche-dl { margin: 0 0 14px; display: grid; gap: 10px; }
.fiche-dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.fiche-dl dt { font: 600 11px/20px var(--f-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fiche-dl dd { margin: 0; font-size: 14px; line-height: 1.5; }
.t0-fiche.is-swap { animation: fade .35s ease; }
@keyframes fade { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Modules */
.tablist { display: flex; flex-wrap: wrap; gap: 10px; }
.tablist [role="tab"] { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 200px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: left; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.tablist [role="tab"] .i { grid-row: span 2; width: 24px; height: 24px; color: var(--muted); }
.tab-name { font: 600 21px/1.15 var(--f-display); }
.tab-verb { font: 600 11px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tablist [role="tab"]:hover { border-color: var(--line-strong); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] .i, .tablist [role="tab"][aria-selected="true"] .tab-verb { color: var(--on-ink); opacity: .8; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 14px; padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); animation: fade .4s ease; }
.mod-copy .h3 { margin-bottom: 10px; }
.mod-copy > p { color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; }
.checks .i { width: 16px; height: 16px; margin-top: 3px; color: var(--resolu); }
.mod-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.mod-facts dt { font: 600 11px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mod-facts dd { margin: 4px 0 0; font-weight: 600; }
.mod-visual { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); }
.mv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.mv-head .eyebrow { margin: 0; color: var(--muted); }
.mv-head .mono { font-size: 12px; color: var(--muted); }
.mv-caption { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.sev-bars { display: flex; flex-direction: column; gap: 12px; }
.sev-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; gap: 12px; align-items: center; }
.sev-row .mono { text-align: right; font-weight: 600; color: var(--ink); }
.sev-track { height: 8px; background: var(--stone); border-radius: 1px; overflow: hidden; }
.sev-fill { display: block; height: 100%; width: 0; background: currentColor; transition: width 1.1s var(--ease); }
.sev-row[data-sev="critique"] .sev-fill { color: var(--crit); }
.sev-row[data-sev="eleve"] .sev-fill { color: var(--eleve); }
.sev-row[data-sev="moyen"] .sev-fill { color: var(--moyen); }
.sev-row[data-sev="faible"] .sev-fill { color: var(--faible); }
.mv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mv-box { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.mv-box .mono { font-size: 12px; color: var(--muted); }
.mv-k { font: 600 11px/16px var(--f-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mv-big { font-size: 28px !important; color: var(--ink) !important; font-weight: 600; line-height: 1.1; }
.tier-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0; }
.tier-meter span { height: 10px; background: var(--stone); border-radius: 1px; }
.tier-meter span.on { background: var(--eleve); }
.lots { display: flex; flex-direction: column; gap: 10px; }
.lot { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.lot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lot > .mono { display: block; margin: 6px 0 10px; font-size: 12px; color: var(--muted); }
.lot-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.lot-steps li { position: relative; padding-top: 8px; font-size: 12px; color: var(--muted); }
.lot-steps li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--stone); border-radius: 1px; }
.lot-steps li.ok { color: var(--ink); }
.lot-steps li.ok::before { background: var(--resolu); }
.lot-steps li.wait { color: var(--moyen); font-weight: 600; }
.lot-steps li.wait::before { background: var(--moyen); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.drift-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.drift-sum > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.drift-n { font-size: 28px !important; font-weight: 600; line-height: 1.1; }
.drift-sum .state { font-size: 12px; }
.drift-sum .state .i { width: 12px; height: 12px; }
.drift-list { display: flex; flex-direction: column; }
.drift-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.drift-list .badge { min-width: 92px; justify-content: center; }

.formules { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.formules-head .muted { margin-top: 8px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font: 600 11px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
tbody th { font-weight: 600; }
.formules-table td { text-align: center; vertical-align: middle; }
.formules-table thead th:not(:first-child) { text-align: center; }
.formules-table td.mono { font-size: 14px; color: var(--muted); }
.formules-table .yes { width: 18px; height: 18px; margin: 0 auto; color: var(--resolu); }
.formules-table .no { color: var(--line-strong); }
.formules-table .tag { margin-left: 6px; }
.formules-table tr.is-pilot th, .formules-table tr.is-pilot td { background: color-mix(in srgb, var(--stone) 45%, transparent); }
.extras { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.extras .muted { margin-top: 8px; }
.extra-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.extra-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.extra-list .i { color: var(--muted); }
.extra-list .mono { color: var(--muted); }

/* Agents IA */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.agents-copy .lead { margin: 18px 0 0; }
.agents-copy .checks { margin-bottom: 28px; }
.agents-inv { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--ground); }
.inv-head .eyebrow { margin: 0; color: var(--muted); }
.inv-head .mono { font-size: 12px; color: var(--muted); white-space: nowrap; }
.inv-row { border-bottom: 1px solid var(--line); }
.inv-row summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; transition: background-color .2s ease; }
.inv-row summary::-webkit-details-marker { display: none; }
.inv-row summary:hover { background: color-mix(in srgb, var(--stone) 40%, transparent); }
.inv-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-type { font-size: 13px; color: var(--muted); white-space: nowrap; }
.inv-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .25s ease; }
.inv-row[open] .inv-chev { transform: rotate(180deg); }
.inv-body { padding: 0 16px 16px; font-size: 14px; color: var(--muted); animation: fade .3s ease; }
.inv-body p { margin: 0 0 6px; }
.inv-perm { color: var(--ink) !important; font-size: 13px !important; }
.agents-inv .mv-caption { padding: 0 16px 14px; }

/* Preuve */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.proof-copy .lead { margin: 18px 0 28px; }
.proof-control { margin-bottom: 18px; }
.proof-label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--stone); border-radius: 1px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--stone); border-radius: 1px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--ink); border: 3px solid var(--ground); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--ink); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 3px solid var(--ground); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--ink); cursor: grab; }
.proof-ticks { display: flex; justify-content: space-between; margin-top: 6px; font: 400 12px/16px var(--f-mono); color: var(--muted); }
.proof-ticks span { cursor: pointer; }
.proof-ticks span.is-on { color: var(--ink); font-weight: 600; }
.proof-stamp { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 2px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.proof-stamp span:first-child { color: var(--ink); font-weight: 600; }
.proof-board { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 118px; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pm-label { font-size: 15px; line-height: 1.35; }
.pm-bar { height: 10px; background: var(--stone); border-radius: 1px; overflow: hidden; }
.pm-fill { display: block; height: 100%; width: 100%; background: var(--muted); transition: width .8s var(--ease), background-color .5s ease; }
.pm.is-better .pm-fill { background: var(--resolu); }
.pm-val { text-align: right; font-weight: 600; font-size: 15px; white-space: nowrap; }
.pm-delta { display: block; font-size: 12px; font-weight: 400; color: var(--resolu); min-height: 16px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-code { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--sunken); }
.bento-code:hover { transform: none; }
.code-top { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); }
.code { flex: 1; margin: 0; padding: 18px 20px; overflow-x: auto; font: 400 13px/1.75 var(--f-mono); color: var(--ink); tab-size: 2; }
.code code { font: inherit; }
.c-p { color: var(--muted); }
.c-ok { color: var(--resolu); }
.c-k { color: var(--muted); }
html.js .bento-code .code { clip-path: inset(0 0 100% 0); }
html.js .bento-code.is-in .code { animation: unroll 2.2s steps(13, end) .2s forwards; }
@keyframes unroll { to { clip-path: inset(0 0 0 0); } }

/* Tableau comparatif */
.compare { min-width: 760px; }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare .us { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--stone) 55%, transparent); }
.compare thead .us { color: var(--ink); border-top: 2px solid var(--ink); }

/* Pilote */
.pilot-section { padding-block: clamp(40px, 6vw, 80px); }
.pilot { position: relative; padding: clamp(28px, 5vw, 60px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pilot::after { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; bottom: -380px; background: radial-gradient(circle, var(--glow), transparent 62%); pointer-events: none; }
.pilot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pilot .lead { margin: 18px 0 28px; }
.pilot-fine { margin: 18px 0 0; color: var(--muted); max-width: 52ch; }
.pilot-steps { display: flex; flex-direction: column; gap: 4px; counter-reset: s; }
.pilot-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pilot-steps li:last-child { border-bottom: 0; }
.ps-num { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 14px !important; font-weight: 600; }
.pilot-steps strong { display: block; font-weight: 600; margin-bottom: 2px; }
.pilot-steps span:not(.ps-num) { color: var(--muted); font-size: 15px; }

/* Crénelage (motif de marque) */
.crenel { height: 14px; background-image: linear-gradient(90deg, var(--sunken) 50%, transparent 50%); background-size: 64px 14px; background-repeat: repeat-x; }
.crenel-top { position: absolute; inset: 0 0 auto 0; height: 10px; background-image: linear-gradient(90deg, var(--stone) 50%, transparent 50%); background-size: 64px 10px; opacity: .9; }

/* Équipe */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-copy .lead { margin: 18px 0 28px; }
.signature { display: flex; align-items: center; gap: 14px; }
.monogram { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-md); font: 600 20px var(--f-display); }
.signature strong { display: block; }
.signature span:not(.monogram) { display: block; color: var(--muted); font-size: 14px; }
.creds { display: flex; flex-direction: column; }
.creds li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.creds .i { margin-top: 4px; color: var(--resolu); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq summary:hover { color: var(--rose-text); }
.answer { padding: 0 40px 20px 0; color: var(--muted); animation: fade .3s ease; }
.answer p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-side .lead { margin: 18px 0 28px; }
.direct { display: flex; flex-direction: column; gap: 16px; }
.direct li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; }
.direct li > .i { width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.direct .eyebrow { display: block; margin: 0 0 2px; color: var(--muted); }
.direct a { font-weight: 600; text-decoration: none; }
.direct a:hover { color: var(--rose-text); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(20px, 3.5vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--ground); color: var(--ink); font-size: 15px; line-height: 1.4; transition: border-color .2s ease; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.form.was-validated :invalid { border-color: var(--crit); }
.pilot-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); min-width: 0; }
.pilot-fields legend { padding: 0 6px; font: 600 11px/16px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-text); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.form-status { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 2px; border-radius: var(--r-md); font-size: 15px; }
.form-status.ok { border-left-color: var(--resolu); }
.form-status.err { border-left-color: var(--crit); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot p { margin: 0; font-size: 13px; color: var(--muted); max-width: 44ch; }

/* Pied de page */
.site-footer { background: var(--sunken); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; }
.footer-about p { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 40ch; }
.footer-col .eyebrow { color: var(--muted); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--rose-text); text-decoration: underline; }
.footer-col span { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Pages annexes */
.page-plain { padding-block: clamp(56px, 8vw, 104px); }
.legal-inner { max-width: 780px; }
.legal h1, .notice h1 { font: 600 clamp(2rem, 1.4rem + 2vw, 3rem)/1.1 var(--f-display); margin-bottom: 32px; }
.legal section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal h2 { font: 600 18px/26px var(--f-sans); margin-bottom: 8px; }
.legal p { color: var(--muted); }
.legal a { color: var(--ink); }
.todo { padding: 0 4px; background: color-mix(in srgb, var(--rose) 22%, transparent); color: var(--ink); border-radius: var(--r-sm); }
.notice { max-width: 720px; }
.notice .lead { margin-bottom: 28px; }
.notice-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.notice .console { margin: 32px 0; }
.notice .console-log { height: auto; }

/* ---------- Apparition au défilement ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .guards .reveal:nth-child(2), html.js .bento .reveal:nth-child(3), html.js .stats .reveal:nth-child(2) { transition-delay: .08s; }
html.js .guards .reveal:nth-child(3), html.js .bento .reveal:nth-child(4), html.js .stats .reveal:nth-child(3) { transition-delay: .16s; }
html.js .guards .reveal:nth-child(5), html.js .bento .reveal:nth-child(5), html.js .stats .reveal:nth-child(4) { transition-delay: .24s; }
html.js .guards .reveal:nth-child(6), html.js .bento .reveal:nth-child(6), html.js .stats .reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 8px 9px; font-size: 14px; }
  .t0 { grid-template-columns: minmax(0, 1fr); }
  .t0-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .t0-kpis { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px var(--gutter) 24px; background: var(--ground); border-block: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.is-current::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 16px; }
  .nav-cta-mobile .btn { display: flex; width: 100%; padding: 14px 18px; font-size: 16px; color: var(--on-ink); }
  .nav-cta-mobile .btn:hover { color: var(--on-ink); }
  .header-tools { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 760px; }
  .loop-grid, .agents-grid, .proof-grid, .about, .contact-grid, .faq-grid, .pilot-grid, .formules, .extras { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-code { grid-row: auto; }
  .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .announce p { font-size: 13px; }
  .announce-more { display: none; }
  .announce-short { display: inline; }
  .announce-row { gap: 10px; }
  .t0-graph { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
  .t0-edges { display: none; }
  .t0-entries, .t0-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .t0-col-title { grid-column: 1 / -1; }
  .t0-via { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .t0 { display: flex; flex-direction: column; gap: 14px; }
  .t0-panel { display: contents; }
  .t0-kpis { order: -2; position: sticky; top: 70px; z-index: 5; padding: 8px 0; background: var(--sunken); }
  .t0-agent { order: -1; }
  .t0-graph { order: 0; }
  .t0-fiche { order: 1; }
  .kpi { padding: 10px; }
  .kpi-num { font-size: 20px; }
  .formules-table th, .formules-table td { padding: 10px 6px; font-size: 14px; }
  .formules-table .tag { display: block; width: max-content; margin: 4px 0 0; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr { display: block; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare th[scope="row"] { display: block; padding: 0 0 8px; border: 0; font-weight: 600; }
  .compare td { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; font-size: 14px; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-weight: 400; font-size: 12px; line-height: 1.6; }
  .compare td.us { background: none; padding: 6px 8px; margin-top: 4px; border-left: 2px solid var(--ink); background: color-mix(in srgb, var(--stone) 55%, transparent); }
  .code { font-size: 11.5px; padding: 14px; }
  .fiche-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 22px 16px 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .guards, .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-code { grid-column: auto; }
  .tablist [role="tab"] { min-width: 0; flex: 1 1 0; padding: 12px; grid-template-columns: minmax(0, 1fr); }
  .tablist [role="tab"] .i { display: none; }
  .tab-name { font-size: 20px; }
  .extra-list { grid-template-columns: minmax(0, 1fr); }
  .pm { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px 12px; }
  .pm-bar { grid-column: 1 / -1; grid-row: 2; }
  .form, .pilot-fields { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .inv-row summary { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .inv-type { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .console-log { height: 360px; font-size: 12px; }
  .cl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .console-phases li { font-size: 10px; }
  .console-phases li:not(.is-active) { color: transparent; }
  .mv-split, .drift-sum { grid-template-columns: 1fr; }
  .drift-sum { grid-template-columns: repeat(3, 1fr); }
  .answer { padding-right: 0; }
}
@media (max-width: 420px) {
  .brand-logo { height: 30px; }
  .hero-actions .btn { width: 100%; }
  .header-row { gap: 10px; }
  .drift-sum { grid-template-columns: 1fr; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list { flex-wrap: wrap; }
  html.js .bento-code .code { clip-path: none; }
  .t0-edges path.is-open { animation: none; }
}

@media print {
  .announce, .site-header, .ticker, .progress, .console-ctrl { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* Image de partage (générée hors ligne) */
.og { width: 1200px; height: 630px; position: relative; overflow: hidden; padding: 64px 72px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.og .brand-logo { height: 46px; margin-bottom: 40px; }
.og .display { font-size: 56px; margin: 0; }
.og .console { box-shadow: none; }
.og .console-log { height: auto; }
.og .cl { animation: none; }
