/*
Theme Name: Netip V2
Theme URI: https://netip.org
Description: Thème de l'observatoire Netip — « Qui tient le Web français ? ». DA v2 « Le phare » : illustration côtière éditoriale, papier crème, encre profonde, corail d'action, sarcelle de marque. Zéro jQuery, 1 CSS, 1 JS defer.
Author: Digicalys
Version: 1.2.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: netip-v2
*/

/* ============================================================
   FONTS SELF-HOSTED (variables, subset latin)
   ============================================================ */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/Space_Grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/Inter.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/JetBrains_Mono.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/Caveat.woff2") format("woff2");
}

/* ============================================================
   DESIGN TOKENS — DA v2 « Le phare » (charte 2026-09-13)
   ============================================================ */
:root {
  /* Couleurs système (noms conservés pour compatibilité des templates) */
  --encre: #0f1c28;
  --encre-70: #3c4c59;
  --encre-40: #8a97a3;
  --encre-20: #dbe1e6;
  --papier: #fbf9f4;
  --papier-2: #f1ede3;
  --blanc: #ffffff;
  --preuve: #0dacb0;        /* sarcelle de marque */
  --preuve-sombre: #0b7a7e;
  --preuve-dim: #e0f2f1;
  --alerte: #f75b42;        /* corail d'action */
  --alerte-sombre: #d9432c;
  --alerte-dim: #fceade;
  --lien: #0b7a7e;
  --lien-sombre: #095f62;
  --lien-dim: #e0f2f1;

  /* Accents DA v2 */
  --nuit: #0f2734;
  --nuit-2: #1e4153;
  --corail: #f75b42;
  --corail-sombre: #d9432c;
  --sarcelle: #0dacb0;
  --sarcelle-sombre: #0b7a7e;
  --jaune: #fac164;
  --rose: #f6c0ca;
  --rose-fonce: #d96a85;
  --ardoise: #447194;
  --violet: #7b6fd0;
  --violet-sombre: #6a5bc4;
  --vert-croissance: #1f9d61;
  --tinte-verte: #e0f2e8;
  --tinte-corail: #fceade;
  --tinte-violette: #efe9f8;
  --tinte-jaune: #fdf3dc;
  --postit: #f8e9a9;

  /* Typographie */
  --font-titre: "Space Grotesk", "Segoe UI", sans-serif;
  --font-corps: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  --font-main: "Caveat", cursive;

  /* Échelle */
  --ra: 14px;
  --ra-lg: 16px;
  --ra-s: 10px;
  --l1: 1px;
  --l2: 2px;
  --max: 1200px;
  --pad: 28px;
  --ombre: 0 1px 2px rgb(15 28 40 / .05), 0 8px 22px rgb(15 28 40 / .07);
  --ombre-lift: 0 2px 4px rgb(15 28 40 / .06), 0 16px 36px rgb(15 28 40 / .12);
  --ease: cubic-bezier(.22, .8, .36, 1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-corps);
  font-size: 1rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* Liens : encre souligné (maquette), accent corail au survol */
a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(15 28 40 / .35);
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
a:hover {
  color: var(--corail-sombre);
  text-decoration-color: var(--corail-sombre);
}
main a:not(.btn):not(.nav-link):not(.brand) { text-decoration-thickness: 1.5px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  line-height: 1.12;
  margin: 0 0 .55em;
  letter-spacing: -.015em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.24rem; }
p { text-wrap: pretty; }
code, .mono, .netip-host, time.date { font-family: var(--font-mono); font-size: .9em; }
::selection { background: var(--sarcelle); color: var(--blanc); }
:focus-visible { outline: 2.5px solid var(--corail); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--papier); padding: 10px 18px; z-index: 100; border-radius: 0 0 var(--ra-s) 0; }
.skip-link:focus { left: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Kicker : étiquette mono corail (maquette v2, sans pastille) */
.kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--corail-sombre);
  margin: 0 0 12px;
}
.kicker-nuit { color: var(--sarcelle); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  background: var(--corail);
  color: var(--blanc);
  border: none;
  border-radius: var(--ra-s);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(15 28 40 / .12), 0 6px 16px rgb(247 91 66 / .22);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--corail-sombre);
  color: var(--blanc);
  box-shadow: 0 2px 4px rgb(15 28 40 / .12), 0 10px 22px rgb(247 91 66 / .28);
}
.btn:active { transform: translateY(0); }
.btn-encre { background: var(--encre); color: var(--papier); box-shadow: none; }
.btn-encre:hover { background: #1b2f40; color: var(--papier); }
.btn-blanc {
  background: var(--blanc); color: var(--encre);
  box-shadow: none;
}
.btn-blanc:hover { background: var(--papier); color: var(--encre); }
.btn-ghost {
  background: transparent; color: inherit;
  border: var(--l2) solid currentColor;
  box-shadow: none;
}
.btn-ghost:hover { transform: none; box-shadow: none; background: rgb(15 28 40 / .06); color: inherit; }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
  background: rgb(255 255 255 / .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--l1) solid rgb(15 28 40 / .08);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--encre); flex: none; }
