/* ==========================================================================
   PPR-Solution — feuille de style principale
   Sommaire
   01 Polices        06 Navigation       11 Prestations
   02 Jetons          07 Hero             12 Schéma pédagogique
   03 Base            08 Scène du hero    13 Pied de page
   04 Typographie     09 Composants SVG   14 Guide de style
   05 Actions         10 Fenêtres tech.   15 Mouvement réduit
   ========================================================================== */

/* 01 POLICES — auto-hébergées (OFL), aucun appel à un CDN tiers */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* 02 JETONS */
:root {
  /* Palette de marque */
  --ivory: #f8f7f3;
  --ivory-deep: #efede6;
  --white: #ffffff;
  --ink: #171717;
  --ink-soft: #3a3a37;
  --grey-ink: #5c5b56;      /* texte secondaire : 6.3:1 sur ivoire */
  --grey: #b7b7b2;          /* traits décoratifs uniquement, jamais du texte */
  --line: #dcdad3;          /* bordures fines */
  --line-strong: #8a8983;   /* contours de champs : 3.3:1 */
  --vermilion: #f05b3f;     /* aplats, boutons (texte encre 5.4:1) */
  --vermilion-ink: #b8391f; /* texte et liens accentués : 5.4:1 sur ivoire */
  --vermilion-tint: #fbe3dc;
  --vermilion-wash: #fdf1ed;

  /* Couleurs sémantiques — distinctes de l'accent de marque */
  --warning: #8a5a00;  --warning-tint: #f6e7c4;  --warning-mark: #e0a21b;
  --success: #1e6b45;  --success-tint: #dcefe3;
  --error:   #a3194a;  --error-tint:   #f6dce5;

  /* Typographie */
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(1.35rem, 1.1rem + 0.9vw, 1.6rem);
  --text-2xl: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem);
  --text-3xl: clamp(2.35rem, 1.4rem + 4.1vw, 4.35rem);

  /* Espacements (base 4 px) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  /* Rayons — hiérarchisés : plus l'objet est grand, plus il est doux */
  --r-xs: 6px;    /* badges, puces de code */
  --r-sm: 10px;   /* modules, champs */
  --r-md: 14px;   /* fenêtres techniques */
  --r-lg: 22px;   /* environnements, panneaux */
  --r-xl: 32px;   /* planches de section */
  --r-pill: 999px;

  /* Traits */
  --stroke: 1.5px;
  --border: 1px solid var(--line);

  /* Mise en page */
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 62ch;

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
}

/* 03 BASE */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--vermilion-tint); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--white);
  border-radius: var(--r-pill); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: var(--s-4); }

/* 04 TYPOGRAPHIE */
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 100;
}
h1 { font-size: var(--text-3xl); line-height: 1.02; }
h2 { font-size: var(--text-2xl); line-height: 1.08; }
h3 { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-soft); max-width: var(--measure); }
.muted { color: var(--grey-ink); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--ivory-deep); padding: 0.08em 0.38em; border-radius: var(--r-xs); }

/* Motif XML n°1 — eyebrow en forme de balise. Décoratif : le vrai titre suit. */
.tag-eyebrow {
  display: inline-flex; align-items: center;
  margin: 0 0 var(--s-4);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  color: var(--vermilion-ink);
  letter-spacing: 0;
}
.tag-eyebrow::before { content: "<"; color: var(--grey-ink); }
.tag-eyebrow::after { content: ">"; color: var(--grey-ink); }

/* 05 ACTIONS */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font: 500 1rem/1.2 var(--font-sans);
  color: var(--btn-fg); background: var(--btn-bg);
  border: var(--stroke) solid var(--btn-bd); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--vermilion); --btn-fg: var(--ink); }
.btn-primary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn-secondary:hover { --btn-bg: var(--white); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--text-sm); }
/* Pastille interne : un petit nœud du langage graphique, pas une flèche ajoutée */
.btn-primary .btn-node { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; flex: none; }

.link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--vermilion);
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  transition: color var(--t-fast) ease-out;
}
.link:hover { color: var(--vermilion-ink); }

.capsule {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.3rem 0.8rem; border: var(--border); border-radius: var(--r-pill);
  background: var(--white); font-size: var(--text-sm); color: var(--ink-soft);
}
.capsule-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--vermilion); flex: none; }

/* 06 NAVIGATION */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) ease-out;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand-mark { width: 2.4rem; height: 1.3rem; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 680; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--grey-ink); letter-spacing: 0; line-height: 1.1; }
.primary-nav { display: flex; align-items: center; gap: var(--s-1); }
.primary-nav a:not(.btn) {
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink-soft);
  transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out;
}
.primary-nav a:not(.btn):hover { background: var(--white); color: var(--ink); }
.primary-nav a:not(.btn)[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--vermilion); border-radius: 0; }
.primary-nav .btn { margin-left: var(--s-3); }
.nav-toggle {
  display: none; width: 2.9rem; height: 2.9rem; padding: 0;
  border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer;
}
.nav-icon, .nav-icon::before, .nav-icon::after {
  display: block; width: 1.1rem; height: 1.5px; margin: auto; background: var(--ink); border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
}
.nav-icon { position: relative; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; left: 0; }
.nav-icon::before { top: -5px; }
.nav-icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: absolute; inset: 100% var(--gutter) auto;
    display: none; flex-direction: column; align-items: stretch; gap: var(--s-1);
    padding: var(--s-3); background: var(--white);
    border: var(--border); border-radius: var(--r-lg);
    box-shadow: 0 18px 40px -24px rgba(23, 23, 23, 0.35);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { padding: 0.8rem 1rem; }
  .primary-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--vermilion); }
  .primary-nav .btn { margin: var(--s-2) 0 0; }
}

