:root {
  --bg: #05070F;
  --bg-2: #0A0F1F;
  --ink: #EEF2FF;
  --muted: #A9B4D0;
  --line: rgb(255 255 255 / .1);
  --blue: #4F8BFF;
  --cyan: #22D3EE;
  --net: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Cg transform='translate(0 0)'%3E%3Cpath d='M30 300L110 80L250 140L330 30L575 50L480 110L250 140L370 220L480 110L545 290L370 220L440 345L545 290M110 80L170 215L240 330L370 220L170 215L30 300M330 30L480 110M20 150L110 80M20 150L170 215' fill='none' stroke='%2322D3EE' stroke-opacity='.3' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cg fill='%234F8BFF' fill-opacity='.2'%3E%3Ccircle cx='110' cy='80' r='8'/%3E%3Ccircle cx='370' cy='220' r='8'/%3E%3Ccircle cx='480' cy='110' r='8'/%3E%3Ccircle cx='545' cy='290' r='8'/%3E%3C/g%3E%3Cg fill='%238CB4FF'%3E%3Ccircle cx='30' cy='300' r='2.4'/%3E%3Ccircle cx='110' cy='80' r='2.4'/%3E%3Ccircle cx='250' cy='140' r='2.4'/%3E%3Ccircle cx='330' cy='30' r='2.4'/%3E%3Ccircle cx='370' cy='220' r='2.4'/%3E%3Ccircle cx='480' cy='110' r='2.4'/%3E%3Ccircle cx='575' cy='50' r='2.4'/%3E%3Ccircle cx='545' cy='290' r='2.4'/%3E%3Ccircle cx='240' cy='330' r='2.4'/%3E%3Ccircle cx='440' cy='345' r='2.4'/%3E%3Ccircle cx='170' cy='215' r='2.4'/%3E%3Ccircle cx='20' cy='150' r='2.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --net-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Cg transform='matrix(-1 0 0 -1 600 360)'%3E%3Cpath d='M30 300L110 80L250 140L330 30L575 50L480 110L250 140L370 220L480 110L545 290L370 220L440 345L545 290M110 80L170 215L240 330L370 220L170 215L30 300M330 30L480 110M20 150L110 80M20 150L170 215' fill='none' stroke='%2322D3EE' stroke-opacity='.3' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cg fill='%234F8BFF' fill-opacity='.2'%3E%3Ccircle cx='110' cy='80' r='8'/%3E%3Ccircle cx='370' cy='220' r='8'/%3E%3Ccircle cx='480' cy='110' r='8'/%3E%3Ccircle cx='545' cy='290' r='8'/%3E%3C/g%3E%3Cg fill='%238CB4FF'%3E%3Ccircle cx='30' cy='300' r='2.4'/%3E%3Ccircle cx='110' cy='80' r='2.4'/%3E%3Ccircle cx='250' cy='140' r='2.4'/%3E%3Ccircle cx='330' cy='30' r='2.4'/%3E%3Ccircle cx='370' cy='220' r='2.4'/%3E%3Ccircle cx='480' cy='110' r='2.4'/%3E%3Ccircle cx='575' cy='50' r='2.4'/%3E%3Ccircle cx='545' cy='290' r='2.4'/%3E%3Ccircle cx='240' cy='330' r='2.4'/%3E%3Ccircle cx='440' cy='345' r='2.4'/%3E%3Ccircle cx='170' cy='215' r='2.4'/%3E%3Ccircle cx='20' cy='150' r='2.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --f-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .6rem 1rem; border-radius: 8px; background: var(--blue); color: var(--bg); font-weight: 700; }
.skip:focus { top: 1rem; }

.lg-head, .lg, .lg-foot { width: min(100% - 2rem, 48rem); margin-inline: auto; }
.lg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font: 600 1.05rem var(--f-display); letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo small { color: var(--cyan); font: 500 .62rem var(--f-mono); letter-spacing: .12em; }
.back { font-weight: 600; font-size: .95rem; }