.brand:hover { color: var(--encre); }
.brand .brand-logo { height: 56px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: 9px 14px; border-radius: var(--ra-s);
  color: var(--encre); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.main-nav a:hover { background: var(--papier-2); color: var(--corail-sombre); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  background: var(--encre); color: var(--papier);
}
.nav-toggle { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-search {
  display: flex; align-items: center;
  background: var(--papier-2); border-radius: var(--ra-s);
  transition: background .2s var(--ease);
}
.header-search:focus-within { background: var(--blanc); box-shadow: 0 0 0 2px var(--corail); }
.header-search input[type="search"] {
  width: 0; padding: 0; border: none; background: transparent;
  font: inherit; font-size: .92rem; color: var(--encre); outline: none;
  transition: width .25s var(--ease), padding .25s var(--ease);
}
.header-search:focus-within input[type="search"] { width: 170px; padding: 0 4px 0 15px; }
.header-search button {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: none; color: var(--encre);
  cursor: pointer; border-radius: var(--ra-s);
}
.header-cta { padding: 11px 18px; font-size: .93rem; white-space: nowrap; }
.header-cta svg { flex: none; }

@media (max-width: 1080px) {
  .brand .brand-logo { height: 48px; }
  .main-nav a { padding: 9px 10px; font-size: .9rem; }
  .header-search:focus-within input[type="search"] { width: 120px; }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: var(--blanc);
    border: var(--l2) solid var(--encre); border-radius: var(--ra-s); padding: 8px 14px;
    font: inherit; color: var(--encre); cursor: pointer; font-weight: 600;
  }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: var(--l1) solid rgb(15 28 40/.1); box-shadow: var(--ombre-lift); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px var(--pad) 18px; gap: 2px; }
  .main-nav a { display: block; padding: 13px 14px; font-size: 1.02rem; }
  .header-search { display: none; }
  .site-header .container { min-height: 68px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ============================================================
   HERO : l'observatoire côtier (illustration à droite, texte à gauche)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--papier);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/img/hero-1920.webp") right 38% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--papier) 22%, rgb(251 249 244 / .94) 38%, rgb(251 249 244 / .6) 58%, rgb(251 249 244 / .1) 82%, rgb(251 249 244 / 0) 100%),
    linear-gradient(0deg, rgb(251 249 244 / .9) 0%, rgb(251 249 244 / 0) 22%);
}
.hero-inner { padding: clamp(56px, 7vw, 96px) var(--pad) clamp(96px, 10vw, 138px); position: relative; }
.hero-kicker { margin-bottom: 16px; }
.hero h1 {
  color: var(--encre);
  max-width: 13ch;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  letter-spacing: -.022em;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--corail);
}
.hero-sous-titre {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--encre-70);
  max-width: 42ch;
  margin: 0 0 30px;
}

/* Bande de recherche */
.domain-search {
  display: flex; gap: 8px; max-width: 560px;
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40 / .1);
  padding: 7px; border-radius: 13px;
  box-shadow: var(--ombre);
  transition: box-shadow .2s var(--ease);
}
.domain-search:focus-within { box-shadow: var(--ombre-lift); }
.domain-search input[type="search"] {
  flex: 1; padding: 12px 16px; border: none; background: transparent;
  color: var(--encre); font: inherit; font-size: 1rem; outline: none; min-width: 0;
}
.domain-search input::placeholder { color: var(--encre-40); }
.domain-search button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--corail); color: var(--blanc); border: none;
  border-radius: 9px; padding: 12px 22px; font: inherit; font-family: var(--font-titre);
  font-weight: 600; font-size: .98rem; cursor: pointer; white-space: nowrap;
  transition: background .16s var(--ease), transform .16s var(--ease);
}
.domain-search button:hover { background: var(--corail-sombre); transform: translateY(-1px); }
.hero-erreur {
  margin: 12px 0 0; font-size: .88rem;
  color: var(--corail-sombre);
  background: var(--tinte-corail);
  border: 1px solid var(--corail);
  border-radius: var(--ra-s);
  padding: 10px 14px;
  max-width: 560px;
}
.hero-exemples { margin: 16px 0 0; font-size: .82rem; color: var(--encre-70); }
.hero-exemples a { color: var(--encre-70); }
.hero-exemples a:hover { color: var(--corail-sombre); }

/* Note manuscrite près de la mouette (décoratif) */
.hero-note {
  position: absolute; top: clamp(14px, 2.4vw, 30px); right: clamp(6px, 3.2vw, 48px);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.12;
  color: var(--encre);
  transform: rotate(-4deg);
  margin: 0;
  text-align: left;
}
@media (max-width: 1100px) {
  .hero-note { display: none; }
}
@media (max-width: 700px) {
  .hero::before { background: url("assets/img/hero-820.webp") 80% 18% / cover no-repeat; }
  .hero::after {
    background:
      linear-gradient(90deg, rgb(251 249 244 / .97) 26%, rgb(251 249 244 / .86) 52%, rgb(251 249 244 / .38) 100%),
      linear-gradient(0deg, rgb(251 249 244 / .92) 0%, rgb(251 249 244 / 0) 30%);
  }
  .hero-inner { padding-bottom: clamp(84px, 12vw, 110px); }
  .domain-search { flex-direction: column; padding: 10px; }
  .domain-search input { padding: 11px 12px; }
  .domain-search button { width: 100%; justify-content: center; }
}