/* 07 HERO */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hero-copy h1 { font-size: clamp(2.6rem, 4.3vw, 4.35rem); }
}
.hero-copy h1 { max-width: 13.5ch; }
.hero-copy .lead { margin-top: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero-promises { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); list-style: none; }
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* 08 SCÈNE DU HERO
   Composition absolue sur une « planche » de 600 × 540 unités. Les positions
   sont exprimées en pourcentage de cette planche : la scène garde ses
   proportions sans que le texte ne devienne minuscule (unités cqi + clamp).
   Sous 640 px, la scène est réorganisée en colonne (voir plus bas). */
.scene { margin: 0; container-type: inline-size; }
.scene-stage {
  position: relative;
  aspect-ratio: 600 / 560;
  border-radius: var(--r-xl);
  background-color: var(--white);
  background-image:
    linear-gradient(var(--ivory-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivory-deep) 1px, transparent 1px);
  background-size: 4% 4.2857%;
  background-position: -1px -1px;
  border: var(--border);
  font-size: max(11px, 2.25cqi);
  line-height: 1.35;
}
.scene-stage > * { position: absolute; }
.scene-links { inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scene-links path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.scene-links .link-signal { stroke: var(--warning-mark); stroke-dasharray: 4 5; stroke-width: 2; }
.scene-links .link-diag { stroke: var(--vermilion); stroke-width: 2; }
.scene-chain-mobile { display: none; }

.sc-domain   { left: 3.5%;  top: 7%;    width: 29%; }
.sc-dns      { left: 39.5%; top: 6.3%;  width: 11%; }
.sc-host     { left: 3.5%;  top: 27%;   width: 55%; }
.sc-browser  { left: 64.5%; top: 6.3%;  width: 32%; }
.sc-mail     { left: 62.5%; top: 40.7%; width: 34%; }
.sc-diag     { left: 14%;   top: 62.9%; width: 66%; }

.sc-label { display: block; font-family: var(--font-mono); font-size: 0.82em; color: var(--grey-ink); }

/* 09 COMPOSANTS DU LANGAGE GRAPHIQUE (réutilisés hors hero) */
/* Domaine : capsule-étiquette */
.ui-domain {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.55em 0.9em 0.55em 0.6em;
  background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--r-pill);
}
.ui-domain::before {
  content: ""; width: 0.9em; height: 0.9em; flex: none; border-radius: 50%;
  border: var(--stroke) solid var(--ink); background: var(--vermilion);
}
.ui-domain strong { font-family: var(--font-mono); font-weight: 500; font-size: 0.95em; }

/* DNS : nœud de routage */
.ui-node {
  display: grid; place-items: center; aspect-ratio: 1;
  background: var(--ivory); border: var(--stroke) solid var(--ink); border-radius: 50%;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.9em;
  box-shadow: 0 0 0 0.35em var(--white), 0 0 0 calc(0.35em + 1px) var(--grey);
}

/* Hébergement : environnement contenant des modules */
.ui-env {
  padding: 0.9em; background: var(--ivory); border: var(--stroke) solid var(--ink); border-radius: var(--r-lg);
}
.ui-env-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; margin: 0 0.15em 0.75em; }
.ui-env-head b { font-weight: 600; }
.ui-modules { display: grid; gap: 0.5em; list-style: none; }
.ui-module {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6em;
  padding: 0.6em 0.75em; background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.ui-module code { background: none; padding: 0; font-size: 0.86em; color: var(--grey-ink); }
.ui-module.is-flagged { border-color: var(--warning); box-shadow: 0 0 0 0.25em var(--warning-tint); }
.ui-flag {
  position: absolute; right: -0.65em; top: -0.65em;
  width: 1.5em; height: 1.5em; display: grid; place-items: center;
  border-radius: 50%; background: var(--warning-mark); border: var(--stroke) solid var(--ink);
  font: 600 0.82em/1 var(--font-mono); color: var(--ink);
}

/* Site : navigateur miniature */
.ui-browser {
  overflow: hidden; background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--r-md);
}
.ui-browser-bar {
  display: flex; align-items: center; gap: 0.45em;
  padding: 0.45em 0.6em; border-bottom: 1px solid var(--line); background: var(--ivory);
}
.ui-browser-url {
  flex: 1; display: flex; align-items: center; gap: 0.35em; min-width: 0;
  padding: 0.2em 0.55em; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78em; white-space: nowrap; overflow: hidden;
}
.ui-lock { width: 0.85em; height: 0.95em; flex: none; }
.ui-page { display: grid; gap: 0.45em; padding: 0.8em; }
.ui-page i { display: block; height: 0.5em; border-radius: var(--r-pill); background: var(--ivory-deep); }
.ui-page i:first-child { height: 1.6em; border-radius: var(--r-xs); background: var(--vermilion-tint); }
.ui-page i:nth-child(3) { width: 78%; }
.ui-page i:nth-child(4) { width: 55%; }

