/* AIT4U — site.css
   Une seule feuille de style, aucune ressource externe (CSP : style-src 'self'). */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/geist-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #0B0D10;
  --ink-2: #0F1216;
  --paper: #ECE8DF;
  --paper-2: #C9C5BB;
  --muted: #B9B5AB;
  --dim: #9C988E;
  --faint: #8F8B82;
  --accent: #C6F24E;
  --line: rgba(236, 232, 223, .12);
  --line-soft: rgba(236, 232, 223, .08);
  --line-strong: rgba(236, 232, 223, .28);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1280px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--paper); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }
img, svg { display: block; }
h1, h2, h3, p, ul { margin: 0; }
em { font-style: italic; }

/* ---------- Accessibilité ---------- */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 18px; background: var(--accent); color: var(--ink);
  font-family: var(--mono); font-size: 13px; border-radius: 999px;
}
.skip:focus { top: 16px; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Trame ---------- */
.page { position: relative; min-height: 100vh; overflow: clip; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(236,232,223,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,232,223,.035) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}
.aurora { position: absolute; top: -140px; left: -10%; right: -10%; height: 1100px; pointer-events: none; overflow: clip; filter: blur(48px); }
.aurora i { display: block; position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 56vw; height: 56vw; max-width: 820px; max-height: 820px; left: 48%; top: -12%; background: radial-gradient(circle at 45% 45%, rgba(198,242,78,.24), transparent 62%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: 62%; top: 14%; background: radial-gradient(circle, rgba(120,170,255,.16), transparent 62%); }
.aurora i:nth-child(3) { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: -8%; top: 22%; background: radial-gradient(circle, rgba(198,242,78,.14), transparent 65%); }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .055; filter: url(#grain); mix-blend-mode: overlay; }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Typographie ---------- */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.015em; }
.h2 em, .soft { color: var(--dim); }
.lead { color: var(--muted); font-weight: 300; line-height: 1.65; font-size: 17px; }
.accent { color: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.btn > span { position: relative; z-index: 1; }
.btn svg { flex: none; position: relative; z-index: 1; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg:hover svg { transform: translate(3px, -3px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 0 rgba(198,242,78,0); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.btn-primary:hover { box-shadow: 0 10px 40px -10px rgba(198,242,78,.55); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--paper); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; background: rgba(236,232,223,.07); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover::before { transform: scaleY(1); }
.btn-lg { min-height: 60px; padding: 0 30px; gap: 14px; font-family: var(--mono); font-size: 16px; }

/* ---------- Logo ---------- */
.logo { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: .06em; color: var(--paper); }
.logo-4 { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0 2px; background: var(--accent); color: var(--ink); border-radius: 3px; letter-spacing: 0; }
.logo:hover { color: var(--paper); }
.logo .logo-4 { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
.logo:hover .logo-4 { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 18px rgba(198,242,78,.45); }
.logo-sm { font-size: 14px; }
.logo-sm .logo-4 { width: 18px; height: 18px; margin: 0 1px; font-size: 11px; border-radius: 2px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11,13,16,.72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(236,232,223,.08); }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .25s ease, color .25s ease; }
.nav .nav-cta:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero-text { flex: 1.5 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.tags-row { display: flex; align-items: baseline; gap: 12px; }
.tags-row .dot { flex: none; transform: translateY(-2px); }
.tags-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); list-style: none; padding: 0; }
.tags-line li + li::before { content: "/"; margin-right: 12px; color: rgba(236,232,223,.3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.6vw, 112px); line-height: .96; letter-spacing: -.02em; }
.h1 em { color: var(--accent); }
.h1 .w { display: inline-block; }
.orbit-svg .core-ring { filter: drop-shadow(0 0 10px rgba(198,242,78,.35)); }
.hero-lead { max-width: 580px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.hero { position: relative; }
.hero::after { content: "scroll"; position: absolute; left: var(--gutter); bottom: 8px; padding-left: 56px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.hero::before { content: ""; position: absolute; left: var(--gutter); bottom: 16px; width: 40px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.orbit-svg { width: 100%; max-width: 600px; height: auto; overflow: visible; }
.orbit-svg .o-a, .orbit-svg .o-b, .orbit-svg .o-c { transform-origin: 300px 300px; transform-box: view-box; }

/* ---------- Bande de méta-données ---------- */
/* Les filets sont des ombres : celles de la première colonne et de la première ligne
   sont rognées par .facts-box, quel que soit le nombre de colonnes. */
.facts-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0 0 0 -24px; }
.facts li { padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.facts .v { font-size: 17px; }

/* ---------- Défilant ---------- */
.marquee { position: relative; margin-top: 72px; padding: 22px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: clip; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: inline-flex; gap: 48px; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 48px); color: rgba(236,232,223,.85); }
.track span { display: inline-flex; align-items: center; gap: 48px; }
.track span::after { content: "\25C6"; color: var(--accent); font-size: .55em; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(80px, 10vw, 140px); padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-head .titles { display: flex; flex-direction: column; gap: 18px; max-width: 780px; }
.section-head > p { max-width: 400px; color: var(--muted); line-height: 1.6; font-weight: 300; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split.reverse { flex-wrap: wrap-reverse; }
.split > .col { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.split > .col-visual { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }

/* ---------- Cartes métiers ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.card {
  position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; gap: 22px;
  padding: 30px 28px 32px; min-height: 380px;
  border: 1px solid var(--line); border-radius: 6px; background: rgba(236,232,223,.015);
  transition: border-color .4s ease, background .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(198,242,78,.9), transparent 35%, transparent 65%, rgba(198,242,78,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.card::after { content: ""; position: absolute; top: -40%; left: -60%; width: 60%; height: 180%; background: linear-gradient(100deg, transparent, rgba(236,232,223,.07), transparent); transform: skewX(-18deg) translateX(-120%); transition: transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.card:hover { background: rgba(236,232,223,.03); transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.9), 0 0 0 1px rgba(198,242,78,.08); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: skewX(-18deg) translateX(320%); }
.card:hover .icon { transform: rotate(-10deg) scale(1.06); box-shadow: 0 0 24px rgba(198,242,78,.35), inset 0 0 0 1px rgba(198,242,78,.3); background: rgba(198,242,78,.08); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(198,242,78,.4); border-radius: 50%; color: var(--accent); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, background .5s ease; }
.num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.card p { color: var(--muted); line-height: 1.6; font-weight: 300; font-size: 15.5px; flex-grow: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.chips li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 10px; border: 1px solid rgba(236,232,223,.14); border-radius: 999px; color: var(--paper-2); transition: border-color .3s ease, color .3s ease; }
.card:hover .chips li { border-color: rgba(198,242,78,.3); }

/* ---------- Terminal ---------- */
.term { position: relative; width: 100%; margin: 0; border: 1px solid rgba(236,232,223,.14); border-radius: 8px; background: var(--ink-2); overflow: clip; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 60px -30px rgba(198,242,78,.25); }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(236,232,223,.1); }
.lights { display: flex; gap: 7px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(236,232,223,.3); }
.lights i:last-child { background: var(--accent); border-color: var(--accent); }
.term-title { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); }
.term-body { padding: 26px 22px 30px; font-family: var(--mono); font-size: 14px; line-height: 2; overflow-x: clip; }
.term-body .row { display: flex; gap: 18px; }
.term-body .row > span:last-child { min-width: 0; }
.term-body b { font-weight: 400; white-space: nowrap; }
.term-body .row i { font-style: normal; color: var(--faint); }
.term-body .k { flex: none; width: 128px; color: var(--faint); }
.term-body .line { white-space: nowrap; }
.term-body .ok { margin-top: 6px; }
.term-body .ok span { color: var(--paper-2); }
.prompt { color: var(--accent); }
.cursor { display: inline-block; width: 9px; height: 17px; background: var(--paper); vertical-align: -3px; }

/* ---------- Scanner ---------- */
.scanner { position: relative; width: 100%; max-width: 480px; padding: 26px; border: 1px solid rgba(236,232,223,.14); border-radius: 6px; overflow: clip; background: var(--ink-2); }
.cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.cells i { display: block; aspect-ratio: 1; border-radius: 2px; background: rgba(236,232,223,.06); border: 1px solid rgba(236,232,223,.1); }
.cells i.l1 { background: rgba(198,242,78,.28); }
.cells i.l2 { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(198,242,78,.45); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 9%; background: linear-gradient(to bottom, transparent, rgba(198,242,78,.14) 70%, rgba(198,242,78,.6) 100%); border-bottom: 1px solid var(--accent); }
.scan-foot { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); }

/* ---------- Liste sécurité ---------- */
.ledger { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ledger li { position: relative; display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding-left .4s cubic-bezier(.2,.7,.2,1); }
.ledger li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ledger li:hover { padding-left: 8px; }
.ledger li:hover::after { transform: scaleX(1); }
.ledger .n { font-family: var(--mono); font-size: 11px; color: var(--accent); min-width: 26px; }
.ledger .body { display: flex; flex-direction: column; gap: 4px; }
.ledger .t { font-size: 17px; }
.ledger .d { color: var(--dim); font-size: 14.5px; font-weight: 300; line-height: 1.55; }

/* ---------- Outils open source ---------- */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; padding: 0; }
.tool { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px 32px; min-height: 280px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s ease; }
.tool::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tool:hover { background: radial-gradient(120% 90% at 50% 0%, rgba(198,242,78,.06), rgba(236,232,223,.025) 60%); }
.tool:hover::before { transform: scaleX(1); }
.tool h3 { transition: color .3s ease; }
.tool:hover h3 { color: var(--accent); }
.tool-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); }
.tool h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; }
.tool p { color: var(--muted); font-weight: 300; line-height: 1.6; font-size: 15px; flex-grow: 1; }
.tool .k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--paper-2); }

@media (max-width: 1024px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tools { grid-template-columns: minmax(0, 1fr); } .tool { min-height: 0; } }
.soon { display: inline-block; margin-left: 10px; padding: 3px 9px; border: 1px solid rgba(198,242,78,.45); border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); vertical-align: 2px; white-space: nowrap; }

/* ---------- Principes ---------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); list-style: none; padding: 0; }
.principles li { display: flex; flex-direction: column; gap: 16px; padding: 34px 28px 40px 0; border-bottom: 1px solid var(--line); }
.principles .roman { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--accent); transition: transform .5s cubic-bezier(.2,.7,.2,1), text-shadow .5s ease; }
.principles li:hover .roman { transform: translateX(6px); text-shadow: 0 0 24px rgba(198,242,78,.45); }
.principles h3 { font-size: 20px; font-weight: 500; }
.principles p { color: var(--muted); font-weight: 300; line-height: 1.6; font-size: 15.5px; max-width: 300px; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 34px; padding-top: clamp(100px, 12vw, 170px); padding-bottom: clamp(80px, 9vw, 130px); }
.contact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 150px); line-height: .92; letter-spacing: -.025em; }
.contact-title em { color: var(--accent); background: linear-gradient(90deg, var(--accent), #ECE8DF 45%, var(--accent) 55%, var(--accent)); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-position: 100% 0; }
.contact p { max-width: 560px; color: var(--muted); line-height: 1.65; font-weight: 300; font-size: 18px; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; border-top: 1px solid rgba(236,232,223,.1); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 34px; padding-bottom: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); }
.foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--dim); }
.foot a:hover { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; }

/* Interrupteur des animations (sans JavaScript, WCAG 2.2.2) */
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.motion-toggle input { appearance: none; width: 34px; height: 20px; margin: 0; border: 1px solid var(--line-strong); border-radius: 999px; position: relative; cursor: pointer; transition: border-color .25s ease, background .25s ease; }
.motion-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--dim); transition: transform .25s ease, background .25s ease; }
.motion-toggle input:checked { border-color: var(--accent); }
.motion-toggle input:checked::after { transform: translateX(14px); background: var(--accent); }
.motion-toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.motion-toggle label { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--dim); }
body:has(#pause-motion:checked) *, body:has(#pause-motion:checked) *::before, body:has(#pause-motion:checked) *::after { animation-play-state: paused !important; }

/* ---------- Pages de texte (légal, 404) ---------- */
.doc { max-width: 760px; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(80px, 10vw, 140px); display: flex; flex-direction: column; gap: 28px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.02em; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin-top: 20px; }
.doc p, .doc li { color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 17px; }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc a { color: var(--accent); border-bottom: 1px solid rgba(198,242,78,.4); }
.doc a:hover { border-color: var(--accent); }
.doc .entity { font-family: var(--mono); font-size: 16px; color: var(--paper); padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; background: rgba(236,232,223,.02); }
.doc .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.big-404 { font-family: var(--serif); font-style: italic; font-size: clamp(120px, 22vw, 280px); line-height: .85; color: var(--accent); letter-spacing: -.04em; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { 0% { transform: translateY(-10%); } 100% { transform: translateY(1100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; translate: 0 .35em; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8%, 10%) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14%, -10%) scale(.92); } }
@keyframes drift-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12%, -8%) scale(1.08); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(198,242,78,.25)); } 50% { filter: drop-shadow(0 0 22px rgba(198,242,78,.6)); } }
@keyframes cell { 0%, 70%, 100% { background: rgba(236,232,223,.06); box-shadow: none; } 80% { background: rgba(198,242,78,.5); box-shadow: 0 0 10px rgba(198,242,78,.4); } }
@keyframes shimmer { to { background-position: 0 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes hint { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@media (prefers-reduced-motion: no-preference) {
  .orbit-svg .o-a { animation: spin 60s linear infinite; }
  .orbit-svg .o-b { animation: spin-rev 90s linear infinite; }
  .orbit-svg .o-c { animation: spin 140s linear infinite; }
  .dot { animation: pulse 3.2s ease-in-out infinite; }
  .cursor { animation: blink 1.1s step-end infinite; }
  .track { animation: marquee 44s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  .scanline { animation: scan 4.8s cubic-bezier(.45, 0, .55, 1) infinite; }
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation: rise 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-3 { animation: rise .9s .55s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-4 { animation: rise .9s .7s cubic-bezier(.2, .7, .2, 1) both; }
  .h1 .w { animation: word 1s cubic-bezier(.2, .7, .2, 1) both; }
  .h1 .w:nth-child(1) { animation-delay: .12s; } .h1 .w:nth-child(2) { animation-delay: .2s; } .h1 .w:nth-child(3) { animation-delay: .28s; }
  .h1 .w:nth-child(4) { animation-delay: .36s; } .h1 .w:nth-child(5) { animation-delay: .44s; } .h1 .w:nth-child(6) { animation-delay: .6s; }
  .aurora i:nth-child(1) { animation: drift-a 26s ease-in-out infinite; }
  .aurora i:nth-child(2) { animation: drift-b 32s ease-in-out infinite; }
  .aurora i:nth-child(3) { animation: drift-c 38s ease-in-out infinite; }
  .orbit-svg .core-ring { animation: glow 4s ease-in-out infinite; }
  .cells i:not(.l1):not(.l2) { animation: cell 9s ease-in-out infinite; }
  .cells i:nth-child(7n+2) { animation-delay: -1.5s; } .cells i:nth-child(5n+3) { animation-delay: -3.2s; } .cells i:nth-child(11n+5) { animation-delay: -5.1s; }
  .cells i:nth-child(13n+1) { animation-delay: -6.8s; } .cells i:nth-child(9n+4) { animation-delay: -8.2s; }
  .contact-title em { animation: shimmer 6s ease-in-out infinite alternate; }
  .hero::before { animation: hint 2.6s cubic-bezier(.65, 0, .35, 1) infinite; }

  /* Apparitions au défilement (navigateurs qui savent lier une animation au défilement) */
  @supports (animation-timeline: view()) {
    .reveal, .reveal-group > li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    .reveal-group > li:nth-child(2) { animation-range: entry 6% entry 44%; }
    .reveal-group > li:nth-child(3) { animation-range: entry 12% entry 50%; }
    .reveal-group > li:nth-child(4) { animation-range: entry 18% entry 56%; }
    .reveal-group > li:nth-child(5) { animation-range: entry 24% entry 62%; }
    .reveal-group > li:nth-child(6) { animation-range: entry 30% entry 68%; }
    .term-body > div { animation: reveal linear both; animation-timeline: view(); animation-range: entry 20% entry 70%; }
    .term-body > div:nth-child(2) { animation-range: entry 26% entry 76%; } .term-body > div:nth-child(3) { animation-range: entry 32% entry 82%; }
    .term-body > div:nth-child(4) { animation-range: entry 38% entry 88%; } .term-body > div:nth-child(5) { animation-range: entry 44% entry 94%; }
    .term-body > div:nth-child(6) { animation-range: entry 50% entry 100%; } .term-body > div:nth-child(7) { animation-range: entry 56% cover 32%; }
    .term-body > div:nth-child(8) { animation-range: entry 62% cover 36%; } .term-body > div:nth-child(9) { animation-range: entry 68% cover 40%; }
    .term-body > div:nth-child(10) { animation-range: entry 74% cover 44%; } .term-body > div:nth-child(11) { animation-range: entry 80% cover 48%; }
  }
}
/* Pause demandée : les apparitions liées au défilement sont retirées (pas gelées), sinon le bas de page resterait invisible. */
body:has(#pause-motion:checked) .reveal, body:has(#pause-motion:checked) .reveal-group > li, body:has(#pause-motion:checked) .term-body > div { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 480px) {
  .orbit-svg .sectors { display: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .site-header { position: static; }
  .header-in { padding-top: 12px; padding-bottom: 12px; }
  .hero::before, .hero::after { display: none; }
  .aurora { filter: blur(50px); }
  .nav { gap: 0 20px; font-size: 12px; }
  .facts li { padding-top: 20px; padding-bottom: 20px; }
  .principles li { padding-right: 0; }
  .term-body { font-size: 13px; padding: 22px 18px 26px; }
  .term-body .k { width: 100px; }
  .term-body .row { gap: 12px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media print {
  .grid-bg, .marquee, .scanline, .skip, .aurora, .grain { display: none; }
  body { background: #fff; color: #000; }
}