/* ============================================================
   BANDE DE STATS (chevauche le hero, jamais un score)
   ============================================================ */
.stats-band { position: relative; z-index: 2; margin-top: -46px; }
.stats-band > .container { position: relative; }
.stats-bandeau {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40 / .07);
  border-radius: var(--ra-lg);
  box-shadow: var(--ombre);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px 26px;
  max-width: calc(100% - 200px);
}
.stat-cell { display: flex; align-items: flex-start; gap: 14px; }
.stat-pastille {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--blanc);
}
.stat-pastille.corail   { background: var(--corail); }
.stat-pastille.sarcelle { background: var(--sarcelle); }
.stat-pastille.jaune    { background: var(--jaune); color: var(--encre); }
.stat-pastille.rose     { background: var(--rose); color: var(--rose-fonce); }
.stat-cell .num {
  display: block; font-family: var(--font-titre);
  font-size: 1.75rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
}
.stat-cell .lib { display: block; font-weight: 600; font-size: .92rem; margin-top: 2px; }
.stat-cell .sub { display: block; color: var(--encre-40); font-size: .8rem; margin-top: 3px; }
.stat-cell .sub-lien { color: var(--encre); font-weight: 600; text-decoration-thickness: 1.5px; }
.stat-cell .sub-lien:hover { color: var(--corail-sombre); }