/* Message de l'hébergeur (problème rapporté) */
.ui-mail {
  padding: 0.75em 0.85em; background: var(--white);
  border: var(--stroke) solid var(--ink); border-radius: var(--r-md);
  box-shadow: 0.35em 0.35em 0 var(--warning-tint);
}
.ui-mail-from { display: flex; align-items: center; gap: 0.45em; font-family: var(--font-mono); font-size: 0.78em; color: var(--grey-ink); }
.ui-mail-from::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--warning-mark); }
.ui-mail p { margin: 0.35em 0 0; }
.ui-mail .ui-mail-subject { font-weight: 600; }

/* Statuts sémantiques */
.status {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.12em 0.6em; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 0.8em; font-weight: 500; white-space: nowrap;
}
.status::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.status-warning { background: var(--warning-tint); color: var(--warning); }
.status-success { background: var(--success-tint); color: var(--success); }
.status-error { background: var(--error-tint); color: var(--error); }
.status-neutral { background: var(--ivory-deep); color: var(--ink-soft); }
.status-accent { background: var(--vermilion-tint); color: var(--vermilion-ink); }

/* 10 FENÊTRES TECHNIQUES — motif XML n°2 */
.tech-window {
  overflow: hidden; background: var(--white);
  border: var(--stroke) solid var(--ink); border-radius: var(--r-md);
}
.tech-window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75em;
  padding: 0.5em 0.85em; background: var(--ink); color: var(--white);
}
.tech-window-title { font-family: var(--font-mono); font-size: 0.85em; font-weight: 500; }
.tech-window-dots { display: inline-flex; gap: 0.35em; }
.tech-window-dots i { width: 0.55em; height: 0.55em; border-radius: 50%; border: 1px solid var(--grey); }
.tech-window-dots i:first-child { background: var(--vermilion); border-color: var(--vermilion); }
.tech-rows { list-style: none; }
.tech-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75em; flex-wrap: wrap;
  padding: 0.5em 0.85em; border-top: 1px solid var(--line);
}
.tech-row:first-child { border-top: 0; }
.tech-row-key { color: var(--ink-soft); }
.tech-row-val { display: inline-flex; flex-wrap: wrap; gap: 0.35em; align-items: center; font-family: var(--font-mono); font-size: 0.92em; }
.tech-row-next { background: var(--vermilion-wash); }
.tech-row-next .tech-row-key { color: var(--ink); font-weight: 600; }
.tech-chip { padding: 0.05em 0.45em; border: 1px solid var(--line-strong); border-radius: var(--r-xs); background: var(--white); }

.illustration-note { margin: var(--s-3) var(--s-2) 0; font-size: var(--text-sm); color: var(--grey-ink); }

/* Scène : réorganisation sur petit écran */
@media (max-width: 639px) {
  .scene-stage {
    aspect-ratio: auto; display: grid; gap: 1.1rem; padding: 1rem;
    font-size: 0.875rem; background-size: 24px 24px;
  }
  .scene-stage > * { position: relative; inset: auto; width: auto; left: auto; top: auto; }
  .scene-links, .sc-domain, .sc-dns, .sc-browser { display: none; }
  .scene-chain-mobile {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem;
    font-family: var(--font-mono); font-size: 0.74rem; color: var(--grey-ink); list-style: none;
  }
  .scene-chain-mobile li { display: inline-flex; align-items: center; gap: 0.3rem; }
  .scene-chain-mobile li + li::before { content: ""; width: 0.6rem; height: 1.5px; background: var(--ink); }
  .scene-chain-mobile b { padding: 0.15rem 0.55rem; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-weight: 500; }
  .scene-chain-mobile .is-flagged b { border-color: var(--warning); background: var(--warning-tint); }
  .sc-mail { order: 1; }
  .sc-host { order: 2; }
  .sc-diag { order: 3; }
  .sc-host::before, .sc-diag::before {
    content: ""; position: absolute; left: 50%; top: -1.1rem; width: 1.5px; height: 1.1rem; background: var(--ink);
  }
  .sc-host::before { background: repeating-linear-gradient(var(--warning-mark) 0 4px, transparent 4px 8px); }
  .sc-diag::before { background: var(--vermilion); }
}

/* Séquence narrative — l'état par défaut (sans JS / mouvement réduit) est l'état final.
   main.js ajoute .is-armed (état initial masqué) puis .is-playing à l'entrée dans le viewport. */