html, body { overflow-x: clip; }
.page-net { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.lg-head, .lg-foot { position: relative; }
.lg { padding-block: 3rem 4rem; position: relative; isolation: isolate; }
/* Bandeaux arrondis derrière les titres ; net.js y ajoute le réseau animé */
.lg-title, .lg h2 { position: relative; isolation: isolate; }
.lg-title { --band-r: 28px; padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2.5rem); margin-bottom: 1.75rem; }
.lg h2 { --band-r: 16px; }
.lg-title::before, .lg h2::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: var(--band-r); pointer-events: none;
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 30px 80px -40px rgb(79 139 255 / .45);
  background:
    var(--net) 100% 40% / auto 115% no-repeat,
    radial-gradient(45% 75% at 82% 30%, rgb(79 139 255 / .26), transparent 70%),
    radial-gradient(40% 70% at 4% 100%, rgb(34 211 238 / .14), transparent 70%),
    linear-gradient(115deg, rgb(22 38 92 / .78), rgb(14 22 52 / .62) 55%, rgb(10 15 31 / .5));
}
.lg h2::before { background-image: var(--net-2), radial-gradient(45% 120% at 90% 30%, rgb(79 139 255 / .22), transparent 70%), radial-gradient(30% 120% at 0% 100%, rgb(34 211 238 / .12), transparent 70%), linear-gradient(115deg, rgb(22 38 92 / .7), rgb(10 15 31 / .45)); background-size: auto 240%, auto, auto, auto; }
.lg .has-net::before { background-image: none, radial-gradient(45% 75% at 82% 30%, rgb(79 139 255 / .26), transparent 70%), radial-gradient(40% 70% at 4% 100%, rgb(34 211 238 / .14), transparent 70%), linear-gradient(115deg, rgb(22 38 92 / .78), rgb(14 22 52 / .62) 55%, rgb(10 15 31 / .5)); }
.band-net { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; border-radius: var(--band-r); pointer-events: none; }
.lg h1 { margin: 0; font: 600 clamp(1.9rem, 5vw, 2.6rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.lg h2 { margin: 3rem 0 1.25rem; padding: 1.1rem 1.25rem; font: 600 1.3rem/1.25 var(--f-display); letter-spacing: -.02em; scroll-margin-top: 1rem; }
.lg h3 { margin: 1.75rem 0 .5rem; font: 700 1.05rem/1.35 var(--f-body); }
.lg p, .lg li { color: #D3D9EA; }
.lg ul, .lg ol { padding-left: 1.25rem; }
.lg li + li { margin-top: .35rem; }
.lg strong { color: var(--ink); }
.upd { margin-top: .75rem; color: var(--muted) !important; font: 500 .85rem var(--f-mono); }
.intro { font-size: 1.1rem; }

.toc { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.toc p { margin: 0 0 .5rem; color: var(--ink) !important; font-weight: 700; }
.toc ol { margin: 0; }

.box { margin-block: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid rgb(34 211 238 / .35); border-radius: 14px; background: rgb(34 211 238 / .05); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }

.todo { padding: .05em .35em; border-radius: 4px; background: #FFD84D; color: #1A1400; font-weight: 600; }

.table-wrap { overflow-x: auto; margin-block: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #D3D9EA; }
th { color: var(--ink); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .06); color: var(--ink); font: 700 .95rem var(--f-body); cursor: pointer; text-decoration: none; }
.btn:hover { background: rgb(255 255 255 / .12); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.status { min-height: 1.7em; color: var(--cyan) !important; font-weight: 600; }

.lg-foot { padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.lg-foot ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.lg-foot a, .lg-foot button { color: var(--muted); }
.lg-foot button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lg-foot a:hover, .lg-foot button:hover { color: var(--ink); }

@media print {
  body { background: #fff; color: #000; }
  .lg p, .lg li, td, th { color: #000; }
  .skip, .back, .lg-foot, .cc { display: none !important; }
}