.postit {
  position: absolute; right: 0; top: -14px;
  background: var(--postit);
  color: var(--encre);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.12;
  padding: 16px 20px 18px;
  border-radius: 3px;
  transform: rotate(3deg);
  box-shadow: 0 8px 18px rgb(15 28 40 / .12);
  margin: 0;
}
.postit::after {
  content: "";
  display: block;
  width: 78px; height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--corail);
  transform: rotate(-1deg);
}
@media (max-width: 1100px) {
  .postit { display: none; }
  .stats-bandeau { max-width: 100%; }
}
@media (max-width: 900px) {
  .stats-bandeau { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 20px 22px; }
}
@media (max-width: 460px) {
  .stats-bandeau { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .intro { margin: 10px 0 0; color: var(--encre-70); max-width: 64ch; }
.section-head .more {
  font-family: var(--font-titre); font-size: .95rem; font-weight: 700;
  text-decoration: none; color: var(--encre);
  display: inline-flex; align-items: center; gap: 6px;
  border: none; padding-bottom: 3px;
  border-bottom: var(--l2) solid var(--corail);
}
.section-head .more:hover { color: var(--corail-sombre); border-bottom-color: var(--corail-sombre); }
.section-head .more svg { transition: transform .18s var(--ease); }
.section-head .more:hover svg { transform: translateX(4px); }
.bg-alt { background: var(--papier-2); }
.bg-blanc { background: var(--blanc); border-top: var(--l1) solid rgb(15 28 40/.07); border-bottom: var(--l1) solid rgb(15 28 40/.07); }

.portes-section .kicker { margin-bottom: 8px; }
.portes-section h2 { margin-bottom: 36px; }

/* ============================================================
   PORTES D'ENTRÉE (3 cartes teintées)
   ============================================================ */
.portes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.porte {
  border-radius: var(--ra-lg);
  padding: 26px 26px 24px;
  text-decoration: none; color: var(--encre);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.porte:hover { transform: translateY(-4px); box-shadow: var(--ombre-lift); color: var(--encre); }
.porte-verte    { background: var(--tinte-verte); }
.porte-corail   { background: var(--tinte-corail); }
.porte-violette { background: var(--tinte-violette); }
.porte .num {
  font-family: var(--font-mono); color: var(--encre-40);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
}
.porte .pict {
  margin: 8px 0 6px;
  color: var(--encre);
  transition: transform .25s var(--ease);
}
.porte-verte .pict    { color: #1f8a5e; }
.porte-corail .pict   { color: var(--encre); }
.porte-violette .pict { color: var(--violet-sombre); }
.porte:hover .pict { transform: scale(1.1) rotate(-4deg); }
.porte h3 { margin: 0; font-size: 1.25rem; }
.porte p { margin: 0; color: var(--encre-70); font-size: .95rem; }
.porte .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.porte .chips span {
  font-size: .7rem; letter-spacing: .05em;
  border: 1px solid rgb(15 28 40 / .22);
  border-radius: 7px; padding: 3px 9px;
  color: var(--encre-70); background: rgb(255 255 255 / .55);
}
.porte .fleche-rond {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blanc);
  box-shadow: 0 2px 8px rgb(15 28 40 / .12);
  display: grid; place-items: center;
  color: var(--encre);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.porte:hover .fleche-rond { transform: translateX(4px); color: var(--corail-sombre); }

/* ============================================================
   PANNEAUX (événements + derniers domaines)
   ============================================================ */
.panneaux-section { padding-top: 0; }
.panneaux { display: grid; grid-template-columns: 1fr 1.08fr; gap: 22px; align-items: start; }
@media (max-width: 1024px) { .panneaux { grid-template-columns: 1fr; } }
.panneau {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40 / .07);
  border-radius: var(--ra-lg);
  box-shadow: var(--ombre);
  padding: 26px 28px 22px;
}
.panneau-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.panneau-titre {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 1.13rem; margin: 0;
}
.pt-icone {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; flex: none;
}
.pt-icone.corail   { background: var(--alerte-dim); color: var(--corail-sombre); }
.pt-icone.sarcelle { background: var(--preuve-dim); color: var(--sarcelle-sombre); }
.panneau-head .plus { font-size: .84rem; font-weight: 600; color: var(--encre-70); }
.panneau-head .plus:hover { color: var(--corail-sombre); }

/* Timeline événements */
.timeline-v2 { list-style: none; margin: 0; padding: 0; }
.timeline-v2 li {
  position: relative;
  display: grid;
  grid-template-columns: 84px 22px 1fr;
  gap: 0 8px;
  padding: 13px 0;
}
.timeline-v2 li:not(:last-child)::before {
  content: "";
  position: absolute; left: 96px; top: 42px; bottom: -13px;
  width: 2px; background: var(--encre-20);
}
.timeline-v2 .when { font-size: .74rem; color: var(--encre-40); padding-top: 4px; }
.timeline-v2 .tl-point {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blanc); border: 3px solid var(--corail);
  margin-top: 6px; justify-self: center;
}
.timeline-v2 .tl-corps a { font-weight: 600; font-size: .98rem; text-decoration: none; }
.timeline-v2 .tl-corps a:hover { color: var(--corail-sombre); text-decoration: underline; }
.timeline-v2 .tl-corps p { margin: 4px 0 0; font-size: .86rem; color: var(--encre-70); }

/* Liste des domaines */
.liste-domaines { list-style: none; margin: 0; padding: 0; }
.liste-domaines li + li { border-top: 1px solid rgb(15 28 40 / .07); }
.ligne-domaine {
  display: grid;
  grid-template-columns: 40px 1fr auto 20px;
  gap: 14px; align-items: center;
  padding: 12px 4px;
  text-decoration: none;
  border-radius: var(--ra-s);
  transition: background .15s var(--ease);
}
.ligne-domaine:hover { background: var(--papier); }
.pastille-domaine {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-titre); font-weight: 700; font-size: 1.05rem;
}
.pd-a { background: var(--preuve-dim);      color: var(--sarcelle-sombre); }
.pd-b { background: var(--tinte-corail);    color: var(--corail-sombre); }
.pd-c { background: var(--tinte-violette);  color: var(--violet-sombre); }
.pd-d { background: var(--tinte-jaune);     color: #8a6410; }
.ld-nom { font-size: .92rem; font-weight: 600; color: var(--encre); }
.ld-tags {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  color: var(--sarcelle-sombre);
  background: var(--preuve-dim);
  border-radius: 6px;
  padding: 3px 8px;
  text-transform: uppercase;
}
.ld-fleche { color: var(--encre-40); transition: transform .18s var(--ease), color .18s var(--ease); }
.ligne-domaine:hover .ld-fleche { transform: translateX(4px); color: var(--corail-sombre); }
@media (max-width: 560px) {
  .timeline-v2 li { grid-template-columns: 22px 1fr; }
  .timeline-v2 .when { grid-column: 2; order: -1; padding-top: 0; margin-bottom: 6px; }
  .timeline-v2 .tl-point { grid-row: 2; margin-top: 4px; }
  .timeline-v2 .tl-corps { grid-row: 2; }
  .timeline-v2 li:not(:last-child)::before { left: 10px; top: 34px; }
  .ligne-domaine { grid-template-columns: 40px 1fr 20px; }
  .ld-tags { display: none; }
}

/* ============================================================
   DÉMARCHE (section nuit + illustration côtière)
   ============================================================ */
.demarche {
  position: relative;
  background: var(--nuit);
  color: var(--papier);
  overflow: hidden;
  isolation: isolate;
}
.demarche::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1;
  background: url("assets/img/demarche-nuit-1920.webp") center bottom / cover no-repeat;
  opacity: .5;
}
.demarche::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--nuit) 0%, rgb(15 39 52 / .55) 70%, rgb(15 39 52 / .25) 100%);
}
.demarche-inner {
  padding: clamp(56px, 8vw, 96px) var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.demarche-intro h2 { color: var(--blanc); }
.demarche-intro .lead { color: rgb(251 249 244 / .75); max-width: 46ch; font-size: 1.02rem; margin-bottom: 26px; }
.demarche-etapes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.etape { border-left: 1px solid rgb(251 249 244 / .16); padding-left: 18px; }
.etape-icone { display: inline-block; color: var(--blanc); margin-bottom: 10px; }
.etape h3 { color: var(--blanc); font-size: 1.02rem; margin: 0 0 6px; }
.etape p { color: rgb(251 249 244 / .62); font-size: .85rem; margin: 0; }
.demarche-note {
  position: absolute; right: clamp(10px, 4vw, 60px); bottom: 18px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.12;
  color: var(--blanc);
  transform: rotate(-3deg);
  margin: 0;
}
@media (max-width: 1024px) {
  .demarche-inner { grid-template-columns: 1fr; gap: 36px; }
  .demarche-etapes { grid-template-columns: 1fr 1fr; }
  .demarche-note { display: none; }
}
@media (max-width: 560px) {
  .demarche-etapes { grid-template-columns: 1fr; }
}

/* ============================================================
   DOCTRINE (section claire — CDC non négociable)
   ============================================================ */
.doctrine-section { padding-top: clamp(48px, 7vw, 84px); }
.statuts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.statut-bloc {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40 / .08);
  border-radius: var(--ra);
  padding: 22px 22px 20px;
  box-shadow: var(--ombre);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.statut-bloc:hover { transform: translateY(-3px); box-shadow: var(--ombre-lift); }
.statut-bloc p { color: var(--encre-70); font-size: .88rem; margin: 12px 0 0; }
.statut-bloc .ex { display: block; margin-top: 10px; font-size: .78rem; color: var(--encre-40); font-style: italic; }
.doctrine-section .note-basse {
  margin-top: 30px; padding: 18px 22px;
  border: 1.5px dashed rgb(247 91 66 / .6);
  border-radius: var(--ra-s);
  color: var(--encre-70); font-size: .93rem;
  background: var(--tinte-corail);
}
.doctrine-section .note-basse b { color: var(--corail-sombre); }

/* ============================================================
   BADGES (statuts : libellé + forme, jamais couleur seule)
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700;
  padding: 3.5px 10px; border-radius: 999px;
  border: 1.5px solid; line-height: 1.4; white-space: nowrap;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.badge-st-observed  { color: var(--sarcelle-sombre); border-color: var(--sarcelle-sombre); background: var(--preuve-dim); }
.badge-st-observed .dot { background: var(--sarcelle-sombre); }
.badge-st-declared  { color: #35586f; border-color: #35586f; background: #e7eef3; }
.badge-st-declared .dot { border-radius: 1px; background: #35586f; }
.badge-st-inferred  { color: #8a6410; border-color: #b98a24; background: var(--tinte-jaune); }
.badge-st-inferred .dot { border-radius: 0 50% 50% 50%; background: #b98a24; }
.badge-st-tested    { color: var(--violet-sombre); border-color: var(--violet-sombre); background: var(--tinte-violette); }
.badge-st-tested .dot { border-radius: 1px; transform: rotate(45deg); background: var(--violet-sombre); }

.badge-cf-confirmed     { color: var(--sarcelle-sombre); border-color: rgb(11 122 126/.4); background: transparent; }
.badge-cf-probable      { color: #35586f; border-color: rgb(68 113 148/.5); background: transparent; }
.badge-cf-to_verify     { color: #8a6410; border-color: rgb(185 138 36/.5); background: transparent; }
.badge-cf-contradictory { color: var(--corail-sombre); border-color: rgb(247 91 66/.7); background: var(--tinte-corail); }

.badge-signal { color: var(--corail-sombre); border-color: var(--corail); background: var(--tinte-corail); }
.badge-signal .dot { background: var(--corail); }
.badge-neutre { border-color: rgb(15 28 40/.2); color: var(--encre-70); background: transparent; font-weight: 600; }
.badge-sur-encre { border-color: rgb(251 249 244/.3); color: rgb(251 249 244/.9); background: transparent; font-weight: 600; }
.badge-sur-encre:hover { border-color: var(--sarcelle); color: var(--sarcelle); }

/* ============================================================
   CARTES (archives, dossiers)
   ============================================================ */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40 / .08);
  border-radius: var(--ra-lg);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-lift);
}
.card h3 { margin: 0; font-size: 1.14rem; letter-spacing: -.01em; }
.card h3 a { color: var(--encre); text-decoration: none; }
.card h3 a:hover { color: var(--corail-sombre); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card .meta a { text-decoration: none; font-size: .76rem; color: var(--encre-70); border: 1px solid rgb(15 28 40/.14); border-radius: 999px; padding: 3px 10px; background: var(--papier); }
.card .meta a:hover { border-color: var(--sarcelle); color: var(--sarcelle-sombre); background: var(--preuve-dim); }
.card .excerpt { color: var(--encre-70); font-size: .93rem; margin: 0; }
.card .domain { font-family: var(--font-mono); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.card .thumb { border-radius: calc(var(--ra-lg) - 6px); overflow: hidden; margin: -6px -6px 4px; }
.card .foot {
  margin-top: auto; padding-top: 14px;
  border-top: var(--l1) dashed rgb(15 28 40 / .16);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.card .foot .action {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-titre); font-weight: 700; font-size: .9rem;
  color: var(--encre); text-decoration: none;
}
.card .foot .action svg { color: var(--sarcelle-sombre); transition: transform .18s var(--ease); }
.card:hover .foot .action svg { transform: translateX(4px); }
.card:hover .foot .action { color: var(--corail-sombre); }

.thumb-placeholder { aspect-ratio: 16/9; border-radius: calc(var(--ra-lg) - 6px); position: relative; overflow: hidden; background: var(--papier-2); }
.thumb-placeholder::after {
  content: "🌊"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2rem; opacity: .4;
}

/* ============================================================
   STATS (sections internes, effectifs)
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.stat {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40 / .08);
  border-top: 4px solid var(--sarcelle);
  border-radius: var(--ra-lg);
  padding: 26px 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--ombre-lift); }
.stat.lien::before, .stat.alerte::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.stat.lien::before { background: var(--ardoise); }
.stat.alerte::before { background: var(--corail); }
.stat .num { display: block; font-family: var(--font-titre); font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.stat .lib { color: var(--encre); font-weight: 600; font-size: .95rem; }
.stat .sub { display: block; color: var(--encre-70); font-size: .84rem; margin-top: 3px; }
.stat .when { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--encre-40); }

/* ============================================================
   FICHE DOMAINE
   ============================================================ */
.fiche-head {
  background: var(--blanc);
  border-bottom: var(--l1) solid rgb(15 28 40/.1);
  padding: clamp(34px, 5.5vw, 58px) 0;
  position: relative; overflow: hidden;
}
.fiche-head::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--sarcelle), var(--corail), var(--violet));
  opacity: .85;
}
.fiche-head .host {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 10px;
}
.fiche-head .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-juridiction {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--papier); border: 1px solid rgb(15 28 40/.12);
  font-size: .8rem; color: var(--encre-70); text-decoration: none;
}
.chip-juridiction:hover { border-color: var(--sarcelle); color: var(--sarcelle-sombre); }
.netip-flag { display: inline-block; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(15 28 40/.12); }
.fiche-head .geo-line {
  margin-top: 10px; font-size: .82rem; color: var(--encre-70);
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.fiche-head .geo-line svg { color: var(--sarcelle-sombre); }
.fiche-head .geo-line a { color: var(--sarcelle-sombre); }
.fiche-head .geo-line .geo-pays { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); }
.fiche-head .fraicheur {
  margin-top: 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--encre-70);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--papier); border: 1px solid rgb(15 28 40/.1);
}
.fiche-head .fraicheur svg { color: var(--sarcelle-sombre); }