@media (prefers-reduced-motion: no-preference) {
  .scene.is-armed [data-step],
  .scene.is-armed .tech-row { opacity: 0; }
  .scene.is-armed .scene-links path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .scene.is-armed .ui-flag { transform: scale(0); }
  .scene.is-armed .ui-module.is-flagged { box-shadow: none; border-color: var(--line-strong); }

  .scene.is-playing [data-step] { animation: sc-in 620ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }
  .scene.is-playing .scene-links path { animation: sc-draw 700ms ease-in-out both; animation-delay: calc(var(--d, 0) * 1ms); }
  .scene.is-playing .scene-links .link-signal { animation-name: sc-draw-dashed; }
  .scene.is-playing .ui-flag { animation: sc-pop 520ms var(--ease-out) both; animation-delay: 1900ms; }
  .scene.is-playing .ui-module.is-flagged { animation: sc-flag 900ms ease-out both; animation-delay: 2050ms; }
  .scene.is-playing .tech-row { animation: sc-row 420ms var(--ease-out) both; animation-delay: calc(3050ms + var(--i, 0) * 260ms); }
}
@keyframes sc-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sc-draw-dashed { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes sc-flag {
  0% { border-color: var(--line-strong); box-shadow: 0 0 0 0 var(--warning-tint); }
  45% { border-color: var(--warning); box-shadow: 0 0 0 0.7em var(--warning-tint); }
  100% { border-color: var(--warning); box-shadow: 0 0 0 0.25em var(--warning-tint); }
}
@keyframes sc-row { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* SECTIONS */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.plate {
  margin-inline: clamp(0.5rem, 1.6vw, 1.5rem);
  background: var(--white); border: var(--border); border-radius: var(--r-xl);
}
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lead { margin-top: var(--s-4); }

/* 11 PRESTATIONS — index éditorial, pas une grille de cartes */
.services-layout { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) {
  .services-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-12); }
  .services-aside { position: sticky; top: 6.5rem; align-self: start; }
}
.services-aside .section-head { margin-bottom: var(--s-6); }
.scope-note {
  padding: var(--s-5); border-radius: var(--r-lg); background: var(--ivory-deep);
  font-size: var(--text-sm); color: var(--ink-soft);
}
.scope-note h3 { font-size: 1rem; margin-bottom: var(--s-2); }
.scope-note p:last-child { margin-bottom: 0; }

.service-list { list-style: none; border-top: var(--stroke) solid var(--ink); }
.service {
  position: relative;
  display: grid; gap: var(--s-3) var(--s-6);
  grid-template-columns: 4.25rem minmax(0, 1fr);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
}
.service-glyph { width: 4.25rem; height: 3rem; color: var(--ink); }
.service-body { display: grid; gap: var(--s-2); }
.service-key { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--grey-ink); }
.service h3 { font-size: var(--text-xl); font-family: var(--font-display); font-weight: 620; letter-spacing: -0.015em; }
.service-problem { margin: 0; color: var(--ink-soft); }
.service-detail { display: grid; gap: var(--s-2) var(--s-8); margin-top: var(--s-2); }
.service-detail h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s-1); }
.service-detail ul { list-style: none; display: grid; gap: 0.2rem; font-size: 0.97rem; }
.service-detail li { position: relative; padding-left: 1.1rem; }
.service-detail li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 0.42rem;
  border-radius: 50%; border: 1.5px solid var(--ink);
}
.service-limit li::before { border-color: var(--grey-ink); border-radius: 2px; }
.service-limit { color: var(--grey-ink); }
.service-cta { margin-top: var(--s-3); justify-self: start; }
@media (min-width: 720px) {
  .service-detail { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.service::before {
  content: ""; position: absolute; left: -1rem; top: var(--s-6); bottom: var(--s-6); width: 3px;
  border-radius: 3px; background: var(--vermilion); transform: scaleY(0); transform-origin: top;
  transition: transform var(--t-base) var(--ease-out);
}
.service:hover::before, .service:focus-within::before { transform: scaleY(1); }

/* Variante mise en avant : PHP, cas le plus fréquent, avec fenêtre explicative */
.service-featured { grid-template-columns: 4.25rem minmax(0, 1fr); }
.service-featured .service-aside-window { margin-top: var(--s-3); max-width: 30rem; font-size: 0.9rem; }
.service-caution {
  display: flex; gap: var(--s-3); align-items: flex-start;
  margin-top: var(--s-3); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); background: var(--warning-tint); color: #4d3300; font-size: 0.95rem;
}
.service-caution::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; border-radius: 50%; background: var(--warning-mark); color: var(--ink); font: 600 0.8rem/1 var(--font-mono); }
@media (max-width: 559px) {
  .service, .service-featured { grid-template-columns: minmax(0, 1fr); }
  .service-glyph { width: 3.5rem; height: 2.5rem; }
  .service::before { left: -0.6rem; }
}

