/* JMS Accounting & Control — feuille de style unique
   Concept : un classeur qui devient un flux contrôlé. Fond bleu nuit tiré du logo,
   cyan = calculé par les règles, ambre pointillé = proposé par l'IA, vert = validé.
   Une seule apparence (sombre), choisie volontairement. */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* couleurs */
  --bg: #071129;
  --bg-2: #0a1634;
  --panel: #0e1d42;
  --panel-2: #12244f;
  --line: #1d2e58;
  --line-2: #2b3f72;
  --fg: #eaf0fb;
  --muted: #a7b4d1;
  --dim: #8696bb;
  --rule: #5fe0ee;      /* calculé par les règles */
  --ai: #f6b54e;        /* proposé par l'IA */
  --ok: #8be3b4;        /* validé par une personne */
  --err: #ff8a80;
  --rule-soft: rgba(95, 224, 238, 0.12);
  --ai-soft: rgba(246, 181, 78, 0.12);
  --ok-soft: rgba(139, 227, 180, 0.12);
  --err-soft: rgba(255, 138, 128, 0.12);
  --grid: rgba(120, 150, 210, 0.08);
  --header-bg: rgba(7, 17, 41, 0.86);
  /* typographie */
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --t-hero: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  /* espace */
  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-s: 6px;
  --radius-m: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--rule); }
:focus-visible { outline: 2px solid var(--rule); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rule); color: var(--bg); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }

.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-link { position: absolute; left: var(--gutter-l); top: -100px; z-index: 100; background: var(--rule); color: var(--bg); padding: 0.5rem 0.9rem; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.lead { font-size: var(--t-lg); color: var(--muted); line-height: 1.55; max-width: 40em; }
.prose { display: grid; gap: 1rem; max-width: 38em; color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 500; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.875rem; padding: 0.65rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--rule); color: var(--bg); }
.btn--primary:hover { background: #8beaf3; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--rule); color: var(--rule); }
.btn--small { min-height: 2.375rem; padding: 0.45rem 1rem; }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); flex: none; }
.brand-mark { width: 4.1rem; height: auto; color: var(--fg); }
.brand-mark path { stroke: currentColor; }
.brand-tag { padding-left: 0.75rem; border-left: 1px solid var(--line-2); font-size: 0.85rem; line-height: 1.3; color: var(--muted); max-width: 14rem; }
@media (max-width: 640px) { .brand-tag { display: none; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a { white-space: nowrap; padding: 0.45rem 0.7rem; border-radius: var(--radius-s); color: var(--muted); font-size: var(--t-sm); text-decoration: none; }
.nav a:hover { color: var(--fg); background: var(--panel); }
.header-tools { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; font-family: var(--f-mono); font-size: var(--t-xs); }
.lang a, .lang span { padding: 0.3rem 0.6rem; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--fg); }
.lang [aria-current="true"] { background: var(--panel-2); color: var(--fg); }

@media (max-width: 1100px) { .nav { display: none; } .header-tools { margin-left: auto; } }
@media (max-width: 420px) { .brand-mark { width: 3.4rem; } .header-tools { gap: 0.5rem; } .header-tools .btn { padding-inline: 0.8rem; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 3rem + 5vw, 7rem); }
.hero::before {
  /* grille de classeur : colonnes de 96 px, lignes de 32 px */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 96px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.hero-text { display: grid; gap: 1.6rem; min-width: 0; }
.hero h1 { font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; max-width: 14em; }
.hero .lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--t-xs); color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* légende commune règle / IA / validation */
.key { display: inline-flex; align-items: center; gap: 0.5rem; }
.key::before { content: ""; width: 1.6rem; height: 0; border-top: 2px solid var(--rule); flex: none; }
.key--ai::before { border-top: 2px dashed var(--ai); }
.key--ok::before { width: 0.6rem; height: 0.6rem; border: 0; border-radius: 50%; background: var(--ok); }

/* ---------- carte « classeur → journal » ---------- */
.sheet {
  position: relative; min-width: 0; margin: 0;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-m);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(95, 224, 238, 0.04);
  font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.5;
  overflow: hidden;
}
.sheet-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.sheet-bar .dots { display: inline-flex; gap: 5px; flex: none; }
.sheet-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.sheet-bar .file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sheet-formula { display: flex; gap: 0.75rem; padding: 0.45rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; overflow: hidden; }
.sheet-formula b { color: var(--dim); font-weight: 400; flex: none; }
.sheet-formula span { overflow: hidden; text-overflow: ellipsis; }
.sheet-grid { position: relative; display: grid; grid-template-columns: 2rem repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.sheet-grid > span { padding: 0.28rem 0.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-grid > span:nth-child(5n) { border-right: 0; }
.sheet-grid .h { color: var(--dim); text-align: center; background: var(--panel); }
.sheet-grid .r { text-align: right; }
.sheet-grid .bad { color: var(--err); background: var(--err-soft); }
.sheet-grid .hand { color: var(--ai); }
.sheet-grid .lab { color: var(--dim); }
.sheet-scan { position: absolute; left: 0; right: 0; top: 0; height: 1.85rem; background: linear-gradient(to bottom, transparent, var(--rule-soft) 45%, rgba(95,224,238,.22) 50%, var(--rule-soft) 55%, transparent); pointer-events: none; opacity: 0; }
.run { list-style: none; margin: 0; padding: 0.75rem 0.9rem 0.9rem; display: grid; gap: 0.32rem; }
.run li { display: grid; grid-template-columns: 4.9rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: baseline; color: var(--muted); }
.run .k { color: var(--dim); }
.run .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.run .s { padding: 0.05rem 0.45rem; border-radius: 4px; font-size: 0.72rem; white-space: nowrap; }
.s--rule { color: var(--rule); border: 1px solid rgba(95,224,238,.35); }
.s--ai { color: var(--ai); border: 1px dashed rgba(246,181,78,.7); }
.s--ok { color: var(--ok); border: 1px solid rgba(139,227,180,.35); }
.s--wait { color: var(--muted); border: 1px solid var(--line-2); }
.sheet-note { padding: 0.55rem 0.9rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.72rem; }
@media (max-width: 480px) { .run li { grid-template-columns: 4.2rem minmax(0, 1fr); } .run .v { white-space: normal; } .run .s { grid-column: 2; justify-self: start; } .sheet-grid > span:nth-child(5n+3), .sheet-grid > span:nth-child(5n+4) { display: none; } .sheet-grid { grid-template-columns: 2rem repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: no-preference) {
  .sheet-scan { animation: scan 1.1s cubic-bezier(.5,0,.3,1) .15s 1 both; }
  .run li { animation: rise .4s ease both; }
  .run li:nth-child(1) { animation-delay: .9s; }
  .run li:nth-child(2) { animation-delay: 1.05s; }
  .run li:nth-child(3) { animation-delay: 1.2s; }
  .run li:nth-child(4) { animation-delay: 1.35s; }
  .run li:nth-child(5) { animation-delay: 1.5s; }
  .run li:nth-child(6) { animation-delay: 1.65s; }
}
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(11.4rem); } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- problème ---------- */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.problem .section-head { margin-bottom: 0; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; counter-reset: row; }
.rows li { counter-increment: row; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows li::before { content: counter(row); display: grid; place-items: center; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--dim); background: var(--panel); border-right: 1px solid var(--line); }
.rows li p { padding: 0.95rem 1.1rem; }
.rows li p span { display: block; color: var(--muted); font-size: var(--t-sm); margin-top: 0.15rem; }
@media (max-width: 860px) { .problem { grid-template-columns: minmax(0, 1fr); } }

/* ---------- réponse ---------- */
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.answer-grid > div { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.answer-grid p { color: var(--muted); }
@media (max-width: 860px) { .answer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- modèle hybride ---------- */
.hybrid { display: grid; gap: 1.5rem; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.switch { display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none; font-weight: 500; }
.switch .track { position: relative; width: 3rem; height: 1.7rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); transition: background-color .2s ease, border-color .2s ease; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.7rem - 8px); height: calc(1.7rem - 8px); border-radius: 50%; background: var(--muted); transition: transform .2s ease, background-color .2s ease; }
.switch-input:checked + .switch-row .track { background: var(--ai-soft); border-color: var(--ai); }
.switch-input:checked + .switch-row .track::after { transform: translateX(1.3rem); background: var(--ai); }
.switch-input:focus-visible + .switch-row .track { outline: 2px solid var(--rule); outline-offset: 3px; }
.switch-state { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.switch-state .on, .switch-state .off { display: none; }
.switch-input:checked + .switch-row .switch-state .on { display: inline; }
.switch-input:not(:checked) + .switch-row .switch-state .off { display: inline; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.flow li { position: relative; display: grid; align-content: start; gap: 0.55rem; padding: 1.1rem 1.1rem 1.25rem; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-m); min-width: 0; transition: opacity .25s ease, border-color .25s ease, background-color .25s ease; }
.flow li::after { content: ""; position: absolute; top: 2.05rem; right: -1.25rem; width: 1.25rem; border-top: 2px solid var(--rule); }
.flow li:last-child::after { display: none; }
.flow .step { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--dim); }
.flow h3 { font-size: 1.05rem; }
.flow p { color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.flow .tag { font-family: var(--f-mono); font-size: 0.7rem; padding: 0.05rem 0.45rem; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.flow .is-rules { border-color: rgba(95,224,238,.55); box-shadow: inset 0 0 0 1px rgba(95,224,238,.12); }
.flow .is-rules .tag { color: var(--rule); border-color: rgba(95,224,238,.4); }
.flow .is-ai { border: 1.5px dashed var(--ai); background: linear-gradient(var(--ai-soft), var(--ai-soft)), var(--panel); }
.flow .is-ai .tag { color: var(--ai); border: 1px dashed rgba(246,181,78,.6); }
.flow .is-ai::after { border-top-style: dashed; border-top-color: var(--ai); }
.flow .is-human .tag { color: var(--ok); border-color: rgba(139,227,180,.4); }
.flow .is-ai .tag .off { display: none; }
.switch-input:not(:checked) ~ .flow .is-ai { opacity: 0.65; border-color: var(--line-2); background: var(--bg-2); }
.switch-input:not(:checked) ~ .flow .is-ai::after { border-top: 2px solid var(--rule); }
.switch-input:not(:checked) ~ .flow .is-ai .tag { color: var(--muted); border-color: var(--line-2); }
.switch-input:not(:checked) ~ .flow .is-ai .tag .on { display: none; }
.switch-input:not(:checked) ~ .flow .is-ai .tag .off { display: inline; }
@media (max-width: 1060px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding-left: 1.5rem; }
  .flow::before { content: ""; position: absolute; left: 0.45rem; top: 1.5rem; bottom: 1.5rem; border-left: 2px solid var(--rule); }
  .flow li::after { top: 1.6rem; right: auto; left: -1.05rem; width: 1.05rem; }
  .flow li:last-child::after { display: block; }
}

.ledger-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-2); }
.ledger { width: 100%; min-width: 40rem; border-collapse: collapse; table-layout: fixed; font-size: var(--t-sm); }
.ledger th:nth-child(1) { width: 5rem; }
.ledger th:nth-child(2) { width: 30%; }
.ledger th:nth-child(3) { width: 8.5rem; }
.ledger caption { text-align: left; padding: 0.85rem 1rem; color: var(--muted); font-size: var(--t-xs); font-family: var(--f-mono); border-bottom: 1px solid var(--line); }
.ledger th, .ledger td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger th { font-weight: 500; color: var(--dim); font-size: var(--t-xs); font-family: var(--f-mono); }
.ledger td.mono { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.ledger .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .s { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 4px; font-family: var(--f-mono); font-size: 0.72rem; white-space: nowrap; }
.ledger .ai-on, .ledger .ai-off { display: none; }
.switch-input:checked ~ .ledger-wrap .ai-on { display: block; }
.switch-input:not(:checked) ~ .ledger-wrap .ai-off { display: block; }
.ledger td .s { margin-top: 0.35rem; }
@media (max-width: 640px) {
  .ledger { min-width: 0; table-layout: auto; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger caption { display: block; }
  .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td { padding: 0; border: 0; }
  .ledger td:nth-child(4) { grid-column: 1 / -1; padding-top: 0.35rem; }
}
.ledger .sub { color: var(--muted); font-size: var(--t-xs); }

/* ---------- domaines ---------- */
.domains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.domains-head, .domains li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 1.5rem; }
.domains-head { padding: 0 0 0.75rem; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--dim); }
.domains-head span:nth-child(2) { color: var(--err); }
.domains-head span:nth-child(3) { color: var(--rule); }
.domains li { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.domains h3 { font-size: 1.1rem; }
.domains p { color: var(--muted); font-size: var(--t-sm); }
.domains .lbl { display: none; font-family: var(--f-mono); font-size: var(--t-xs); margin-bottom: 0.2rem; }
.domains .lbl--x { color: var(--err); }
.domains .lbl--a { color: var(--rule); }
@media (max-width: 760px) {
  .domains-head { display: none; }
  .domains li { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .domains .lbl { display: block; }
}
.domains-note { margin-top: 1.5rem; color: var(--muted); font-size: var(--t-sm); max-width: 46em; }

/* ---------- méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.7rem; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 300; font-size: 3.25rem; line-height: 1; color: var(--rule); letter-spacing: -0.04em; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-2); }
.steps p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- confiance ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.85rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.checklist svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--rule); }
.aside-stack { display: grid; gap: 1.25rem; }
.panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-m); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: grid; gap: 0.75rem; }
.panel p { color: var(--muted); font-size: var(--t-sm); }
.panel--limits { background: transparent; border-style: dashed; }
.controls { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: var(--t-sm); }
.controls li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; color: var(--muted); }
.controls b { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-xs); color: var(--rule); padding-top: 0.15rem; }
@media (max-width: 860px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* ---------- à propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.about-name { display: grid; gap: 1.5rem; }
.about-name h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.02; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.facts dt { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--dim); padding-top: 0.15rem; }
.facts dd { margin: 0; }
.status-note { font-size: var(--t-sm); color: var(--muted); max-width: 40em; line-height: 1.55; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border: 1px solid var(--line-2); border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, rgba(95,224,238,.10), transparent 55%), var(--panel); }
.contact-box h2 { font-size: var(--t-2xl); }
.contact-box .prose { margin-top: 1rem; }
.contact-actions { display: grid; gap: 0.85rem; justify-items: start; }
.email { font-family: var(--f-mono); font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.4rem); color: var(--fg); user-select: all; word-break: break-all; }
.contact-actions .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.copy-status { min-height: 1.4em; font-size: var(--t-xs); color: var(--ok); font-family: var(--f-mono); }
.notice { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.7rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); font-size: var(--t-sm); color: var(--muted); max-width: 44em; }
.notice svg { width: 1.1rem; height: 1.1rem; color: var(--ai); margin-top: 0.2rem; }
@media (max-width: 860px) { .contact-box { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: var(--t-sm); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; }
.site-footer .brand-mark { width: 3.2rem; }
.footer-id { display: grid; gap: 0.6rem; }
.footer-id p { font-size: var(--t-xs); color: var(--dim); line-height: 1.6; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pages de texte (mentions, 404) ---------- */
.doc { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.doc .wrap { max-width: calc(52rem + 32px); }
.doc h1 { font-size: var(--t-2xl); margin-bottom: 0.75rem; }
.doc .updated { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--dim); margin-bottom: 2.5rem; }
.doc h2 { font-size: var(--t-lg); margin: 2.5rem 0 0.9rem; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 0.75rem; }
.doc ul { padding-left: 1.2rem; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; }
.doc dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.doc dl div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.doc dt { color: var(--dim); font-size: var(--t-sm); }
.doc dd { margin: 0; color: var(--fg); }
@media (max-width: 600px) { .doc dl div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }
.todo { display: inline-block; padding: 0 0.4rem; border: 1px dashed var(--ai); border-radius: 4px; color: var(--ai); font-family: var(--f-mono); font-size: 0.85em; }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.25rem; }
.notfound .code { font-family: var(--f-mono); color: var(--err); font-size: var(--t-sm); }
.notfound h1 { font-size: var(--t-2xl); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .hero::before, .sheet-scan, .copy-btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