.fiche-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
@media (max-width: 1024px) { .fiche-layout { grid-template-columns: 1fr; } }
.fiche-main > section { margin-bottom: 52px; }
.fiche-main h2 {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--sarcelle);
  margin-bottom: 22px;
}

.fiche-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 1024px) { .fiche-aside { position: static; } }

.faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.faits li {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40/.08);
  border-left: 3px solid var(--sarcelle);
  border-radius: var(--ra-s);
  padding: 14px 16px;
  font-size: .97rem;
}
.faits .ni { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sarcelle); margin-top: 7px; box-shadow: 0 0 0 3px var(--preuve-dim); }

/* Graphe simplifié */
.graphe {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40/.08);
  border-radius: var(--ra-lg);
  padding: 22px;
  box-shadow: var(--ombre);
}
.graphe svg { width: 100%; height: auto; font-family: var(--font-mono); }
.graphe .edge { stroke: var(--encre-20); stroke-width: 1.5; }
.graphe .node-label { font-size: 11px; fill: var(--encre); }
.graphe .node-domain { fill: var(--encre); }
.graphe figcaption { color: var(--encre-70); font-size: .84rem; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgb(15 28 40/.14); }

/* Tables de preuve */
.table-wrap { overflow-x: auto; background: var(--blanc); border: var(--l1) solid rgb(15 28 40/.08); border-radius: var(--ra-lg); box-shadow: var(--ombre); }
table.preuves { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 720px; }
table.preuves th, table.preuves td { padding: 12px 14px; border-bottom: var(--l1) solid rgb(15 28 40/.07); text-align: left; vertical-align: top; }
table.preuves thead th {
  font-family: var(--font-titre); font-size: .76rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--encre-70); background: var(--papier);
  border-bottom: var(--l2) solid var(--encre);
}
table.preuves tbody tr:hover { background: rgb(13 172 176 / .05); }
table.preuves tr:last-child td { border-bottom: none; }
table.preuves td .src { display: block; font-size: .78rem; word-break: break-all; }
table.preuves td.mono { font-family: var(--font-mono); font-size: .8rem; }
td.expired { opacity: .55; }
td.expired::after { content: " — expirée"; font-style: italic; }