/* 12 SCHÉMA PÉDAGOGIQUE */
.chain-controls { margin-bottom: var(--s-8); }
.chain-controls p { font-weight: 600; margin-bottom: var(--s-3); }
.chain-choices { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.chip-btn {
  min-height: 2.6rem; padding: 0.45rem 1rem;
  font: 500 0.95rem/1.2 var(--font-sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast);
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.chain {
  --conn: 3.5rem;
  --visual-h: 13.5rem;
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) var(--conn) minmax(0, 0.8fr) var(--conn) minmax(0, 1.5fr) var(--conn) minmax(0, 1.15fr);
  grid-template-areas:
    "s1 c1 s2 c2 s3 c3 s4"
    ".  .  .  .  ht ht ht";
  row-gap: var(--s-5);
  list-style: none;
  position: relative;
}
/* Ligne de base continue derrière les visuels ; les segments .chain-conn s'y superposent */
.chain::before {
  content: ""; position: absolute; left: 1rem; right: 1rem; top: calc(var(--visual-h) / 2);
  height: var(--stroke); background: var(--ink);
}
.chain-visual, .chain-conn { position: relative; z-index: 1; }
.chain-station { display: grid; gap: var(--s-3); align-content: start; }
.chain-station[data-station="domaine"] { grid-area: s1; }
.chain-station[data-station="dns"] { grid-area: s2; }
.chain-station[data-station="hebergement"] { grid-area: s3; }
.chain-station[data-station="site"] { grid-area: s4; }
.chain-conn[data-conn="1"] { grid-area: c1; }
.chain-conn[data-conn="2"] { grid-area: c2; }
.chain-conn[data-conn="3"] { grid-area: c3; }
.chain-https { grid-area: ht; }
.chain-visual { min-height: var(--visual-h); display: grid; align-items: center; font-size: 0.92rem; }
.chain-visual .ui-node { width: 4.5rem; margin-inline: auto; }
.chain-step { display: flex; align-items: baseline; gap: var(--s-2); }
.chain-step-num {
  flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; border: var(--stroke) solid var(--ink); font: 500 0.78rem/1 var(--font-mono);
  transition: background-color var(--t-base);
}
.chain-step h3 { font-size: 1.08rem; }
.chain-station > p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.chain-conn { height: var(--visual-h); display: grid; align-items: center; }
.chain-conn svg { width: 100%; height: 1.5rem; overflow: visible; }
.chain-conn path { fill: none; stroke: var(--ink); stroke-width: var(--stroke); vector-effect: non-scaling-stroke; }
.chain-conn circle { fill: var(--ink); }
.chain-conn .conn-v { display: none; }
.chain-https {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--r-pill);
  font-size: 0.93rem; color: var(--ink-soft); background: var(--ivory);
  transition: border-color var(--t-base), background-color var(--t-base);
}
.chain-https .ui-lock { width: 1rem; height: 1.15rem; }
.chain-https strong { color: var(--ink); }

/* États de mise en évidence (pilotés par main.js) */
.chain [data-hl] { transition: opacity var(--t-base) ease-out, box-shadow var(--t-base) ease-out, border-color var(--t-base) ease-out; }
/* Atténuation opaque (filtre) plutôt qu'une opacité : la ligne de base ne doit pas transparaître */
.chain.has-focus .chain-station:not(.is-active) .chain-visual > *,
.chain.has-focus .chain-https:not(.is-active) { filter: grayscale(1) contrast(0.45) brightness(1.35); }
.chain.has-focus::before { background: var(--grey); }
.chain.has-focus .chain-conn:not(.is-active) { opacity: 0; }
.chain-visual > *, .chain-https, .chain::before { transition: filter var(--t-base) ease-out, background-color var(--t-base) ease-out; }
.chain .is-active .chain-step-num { background: var(--vermilion); }
.chain .chain-conn.is-active path { stroke: var(--vermilion-ink); stroke-width: 2.25px; }
.chain .chain-conn.is-active circle { fill: var(--vermilion-ink); }
.chain .is-active .ui-env, .chain .is-active .ui-browser, .chain .is-active .ui-domain, .chain .is-active .ui-node { box-shadow: 0 0 0 0.3rem var(--vermilion-tint); }
.chain .ui-module.is-active { border-color: var(--vermilion-ink); box-shadow: 0 0 0 0.25rem var(--vermilion-tint); }
.chain-https.is-active { border-color: var(--vermilion-ink); border-style: solid; background: var(--vermilion-wash); }
@media (prefers-reduced-motion: no-preference) {
  .chain .chain-conn.is-active path { stroke-dasharray: 6 6; animation: conn-flow 900ms linear 2; }
}
@keyframes conn-flow { to { stroke-dashoffset: -24; } }

.chain-detail {
  margin-top: var(--s-10);
  display: grid; gap: var(--s-6);
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg);
  background: var(--ivory); border: var(--border);
}
@media (min-width: 860px) { .chain-detail { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: start; } }
.chain-detail h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 620; letter-spacing: -0.015em; margin-bottom: var(--s-2); }
.chain-detail h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s-2); }
.chain-detail ul { list-style: none; display: grid; gap: 0.25rem; }
.chain-detail li { padding-left: 1.1rem; position: relative; }
.chain-detail li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--warning-mark); }
.chain-detail p { margin: 0; color: var(--ink-soft); }
.chain-detail [data-detail-cta] { justify-self: start; }
@media (min-width: 860px) { .chain-detail [data-detail-cta] { grid-column: -2; justify-self: end; align-self: center; } }

