/* Cyberiack — charte graphique « salle de veille », v2 (octobre 2026). CSS3 pur, sans framework.

   Principes
   1. Un seul accent de marque, le cyan glacier (--accent). Les couleurs vives sont réservées aux
      niveaux d'alerte (--l1 à --l5) et au vert « vérifié » (--ok), jamais à la décoration.
   2. Contrastes calculés (WCAG 2.2) : tout texte ≥ 4,5:1 sur toutes les surfaces, bordures de champs ≥ 3:1.
   3. Typographie : Space Grotesk (titres), Inter (texte et interface), JetBrains Mono (données :
      heures, numéros, code). Capitales espacées réservées aux étiquettes courtes.
   4. Mouvement sobre : transitions de 150 ms au survol ; seule animation en boucle, le témoin « veille active ».
   5. Signature : la mire du logo et la jauge d'alerte à cinq barres.

   Polices auto-hébergées (licence SIL OFL). */

@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Neutres : encre bleutée (OKLCH, teinte 258°) */
  --bg: #090f17;
  --bg-deep: #060a10;
  --bg-elev: #0d131c;
  --surface: #111721;
  --surface-2: #171e29;
  --line: #222b37;
  --line-strong: #303a48;
  --field: #616d7d;          /* bordure des champs de formulaire (3,2:1 au minimum) */
  --text: #ebeff4;           /* 16,7:1 sur --bg */
  --text-body: #d5dce5;      /* corps des articles, un peu adouci pour la lecture longue */
  --text-2: #b3bbc8;         /* 9,9:1 */
  --text-3: #8a95a4;         /* 6,3:1 — métadonnées */

  /* Marque */
  --accent: #46d1f3;         /* cyan glacier, 10,7:1 */
  --accent-hi: #7de5ff;
  --accent-ink: #001924;     /* texte sur fond accent, 10:1 */
  --accent-soft: rgb(70 209 243 / .1);
  --accent-line: rgb(70 209 243 / .4);
  --ok: #3fd59b;

  /* Niveaux d'alerte : gris, bleu, ambre, orange, rouge */
  --l1: #8d99ab;
  --l2: #609efa;
  --l3: #fabb41;
  --l4: #fa8838;
  --l5: #f64c61;
  --lc: var(--accent);

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: inset 0 1px 0 rgb(255 255 255 / .03), 0 16px 40px -20px rgb(0 0 0 / .8);
  color-scheme: dark;
}

.lvl-1 { --lc: var(--l1); }
.lvl-2 { --lc: var(--l2); }
.lvl-3 { --lc: var(--l3); }
.lvl-4 { --lc: var(--l4); }
.lvl-5 { --lc: var(--l5); }

