/* Charte commune a toutes les pages de neldown.com.
   Extraite de index.html le 2026-08-17, quand le site est passe a
   plusieurs pages : un style duplique aurait diverge des la premiere
   retouche.

   Fichier LOCAL et non un CDN : la page doit rester joignable et
   identique meme quand le reste ne l'est pas. */
  /* ---------- Polices ----------
     Auto-hebergees, jamais chargees depuis Google Fonts : aucune dependance
     externe sur une page dont l'interet est d'etre joignable quand le reste ne
     l'est pas, aucune IP de visiteur transmise a un tiers, et un rendu
     identique meme si le CDN est bloque. */
  @font-face {
    font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("polices/plex-sans-400.woff2") format("woff2");
  }
  @font-face {
    font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("polices/plex-sans-600.woff2") format("woff2");
  }
  @font-face {
    font-family: "JetBrains"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("polices/jetbrains-mono-400.woff2") format("woff2");
  }

  /* ---------- Jetons ----------
     Encre franche sur papier presque blanc. Le gris doux generalise est l'un
     des marqueurs les plus surs d'une mise en page sans decision. */
  :root {
    --papier:     #FAFAF9;
    --encre:      #0B0C0D;
    --gris:       #6B7076;
    --gris-clair: #9AA0A6;
    --filet:      #1A1C1E;
    --filet-fin:  #D6D8DA;
    --ok:         #166534;
    --warn:       #8A5A00;
    --down:       #B42318;
    --idle:       #D6D8DA;

    /* Prune ardoise, volontairement loin du vert, de l'ambre et du rouge qui
       portent l'information d'etat. N'apparait jamais sur les barres. */
    --accent:     #6B4A78;
    --sur-accent: #FFFFFF;

    --sans: "Plex", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
            Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains", ui-monospace, SFMono-Regular, Menlo, Consolas,
            "Liberation Mono", monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --papier:#0A0B0C; --encre:#F0F1F2; --gris:#8B9196; --gris-clair:#5A6066;
      --filet:#E8E9EA; --filet-fin:#24272A;
      --ok:#4ADE80; --warn:#FBBF24; --down:#F87171; --idle:#2A2E32;
      --accent:#C4A0D0; --sur-accent:#14101A;
    }
  }

  /* Aucun angle arrondi nulle part : c'est le marqueur le plus visible d'une
     page generique, et le plus simple a supprimer. */
  *, *::before, *::after { box-sizing: border-box; border-radius: 0; }

  body {
    margin: 0; background: var(--papier); color: var(--encre);
    font-family: var(--sans); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  .planche { max-width: 70rem; margin: 0 auto;
    padding: clamp(1.5rem,4vw,3rem) clamp(1rem,4vw,2.5rem) 5rem; }

  a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* Pas d'en-tete : la page s'ouvre sur sa phrase. Le nom est passe en
     signature sous l'accroche, comme la signature d'un article — il dit qui
     parle une fois que le lecteur sait de quoi on parle. */

  /* Le tampon vit sous l'accroche, juste avant le bloc qu'il decrit. */
  .tampon { display: flex; align-items: center; gap: .5rem; margin: 0 0 .875rem;
    font-family: var(--mono); font-size: .6875rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
  .tampon .sep { opacity: .45; }
  .tampon .heure { color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
  .pouls { display: inline-block; width: 6px; height: 6px; background: var(--accent);
    margin-right: .4375rem; animation: battre 2.4s ease-in-out infinite; }
  @keyframes battre { 0%,100% { opacity:.3 } 50% { opacity:1 } }

  /* ---------- L'accroche ---------- */
  .accroche { padding: clamp(2.5rem,7vw,4.5rem) 0 clamp(1.5rem,4vw,2.5rem); }
  .accroche h1 { margin: 0; font-size: clamp(2.25rem,7.5vw,4.25rem); line-height: 1.02;
    font-weight: 600; letter-spacing: -.04em; text-wrap: balance; max-width: 22ch; }
  .accroche h1 em { font-style: normal; color: var(--accent); }
  .accroche p { margin: 1.25rem 0 0; font-size: clamp(1rem,2.2vw,1.1875rem);
    color: var(--gris); max-width: 46ch; }
  .signature { margin-top: 1.5rem !important; padding-top: 1.25rem;
    border-top: 1px solid var(--filet-fin); max-width: 46ch;
    font-family: var(--mono); font-size: .75rem !important;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gris-clair) !important; }
  .signature b { font-weight: 400; color: var(--encre); }

  /* ---------- Verdict : le seul aplat sature de la page ---------- */
  .verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.5rem;
    background: var(--accent); color: var(--sur-accent);
    padding: 1rem clamp(1rem,3vw,1.5rem); margin-bottom: 2.5rem; }
  .verdict.alerte { background: var(--down); color: #fff; }
  .v-fort { font-family: var(--mono); font-size: 1.0625rem; letter-spacing: -.01em; }
  .v-texte { font-size: .9375rem; opacity: .9; }
  .v-fin { margin-left: auto; font-family: var(--mono); font-size: .6875rem;
    letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

  /* ---------- La mesure ---------- */
  .mesure { display: grid; grid-template-columns: auto 1fr; gap: 0 2.5rem;
    align-items: end; padding-bottom: 1.25rem; }
  .mesure-chiffre { font-family: var(--mono); font-size: clamp(3.25rem,12vw,6rem);
    line-height: .82; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
    transition: color .2s ease; }
  .mesure:hover .mesure-chiffre { color: var(--accent); }
  .mesure-unite { font-size: .45em; letter-spacing: 0; color: var(--gris); }
  .mesure-legende { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase;
    letter-spacing: .14em; color: var(--gris); padding-bottom: .75rem; }

  .bande { display: flex; gap: 2px; height: 4.25rem; }
  .bande i { flex: 1 1 0; min-width: 2px; background: var(--ok); transform-origin: bottom;
    transition: transform .18s ease, filter .18s ease; }
  /* Second canal, independant de la teinte : les jours anormaux sont hachures. */
  .bande i.warn { background: repeating-linear-gradient(-45deg, var(--warn) 0 2px, transparent 2px 4px); }
  .bande i.down { background: repeating-linear-gradient(-45deg, var(--down) 0 3px, transparent 3px 5px); }
  .bande i.idle { background: var(--idle); }
  .bande:hover i { filter: saturate(.35) opacity(.5); }
  .bande i:hover { transform: scaleY(1.12); filter: none; }
  .echelle { display: flex; justify-content: space-between; margin-top: .5rem;
    font-family: var(--mono); font-size: .6875rem; color: var(--gris);
    text-transform: uppercase; letter-spacing: .08em; }

  .releve { margin: 2rem 0 0; padding: .875rem 0; border-block: 1px solid var(--filet-fin);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem,1fr));
    column-gap: 2.5rem; font-family: var(--mono); font-size: .75rem; line-height: 1.9; }
  .paire { display: flex; align-items: baseline; gap: .5rem; }
  .paire span:first-child { color: var(--gris); text-transform: uppercase;
    letter-spacing: .08em; white-space: nowrap; }
  .paire span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }

  /* ---------- Sections ---------- */
  .titre-section { margin: 3.5rem 0 0; padding-bottom: .5rem; border-bottom: 2px solid var(--filet);
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
  .titre-section h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
  .titre-section .compte { font-family: var(--mono); font-size: .6875rem;
    text-transform: uppercase; letter-spacing: .12em; color: var(--gris); }
  .bloc-droite { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
  .lien-detail {
    display: inline-flex; align-items: center; gap: .4375rem;
    font-family: var(--mono); font-size: .6875rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--accent); text-decoration: none;
    border: 1px solid currentColor; padding: .3125rem .625rem;
    transition: background .16s ease, color .16s ease;
  }
  .lien-detail:hover { background: var(--accent); color: var(--sur-accent); }
  .lien-detail svg { flex: none; }

  table { width: 100%; border-collapse: collapse; }
  th, td { text-align: left; padding: .6875rem .25rem; border-bottom: 1px solid var(--filet-fin);
    font-weight: 400; }
  tbody th { font-size: .9375rem; }
  thead th { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gris); padding-bottom: .4375rem;
    border-bottom: 1px solid var(--filet); }
  tbody tr { transition: background .16s ease; }
  tbody tr:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
  tbody tr:hover .chiffre { color: var(--encre); }
  .etat { width: 9rem; }
  .marque { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--ok); }
  .marque::before { content: "■ "; }
  .marque.ko { color: var(--down); }
  .chiffre { width: 7rem; text-align: right; font-family: var(--mono); font-size: .8125rem;
    font-variant-numeric: tabular-nums; color: var(--gris); }

  /* ---------- Chantiers ---------- */
  .projets { list-style: none; margin: 0; padding: 0; }
  .projet { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.5rem;
    align-items: baseline; padding: 1.375rem .25rem; border-bottom: 1px solid var(--filet-fin);
    transition: background .16s ease, border-color .16s ease; }
  .projet:hover { background: color-mix(in srgb, var(--accent) 6%, transparent);
    border-bottom-color: var(--accent); }
  .p-num { font-family: var(--mono); font-size: .75rem; color: var(--gris-clair);
    letter-spacing: .08em; transition: color .16s ease; }
  .projet:hover .p-num { color: var(--accent); }
  .p-corps h3 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
  .p-corps p { margin: .3125rem 0 0; font-size: .9375rem; color: var(--gris); max-width: 46ch; }
  .p-phase { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
    text-transform: uppercase; padding: .25rem .5rem; border: 1px solid currentColor; white-space: nowrap; }
  .p-actif { color: var(--ok); }
  .p-chantier { color: var(--accent); }
  .p-prevu { color: var(--gris-clair); }
  /* En pause : chantier commence puis arrete. L'ambre est la seule teinte qui
     distingue "arrete" de "pas commence" ; le gris soutenu s'y confondait. */
  .p-pause { color: var(--warn); }

  .pied { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--filet-fin);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em;
    text-transform: uppercase; color: var(--gris-clair); }
  .pied a { color: var(--gris); text-decoration: none; border-bottom: 1px solid var(--filet-fin); }
  .pied a:hover { color: var(--encre); border-color: var(--encre); }

  /* ============ COUCHE DE MOUVEMENT ============
     Une seule choregraphie a l'ouverture, dans l'ordre de lecture, puis des
     survols qui repondent chacun a une question. Tout le contenu reste
     LISIBLE sans JavaScript et sans animation. */
  @keyframes entrer { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:none } }
  .accroche { animation: entrer .6s cubic-bezier(.2,.7,.3,1) both; animation-delay:   0ms; }
  .tampon   { animation: entrer .4s cubic-bezier(.2,.7,.3,1) both; animation-delay: 220ms; }
  .verdict  { animation: entrer .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: 280ms; }
  .mesure   { animation: entrer .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: 360ms; }
  .echelle, .releve { animation: entrer .5s ease both; animation-delay: 1s; }
  @keyframes tracer { from { transform:scaleY(.06); opacity:0 } to { transform:scaleY(1); opacity:1 } }

  .revele { opacity: 0; transform: translateY(8px); }
  .vu { animation: entrer .42s cubic-bezier(.2,.7,.3,1) both; }

  @media (prefers-reduced-motion: reduce) {
    .accroche, .tampon, .verdict, .mesure, .echelle, .releve, .bande i, .vu {
      animation: none !important; opacity: 1 !important; transform: none !important;
    }
    .revele { opacity: 1; transform: none; }
    .pouls { animation: none; opacity: .85; }
    .bande:hover i { filter: none; }
    .bande i:hover { transform: none; }
  }
  /* ================= Mini-jeux ==============================================
     Deplaces le 2026-08-17 dans leur propre page : un jeu n'a rien a faire en
     surimpression d'un releve de disponibilite. Les regles du calque
     (superposition, boite, bouton de fermeture) ont disparu avec lui.

     Les classes restent prefixees « j- » : la vitrine a ses propres .mesures,
     .message et .piste, et une collision passerait inapercue jusqu'au jour ou
     elle deformerait le releve d'etat. */

  .j-onglets { display: flex; border: 1px solid var(--filet-fin); margin: 14px 0 16px; }
  .j-onglet { flex: 1; font: inherit; font-weight: 600; font-size: .875rem; padding: 9px 12px;
    background: none; border: 0; border-right: 1px solid var(--filet-fin);
    color: var(--gris); cursor: pointer; }
  .j-onglet:last-child { border-right: 0; }
  .j-onglet:hover { background: var(--filet-fin); }
  .j-onglet:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .j-onglet[aria-selected="true"] { background: var(--accent); color: var(--sur-accent); }
  .j-jeu[hidden] { display: none; }
  .j-regle { color: var(--gris); font-size: .875rem; margin: 0 0 12px; max-width: 54ch; }
  .j-bord { display: flex; gap: 18px; font-family: var(--mono); font-size: .625rem;
    text-transform: uppercase; letter-spacing: .1em; color: var(--gris); margin-bottom: 10px; }
  .j-bord b { display: block; font-size: 1.25rem; letter-spacing: -.02em; color: var(--encre);
    text-transform: none; font-weight: 400; }
  .j-bouton { font: inherit; font-weight: 600; font-size: .875rem; padding: 8px 16px;
    cursor: pointer; background: var(--accent); color: var(--sur-accent);
    border: 1px solid var(--accent); }
  .j-bouton:hover { opacity: .88; }
  .j-bouton:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
  .j-message { font-family: var(--mono); font-size: .75rem; color: var(--gris);
    margin: 10px 0 0; min-height: 1.5em; }
  .j-message b { color: var(--encre); font-weight: 400; }
  .j-piste { position: relative; height: 52px; border: 1px solid var(--filet-fin);
    margin: 0 0 12px; overflow: hidden; cursor: pointer; }
  .j-fenetre { position: absolute; top: 0; bottom: 0; background: var(--idle);
    border-left: 1px solid var(--ok); border-right: 1px solid var(--ok); }
  .j-curseur { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
  .j-coups { display: flex; gap: 5px; flex-wrap: wrap; font-family: var(--mono);
    font-size: .625rem; color: var(--gris); margin-bottom: 12px; min-height: 1.3em; }
  .j-coups span { border: 1px solid var(--filet-fin); padding: 2px 6px; }
  .j-coups span.j-rate { color: var(--down); border-color: var(--down); }
  .j-toile { border: 1px solid var(--filet-fin); margin: 0 0 12px; }
  .j-toile canvas { display: block; width: 100%; height: auto; }
  .j-pave { display: grid; grid-template-columns: repeat(3,48px); grid-template-rows: repeat(2,42px);
    gap: 6px; justify-content: center; margin-top: 10px; }
  .j-pave button { border: 1px solid var(--filet-fin); background: none; color: var(--encre);
    font-family: var(--mono); font-size: 1rem; cursor: pointer; }
  .j-pave button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .j-pave .j-vide { visibility: hidden; }
  @media (min-width: 760px) { .j-pave { display: none; } }

  /* ================= Navigation ==============================================
     Le site est passe a plusieurs pages le 2026-08-17 : sans menu, la page
     « Incidents » aurait ete une impasse joignable seulement par son adresse.

     Barre volontairement mince et collante : elle donne un point de repere
     permanent sans jamais disputer la place a l'accroche. */
  .nav { position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--papier) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--filet-fin); }
  @supports not (backdrop-filter: blur(1px)) { .nav { background: var(--papier); } }

  .nav-boite { max-width: 70rem; margin: 0 auto;
    padding: .625rem clamp(1rem,4vw,2.5rem);
    display: flex; align-items: center; gap: 1.5rem; }

  .nav-marque { font-family: var(--mono); font-size: .8125rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--encre); text-decoration: none; font-weight: 400; }
  .nav-marque:hover { color: var(--accent); }

  .nav-liens { list-style: none; display: flex; gap: 1.25rem; margin: 0 0 0 auto;
    padding: 0; flex-wrap: wrap; }
  .nav-liens a { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gris); text-decoration: none;
    padding-bottom: 2px; border-bottom: 1px solid transparent; }
  .nav-liens a:hover { color: var(--encre); border-bottom-color: var(--filet-fin); }
  /* La page courante est marquee par aria-current : une seule source de verite
     pour le lecteur d'ecran et pour l'oeil. */
  .nav-liens a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

  @media (max-width: 34rem) {
    .nav-boite { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .nav-liens { margin-left: 0; gap: 1rem; }
  }

  /* Avec une barre collante, une ancre s'arrete pile sous elle sans ce reglage. */
  [id] { scroll-margin-top: 4.5rem; }

  /* ================= Journal d'incidents =====================================
     Publier ses pannes n'a de valeur que si la lecture est facile : une date,
     une gravite, et trois questions toujours dans le meme ordre. */
  .inc-intro { max-width: 54ch; color: var(--gris); margin: 0 0 2rem; }
  .inc-intro b { color: var(--encre); font-weight: 600; }

  .inc-chiffres { display: grid; grid-template-columns: repeat(auto-fit,minmax(11rem,1fr));
    gap: 1px; background: var(--filet-fin); border: 1px solid var(--filet-fin);
    margin-bottom: 3rem; }
  .inc-chiffre { background: var(--papier); padding: 1rem 1.125rem; }
  .inc-chiffre b { display: block; font-family: var(--mono); font-size: 1.75rem;
    letter-spacing: -.03em; font-weight: 400; line-height: 1.1; }
  .inc-chiffre span { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gris); }

  .inc { border-top: 1px solid var(--filet-fin); padding: 1.75rem 0; }
  .inc:last-of-type { border-bottom: 1px solid var(--filet-fin); }
  /* Cible d'une ancre venue de la frise : on souligne brievement l'incident
     pour que le visiteur sache OU il vient d'atterrir. */
  .inc:target { border-left: 3px solid var(--accent); padding-left: 1rem; }
  .inc-tete { display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; flex-wrap: wrap; }
  .inc-quand { display: flex; flex-direction: column; }
  .inc-date { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
    text-transform: uppercase; }
  .inc-heures { font-family: var(--mono); font-size: .6875rem; color: var(--gris); }
  .inc-etiq { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
    text-transform: uppercase; padding: .1875rem .5rem; border: 1px solid; }
  .i-nul { color: var(--gris); border-color: var(--filet-fin); }
  .i-down { color: var(--down); border-color: var(--down); }
  .i-warn { color: var(--warn); border-color: var(--warn); }

  .inc-titre { margin: .875rem 0 1rem; font-size: 1.25rem; font-weight: 600;
    letter-spacing: -.02em; line-height: 1.25; max-width: 40ch; text-wrap: balance; }
  .inc-corps { margin: 0; display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1.5rem; }
  .inc-corps dt { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gris); padding-top: .2rem; }
  .inc-corps dd { margin: 0; color: var(--encre); max-width: 62ch; }
  @media (max-width: 40rem) {
    .inc-corps { grid-template-columns: 1fr; gap: .25rem; }
    .inc-corps dd { margin-bottom: .875rem; }
  }
  .inc-pied { margin-top: 2.5rem; color: var(--gris); font-size: .9375rem; max-width: 58ch; }

  /* Une journee anormale de la frise devient un lien vers son incident. */
  .bande a { flex: 1 1 0; min-width: 2px; display: block; }
  .bande a i { width: 100%; height: 100%; display: block; }
  .bande a:hover i { transform: scaleY(1.12); filter: none; }
  .bande a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* Maintenance planifiee : elle porte l'accent du site, pas une couleur
     d'alerte. C'est NOUS qui avons decide l'arret — le motif dit « prevu »,
     pas « subi ». Ajoute le 2026-09-01, apres qu'un redemarrage volontaire
     s'est affiche comme une panne. */
  .bande i.maint { background: repeating-linear-gradient(-45deg,
    var(--accent) 0 2px, transparent 2px 4px); }

  /* Sans legende, le nouveau motif serait indechiffrable. */
  .legende { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .625rem;
    font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gris); }
  .legende span { display: flex; align-items: center; gap: .4rem; }
  .legende i { width: 12px; height: 12px; display: inline-block; flex: 0 0 auto; }
  .l-ok { background: var(--ok); }
  .l-warn { background: repeating-linear-gradient(-45deg, var(--warn) 0 2px, transparent 2px 4px); }
  .l-down { background: repeating-linear-gradient(-45deg, var(--down) 0 3px, transparent 3px 5px); }
  .l-maint { background: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 4px); }

  /* ================= Schema d'architecture ===================================
     Un seul dessin, trois lectures. Ajoute le 2026-09-01. */
  figure { margin: 0 0 2rem; }
  .fig { width: 100%; height: auto; color: var(--encre); display: block;
    border: 1px solid var(--filet-fin); padding: .75rem; box-sizing: border-box; }

  /* Un <text> SVG est peint en NOIR par defaut : il n'herite pas de
     currentColor comme le font les traits. Sans cette regle, tout le texte des
     figures disparait en theme sombre — constate le 2026-09-01 sur une capture
     de l'utilisateur, apres avoir dessine en theme clair sans jamais verifier
     l'autre. */
  .fig text { fill: currentColor; }
  .fig rect, .fig line, .fig polyline { stroke: currentColor; fill: none; }

  /* Sans JavaScript, aucune couche n'est active et TOUT reste visible : le
     schema ne depend pas du script pour etre lisible. */
  .fig g { transition: opacity .25s ease; }
  #schema[data-couche="conn"] g:not(.c-conn),
  #schema[data-couche="cloi"] g:not(.c-cloi),
  #schema[data-couche="sup"]  g:not(.c-sup) { opacity: .12; }
  @media (prefers-reduced-motion: reduce) { .fig g { transition: none; } }

  .couches { display: flex; border: 1px solid var(--filet-fin); margin: 0 0 1rem; flex-wrap: wrap; }
  .couches button { flex: 1 1 10rem; font: inherit; font-weight: 600; font-size: .875rem;
    padding: .625rem .75rem; background: none; border: 0;
    border-right: 1px solid var(--filet-fin); color: var(--gris); cursor: pointer; text-align: left; }
  .couches button:last-child { border-right: 0; }
  .couches button:hover { background: var(--filet-fin); }
  .couches button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .couches button[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); }
  .couches b { display: block; font-size: .9375rem; }
  .couches span { display: block; font-family: var(--mono); font-size: .625rem;
    letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: .125rem; }

  figcaption { margin-top: 1rem; color: var(--gris); font-size: .9375rem; max-width: 66ch;
    min-height: 4.5rem; }
  figcaption b { color: var(--encre); font-weight: 600; }

  /* ================= Page Twitch =============================================
     L'etat est releve par le serveur ; le lecteur n'est charge qu'au clic.
     Ajoute le 2026-09-01. */
  .tw { border: 1px solid var(--filet-fin); }
  .tw-apercu { position: relative; aspect-ratio: 16/9; background: var(--idle);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-bottom: 1px solid var(--filet-fin); }
  .tw-apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tw-apercu .faux { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gris); }

  .tw-etat { position: absolute; top: .75rem; left: .75rem; z-index: 1;
    display: flex; align-items: center; gap: .4rem; font-family: var(--mono);
    font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
    padding: .25rem .5rem; background: var(--papier); border: 1px solid var(--filet-fin); }
  .tw-etat i { width: 7px; height: 7px; display: block; background: var(--idle); }
  .tw-etat.direct { border-color: var(--down); color: var(--down); }
  .tw-etat.direct i { background: var(--down); animation: pouls-direct 2s ease-in-out infinite; }
  .tw-etat.inconnu { border-color: var(--warn); color: var(--warn); }
  .tw-etat.inconnu i { background: var(--warn); }
  @keyframes pouls-direct { 0%,100% { opacity:.35 } 50% { opacity:1 } }
  @media (prefers-reduced-motion: reduce) { .tw-etat.direct i { animation: none; } }

  .tw-corps { padding: 1.25rem; }
  .tw-titre { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em;
    margin: 0 0 .5rem; text-wrap: balance; }
  .tw-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--mono);
    font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gris); margin-bottom: 1.25rem; }
  .tw-actions { display: flex; gap: .625rem; flex-wrap: wrap; }
  .tw-bouton { font: inherit; font-weight: 600; font-size: .875rem; padding: .5rem 1rem;
    cursor: pointer; background: var(--accent); color: var(--sur-accent);
    border: 1px solid var(--accent); text-decoration: none; display: inline-block; }
  .tw-bouton.second { background: none; color: var(--encre); border-color: var(--filet-fin); }
  .tw-bouton:hover { opacity: .88; }
  .tw-bouton:disabled { opacity: .5; cursor: default; }
  .tw-bouton:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
  .tw-note { font-size: .8125rem; color: var(--gris); margin: .875rem 0 0; max-width: 56ch; }
  .tw-note b { color: var(--encre); font-weight: 600; }
  #lecteur iframe { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--filet-fin);
    display: block; margin-top: 1.25rem; }
  .tw-horaires { margin-top: 2rem; border-top: 1px solid var(--filet-fin); padding-top: 1.25rem; }
  .tw-horaires h2 { font-family: var(--mono); font-size: .625rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent); font-weight: 400; margin: 0 0 .625rem; }
  .tw-horaires p { margin: 0; color: var(--gris); font-size: .9375rem; max-width: 58ch; }

  /* Mention de bas de page : vraie, verifiable, mais pas la premiere chose
     qu'on lit sur une page qui doit d'abord donner envie. */
  .mention { margin-top: 3rem; border-top: 1px solid var(--filet-fin); padding-top: 1rem;
    font-size: .75rem; color: var(--gris); max-width: 60ch; }
  .mention b { color: var(--encre); font-weight: 600; }