/* Petit écran : la chaîne devient un rail vertical, les visuels gardent une taille lisible */
@media (max-width: 899px) {
  .chain {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "s1" "s2" "s3" "ht" "s4";
    row-gap: var(--s-8);
    padding-left: 2.6rem;
  }
  .chain::before { left: 0.8rem; right: auto; top: 0.8rem; bottom: 2rem; width: var(--stroke); height: auto; }
  .chain.has-focus::before { background: var(--grey); }
  .chain-conn { display: none; }
  .chain-station { gap: var(--s-2); }
  .chain-step { order: 1; position: relative; }
  .chain-station > p { order: 2; }
  .chain-visual { order: 3; min-height: 0; margin-top: var(--s-2); font-size: 0.85rem; max-width: 20rem; justify-items: start; }
  .chain-visual .ui-node { width: 4rem; margin: 0; }
  .chain-station[data-station="site"] .chain-visual { max-width: 13rem; }
  .chain-station[data-station="site"] .chain-visual > * { width: 100%; }
  .chain-step-num { position: absolute; left: -2.6rem; top: 0.05rem; background: var(--ivory); z-index: 1; }
  .chain-https { border-radius: var(--r-md); align-items: flex-start; }
}

/* Repli sans JavaScript : pas de commandes ni de panneau dynamique */
.no-js .chain-controls, .no-js .chain-detail { display: none; }

/* CTA final de la prévisualisation */
.closing { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 860px) { .closing { grid-template-columns: minmax(0, 1fr) auto; } }
.closing p { margin: var(--s-4) 0 0; max-width: 52ch; color: var(--ink-soft); }

/* 13 PIED DE PAGE */
.site-footer { padding: var(--s-12) 0 var(--s-10); border-top: var(--border); font-size: var(--text-sm); color: var(--ink-soft); }
.footer-grid { display: grid; gap: var(--s-8); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.footer-links { display: grid; gap: var(--s-2); list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--vermilion); }
.preview-banner {
  padding: 0.45rem 0; background: var(--ink); color: var(--white); font-size: var(--text-xs); font-family: var(--font-mono);
}

/* 14 GUIDE DE STYLE */
.sg-section { padding: var(--s-12) 0; border-top: var(--border); }
.sg-section > h2 { font-size: var(--text-xl); margin-bottom: var(--s-6); }
.sg-swatches { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); list-style: none; }
.sg-swatch { border: var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--white); font-size: var(--text-sm); }
.sg-swatch span { display: block; height: 4.5rem; border-bottom: var(--border); }
.sg-swatch p { margin: 0; padding: var(--s-3); }
.sg-swatch code { display: block; margin-top: var(--s-1); background: none; padding: 0; color: var(--grey-ink); }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.sg-type > * + * { margin-top: var(--s-5); }
.sg-radii { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; }
.sg-radii li { width: 7rem; height: 5rem; display: grid; place-items: end start; padding: var(--s-2); border: var(--stroke) solid var(--ink); background: var(--white); font: 0.75rem var(--font-mono); }
.sg-grid2 { display: grid; gap: var(--s-8); }
@media (min-width: 860px) { .sg-grid2 { grid-template-columns: 1fr 1fr; } }
.sg-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.sg-table th, .sg-table td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: var(--border); vertical-align: top; }

/* 16 PAGES INTÉRIEURES */
.page-intro { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-intro h1 { max-width: 18ch; }
.page-intro .lead { margin-top: var(--s-5); }
.section-tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section-foot { margin: var(--s-8) 0 0; }
.h-small { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 620; letter-spacing: -0.015em; margin-bottom: var(--s-5); }
.muted { color: var(--grey-ink); }

/* Index compact des prestations (accueil) */
.service-index { list-style: none; display: grid; gap: 0; border-top: var(--stroke) solid var(--ink); }
@media (min-width: 860px) { .service-index { grid-template-columns: 1fr 1fr; column-gap: var(--s-10); } }
.service-index-item {
  position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: var(--s-4);
  align-items: start; padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
}
.service-index-item .service-glyph { width: 3.5rem; height: 2.5rem; }
.service-index-item h3 { font-size: 1.1rem; margin-bottom: var(--s-1); }
.service-index-item h3 a { text-decoration: none; }
.service-index-item h3 a::after { content: ""; position: absolute; inset: 0; }
.service-index-item:hover h3 a { text-decoration: underline; text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.service-index-item p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.service-index-urgent { grid-column: 1 / -1; background: var(--error-tint); border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-4) 0; border-bottom: 0; }
@media (max-width: 559px) {
  .service-index-item { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .service-index-item .service-glyph { width: 2.75rem; height: 2rem; }
  .service-index-item > .status { grid-column: 2; justify-self: start; }
}

/* Page Prestations */
.services-toc { margin-bottom: var(--s-6); }
.services-toc-title { font-weight: 600; margin-bottom: var(--s-2); }
.services-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.services-toc a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; font-size: var(--text-sm); background: var(--white); }
.services-toc a:hover { border-color: var(--ink); }
@media (min-width: 1024px) { .services-toc ul { flex-direction: column; align-items: flex-start; } }
.scope-note h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-2); }
.service-urgent::before { transform: scaleY(1); background: var(--error); }
.service { scroll-margin-top: 6rem; }