/* Chronologie (templates internes) */
.timeline {
  list-style: none; margin: 0; padding: 6px 0 6px 26px;
  border-left: 2px solid var(--encre-20);
  display: grid; gap: 22px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--corail);
  border: 2.5px solid var(--papier);
  box-shadow: 0 0 0 2px var(--corail);
}
.timeline .when { font-family: var(--font-mono); font-size: .76rem; color: var(--encre-70); display: block; margin-bottom: 3px; }
.timeline a { font-weight: 700; font-family: var(--font-titre); }

/* Actions (aside) */
.actions {
  background: var(--nuit); color: var(--papier);
  border-radius: var(--ra-lg); padding: 24px;
  display: grid; gap: 11px;
  box-shadow: var(--ombre-lift);
  position: relative; overflow: hidden;
}
.actions::before {
  content: "";
  position: absolute; inset: auto -30px -30px auto;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgb(13 172 176 / .16), transparent 70%);
  pointer-events: none;
}
.actions h2 { color: var(--blanc); font-size: 1.08rem; margin: 0 0 6px; }
.actions .btn { width: 100%; box-shadow: none; }
.actions .btn.secondary {
  background: rgb(251 249 244 / .06); color: var(--papier);
  border: var(--l1) solid rgb(251 249 244 / .35);
  font-weight: 600;
}
.actions .btn.secondary:hover { border-color: var(--sarcelle); color: var(--sarcelle); background: rgb(13 172 176 / .08); }