/* ─── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(1100px 420px at 75% -200px, rgb(70 209 243 / .07), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.18; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-hi); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
::selection { background: rgb(70 209 243 / .3); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding-block: 40px; }
.section--flush { padding-top: 0; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ─── Éléments communs ─────────────────────────────────────────────────── */
.eyebrow { margin: 0 0 12px; font: 600 .75rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker { font: 600 .75rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.kicker:hover { color: var(--accent-hi); }
/* Séparateurs « · » : insécables avant, sécables après, pour qu'un point ne commence jamais une ligne */
.meta { margin: 0; font-size: .84rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.meta > * + *::before { content: "\a0\a0·\a0\20"; }
.meta a { color: var(--text-2); text-decoration: none; }
.meta a:hover { color: var(--accent-hi); }

.section-title { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.015em; }
.section-title::before { content: ""; flex: none; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: 8px;
  font: 600 .95rem/1.2 var(--font); color: var(--accent-ink); background: var(--accent);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { color: var(--accent-ink); background: var(--accent-hi); }
.btn--sm { padding: 8px 14px; font-size: .88rem; }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--text); background: var(--surface); border-color: var(--accent-line); }
.link-arrow { font-weight: 600; font-size: .92rem; text-decoration: none; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

.ico { display: block; flex: none; width: 42px; height: 42px; padding: 10px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgb(70 209 243 / .2); border-radius: 10px; }
.ico-sm { flex: none; width: 16px; height: 16px; }

/* Jauge de niveau d'alerte */
.lvl { display: inline-flex; align-items: center; gap: 8px; color: var(--lc); white-space: nowrap; }
.lvl-bars { display: inline-flex; gap: 2px; }
.lvl-bars i { width: 4px; height: 12px; border-radius: 1px; background: var(--line-strong); transform: skewX(-12deg); }
.lvl-1 .lvl-bars i:nth-child(-n+1), .lvl-2 .lvl-bars i:nth-child(-n+2), .lvl-3 .lvl-bars i:nth-child(-n+3),
.lvl-4 .lvl-bars i:nth-child(-n+4), .lvl-5 .lvl-bars i:nth-child(-n+5) { background: var(--lc); }
.lvl-txt { font: 600 .72rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }

/* ─── Bandeau de veille ────────────────────────────────────────────────── */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line); color: var(--text-3); font: 500 .72rem/1.2 var(--mono); letter-spacing: .02em; }
.topbar-inner { display: flex; align-items: center; gap: 4px 24px; min-height: 34px; white-space: nowrap; overflow: hidden; }
.tb-live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tb-update time { color: var(--text-2); }
.tb-level { display: inline-flex; align-items: center; gap: 10px; color: var(--text-3); text-decoration: none; }
.tb-level:hover { color: var(--text); }
.tb-level .lvl-txt { font-family: var(--mono); letter-spacing: .04em; font-size: .7rem; }
.tb-right { margin-left: auto; }
.pulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(63 213 155 / .5); } 70%, 100% { box-shadow: 0 0 0 7px rgb(63 213 155 / 0); } }

/* ─── En-tête ──────────────────────────────────────────────────────────── */
.masthead-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { flex: none; width: 40px; height: 40px; }
.brand-text { display: grid; gap: 7px; }
.brand-name { font: 700 1.42rem/1 var(--display); letter-spacing: .14em; }
.brand-name b, .footer-brand b { color: var(--accent); font-weight: inherit; }
.brand-sub { font: 500 .8rem/1.2 var(--font); color: var(--text-3); white-space: nowrap; }
.masthead-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mh-link { padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: .93rem; font-weight: 500; text-decoration: none; transition: color .15s, background-color .15s; }
.mh-link:hover, .mh-link[aria-current] { color: var(--text); background: var(--surface); }
.masthead-nav .btn { margin-left: 10px; }

/* Barre des rubriques (reste visible au défilement) */
.sections { position: sticky; top: 0; z-index: 30; background: rgb(9 15 23 / .95); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-block: 1px solid var(--line); }
.sections-inner { position: relative; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.sections-inner::-webkit-scrollbar { display: none; }
.sections a { position: relative; flex: none; display: flex; align-items: center; height: 48px; padding: 0 12px; color: var(--text-2); font-size: .93rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s; }
.sections a:hover, .sections a[aria-current] { color: var(--text); }
.sections a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.sections .sections-extra { margin-left: auto; color: var(--accent); }
.sections .sections-extra:hover { color: var(--accent-hi); }
.sections-mark { width: 0; padding: 0 !important; overflow: hidden; opacity: 0; transition: width .2s, opacity .2s, margin .2s; }
.sections-mark img { flex: none; }
.sections-mark + a { margin-left: -12px; }
.sections.is-stuck .sections-mark { width: 30px; margin-right: 10px; opacity: 1; }
.sections.is-stuck .sections-mark + a { margin-left: 0; }
.sections .sections-mobile { display: none; }

/* ─── Accueil : à la une et fil d'alertes ──────────────────────────────── */
.lead-zone { position: relative; isolation: isolate; padding-block: 36px 12px; }
.lead-zone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(148 163 184 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(148 163 184 / .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 25%, transparent 75%);
}
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: stretch; }