.php-versions { margin: var(--s-4) 0 0; max-width: 36rem; border: var(--stroke) solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.php-versions figcaption { padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: var(--text-xs); }
.php-versions figcaption .muted { color: var(--grey); }
.php-versions table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.php-versions th, .php-versions td { text-align: left; padding: 0.5rem var(--s-4); border-top: 1px solid var(--line); vertical-align: middle; }
.php-versions thead th { border-top: 0; font-size: var(--text-xs); font-weight: 600; color: var(--grey-ink); background: var(--ivory); }
.php-versions tbody th { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
@media (max-width: 559px) { .php-versions th, .php-versions td { padding: 0.45rem 0.6rem; } .php-versions td:nth-child(2) { font-size: 0.85rem; } }

/* Déroulement (vraie séquence : numérotation justifiée) */
.process { list-style: none; display: grid; gap: var(--s-6); counter-reset: none; }
@media (min-width: 860px) { .process:not(.process-compact) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); } }
.process li { position: relative; }
.process-num { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: var(--s-3); border-radius: 50%; border: var(--stroke) solid var(--ink); background: var(--white); font: 500 0.9rem/1 var(--font-mono); }
.process li:first-child .process-num { background: var(--vermilion); }
.process h3 { margin-bottom: var(--s-2); }
.process p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
@media (min-width: 860px) {
  .process:not(.process-compact) li:not(:last-child)::after { content: ""; position: absolute; top: 1.1rem; left: 2.6rem; right: calc(-1 * var(--s-8) + 0.4rem); height: var(--stroke); background: var(--ink); }
}
.process-compact li { display: grid; grid-template-columns: 2.2rem 1fr; gap: var(--s-3); align-items: start; }
.process-compact .process-num { margin: 0; }

/* À propos */
.principles { list-style: none; display: grid; gap: var(--s-8); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles li { padding-top: var(--s-4); border-top: var(--stroke) solid var(--ink); }
.principles h3 { margin-bottom: var(--s-2); }
.principles p { margin: 0; color: var(--ink-soft); }
.commitments { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.about-note { margin-top: var(--s-8); max-width: var(--measure); color: var(--grey-ink); font-size: var(--text-sm); }

/* 17 FORMULAIRE */
.contact-layout { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-12); } .contact-aside { position: sticky; top: 6.5rem; } }
.contact-form { display: grid; gap: var(--s-6); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--white); border: var(--border); border-radius: var(--r-lg); }
.field { display: grid; gap: var(--s-2); align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field .req, .field .opt { font-weight: 400; color: var(--grey-ink); font-size: var(--text-sm); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--vermilion-tint), 0 0 0 4.5px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-tint); }
.field-hint { margin: 0; font-size: var(--text-sm); color: var(--grey-ink); }
.field-error { margin: 0; font-size: var(--text-sm); color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }
.field-pair { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.topic-field legend { margin-bottom: var(--s-3); }
.topic-choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); cursor: pointer;
  font-weight: 500; font-size: 0.95rem; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.topic span::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color var(--t-fast); }
.topic span:hover { border-color: var(--ink); }
.topic input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.topic input:checked + span::before { background: var(--vermilion); border-color: var(--vermilion); }
.topic input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.form-warning { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--warning-tint); color: #4d3300; font-size: 0.95rem; }
.form-privacy { margin: 0; font-size: var(--text-sm); color: var(--grey-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 500; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status[data-status] { padding: var(--s-3) var(--s-4); }
.form-status[data-status="success"] { background: var(--success-tint); color: var(--success); }
.form-status[data-status="error"] { background: var(--error-tint); color: var(--error); }
.form-status[data-status="info"], .form-status[data-status="pending"] { background: var(--ivory-deep); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.contact-aside .scope-note { margin-top: var(--s-8); }
.contact-aside .scope-note h3 { font-size: 1rem; margin-bottom: var(--s-1); }

/* 18 BLOG */
.post-list { list-style: none; display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-list-full { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: var(--stroke) solid var(--ink); }
.post-card { position: relative; display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); background: var(--white); border: var(--border); border-radius: var(--r-lg); transition: border-color var(--t-fast); }
.post-card:hover { border-color: var(--ink); }
.post-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 620; letter-spacing: -0.015em; line-height: 1.2; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.post-card .post-reading { font-size: var(--text-sm); color: var(--grey-ink); }
.post-list-full .post-card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--s-6) 0; }
@media (min-width: 860px) {
  .post-list-full .post-card { grid-template-columns: 13rem minmax(0, 1fr); column-gap: var(--s-8); }
  .post-list-full .post-card > :not(.post-meta) { grid-column: 2; }
  .post-list-full .post-card .post-meta { grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; }
  .post-list-full .post-card h3 { font-size: var(--text-xl); }
}
.post-list-full .post-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0; font-size: var(--text-sm); color: var(--grey-ink); }
.post-kind { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.1em 0.65em; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; }
.post-kind::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.post-kind-news { background: var(--vermilion-tint); color: var(--vermilion-ink); }
.post-kind-guide { background: var(--ivory-deep); color: var(--ink-soft); }