.note-limite {
  background: var(--tinte-corail);
  border: 1px solid rgb(247 91 66 / .5);
  border-left: 4px solid var(--corail);
  border-radius: var(--ra-s);
  padding: 16px 20px; font-size: .93rem; color: var(--encre);
}
.note-limite b { color: var(--corail-sombre); }

/* ============================================================
   ARTICLE / PAGE
   ============================================================ */
.entry-wrap { max-width: 780px; margin: 0 auto; }
/* Pages statiques : même grille que le header, sans colonne de lecture imbriquée. */
.entry-wrap--page { max-width: none; }
.entry-content { font-size: 1.03rem; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 14px 24px;
  border-left: 4px solid var(--sarcelle);
  background: var(--blanc); border-radius: 0 var(--ra-s) var(--ra-s) 0;
  font-family: var(--font-titre); font-size: 1.05rem;
}
.entry-content img { border-radius: var(--ra); }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
.entry-content table td, .entry-content table th { border: var(--l1) solid rgb(15 28 40/.16); padding: 9px 12px; }
.entry-content table thead th { background: var(--papier); font-family: var(--font-titre); }
@media (max-width: 560px) {
  .entry-wrap--page .entry-content table { display: block; overflow-x: auto; }
}
.entry-header { margin-bottom: 32px; }
.entry-header .meta-line {
  color: var(--encre-70); font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px;
}
.entry-header .meta-line svg { color: var(--sarcelle-sombre); vertical-align: -2px; }
.entry-featured { border-radius: var(--ra-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--ombre); }
.entry-featured img { width: 100%; }

/* Sommaire (TOC maison) */
.netip-toc {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40/.1);
  border-left: 4px solid var(--sarcelle);
  border-radius: var(--ra);
  padding: 20px 24px; margin: 0 0 32px; font-size: .94rem;
  box-shadow: var(--ombre);
}
.netip-toc h2 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 10px; color: var(--encre-70);
  border: none; padding: 0; display: inline-block;
}
.netip-toc ol { margin: 0; padding-left: 20px; }
.netip-toc li { margin-bottom: 6px; }
.netip-toc a { text-decoration: none; }
.netip-toc a:hover { text-decoration: underline; }

/* Encadrés preuve dans le contenu */
.netip-callout { border-radius: var(--ra-s); padding: 18px 22px; margin: 1.6em 0; font-size: .96rem; box-shadow: var(--ombre); }
.netip-callout b:first-child { display: inline-block; margin-bottom: 4px; font-family: var(--font-titre); }
.netip-callout.proof { background: var(--preuve-dim); border: 1px solid rgb(13 172 176/.5); }
.netip-callout.warning { background: var(--tinte-corail); border: 1px solid rgb(247 91 66/.5); }
.netip-callout.info { background: #e7eef3; border: 1px solid rgb(68 113 148/.5); }

/* ============================================================
   FORMULAIRE
   ============================================================ */
.form-card {
  background: var(--blanc);
  border: var(--l1) solid rgb(15 28 40/.1);
  border-radius: var(--ra-lg);
  padding: 30px; max-width: 660px;
  box-shadow: var(--ombre);
}
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 7px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="url"], .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px;
  border: var(--l1) solid rgb(15 28 40/.28);
  border-radius: var(--ra-s);
  font: inherit; background: var(--papier);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--sarcelle);
  box-shadow: 0 0 0 3px rgb(13 172 176 / .18);
  background: var(--blanc);
}
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card button[type="submit"] { margin-top: 20px; }