.story { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color .15s; }
.story:hover { border-color: var(--line-strong); }
.story::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 2px; background: var(--lc); }
.story-media { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.story-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 26px 32px 28px; }
.story-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.story .kicker { position: relative; z-index: 2; }
.story-title { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.2rem); font-weight: 700; line-height: 1.14; letter-spacing: -.025em; }
.story-title--long { font-size: clamp(1.4rem, 2.1vw, 1.85rem); }
.story-title a { color: var(--text); text-decoration: none; transition: color .15s; }
.story-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story:hover .story-title a { color: var(--accent-hi); }
.story-summary { margin: 0; max-width: 68ch; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.story-cta { color: var(--accent); font-size: .92rem; font-weight: 600; }
.story-cta::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .15s; }
.story:hover .story-cta::after { transform: translateX(3px); }

.feed { display: flex; flex-direction: column; padding: 22px 22px 20px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.feed-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.12rem; }
.feed-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(63 213 155 / .16); }
.feed-note { color: var(--text-3); font-size: .78rem; }
.feed ol { flex: 1; list-style: none; margin: 0 0 16px; padding: 0; }
.feed li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 13px 0 13px 14px; border-top: 1px solid var(--line); }
.feed li::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 2px; border-radius: 2px; background: var(--lc); }
.feed time { color: var(--text-3); font: 500 .74rem/1 var(--mono); }
.feed li > a { grid-column: 1 / -1; color: var(--text); font-size: .94rem; font-weight: 500; line-height: 1.42; text-decoration: none; }
.feed li > a:hover { color: var(--accent-hi); }
.feed .lvl-bars i { width: 3px; height: 10px; }

/* ─── Cartes d'articles ────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s, background-color .15s; }
.card::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 2px; background: var(--lc); }
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card-media { display: block; width: 100%; aspect-ratio: 40 / 21; object-fit: cover; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .kicker { position: relative; z-index: 2; }
.card-title { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; text-wrap: pretty; }
.card-title a { color: var(--text); text-decoration: none; transition: color .15s; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toute la carte est cliquable */
.card:hover .card-title a { color: var(--accent-hi); }
.card-summary { margin: 0; color: var(--text-2); font-size: .93rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; font-size: .8rem; }
.empty { color: var(--text-3); font-size: .95rem; }

/* ─── Méthode ──────────────────────────────────────────────────────────── */
.band { margin-block: 24px; background: var(--bg-elev); border-block: 1px solid var(--line); }
.method { padding-block: 64px; }
.method-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.method-head p { margin: 0; }
.method-title { margin: 0; max-width: 24ch; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.pillar { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pillar h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.pillar p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.6; }

/* ─── Newsletter et guide ──────────────────────────────────────────────── */
.nl-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center;
  padding: clamp(24px, 4vw, 40px); overflow: hidden;
  background: radial-gradient(640px 260px at 0% 0%, rgb(70 209 243 / .09), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
}
.nl-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, var(--accent), transparent 65%); opacity: .7; }
.nl-box--compact { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; padding: 26px; }
.nl-title { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.nl-text p:last-child { margin-bottom: 0; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; }
.nl-row .btn { flex: none; }
.nl-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: var(--text-3); font-size: .8rem; line-height: 1.5; }
.nl-consent input { margin: 2px 0 0; }

.guide-box { grid-template-columns: 150px minmax(0, 1fr); }
.guide-cover { display: block; transition: transform .2s; }
.guide-cover:hover { transform: translateY(-3px); }
.guide-cover img, .guide-cover-lg { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 24px 48px -24px rgb(0 0 0 / .9); }
.guide-text .nl-form { margin-top: 16px; }