/* Article */
.article-header { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.article-narrow { max-width: 54rem; }
.article-header h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; margin-top: var(--s-4); }
.breadcrumbs { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); font-size: var(--text-sm); color: var(--grey-ink); }
.breadcrumbs a { color: var(--ink-soft); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); padding-bottom: var(--s-16); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 15rem minmax(0, 46rem); gap: var(--s-16); } .article-aside { position: sticky; top: 6.5rem; align-self: start; } }
.article-toc { padding: var(--s-4) var(--s-5); border: var(--border); border-radius: var(--r-md); background: var(--white); font-size: var(--text-sm); }
.article-toc-title { font-weight: 600; margin-bottom: var(--s-2); }
.article-toc ol { list-style: none; display: grid; gap: var(--s-2); }
.article-toc a { color: var(--ink-soft); text-decoration: none; }
.article-toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--vermilion); }
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: var(--s-5); }
.prose p { margin-bottom: 0; }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose .lead { font-size: var(--text-lg); color: var(--ink); }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: var(--s-12); scroll-margin-top: 6rem; }
.prose h3 { margin-top: var(--s-8); scroll-margin-top: 6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--vermilion-ink); }
.prose a:not(.btn) { color: var(--ink); text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.prose a:not(.btn):hover { color: var(--vermilion-ink); }
.prose pre { overflow-x: auto; padding: var(--s-4) var(--s-5); background: var(--ink); color: #f1f0eb; border-radius: var(--r-md); font-size: 0.86rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.note { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--ivory-deep); border-left: 4px solid var(--ink); }
.note strong:first-child { display: block; margin-bottom: var(--s-1); }
.note p { margin: 0; }
.note-warning { background: var(--warning-tint); border-left-color: var(--warning-mark); color: #4d3300; }
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--r-md); background: var(--white); }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.article-table caption { text-align: left; padding: var(--s-3) var(--s-4); font-weight: 600; font-size: var(--text-sm); border-bottom: var(--border); background: var(--ivory); }
.article-table th, .article-table td { text-align: left; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); vertical-align: top; }
.article-table thead th { border-top: 0; font-size: var(--text-sm); color: var(--grey-ink); }
.article-table tbody th { font-weight: 600; min-width: 9rem; }
.article-cta { margin-top: var(--s-16) !important; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--white); border: var(--stroke) solid var(--ink); }
.article-cta h2 { margin-top: 0; font-size: var(--text-xl); }
.article-cta p { margin: var(--s-3) 0 var(--s-5); color: var(--ink-soft); }
.article-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.article .section-tight { padding-bottom: var(--s-16); }

/* 15 MOUVEMENT RÉDUIT — garde-fou global */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 19 CGV */
.cgv { max-width: 52rem; }
.cgv h2 { font-size: var(--text-xl); }
.cgv-form { padding: var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--white); font-size: 0.97rem; }
.cgv-form p + p { margin-top: var(--s-2); }

/* 20 RÉSEAU (À propos) */
.network-points { list-style: none; display: grid; gap: var(--s-6); }
@media (min-width: 860px) { .network-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); } }
.network-points li { padding: var(--s-5); border: var(--border); border-radius: var(--r-lg); background: var(--white); }
.network-points li:first-child { border-color: var(--ink); }
.network-points h3 { margin-bottom: var(--s-2); }
.network-points p { margin: 0; color: var(--ink-soft); }

/* 21 ENCADRÉS PÉDAGOGIQUES DU BLOG */
.note-summary { background: var(--white); border: var(--stroke) solid var(--ink); border-left-width: var(--stroke); border-radius: var(--r-lg); }
.note-summary ul { padding-left: 1.2rem; }
.note-definition { position: relative; padding-left: calc(var(--s-5) + 1.6rem); background: var(--white); border: 1px dashed var(--line-strong); border-left: 1px dashed var(--line-strong); }
.note-definition::before {
  content: "?"; position: absolute; left: var(--s-4); top: var(--s-4);
  width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%;
  border: var(--stroke) solid var(--ink); font: 600 0.75rem/1 var(--font-mono);
}
.note-definition strong:first-child { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; color: var(--vermilion-ink); }
.prose .note-definition { font-size: 0.98rem; }

/* 22 PAGE 404 */
.not-found-window { max-width: 20rem; margin-bottom: var(--s-8); font-size: 0.95rem; }

/* 23 FENÊTRE DE CONFIGURATION DES ARTICLES (remplace les blocs de code) */
.config-window { margin-left: 0; margin-right: 0; overflow: hidden; background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--r-md); }
.config-window-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 0.55rem var(--s-4); background: var(--ivory); border-bottom: 1px solid var(--line); }
.config-file { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.88rem; font-weight: 500; }
.config-file::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--vermilion); }
.config-kind { font-size: var(--text-xs); color: var(--grey-ink); }
.prose .config-rows { list-style: none; padding: 0; gap: 0; }
.config-row { display: grid; grid-template-columns: 17rem 3.5rem minmax(0, 1fr); gap: var(--s-2) var(--s-4); align-items: baseline; padding: 0.7rem var(--s-4); border-top: 1px solid var(--line); }
.config-row:first-child { border-top: 0; }
.config-key { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500; overflow-wrap: anywhere; }
.config-value { justify-self: start; padding: 0.05em 0.5em; border: 1px solid var(--line-strong); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap; }
.config-help { font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 899px) {
  .config-row { grid-template-columns: minmax(0, 1fr) auto; }
  .config-help { grid-column: 1 / -1; }
}