.hp-field { position: absolute; left: -9999px; }

.form-status { border-radius: var(--ra-s); padding: 14px 18px; margin-bottom: 16px; font-size: .93rem; }
.form-status.ok { background: var(--preuve-dim); border: 1px solid var(--sarcelle); }
.form-status.err { background: var(--tinte-corail); border: 1px solid var(--corail); }

.digi-contact-field { margin-bottom: 4px; }

/* ============================================================
   PAGINATION / FILS D'ARIANE
   ============================================================ */
.breadcrumb {
  font-size: .8rem; color: var(--encre-70);
  padding-top: 16px; font-family: var(--font-mono);
}
.breadcrumb a { color: var(--encre-70); text-decoration: none; }
.breadcrumb a:hover { color: var(--corail-sombre); text-decoration: underline; }
.pagination { display: flex; gap: 9px; margin: 40px 0 0; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 9px 16px;
  border: var(--l1) solid rgb(15 28 40/.2);
  border-radius: var(--ra-s);
  text-decoration: none; color: var(--encre);
  font-size: .92rem; font-weight: 600;
  transition: all .14s var(--ease);
}
.pagination .current { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.pagination a:hover { border-color: var(--encre); background: var(--blanc); }

/* ============================================================
   FILTRES ARCHIVES
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 30px; }
.filters a {
  padding: 8px 17px; border-radius: 999px;
  border: var(--l1) solid rgb(15 28 40/.22);
  color: var(--encre); text-decoration: none; font-size: .88rem; font-weight: 500;
  transition: all .15s var(--ease);
}
.filters a:hover { border-color: var(--sarcelle); background: var(--preuve-dim); color: var(--sarcelle-sombre); }
.filters .active { background: var(--encre); border-color: var(--encre); color: var(--papier); font-weight: 600; }
.filters .active:hover { background: var(--encre); color: var(--papier); }

/* ============================================================
   FOOTER (papier, DA v2)
   ============================================================ */
.site-footer {
  background: var(--papier);
  border-top: var(--l1) solid rgb(15 28 40 / .1);
  color: var(--encre);
  margin-top: clamp(56px, 9vw, 100px);
  position: relative;
}
.footer-main { padding: clamp(48px, 7vw, 76px) var(--pad) 30px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-logo { height: 48px; width: auto; }
.footer-baseline {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--encre);
  margin: 16px 0 12px;
  text-decoration: underline;
  text-decoration-color: var(--corail);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 5px;
  width: fit-content;
  transform: rotate(-1.5deg);
}
.footer-desc { color: var(--encre-70); font-size: .88rem; max-width: 36ch; margin: 0; }
.footer-col h3 {
  color: var(--encre-70); font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.footer-col h3::after { content: ""; flex: 1; height: 1px; background: rgb(15 28 40/.12); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a {
  color: var(--encre-70); text-decoration: none; font-size: .93rem;
  transition: color .14s var(--ease), padding-left .14s var(--ease);
  position: relative;
}
.footer-col a::before {
  content: "";
  position: absolute; left: 0; top: 50%; width: 0; height: 1.5px;
  background: var(--corail);
  transition: width .14s var(--ease);
}
.footer-col a:hover { color: var(--corail-sombre); padding-left: 14px; }
.footer-col a:hover::before { width: 9px; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--encre); color: var(--papier);
  display: grid; place-items: center;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.social-btn:hover { background: var(--corail); color: var(--blanc); transform: translateY(-2px); }
.footer-decor {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  margin-top: 26px;
  color: var(--encre);
}
.footer-france { width: 64px; height: 64px; opacity: .8; }
.footer-note {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
  transform: rotate(-2deg);
}
@media (max-width: 700px) { .footer-decor { display: none; } }
.footer-bottom {
  border-top: 1px solid rgb(15 28 40/.1);
  padding: 20px 0; font-size: .8rem; color: var(--encre-70);
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom .mono { font-size: .75rem; }

/* ============================================================
   404
   ============================================================ */
.erreur-404 { text-align: center; padding: clamp(60px, 10vw, 110px) 0; }
.erreur-404 .code {
  font-family: var(--font-mono); font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 700; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--sarcelle), var(--corail), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1; margin-bottom: 6px;
}

/* ============================================================
   ENTRÉES ANIMÉES (CSS pur, au chargement — jamais d'état caché persistant)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes netip-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  .stat, .porte, .statut-bloc, .stat-cell {
    animation: netip-in .5s var(--ease) both;
  }
  .stat:nth-child(2), .porte:nth-child(2), .statut-bloc:nth-child(2), .stat-cell:nth-child(2) { animation-delay: .07s; }
  .stat:nth-child(3), .porte:nth-child(3), .statut-bloc:nth-child(3), .stat-cell:nth-child(3) { animation-delay: .14s; }
  .stat:nth-child(4), .porte:nth-child(4), .statut-bloc:nth-child(4), .stat-cell:nth-child(4) { animation-delay: .21s; }
}
