/* =========================================================================
   SKYNETH — Système de design v2
   Dark HUD cyber-futuriste, version professionnelle.
   Techniques : OKLCH, scroll-driven animations, View Transitions, :has(),
   container queries, text-wrap: balance. Tout dégrade proprement.
   ========================================================================= */

/* Polices hébergées localement (licence SIL OFL) : aucune requête vers Google (Loi 25) */
@font-face { font-family: "Orbitron"; src: url("assets/fonts/orbitron.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("assets/fonts/share-tech-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Code"; src: url("assets/fonts/fira-code.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: dark;
  /* Palette de marque (document d'arborescence) */
  --bg: #0a0d12;
  --gold: #ffc72c;
  --gold-deep: #e5a900;
  --cyan: #00e5ff;
  --green: #00ff66;
  --warn: #ffb347;
  /* Surfaces et texte */
  --surface: oklch(0.19 0.012 250);
  --surface-2: oklch(0.23 0.015 250);
  --line: oklch(0.32 0.015 250 / 0.7);
  --text: oklch(0.95 0.005 250);
  --text-2: oklch(0.82 0.01 250);
  --muted: oklch(0.68 0.015 250);
  /* Lueurs */
  --glow-gold: 0 0 24px color-mix(in oklch, var(--gold) 45%, transparent);
  --glow-cyan: 0 0 24px color-mix(in oklch, var(--cyan) 35%, transparent);
  /* Typo */
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-hud: "Share Tech Mono", ui-monospace, Menlo, monospace;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-code: "Fira Code", ui-monospace, Menlo, monospace;
  /* Mise en page */
  --radius: 14px;
  --max: 1200px;
  --gutter: max(16px, calc((100vw - var(--max)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(60rem 40rem at 85% -10%, color-mix(in oklch, var(--cyan) 7%, transparent), transparent 70%),
    radial-gradient(50rem 40rem at -10% 30%, color-mix(in oklch, var(--gold) 6%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grille HUD discrète */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}
#rain { position: fixed; inset: 0; z-index: -1; opacity: .12; pointer-events: none; }
a { color: var(--cyan); text-underline-offset: 3px; }
img, svg { display: block; }
::selection { background: color-mix(in oklch, var(--gold) 70%, transparent); color: #0a0d12; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .55em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.8vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: .03em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 62ch; }
.hud { font-family: var(--font-hud); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.code { font-family: var(--font-code); font-size: .88rem; }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.ok { color: var(--green); }
.warn { color: var(--warn); }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
.glow { color: #fff; text-shadow: var(--glow-gold); }
.glow-cyan { color: var(--cyan); text-shadow: var(--glow-cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.5em;
  border-radius: 10px; border: 0;
  background: linear-gradient(100deg, var(--gold), var(--gold-deep));
  color: #14100a;
  font: 400 .9rem var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px color-mix(in oklch, var(--gold) 35%, transparent); }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: wait; }
.btn-ghost { background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--cyan) 55%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan), var(--glow-cyan); }
.btn-sm { padding: .6em 1.1em; font-size: .78rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  view-transition-name: header;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 1.12rem var(--font-display); letter-spacing: .16em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  color: var(--muted); text-decoration: none;
  font: 400 .84rem var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn)[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--gold); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sélecteur de langue ---------- */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.site-header .lang-switch { margin-left: auto; position: relative; z-index: 2; }
.lang-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; line-height: 1;
  border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); text-decoration: none;
  font: 400 .76rem var(--font-hud); letter-spacing: .12em;
  transition: color .2s, background .2s;
}
.lang-opt:hover { color: #fff; }
.lang-opt .flag { display: block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.lang-opt[aria-current="true"] { background: #fff; color: var(--bg); }
.lang-opt[aria-current="true"] .flag { box-shadow: 0 0 0 1px rgba(10, 13, 18, .18); }
.site-footer .lang-switch { margin-left: auto; }

/* ---------- Sections ---------- */
main > section, .page-hero { padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px) 0; }
.module { color: var(--cyan); margin: 0 0 14px; }
.module::before { content: "◢ "; }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* ---------- HUD bar ---------- */
.hudbar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 18px 12px;
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
  color: var(--muted);
}
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 8px; animation: pulse 2s ease-in-out infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Hero ---------- */
.hero { padding-bottom: 24px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: clamp(40px, 7vw, 80px); }
.slogan { color: var(--gold); margin: 0 0 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 30px; }
.terminal { font-family: var(--font-code); color: var(--muted); font-size: .85rem; }
.terminal p { margin: 3px 0; }
.caret { color: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.orb-wrap { position: relative; aspect-ratio: 1; width: min(100%, 420px); justify-self: center; }
.ring { position: absolute; border-radius: 50%; }
.r1 { inset: 0; border: 1px solid color-mix(in oklch, var(--gold) 45%, transparent); animation: spin 40s linear infinite; }
.r2 { inset: 9%; border: 1px solid color-mix(in oklch, var(--cyan) 40%, transparent); animation: spin 26s linear infinite reverse; }
.r3 { inset: 18%; border: 1px dashed color-mix(in oklch, var(--gold) 30%, transparent); }
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.gold-dot { background: var(--gold); bottom: 4%; left: 50%; box-shadow: 0 0 12px var(--gold); }
.cyan-dot { background: var(--cyan); top: 12%; right: 14%; box-shadow: 0 0 12px var(--cyan); }
.orb {
  position: absolute; inset: 26%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #ffe39a 45%, var(--gold-deep) 100%);
  box-shadow: 0 0 90px color-mix(in oklch, var(--gold) 45%, transparent);
  view-transition-name: orb;
}
.orb img { width: 45%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 88px); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { color: var(--muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.breadcrumb .here { color: var(--text-2); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Panneaux HUD (coins en équerre) ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  container-type: inline-size;
}
.panel::before, .panel::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.panel.is-cyan::before, .panel.is-cyan::after { border-color: var(--cyan); }
.panel p { color: var(--text-2); }
.panel-title { color: var(--cyan); margin: 0 0 14px; }

a.panel { display: block; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
a.panel:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--gold) 50%, transparent); box-shadow: 0 18px 50px oklch(0 0 0 / .45); }
.more { color: var(--gold); margin-top: 18px; display: inline-block; }

/* Statut */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  font: 400 .72rem var(--font-hud); letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in oklch, var(--green) 10%, transparent);
  color: var(--green); border: 1px solid color-mix(in oklch, var(--green) 35%, transparent);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip.is-beta { color: var(--cyan); background: color-mix(in oklch, var(--cyan) 10%, transparent); border-color: color-mix(in oklch, var(--cyan) 35%, transparent); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
.bento > .full { grid-column: 1 / -1; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tag { color: var(--gold); }

/* Deux niveaux PME / équipes techniques */
.levels { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.levels li { padding: 12px 14px; border-radius: 10px; background: oklch(0 0 0 / .25); border: 1px solid var(--line); font-size: .95rem; color: var(--text-2); }
.levels li strong { display: block; font: 400 .74rem var(--font-hud); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.levels li:first-child strong { color: var(--gold); }
.levels li:last-child strong { color: var(--cyan); }

/* Mission / Vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv .panel h3 { font-size: 1.25rem; }
.mv .when { margin: 0 0 10px; }

/* Listes à puces HUD */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); color: var(--text-2); }
.checks li::before { content: "▸"; position: absolute; left: 4px; color: var(--cyan); }
.checks li strong { color: var(--text); }

/* ---------- Tableau comparatif ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 400 .76rem var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: oklch(0 0 0 / .25); }
td:first-child { color: var(--text); font-weight: 600; }
td { color: var(--text-2); font-size: .96rem; }
td.sky { color: var(--cyan); }
tr:last-child td { border-bottom: 0; }
.footnote { color: var(--muted); font-size: .85rem; margin-top: 12px; max-width: 80ch; }

/* ---------- Console de simulation ---------- */
.console {
  border-radius: var(--radius);
  background: oklch(0.13 0.01 250);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px oklch(0 0 0 / .5), inset 0 1px 0 oklch(1 0 0 / .04);
  overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console-bar i:nth-child(1) { background: #ff5f57; } .console-bar i:nth-child(2) { background: #febc2e; } .console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 8px; }
.console pre {
  margin: 0; padding: 18px 20px; min-height: 15em;
  font: 400 .86rem/1.7 var(--font-code); color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.console .c-cmd { color: var(--gold); }
.console .c-ok { color: var(--green); }
.console .c-ai { color: var(--cyan); }
.console .c-dim { color: var(--muted); }
.console-note { font-size: .82rem; color: var(--muted); margin: 10px 2px 0; }

/* Workflow avant / après */
.flow { display: grid; gap: 14px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.flow-row .hud { width: 100%; margin-bottom: 6px; }
.flow-step { padding: 6px 12px; border-radius: 8px; background: oklch(0 0 0 / .3); border: 1px solid var(--line); font-size: .9rem; }
.flow-step.ai { border-color: color-mix(in oklch, var(--cyan) 50%, transparent); color: var(--cyan); }
.flow-step.is-gate { border-color: var(--gold); background: var(--gold); color: var(--bg); font-weight: 700; box-shadow: var(--glow-gold); }
.flow-arrow { color: var(--muted); }

/* ---------- Ils nous font confiance (fil défilant) ---------- */
.trust { text-align: center; }
.trust .trust-head { margin-bottom: 22px; }
.marquee {
  display: flex; gap: 48px; 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);
}
.marquee-track {
  display: flex; align-items: center; gap: 48px; justify-content: space-around;
  flex: 0 0 auto; min-width: 100%; margin: 0; padding: 0; list-style: none;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 48px)); } }
.trust-item { flex: 0 0 auto; }
.trust-item a, .trust-item .trust-name {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font: 700 1.05rem var(--font-display); letter-spacing: .04em;
  padding: 8px 4px; transition: color .2s;
}
.trust-item a:hover { color: var(--gold); }
.trust-item .brand-logo { flex: 0 0 auto; display: block; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { justify-content: center; }
  .marquee-track { animation: none; min-width: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Neo ---------- */
.neo {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 22px; margin-top: 40px;
  background: color-mix(in oklch, var(--surface) 85%, transparent);
  border: 1px solid color-mix(in oklch, var(--cyan) 30%, transparent);
  border-radius: var(--radius);
  max-width: 680px;
  box-shadow: 0 0 40px color-mix(in oklch, var(--cyan) 8%, transparent);
}
.neo.in-panel { margin-top: 20px; max-width: none; background: oklch(0 0 0 / .25); }

/* ---------- Centre de contrôle QAST (Neo) ---------- */
.qast-hud { margin-top: 40px; max-width: 720px; }
.qast-hud-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.neo-id { display: flex; align-items: center; gap: 16px; }
.neo-id .small { margin: 2px 0 0; }
.qast-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.qast-tile { padding: 12px 14px; border-radius: 10px; background: oklch(0 0 0 / .3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.qast-tile .hud { font-size: .64rem; }
.qast-tile strong { font: 400 .95rem var(--font-code); }
.qast-feed {
  height: 9.2em; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line);
  background: oklch(0.12 0.01 250);
  padding: 12px 14px; color: var(--text-2); font-size: .82rem; line-height: 1.75;
}
.qast-feed .ln { display: block; opacity: 0; animation: feedIn .4s ease forwards; }
.qast-feed .ln .t { color: var(--muted); margin-right: 8px; }
.qast-feed .ln .who { color: var(--cyan); }
.qast-feed .ln.is-ok .st { color: var(--green); }
.qast-feed .ln.is-info .st { color: var(--gold); }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .qast-tiles { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .qast-feed { height: auto; } .qast-feed .ln { opacity: 1; animation: none; } }
.neo-name { color: var(--muted); margin: 0 0 4px; font-size: .74rem; }
.neo-text { margin: 0; font-family: var(--font-code); font-size: .98rem; min-height: 1.6em; color: var(--text); }
.wave { display: flex; gap: 3px; align-items: center; height: 28px; flex: none; }
.wave i { width: 4px; background: var(--cyan); border-radius: 2px; box-shadow: 0 0 8px var(--cyan); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 70%; animation-delay: .1s; }
.wave i:nth-child(3) { height: 100%; animation-delay: .2s; } .wave i:nth-child(4) { height: 60%; animation-delay: .3s; }
.wave i:nth-child(5) { height: 35%; animation-delay: .4s; }
@keyframes wave { 50% { transform: scaleY(.4); } }

/* ---------- Méthode ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--gold); box-shadow: var(--glow-gold); }
.steps h3 { margin: 8px 0; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Profil fondateur ---------- */
.profile { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.profile dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; color: var(--text); }
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 24px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font: 800 2rem var(--font-display); }
.stats span { color: var(--muted); font-size: .72rem; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, color-mix(in oklch, var(--gold) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid color-mix(in oklch, var(--gold) 35%, transparent);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--text-2); }

/* ---------- Formulaire « terminal » ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.term-form { padding: 0; overflow: hidden; }
.term-head { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: center; color: var(--gold); background: oklch(0 0 0 / .25); }
.term-head p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 24px 22px 26px; }
.full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: 6px; font: 400 .8rem var(--font-hud); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.field label::before, .field legend::before { content: "> "; color: var(--gold); }
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px;
  background: oklch(0.13 0.01 250); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font: 400 .98rem var(--font-code);
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in oklch, var(--cyan) 18%, transparent); outline: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { margin: 0; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span {
  display: inline-block; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); color: var(--text-2);
  font: 400 .82rem var(--font-hud); letter-spacing: .08em; text-transform: uppercase;
}
.radios label::before { content: none; }
.radios input:checked + span { border-color: var(--gold); color: var(--gold); background: color-mix(in oklch, var(--gold) 10%, transparent); }
.radios input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.consent input { width: auto; margin-top: 4px; accent-color: var(--gold); }
.form .btn { justify-self: start; }
.form-status { min-height: 1.4em; margin: 0; font-family: var(--font-code); font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.side-stack { display: grid; gap: 20px; }

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: clamp(72px, 10vw, 120px);
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid; gap: 18px;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; font: 400 .82rem var(--font-hud); letter-spacing: .12em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--cyan); }
.syslog { font-family: var(--font-code); font-size: .8rem; margin: 0; color: var(--muted); }
.syslog .ok { margin-right: 6px; }

/* ---------- Page légale ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 16px 0; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: none; }
.legal h2 { font-size: 1.15rem; margin-top: 2.2em; color: var(--gold); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }

/* ---------- Apparition au défilement (CSS natif, si supporté) ---------- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bento > *, .bento > .wide { grid-column: span 3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid, .profile { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 84px 20px 28px;
    background: var(--bg);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav.nav-static { display: flex; position: static; padding: 0; background: none; border: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .orb-wrap { width: min(70vw, 260px); order: -1; }
  .bento > *, .bento > .wide { grid-column: 1 / -1; }
  .mv { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hudbar .hide-sm { display: none; }
  .site-header { gap: 12px; }
  .lang-opt { padding: 4px 7px; gap: 4px; font-size: .72rem; }
  .lang-opt .flag { width: 18px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   INTERRUPTEUR D'OFFRE — v1 : seuls les services aux PME sont visibles.
   Le contenu « équipes techniques » reste dans le code, masqué.
   Pour l'activer plus tard : une seule ligne dans script.js -> SKYNETH_TIER = "all".
   =================================================================== */
.tier-tech { display: none; }
:root[data-tier="all"] .tier-tech { display: revert; }
.mv:has(> .tier-tech) { grid-template-columns: 1fr; }
:root[data-tier="all"] .mv:has(> .tier-tech) { grid-template-columns: 1fr 1fr; }

/* ===================================================================
   INTERRUPTEUR — offre « session stratégique / diagnostic 30 min ».
   Désactivée par défaut. Pour l'activer : script.js -> SKYNETH_BOOKING = true.
   =================================================================== */
.booking-on { display: none; }
:root[data-booking="on"] .booking-on { display: revert; }
:root[data-booking="on"] .booking-off { display: none; }