/* ─── Auteur ───────────────────────────────────────────────────────────── */
.avatar {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font: 700 1.2rem/1 var(--display); letter-spacing: .03em; color: var(--accent);
  background: radial-gradient(circle at 30% 25%, #1e2b3c, var(--surface-2) 70%);
  border: 1px solid rgb(70 209 243 / .35);
}
.avatar--sm { width: 42px; height: 42px; font-size: .85rem; }
.avatar--xl { width: 132px; height: 132px; font-size: 2.6rem; border-width: 2px; box-shadow: 0 0 0 8px rgb(70 209 243 / .05); }
.author-card { display: flex; align-items: flex-start; gap: 22px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-text > p { margin: 0; }
.author-kicker { color: var(--text-3); font: 600 .72rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.author-text .author-name { margin-top: 6px; font: 650 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.author-name a { color: var(--text); text-decoration: none; }
.author-name a:hover { color: var(--accent-hi); }
.author-role { color: var(--accent); font-size: .92rem; font-weight: 500; }
.author-text .author-role { margin-top: 4px; }
.author-text .author-bio { max-width: 72ch; margin-top: 10px; color: var(--text-2); font-size: .97rem; }
.author-text .author-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }

/* ─── Article ──────────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; padding-top: 28px; color: var(--text-3); font-size: .84rem; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-hi); }
.crumbs [aria-hidden] { opacity: .6; }

.post-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 270px); justify-content: space-between; align-items: start; gap: 0 56px; }
.post { min-width: 0; padding-bottom: 16px; }
.post-header { padding: 6px 0 28px; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.post h1 { margin: 16px 0 18px; font-size: clamp(1.95rem, 3.7vw, 2.7rem); font-weight: 700; line-height: 1.12; letter-spacing: -.026em; }
.lead { margin: 0 0 24px; color: var(--text-2); font-size: 1.22rem; line-height: 1.6; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline-who { display: grid; margin: 0; font-size: .95rem; line-height: 1.35; }
.byline-who a { color: var(--text); font-weight: 600; text-decoration: none; }
.byline-who a:hover { color: var(--accent-hi); }
.byline-role { color: var(--text-3); font-size: .82rem; }
.byline .meta { margin-left: auto; }
.post-cover { margin: 0 0 36px; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); }
.post-cover img { display: block; width: 100%; }
.post-cover .cover--visual { aspect-ratio: 21 / 9; object-fit: cover; }

.prose { color: var(--text-body); font-size: 1.125rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.15em; }
.prose h2 { margin: 2.1em 0 .65em; font-size: 1.55rem; line-height: 1.25; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.22rem; }
.prose strong { color: var(--text); font-weight: 650; }
.prose em { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .45em 0; padding-left: .25em; }
.prose li::marker { color: var(--accent); }
.prose ol > li::marker { font: 600 .9em var(--mono); }
.prose code { padding: .14em .42em; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: #c4ecf8; font: .86em/1.4 var(--mono); }
.prose pre { overflow-x: auto; padding: 18px 20px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r); }
.prose pre code { padding: 0; border: 0; background: none; color: #d5e7ee; font-size: .88rem; }
.prose blockquote { padding: 2px 0 2px 22px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text-2); border-bottom-color: var(--line-strong); font: 600 .78rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.prose sup { font-size: .7em; line-height: 0; }
.prose--wide { max-width: 78ch; }

.validation { display: flex; align-items: flex-start; gap: 14px; margin-top: 40px; padding: 18px 20px; background: rgb(63 213 155 / .06); border: 1px solid rgb(63 213 155 / .28); border-radius: var(--r); }
.validation .ico { width: 26px; height: 26px; padding: 0; color: var(--ok); background: none; border: 0; }
.validation p { margin: 0; color: var(--text-2); font-size: .95rem; }
.validation strong { color: var(--ok); font-weight: 600; }

.sources { margin-top: 20px; padding: 22px 24px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); }
.sources h2 { margin: 0 0 14px; color: var(--text-3); font: 600 .75rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.sources ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: src; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.sources li::before { content: counter(src, decimal-leading-zero); color: var(--text-3); font: 500 .8rem/1.85 var(--mono); }
.sources a { color: var(--text-2); text-decoration-color: var(--line-strong); }
.sources a:hover { color: var(--accent-hi); text-decoration-color: currentColor; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); font: 500 .8rem/1 var(--font); text-decoration: none; transition: color .15s, border-color .15s; }
.tags a:hover { color: var(--accent-hi); border-color: var(--accent-line); }

.rail-title { margin: 0 0 12px; color: var(--text-3); font: 600 .72rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
  font: 500 .86rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
.share a:hover, .share button:hover { color: var(--text); background: var(--surface-2); border-color: var(--accent-line); }
.post-share { display: none; margin: 28px 0; }
.post-rail { position: sticky; top: 76px; display: grid; gap: 28px; padding-top: 8px; font-size: .9rem; }
.post-rail .share { flex-direction: column; align-items: stretch; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; color: var(--text-3); line-height: 1.4; text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--accent); }
.rail-level { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.rail-level p { margin: 10px 0 0; color: var(--text-3); font-size: .84rem; line-height: 1.5; }
.post .author-card { margin-top: 36px; }
.related { margin-top: 32px; border-top: 1px solid var(--line); }

/* ─── Pages de liste, À propos, offres ─────────────────────────────────── */
.page-header { max-width: 780px; padding: 8px 0 36px; }
.page-header--wide { max-width: 880px; }
.page-title { margin: 0 0 16px; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -.028em; }
.page-header .lead { margin-bottom: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }

.about-hero { display: flex; align-items: center; gap: 44px; padding: 24px 0; }
.about-hero .page-title { margin-bottom: 8px; }
.about-hero .author-role { margin: 0 0 14px; }
.about-hero .lead { max-width: 66ch; margin-bottom: 20px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.disclaimer { margin: 0; font-size: .85rem; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pipeline li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pipeline h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.pipeline p { margin: 0; color: var(--text-2); font-size: .94rem; }
.step { color: var(--accent); font: 600 .8rem/1 var(--mono); letter-spacing: .08em; }
.levels { display: grid; max-width: 520px; margin: 0 0 16px; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--line); border-radius: var(--r); }
.levels li { display: flex; align-items: center; gap: 18px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.levels li:last-child { border-bottom: 0; }
.levels-n { width: 2.6em; color: var(--text-3); font: 600 .8rem/1 var(--mono); }

.offers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.offer { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s; scroll-margin-top: 76px; }
.offer:nth-child(n+4) { grid-column: span 3; }
.offer:hover { border-color: var(--line-strong); }
.offer h2 { margin: 8px 0 0; font-size: 1.22rem; }
.offer p { flex: 1; margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.6; }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 32px 56px; align-items: start; }
.contact-title { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
.check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .95rem; }
.check-list .ico-sm { margin-top: 4px; color: var(--ok); }
.contact-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-form > label, .form-grid label { display: grid; gap: 7px; color: var(--text); font-size: .9rem; font-weight: 600; }
.contact-form .nl-consent { display: flex; margin: 0; font-weight: 400; }
.contact-form .btn { justify-self: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type="email"], input[type="text"], input:not([type]), select, textarea {
  width: 100%; padding: 11px 13px; color: var(--text); background: var(--bg); border: 1px solid var(--field); border-radius: 8px;
  font: 400 1rem/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #7a879a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(70 209 243 / .22); }
input[type="checkbox"] { flex: none; width: 16px; height: 16px; accent-color: var(--accent); }

.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; padding: 8px 0 16px; }
.guide-cover-lg { max-width: 320px; }
.guide-toc-title { margin: 28px 0 10px; color: var(--text-3); font: 600 .75rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.guide-list { margin: 0; padding: 0; list-style: none; counter-reset: ch; border-top: 1px solid var(--line); }
.guide-list li { counter-increment: ch; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding: 10px 0; color: var(--text-2); font-size: .97rem; border-bottom: 1px solid var(--line); }
.guide-list li::before { content: counter(ch, decimal-leading-zero); color: var(--accent); font: 600 .8rem/1.95 var(--mono); }

/* ─── Confirmations, 404, aperçu ───────────────────────────────────────── */
.notfound { max-width: 780px; padding: 72px 0 48px; }
.notfound .lead { margin-bottom: 28px; }
.code { display: inline-block; margin: 0 0 18px; padding: 6px 10px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgb(70 209 243 / .25); border-radius: 4px; font: 600 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.terminal { max-width: 720px; margin: 0 0 28px; padding: 18px 20px; overflow-x: auto; white-space: pre-wrap; color: var(--text-2); background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: var(--r); font: .9rem/1.7 var(--mono); }
.t-prompt { color: var(--ok); }
.t-err { color: var(--l5); }
.t-cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preview-banner { margin: 0; padding: 10px; text-align: center; color: #1a1300; background: var(--l3); font: 700 .8rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ─── Pied de page ─────────────────────────────────────────────────────── */
.site-footer { margin-top: 56px; color: var(--text-3); background: var(--bg-deep); border-top: 1px solid var(--line); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: 52px 36px; }
.footer-about p { max-width: 46ch; margin: 0 0 12px; line-height: 1.6; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--text); font: 700 1.1rem/1 var(--display); letter-spacing: .14em; text-decoration: none; }
.footer-brand:hover { color: var(--text); }
.footer-note { font-size: .82rem; }
.footer-title { margin: 0 0 14px; color: var(--text-2); font: 600 .72rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-grid nav a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.footer-grid nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: .8rem; }

/* ─── Progression de lecture, mode hacker (Konami) ─────────────────────── */
.read-progress { position: fixed; z-index: 50; inset: 0 0 auto; height: 2px; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--accent); }
.matrix { position: fixed; inset: 0; z-index: 100; pointer-events: none; transition: opacity .8s; }
.hacker-toast {
  position: fixed; z-index: 101; left: 50%; top: 40%; transform: translate(-50%, -50%);
  padding: 18px 26px; text-align: center; color: var(--ok); background: rgb(6 10 16 / .92);
  border: 1px solid var(--ok); border-radius: var(--r); font: 700 clamp(1.1rem, 3vw, 1.6rem) var(--mono); transition: opacity .8s;
}

/* ─── Adaptation aux écrans ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .page-article .crumbs { max-width: 760px; margin-inline: auto; }
  .post-rail { display: none; }
  .post-share { display: block; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer, .offer:nth-child(n+4) { grid-column: auto; }
  .offer:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .guide-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .guide-cover-lg { max-width: 240px; }
  .brand-sub { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topbar .tb-update, .topbar .tb-right { display: none; }
  .masthead-inner { min-height: 64px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.18rem; letter-spacing: .12em; }
  .masthead-nav .mh-link { display: none; }
  .sections-inner { width: 100%; padding-inline: 4px; mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .sections-mark + a { margin-left: 0; }
  .sections .sections-extra { margin-left: 0; }
  .sections .sections-mobile { display: flex; }
  .section { padding-block: 36px; }
  .lead-zone { padding-top: 20px; }
  .story-body { padding: 20px 20px 22px; }
  .feed { padding: 18px; }
  .nl-box, .guide-box { grid-template-columns: minmax(0, 1fr); }
  .guide-cover img { max-width: 130px; }
  .nl-row { flex-direction: column; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .avatar--xl { width: 96px; height: 96px; font-size: 2rem; }
  .author-card { flex-direction: column; gap: 16px; padding: 22px; }
  .byline .meta { width: 100%; margin-left: 0; }
  .method { padding-block: 48px; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .offer:last-child:nth-child(odd) { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 40px 28px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .prose { font-size: 1.06rem; line-height: 1.72; }
  .lead { font-size: 1.1rem; }
  .card-body { padding: 16px 18px 18px; }
  .footer-grid nav:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .tb-level .tb-label { display: none; }
  .masthead-nav .btn { padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Impression : l'article seul, en noir sur blanc ───────────────────── */
@media print {
  :root { color-scheme: light; }
  body { display: block; color: #111; background: #fff; font-size: 11pt; }
  .topbar, .masthead-nav, .sections, .site-footer, .post-rail, .post-share, .post-cover, .nl-box, .author-card,
  .related, .read-progress, .skip, .tags, .crumbs, .story-media, .card-media { display: none !important; }
  .post-layout { display: block; }
  h1, h2, h3, .brand-name, .prose strong, .prose em, .lead, .prose, .meta, .byline-who a, .validation p, .sources a { color: #111 !important; }
  .prose a { color: #111; text-decoration: underline; }
  .validation, .sources { background: none; border-color: #bbb; }
}

/* ─── Publication automatique (rédigée par IA, publiée sans relecture humaine) ─ */
.auto-note { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px 16px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--r); font-size: .93rem; line-height: 1.55; }
.auto-note .ico-sm { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.auto-note strong { color: var(--text); font-weight: 600; }
.validation--auto { background: var(--surface); border-color: var(--line-strong); }
.validation--auto .ico { color: var(--accent); }
.validation--auto strong { color: var(--text); }
.avatar--auto { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; }
.meta-auto { color: var(--text-2); }
