/* Polices hébergées localement (licence SIL OFL), sous-ensembles latin et latin étendu. */
/* IBM Plex Mono normal 400, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(polices/ibm-plex-mono-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono normal 400, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(polices/ibm-plex-mono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono normal 500, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(polices/ibm-plex-mono-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono normal 500, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(polices/ibm-plex-mono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono normal 600, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(polices/ibm-plex-mono-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono normal 600, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(polices/ibm-plex-mono-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Schibsted Grotesk italic 400-900, latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(polices/schibsted-grotesk-italic-400-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk italic 400-900, latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(polices/schibsted-grotesk-italic-400-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Schibsted Grotesk normal 400-900, latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(polices/schibsted-grotesk-normal-400-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk normal 400-900, latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(polices/schibsted-grotesk-normal-400-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* voteren2027.fr : identité « Le Bulletin ».
   Chaque candidat a le même bulletin blanc, sans couleur ; la couleur désigne
   les thèmes (une teinte et un pictogramme chacun) ; le jaune du surligneur
   est réservé aux chiffres sourcés de « Ce que disent les faits ». */

:root {
  --table: #e9ebef;
  --papier: #ffffff;
  --encre: #161a26;
  --gris: #4e5566;
  --filet: #d2d6dd;
  --surligneur: #ffe14d;
  --sur-surligneur: #161a26;
  --tole: #c5cbd1;
  --tole-ombre: #a9b0b7;
  --rivet: #858d95;
  --nuit: #161a26;
  --nuit-texte: #bcc2ce;
  --nuit-filet: rgba(255, 255, 255, 0.22);
  --nuit-clair: #ffffff;
  --ombre-papier: 0 1px 1px rgba(22, 26, 38, 0.06), 0 12px 28px -16px rgba(22, 26, 38, 0.38);
  --ombre-haute: 0 2px 3px rgba(22, 26, 38, 0.06), 0 24px 40px -20px rgba(22, 26, 38, 0.5);
  --r: 4px;
  --r-carte: 8px;
  --texte: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mu-contexte: #c3c8d0;
  --mu-axe: #a9b0b7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --table: #0f1116;
    --papier: #1a1d25;
    --encre: #eceef2;
    --gris: #a6acb7;
    --filet: #2e333e;
    --surligneur: #f0d23a;
    --tole: #2c3136;
    --tole-ombre: #202428;
    --rivet: #4f565e;
    --nuit: #07080b;
    --nuit-texte: #a6acb7;
    --mu-contexte: #4a505c;
    --mu-axe: #5a606b;
    --ombre-papier: 0 1px 1px rgba(0, 0, 0, 0.4), 0 14px 28px -16px rgba(0, 0, 0, 0.85);
    --ombre-haute: 0 2px 3px rgba(0, 0, 0, 0.4), 0 24px 40px -18px rgba(0, 0, 0, 0.95);
  }
}

/* Teinte d'un thème : l'angle --h est donné par la page (style="--h:285"). */
.teinte {
  --t-fond: oklch(0.945 0.032 var(--h));
  --t-tuile: oklch(0.905 0.06 var(--h));
  --t-encre: oklch(0.45 0.12 var(--h));
  --t-vif: oklch(0.66 0.15 var(--h));
}
@media (prefers-color-scheme: dark) {
  .teinte {
    --t-fond: oklch(0.24 0.035 var(--h));
    --t-tuile: oklch(0.33 0.06 var(--h));
    --t-encre: oklch(0.85 0.09 var(--h));
    --t-vif: oklch(0.7 0.13 var(--h));
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--table);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.cadre { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.mono { font-family: var(--mono); }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 40; padding: 0.6rem 1rem;
  background: var(--papier); color: var(--encre); font-weight: 600;
}
.evitement:focus { top: 0.5rem; }
[hidden] { display: none !important; }
/* Liens isolés : au moins 24 px de haut (WCAG 2.2, critère 2.5.8). */
.lecture > a, .etat-programmes dt a, .rangee h3 a, .noms strong a { display: inline-block; padding-block: 0.3rem; }

/* Logo et pictogrammes */
.logo { width: 2rem; height: 2rem; flex: none; }
.logo-bulletin { fill: var(--logo-papier, var(--papier)); stroke: currentColor; stroke-width: 2; }
.logo-lignes { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.logo-urne { fill: currentColor; }
.logo-fente { fill: none; stroke: var(--logo-fond, var(--table)); stroke-width: 2.4; stroke-linecap: round; }
.picto { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tuile {
  display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem;
  border-radius: 10px; background: var(--t-tuile); color: var(--t-encre);
}
.tuile--grande { width: 3.75rem; height: 3.75rem; border-radius: 14px; background: var(--papier); box-shadow: var(--ombre-papier); }
.tuile--grande .picto { width: 2.1rem; height: 2.1rem; }
.tuile--petite { width: 1.9rem; height: 1.9rem; border-radius: 7px; }
.tuile--petite .picto { width: 1.15rem; height: 1.15rem; }

/* En-tête */
/* Deux niveaux : une barre d'informations (date, calendrier, méthode, données, journal), puis la marque et les outils. */
.entete { padding-bottom: 0.9rem; }
.entete-annexe { border-bottom: 1px solid var(--filet); font-size: 0.8125rem; color: var(--gris); }
.entete-annexe .cadre { display: flex; align-items: center; justify-content: space-between; gap: 0 1.5rem; flex-wrap: wrap; }
.entete-annexe nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.entete-annexe a { display: inline-block; padding-block: 0.45rem; color: inherit; font-weight: 500; text-decoration: none; }
.entete-annexe a:hover, .entete-annexe a[aria-current] { color: var(--encre); text-decoration: underline; text-underline-offset: 0.3em; }
.entete-principale { display: flex; align-items: center; gap: 0.5rem 1.75rem; flex-wrap: wrap; padding-top: 0.9rem; }
.marque {
  display: inline-flex; align-items: center; gap: 0.6rem; padding-block: 0.25rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none;
}
.entete-principale nav { display: flex; gap: 0.25rem 1.4rem; margin-left: auto; font-weight: 600; }
.entete-principale nav a { display: inline-block; padding-block: 0.3rem; text-decoration: none; white-space: nowrap; }
.entete-principale nav a:hover, .entete-principale nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.maj { margin: 0; font: 500 0.8125rem var(--mono); color: var(--gris); }

/* Boutons et commandes */
.bouton {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.3rem; border-radius: var(--r);
  background: var(--encre); color: var(--papier);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.bouton:active { transform: translateY(1px) scale(0.99); }
.bouton span { transition: transform 0.3s var(--ease); }
.bouton:hover span { transform: translateX(3px); }
.bouton--clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton--clair:hover { background: var(--papier); }
.bascule { display: inline-flex; padding: 3px; border-radius: calc(var(--r) + 3px); background: var(--papier); box-shadow: inset 0 0 0 1px var(--filet); }
.bascule button {
  border: 0; border-radius: var(--r); padding: 0.4rem 0.8rem; background: transparent; cursor: pointer; font-size: 0.875rem; font-weight: 500;
}
.bascule button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.puces { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.puce {
  display: inline-block; padding: 0.4rem 0.8rem; border-radius: var(--r); background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--filet); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  border: 0; cursor: pointer; transition: transform 0.15s var(--ease);
}
.puce:hover { box-shadow: inset 0 0 0 1px var(--encre); }
.puce:active { transform: scale(0.98); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--papier); box-shadow: none; }
.puce:disabled { opacity: 0.45; cursor: not-allowed; }

/* Titres de page */
h1 { margin: 0 0 1.25rem; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h2 { margin: 0 0 1.25rem; font-size: 1.6rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.page-tete { padding-block: 3rem 2rem; }
.page-tete p { margin: 0 0 0.75rem; font-size: 1.15rem; color: var(--gris); max-width: 60ch; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.55rem; margin: 0 0 0.9rem; font: 500 0.8125rem var(--mono); color: var(--gris); }
.fil a { display: inline-block; padding-block: 0.3rem; }
.surtitre { display: block; margin-bottom: 1.2rem; font: 600 0.78rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.section-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.75rem 4rem; align-items: end; margin-bottom: 2rem; }
.section-tete h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.section-tete p { margin: 0; color: var(--gris); max-width: 52ch; }

/* Accueil */
.ouverture { padding-block: 2.5rem 4.5rem; }
.ouverture .cadre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem 4rem; align-items: center; }
.ouverture h1 { margin-bottom: 1.4rem; font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 0.98; font-weight: 850; letter-spacing: -0.045em; }
.ouverture h1 .surtitre { letter-spacing: 0.08em; line-height: 1.4; font-weight: 600; }
.ouverture-texte > p { margin: 0 0 2rem; font-size: 1.2rem; color: var(--gris); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ouverture-texte > .ouverture-lien { margin: 1.1rem 0 0; max-width: none; font-size: 1rem; font-weight: 600; color: var(--encre); }
.ouverture-lien a { display: inline-block; padding-block: 0.3rem; }
a.compte { text-decoration: none; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
a.compte:hover { box-shadow: var(--ombre-haute); transform: translateY(-1px); }
a.compte:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
/* Préfixé pour passer devant les règles des paragraphes de l'ouverture et des en-têtes de page. */
:is(.ouverture, .page-tete) .compte {
  display: inline-flex; max-width: none; color: var(--encre); align-items: center; gap: 0.8rem; margin: 2.25rem 0 0; padding: 0.35rem 1rem 0.35rem 0.35rem;
  background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre-papier); font-size: 0.92rem;
}
.compte b { padding: 0.3rem 0.55rem; border-radius: 3px; background: var(--encre); color: var(--papier); font: 600 0.9rem var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.decharge { margin: 0; }
.decharge figcaption { margin-top: 1rem; font: 500 0.8125rem var(--mono); color: var(--gris); text-align: center; }
/* Table de décharge du bureau de vote : les bulletins y sont posés en piles. */
.piles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 16px; background: color-mix(in oklab, var(--table), var(--encre) 6%);
  box-shadow: inset 0 1px 2px rgba(22, 26, 38, 0.08);
}
.pile {
  --angle: -1.2deg; position: relative; aspect-ratio: 105 / 148; display: block; text-decoration: none; color: var(--encre);
  transform: rotate(var(--angle)); animation: donne 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.pile:nth-child(3n + 2) { --angle: 1deg; }
.pile:nth-child(3n) { --angle: -0.3deg; }
@keyframes donne { from { opacity: 0; transform: translate(-1.5rem, -2.5rem) rotate(calc(var(--angle) - 9deg)); } }
.pile::before, .pile::after, .pile-feuille { position: absolute; inset: 0; border-radius: 2px; background: var(--papier); box-shadow: var(--ombre-papier); }
.pile::before { content: ""; transform: translate(5px, 6px) rotate(1.6deg); opacity: 0.75; }
.pile::after { content: ""; transform: translate(-3px, 3px) rotate(-1.2deg); opacity: 0.9; }
.pile-feuille { z-index: 1; display: grid; place-content: center; text-align: center; padding: 0.5rem; transition: transform 0.35s var(--ease); }
.pile:hover .pile-feuille, .pile:focus-visible .pile-feuille { transform: translateY(-6px); }
.pile-prenom { font-size: clamp(0.62rem, 1vw, 0.8rem); }
.pile-nom { font-weight: 800; font-size: clamp(0.72rem, 1.3vw, 1rem); letter-spacing: 0.02em; line-height: 1.15; }

.sommaire { padding-block: 3rem 5rem; }
.sujets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.sujets > li { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--k, 0) * 80ms); }
.sujets > li.a-venir { opacity: 0; transform: translateY(16px); }
.sujet {
  position: relative; display: flex; flex-direction: column; gap: 0.9rem; height: 100%; overflow: hidden;
  padding: 1.4rem 1.4rem 1.25rem; background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre-papier);
  text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sujet::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--t-vif); }
.sujet:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.sujet:hover .sujet-titre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.sujet-tete { display: flex; align-items: center; gap: 0.85rem; }
.sujet-titre { font-weight: 800; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; }
.sujet-chapo {
  flex: 1; color: var(--gris); font-size: 0.94rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.sujet-chiffre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding-top: 0.9rem; border-top: 1px solid var(--filet); }
.sujet-chiffre b { font-weight: 850; font-size: 1.6rem; line-height: 1; letter-spacing: -0.035em; color: var(--t-encre); white-space: nowrap; }
.sujet-chiffre > span { font-size: 0.8rem; line-height: 1.4; color: var(--gris); }
.sujet-chiffre small { display: block; margin-top: 0.15rem; font: 500 0.68rem var(--mono); }

.appel { padding-block: 4.5rem; background: var(--nuit); color: var(--nuit-clair); }
.appel .cadre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; align-items: start; }
.appel-fiches { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid var(--nuit-filet); }
.appel h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.appel p { margin: 0 0 1.75rem; color: var(--nuit-texte); max-width: 46ch; }
.appel .etiq { display: block; margin-bottom: 0.75rem; font: 500 0.8125rem var(--mono); color: var(--nuit-texte); }
.appel .bouton { background: var(--nuit-clair); color: #161a26; }
.appel .puce { background: transparent; color: var(--nuit-clair); box-shadow: inset 0 0 0 1px var(--nuit-filet); }
.appel .puce:hover { box-shadow: inset 0 0 0 1px var(--nuit-clair); }
.appel :focus-visible, .pied :focus-visible { outline-color: var(--nuit-clair); }

.echeances { padding-block: 4.5rem 4rem; }
.echeances ol {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem;
  border-top: 2px solid var(--encre);
}
.echeances li { padding-top: 1rem; position: relative; }
.echeances li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--encre); }
.echeances li:first-child::before { top: -9px; width: 16px; height: 16px; background: var(--papier); box-shadow: inset 0 0 0 4px var(--encre); }
.echeances time { display: block; font: 600 0.875rem var(--mono); margin-bottom: 0.35rem; }
.echeances p { margin: 0; font-size: 0.95rem; color: var(--gris); }

.lien-suite { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 1.25rem 0 0; font-weight: 600; }
.lien-suite a { display: inline-block; padding-block: 0.3rem; }
.page-tete .lien-suite { font-size: 1rem; color: var(--encre); }
.nouveautes { padding-block: 0 4.5rem; }
.journal .reste { list-style: none; margin-left: -1.1rem; font-size: 0.9rem; }

.lecture { padding-block: 1rem 5rem; }
.principes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; margin: 0 0 2rem; }
.principes > div { padding-top: 1rem; border-top: 2px solid var(--encre); }
.principes dt { font-weight: 700; margin-bottom: 0.4rem; }
.principes dd { margin: 0; color: var(--gris); }

/* Onglets des thèmes */
.onglets {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--table) 92%, transparent);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--filet);
}
.onglets ul {
  list-style: none; margin: 0; display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.6rem 0; scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
}
.onglets a { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0.45rem 0.85rem; border-radius: var(--r); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.onglets .teinte a::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--t-vif); }
.onglets a:hover { background: var(--papier); }
.onglets a[aria-current="page"] { background: var(--t-encre, var(--encre)); color: var(--papier); }
.onglets a[aria-current="page"]::before { background: var(--papier); }

/* Page thème */
.theme { padding-bottom: 2rem; }
.theme-tete { background: var(--t-fond); padding-block: 2.25rem 2.75rem; border-bottom: 1px solid color-mix(in oklab, var(--t-vif) 45%, transparent); }
.theme-tete .cadre { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.theme-nom { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.1rem; }
.theme-nom h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }
.chapo { margin: 0; font-size: 1.25rem; line-height: 1.5; max-width: 40ch; }
.contexte { margin: 1rem 0 0; color: var(--gris); max-width: 62ch; }
.chiffre-cle { padding: 1.4rem 1.5rem; background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre-papier); border-left: 4px solid var(--t-vif); }
.chiffre-cle b { display: block; font-weight: 850; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 0.6rem; color: var(--t-encre); }
.chiffre-cle p { margin: 0 0 0.25rem; }
.lien-source { display: inline-block; padding-block: 0.3rem; font: 500 0.8125rem var(--mono); color: var(--gris); }

.ordre { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.ordre > span { font: 500 0.8125rem var(--mono); color: var(--gris); }

.bulletins { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.ordre + .bulletins { margin-top: 0; }
.bulletin { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.1rem; background: var(--papier); border-radius: 2px; border-top: 3px solid var(--t-vif, var(--filet)); box-shadow: var(--ombre-papier); }
.bulletin header { text-align: center; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--filet); }
.b-nom { margin: 0; font-size: 1.05rem; line-height: 1.25; font-weight: 400; }
.b-nom a { text-decoration: none; }
.b-nom a:hover strong { text-decoration: underline; }
.b-nom strong { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.01em; }
.b-parti { margin: 0.35rem 0 0; font: 500 0.75rem var(--mono); color: var(--gris); }
.propositions { margin: 0; display: grid; gap: 1rem; font-size: 0.95rem; line-height: 1.5; flex: 1; }
.propositions dt { font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); margin-bottom: 0.25rem; }
.propositions dd { margin: 0; }
.propositions dd.vide { color: var(--gris); font-style: italic; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.etiquette { font: 500 0.7rem var(--mono); padding: 0.1rem 0.45rem; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--filet); color: var(--gris); font-style: normal; cursor: help; }
.b-source { margin-top: 0.8rem; display: inline-block; padding-block: 0.3rem; font: 500 0.75rem var(--mono); color: var(--gris); }

.graphique { margin-top: 3rem; padding: 2rem; background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre-papier); }

/* Faits */
.faits {
  margin-top: 4rem; padding: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 2rem 4rem;
  background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre-papier); scroll-margin-top: 5rem;
}
.faits .legende { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--gris); }
.faits ul, .faits-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.faits li, .faits-mini li { position: relative; padding-left: 1.6rem; max-width: 68ch; }
.faits li::before, .faits-mini li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7rem; height: 2px; background: var(--t-vif, var(--encre)); }
.faits li.juridique::before, .faits-mini li.juridique::before { content: "§"; width: auto; height: auto; top: 0; background: none; font-weight: 700; color: var(--t-encre, var(--encre)); }
.f-src { display: block; margin-top: 0.35rem; font: 500 0.75rem/1.5 var(--mono); color: var(--gris); }
.f-src--manque { text-decoration: underline dashed; text-underline-offset: 0.3em; }
mark {
  color: var(--sur-surligneur);
  background: linear-gradient(100deg, transparent 0.15em, var(--surligneur) 0.15em calc(100% - 0.1em), transparent calc(100% - 0.1em)) 0 60% / 100% 78% no-repeat;
  padding-inline: 0.1em; margin-inline: -0.1em; font-weight: 600;
}
.js [data-revele] mark { background-size: 0% 78%; transition: background-size 0.9s var(--ease); }
.js [data-revele].vu mark { background-size: 100% 78%; }
.js [data-revele].vu li:nth-child(2) mark { transition-delay: 0.12s; }
.js [data-revele].vu li:nth-child(3) mark { transition-delay: 0.24s; }
.js [data-revele].vu li:nth-child(n+4) mark { transition-delay: 0.36s; }

/* Priorités */
.priorites { margin-top: 4rem; }
.priorites dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.p-ligne { padding: 1.2rem 1.4rem; background: var(--papier); border-radius: var(--r-carte); border-left: 3px solid var(--t-vif, var(--encre)); }
.p-ligne dt { font-weight: 800; color: var(--t-encre, var(--encre)); margin-bottom: 0.35rem; }
.p-ligne dd { margin: 0; font-size: 0.97rem; }

.suite { margin-top: 3.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.suite a {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1.3rem 0.8rem 0.8rem;
  background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre-papier);
  text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: transform 0.3s var(--ease);
}
.suite a:hover { transform: translateY(-2px); }
.suite-sens { display: block; font: 500 0.72rem var(--mono); color: var(--gris); text-transform: uppercase; letter-spacing: 0.06em; }
.suite .suite-suivant { margin-left: auto; flex-direction: row-reverse; text-align: right; padding: 0.8rem 0.8rem 0.8rem 1.3rem; }

/* Panneaux des candidats */
.panneaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.panneau {
  display: grid; grid-template-rows: auto 1fr; gap: 0.6rem; height: 100%;
  padding: 0.7rem 0.7rem 0.95rem; color: var(--encre); text-decoration: none;
  background-color: var(--tole);
  background-image:
    radial-gradient(circle at 10px 10px, var(--rivet) 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--rivet) 2px, transparent 2.6px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.04) 46px 48px);
  box-shadow: inset 0 -6px 0 var(--tole-ombre);
}
.panneau-num { justify-self: center; font: 600 1.35rem/1 var(--mono); padding-top: 0.15rem; }
.affiche {
  display: grid; align-content: space-between; gap: 1.5rem; min-height: 13rem; padding: 1.1rem;
  background: var(--papier); box-shadow: var(--ombre-papier); transition: transform 0.3s var(--ease);
  container-type: inline-size;
}
.affiche-prenom { display: block; font-size: 1rem; }
/* Même taille de nom pour tous : calée sur le plus long (GLUCKSMANN) et la largeur de l'affiche. */
.affiche-nom { display: block; font-weight: 900; text-transform: uppercase; font-size: 1.1rem; font-size: min(13cqi, 2.6rem); line-height: 0.95; letter-spacing: -0.02em; }
.affiche-parti { font: 500 0.72rem var(--mono); color: var(--gris); }
a.panneau:hover .affiche, a.panneau:focus-visible .affiche { transform: translateY(-4px); }
.note-num { margin: 1rem 0 0; font: 500 0.8125rem var(--mono); color: var(--gris); max-width: 72ch; }
.etat-programmes { padding-block: 4rem; }
.etat-programmes dl { margin: 0; border-top: 2px solid var(--encre); }
.etat-programmes div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0.4rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--filet); }
.etat-programmes dt { font-weight: 700; }
.etat-programmes dt a { text-decoration: none; }
.etat-programmes dd { margin: 0; color: var(--gris); }

/* Fiche candidat */
.fiche-tete { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 2.5rem 3.5rem; padding-block: 2.5rem 3rem; align-items: start; }
.panneau--grand .affiche { min-height: 19rem; padding: 1.4rem; }
.panneau--grand h1 { margin: 0; font-size: inherit; letter-spacing: 0; line-height: inherit; font-weight: inherit; }
.panneau--grand .affiche-prenom { font-size: 1.2rem; margin-bottom: 0.3rem; }
.panneau--grand .affiche-nom { font-size: min(13cqi, 3.4rem); }
.fiche-etat { display: grid; gap: 1.5rem; }
.fiche-etat .fil { margin: 0; }
.fiche-etat dl { margin: 0; display: grid; gap: 1.25rem; }
.fiche-etat dt { font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); margin-bottom: 0.3rem; }
.fiche-etat dd { margin: 0; }
.fiche-etat .etiq { font: 500 0.8125rem var(--mono); color: var(--gris); margin: 0 0 0.6rem; }
.sommaire-fiche { border-block: 1px solid var(--filet); }
.programme { padding-block: 3rem 1rem; }
.themes-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.carte-theme {
  display: grid; gap: 1rem; align-content: start; padding: 1.5rem; background: var(--papier);
  border-radius: var(--r-carte); border-top: 4px solid var(--t-vif); box-shadow: var(--ombre-papier); scroll-margin-top: 5rem;
}
.carte-theme h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.carte-theme h3 a { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.carte-theme h3 a:hover { text-decoration: underline; }
.carte-theme h3 .tuile { width: 2.3rem; height: 2.3rem; border-radius: 8px; }
.carte-theme h3 .picto { width: 1.3rem; height: 1.3rem; }
.faits-mini { border-top: 1px solid var(--filet); padding-top: 1rem; font-size: 0.92rem; }
.faits-mini h4, .va-loin h4 { margin: 0 0 0.75rem; font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); }
.faits-mini ul { gap: 0.9rem; }
.va-loin { border-top: 1px solid var(--filet); padding-top: 1rem; font-size: 0.92rem; }
.va-loin p { margin: 0; font-weight: 600; }
.loin { padding-block: 3rem; }
.loin ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.loin li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.3rem 1.5rem; padding-block: 0.9rem; border-bottom: 1px solid var(--filet); }
.loin li span { font: 500 0.8125rem var(--mono); color: var(--gris); }
.loin li a { font-weight: 600; text-decoration: none; }
.loin li a:hover { text-decoration: underline; }
.voisins { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 3rem; }
.voisins a { text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.voisins a span { display: block; font: 500 0.75rem var(--mono); color: var(--gris); text-transform: uppercase; letter-spacing: 0.06em; }
.voisins a:last-child { text-align: right; margin-left: auto; }

/* Comparateur */
.note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--gris); max-width: 80ch; }

.selection { padding-bottom: 0.5rem; }
.aide { font-size: 0.875rem; color: var(--gris); margin: 0.75rem 0 2rem; min-height: 1.4em; }
.noms { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--table) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--encre); }
.grille { display: grid; grid-template-columns: 10rem repeat(var(--n, 1), minmax(12rem, 1fr)); gap: 0 1.5rem; }
.noms .grille > * { padding-block: 0.8rem; }
.noms strong { display: block; font-size: 1.05rem; }
.noms strong a { text-decoration: none; }
.noms small, .nom-mobile small { font: 500 0.75rem var(--mono); color: var(--gris); }
.nom-mobile { display: none; }
.rangee { padding-block: 1.75rem; border-bottom: 1px solid var(--filet); scroll-margin-top: 5rem; }
.rangee h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.rangee h3 a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.rangee h3 small { display: block; font: 500 0.72rem/1.4 var(--mono); color: var(--gris); margin-top: 0.3rem; }
.colonne { margin: 0; display: grid; gap: 1rem; align-content: start; font-size: 0.95rem; }
.colonne dt { font: 600 0.6875rem var(--mono); color: var(--gris); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.colonne dd { margin: 0; }
.colonne dd.vide { color: var(--gris); font-style: italic; }
.rangee details { grid-column: 2 / -1; margin-top: 1.25rem; }
.rangee summary { cursor: pointer; padding-block: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--gris); }
.rangee details ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; max-width: 64rem; }
.rangee details li { padding: 0.9rem 1.1rem; background: var(--papier); border-radius: var(--r); border-left: 3px solid var(--t-vif, var(--filet)); font-size: 0.92rem; }
.concerne { display: block; margin-bottom: 0.35rem; font: 600 0.6875rem var(--mono); color: var(--gris); text-transform: uppercase; letter-spacing: 0.05em; }
.vide-etat { padding: 2.5rem 1.5rem; text-align: center; color: var(--gris); border: 1px dashed var(--filet); border-radius: var(--r-carte); }

/* Sources */
.sources-page { margin-top: 3rem; padding-block: 3rem 4rem; border-top: 1px solid var(--filet); }
.sources-page > p { margin: 0 0 2rem; color: var(--gris); font-size: 0.95rem; max-width: 70ch; }
.sources-groupes { columns: 2 24rem; column-gap: 3.5rem; }
.sources-groupe { break-inside: avoid; margin: 0 0 1.75rem; }
.sources-groupe h3 { margin: 0 0 0.5rem; font: 600 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); }
.sources-groupe ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.9rem; }
.sources-groupe li small { color: var(--gris); }

/* Méthode, journal, mentions */
/* Colonne de lecture alignée à gauche, sur le titre de la page. */
.texte { padding-block: 1rem 4rem; }
.texte > * { max-width: 52rem; }
.texte section + section { margin-top: 3.5rem; }
.texte p { max-width: 68ch; }
.definitions { margin: 0; border-top: 1px solid var(--filet); }
.definitions div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.3rem 2rem; padding-block: 0.9rem; border-bottom: 1px solid var(--filet); }
.definitions dt { font-weight: 700; }
.definitions dd { margin: 0; color: var(--gris); }
.journal { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.journal > li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.4rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--filet); }
.journal time { font: 600 0.875rem var(--mono); }
.journal ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }

/* Calendrier */
.frise { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--encre); display: grid; gap: 1.75rem; }
.frise li { position: relative; }
.frise li::before { content: ""; position: absolute; left: calc(-1.5rem - 7px); top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--encre); }
.frise li.passe { color: var(--gris); }
.frise li.passe::before { background: var(--table); box-shadow: inset 0 0 0 2px var(--gris); }
.frise time { display: block; margin-bottom: 0.2rem; font: 600 0.9rem var(--mono); }
.frise p { margin: 0; font-size: 1.05rem; }
.frise .etiquette { display: inline-block; margin-top: 0.4rem; }
.frise .lien-source { display: block; }

/* Données ouvertes */
.fichiers { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 2px solid var(--encre); }
.fichiers li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.3rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--filet); }
.fichiers a { justify-self: start; padding-block: 0.2rem; font: 600 0.95rem var(--mono); }
.fichiers span { color: var(--gris); }
.fichiers small { display: block; margin-top: 0.2rem; font: 500 0.75rem var(--mono); }

/* Comparaisons deux à deux */
.paires { padding-block: 3.5rem 4rem; }
.paires > p { margin: -0.5rem 0 1.5rem; color: var(--gris); }
.paires-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.5rem 0.75rem; }
.paires-liste a {
  display: block; padding: 0.7rem 0.9rem; border-radius: var(--r); background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--filet); font-weight: 600; text-decoration: none;
}
.paires-liste a:hover { box-shadow: inset 0 0 0 1px var(--encre); }
.page-tete .actions { margin-top: 1.5rem; }
.colonne > .cases { margin: 0; display: grid; gap: 1rem; }
.autres-paires { padding-block: 3.5rem 1rem; }
.paires-groupes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.paires-groupes .etiq { margin: 0 0 0.6rem; font: 500 0.8125rem var(--mono); color: var(--gris); }

/* Parcours « Selon vos priorités » */
.parcours { display: grid; gap: 1.25rem; padding-bottom: 2rem; }
.etape {
  min-width: 0; margin: 0; padding: 1.4rem 1.5rem 1.1rem; border: 0; border-top: 4px solid var(--t-vif);
  border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre-papier);
}
.etape legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.8rem; padding: 0; margin-bottom: 1rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.options { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; align-items: start; }
.option { position: relative; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--filet); transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
.option:has(input:checked) { background: var(--t-fond); box-shadow: inset 0 0 0 2px var(--t-encre); }
.option input { position: absolute; left: 0.9rem; top: 0.95rem; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--t-encre); cursor: pointer; }
.option label { display: block; padding: 0.75rem 0.9rem 0.75rem 2.6rem; font-weight: 600; cursor: pointer; }
.option--passer label { font-weight: 500; color: var(--gris); }
.option--passer:has(input:checked) { background: transparent; box-shadow: inset 0 0 0 1px var(--filet); }
.reponse { display: none; padding: 0 0.9rem 0.9rem 2.6rem; font-size: 0.92rem; }
.option input:checked ~ .reponse { display: block; }
.reponse-titre { display: block; margin-bottom: 0.2rem; font: 600 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); }
.etape-lien { display: inline-block; margin-top: 0.8rem; padding-block: 0.3rem; font: 500 0.8125rem var(--mono); color: var(--gris); }
.bilan { margin-bottom: 4rem; padding: 2rem clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-carte); background: var(--nuit); color: var(--nuit-clair); scroll-margin-top: 1rem; }
.bilan h2 { margin-bottom: 1rem; }
/* Tableau vos choix × candidats : la première colonne reste visible quand on fait défiler. */
.bilan-tableau { overflow-x: auto; margin: 0 0 1rem; }
.bilan table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: 0.9rem; }
.bilan th, .bilan td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--nuit-filet); text-align: center; vertical-align: middle; }
.bilan thead th { font: 600 0.78rem var(--mono); color: var(--nuit-texte); white-space: nowrap; }
.bilan thead th a { display: inline-block; padding-block: 0.3rem; color: var(--nuit-clair); text-decoration: none; }
.bilan thead th a:hover { text-decoration: underline; }
.bilan th:first-child { position: sticky; left: 0; z-index: 1; min-width: 13rem; padding-left: 0; text-align: left; background: var(--nuit); }
.bilan tbody th { font-weight: 400; }
.bilan tbody th strong { display: block; margin-top: 0.15rem; font-weight: 700; }
.bilan-theme { display: flex; align-items: center; gap: 0.5rem; font: 500 0.75rem var(--mono); color: var(--nuit-texte); }
.bilan-theme::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--t-vif); }
.bilan td.oui { font-size: 1.2rem; font-weight: 800; color: var(--t-vif); }
.bilan td.incomplet { font: 500 0.66rem/1.25 var(--mono); color: var(--nuit-texte); }
.bilan-defiler { display: none; margin: 0 0 0.5rem; font: 500 0.75rem var(--mono); color: var(--nuit-texte); }
.bilan-legende { max-width: 75ch; margin: 0 0 1.5rem; font-size: 0.85rem; color: var(--nuit-texte); }
.bilan .etiq { margin: 0 0 0.6rem; font: 500 0.8125rem var(--mono); color: var(--nuit-texte); }
.bilan .puce { background: transparent; color: var(--nuit-clair); box-shadow: inset 0 0 0 1px var(--nuit-filet); }
.bilan .puce:hover { box-shadow: inset 0 0 0 1px var(--nuit-clair); }
.bilan-note { margin: 1rem 0 0; color: var(--nuit-texte); font-size: 0.9rem; }
.bilan-note:empty { display: none; }
.bilan .actions { margin-top: 1.5rem; }
.bilan .bouton { background: var(--nuit-clair); color: #161a26; }
.bilan .bouton--clair { background: transparent; color: var(--nuit-clair); box-shadow: inset 0 0 0 1.5px var(--nuit-clair); }
.bilan :focus-visible { outline-color: var(--nuit-clair); }
button.bouton { border: 0; cursor: pointer; }
.vers-bilan {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20; padding: 0.7rem 1.1rem; border-radius: var(--r);
  background: var(--encre); color: var(--papier); font-weight: 600; text-decoration: none; box-shadow: var(--ombre-haute);
}

/* Pied de page */
.pied {
  --logo-papier: var(--nuit); --logo-fond: var(--nuit);
  padding-block: 3.5rem 3rem; background: var(--nuit); color: var(--nuit-texte); font-size: 0.9rem;
}
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3rem; }
.pied .marque { margin-bottom: 1rem; color: var(--nuit-clair); }
.pied-marque p { margin: 0; max-width: 36ch; }
.pied-titre { margin: 0 0 0.8rem; font: 600 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--nuit-clair); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied-themes { columns: 2; column-gap: 1.5rem; }
.pied li a { display: inline-block; padding-block: 0.25rem; color: inherit; text-decoration: none; }
.pied li a:hover { color: var(--nuit-clair); text-decoration: underline; }
/* Partenaires : une ligne sous la grille du pied de page, séparée par un filet. */
.pied-partenaires { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--nuit-filet); }
.pied-partenaires ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 3rem; }
.pied-partenaires li a { padding-block: 0.15rem; font-weight: 600; color: var(--nuit-clair); }
.pied-partenaires li span { display: block; font-size: 0.875rem; }

/* Graphique des âges de départ */
.ga { margin: 0; color: var(--encre); }
.ga figcaption { display: grid; gap: 0.25rem; margin-bottom: 1.25rem; }
.ga figcaption strong { font-size: 1.05rem; }
.ga figcaption span { color: var(--gris); font-size: 0.875rem; }
.ga-axe, .ga-ligne { display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr; column-gap: 1rem; align-items: center; }
.ga-axe .ga-piste { position: relative; height: 1.5rem; }
.ga-grad { position: absolute; transform: translateX(-50%); font: 500 0.75rem var(--mono); color: var(--gris); }
.ga-ligne { min-height: 2.6rem; }
.ga-nom { font-size: 0.9rem; font-weight: 600; }
.ga-piste { position: relative; height: 2.6rem; background: linear-gradient(var(--filet), var(--filet)) 0 50% / 100% 1px no-repeat; }
.ga-corps .ga-piste::after { content: ""; position: absolute; left: var(--ref); top: 0; bottom: 0; border-left: 1px dashed var(--gris); }
.ga-point { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--encre); box-shadow: 0 0 0 2px var(--papier); z-index: 1; }
.ga-plage { position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--encre); }
.ga-valeur { position: absolute; top: 50%; transform: translate(12px, -50%); font: 600 0.8rem var(--mono); white-space: nowrap; }
.ga-valeur--gauche { transform: translate(calc(-100% - 12px), -50%); }
.ga-sans { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 0.1rem 0.45rem; background: var(--papier); color: var(--gris); font-size: 0.8rem; font-style: italic; z-index: 1; }
.ga-detail { grid-column: 2; display: none; padding: 0 0 0.6rem; font-size: 0.85rem; color: var(--gris); }
.ga-ligne:hover .ga-detail { display: block; }
.ga-tableau { margin-top: 1rem; font-size: 0.875rem; }
.ga-tableau summary { cursor: pointer; color: var(--gris); padding-block: 0.35rem; }
.ga-tableau table { margin-top: 0.75rem; border-collapse: collapse; width: 100%; }
.ga-tableau th, .ga-tableau td { text-align: left; padding: 0.4rem 0.75rem 0.4rem 0; vertical-align: top; }
.ga-tableau tbody tr + tr { border-top: 1px solid var(--filet); }

/* Sondages : chiffres recopiés des notices, sans couleur de candidat (encre et gris seulement). */
.sondages-legal { font-size: 0.875rem !important; max-width: 75ch !important; }
.sondages-maj { color: var(--encre) !important; font-weight: 500; }
.sondages-silence, .sondages-vide { color: var(--encre) !important; font-weight: 600; }
.sondages-vide { margin: 0; max-width: 70ch; }
.sondages-bloc { padding-block: 2.5rem 1.5rem; }
.encart-sondages { padding-block: 4.5rem 1rem; }
/* position: relative : sans elle, les mentions cachées (« non testé ») des dernières colonnes échappent au défilement et élargissent la page sur mobile. */
.sm-cadre { position: relative; overflow-x: auto; background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre-papier); }
.sm-cadre:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.sm-matrice { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sm-matrice th, .sm-matrice td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--filet); text-align: center; vertical-align: bottom; }
.sm-matrice tbody tr:last-child > * { border-bottom: 0; }
.sm-matrice thead th { font-weight: 400; min-width: 7.5rem; }
.sm-matrice thead th > * { display: block; }
.sm-institut { font-weight: 700; }
.sm-meta { font-size: 0.78rem; color: var(--gris); line-height: 1.25; }
.sm-matrice thead time { margin-top: 0.2rem; font: 500 0.75rem var(--mono); color: var(--gris); }
.sm-matrice tbody th { position: sticky; left: 0; z-index: 1; min-width: 11rem; text-align: left; font-weight: 600; background: var(--papier); }
.sm-matrice tbody th a { text-decoration: none; }
.sm-matrice tbody th a:hover { text-decoration: underline; }
.sm-matrice td { font: 600 1rem var(--mono); }
.sm-absent { color: var(--gris); font-weight: 400 !important; }
.sm-note { margin: 0.9rem 0 0; font-size: 0.8125rem; color: var(--gris); max-width: 90ch; }
/* Petits multiples : ses sondages en encre, les autres candidats en gris (emphase, sans couleur de candidat).
   Graphique en HTML : le texte garde sa taille sur mobile, les points restent ronds. */
.mu-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 0 0 1rem; font-size: 0.875rem; color: var(--gris); }
.mu-cle { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.mu-cle--p { background: var(--encre); box-shadow: 0 0 0 2px var(--papier), 0 0 0 3px var(--filet); }
.mu-cle--c { width: 7px; height: 7px; margin-left: 0.9rem; background: var(--mu-contexte); }
.multiples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mu { padding: 1.25rem 1.4rem 0.9rem; border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre-papier); }
.mu h3 { margin: 0; font-size: 1.15rem; }
.mu h3 a { text-decoration: none; }
.mu h3 a:hover { text-decoration: underline; }
.mu-dernier { margin: 0.15rem 0 1.1rem; font-size: 0.875rem; color: var(--gris); }
.mu-dernier b { color: var(--encre); font-size: 1.05rem; font-weight: 700; }
.mu-graphe { padding-left: 2.4rem; }
.mu-plot { position: relative; height: 190px; border-radius: 2px; }
.mu-plot:focus-visible { outline: 2px solid var(--encre); outline-offset: 6px; }
.mu-ligne { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--filet); }
.mu-ligne:first-child { border-top-color: var(--mu-axe); }
.mu-ligne i { position: absolute; right: calc(100% + 0.5rem); top: -0.55em; font: 500 0.72rem/1 var(--mono); font-style: normal; color: var(--gris); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mu-mois { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--filet); }
.mu-c, .mu-p { position: absolute; border-radius: 50%; transform: translate(-50%, 50%); }
.mu-c { width: 6px; height: 6px; background: var(--mu-contexte); }
.mu-p { width: 10px; height: 10px; background: var(--encre); box-shadow: 0 0 0 2px var(--papier); z-index: 1; }
.mu-p.actif { width: 14px; height: 14px; z-index: 3; box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--encre); }
.mu-p em { position: absolute; left: calc(100% + 7px); top: 50%; transform: translateY(-50%); font: 700 0.85rem/1 var(--texte); font-style: normal; color: var(--encre); white-space: nowrap;
  text-shadow: 0 0 3px var(--papier), 0 0 3px var(--papier), 0 0 3px var(--papier); }
.mu-bulle { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 14px)); padding: 0.45rem 0.65rem; border-radius: var(--r); background: var(--encre); color: var(--papier);
  font-size: 0.8rem; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: var(--ombre-haute); }
.mu-bulle b { display: block; font-size: 1rem; }
.mu-axe { position: relative; height: 1.6rem; }
.mu-axe span { position: absolute; top: 0.4rem; text-align: center; font: 500 0.75rem var(--mono); color: var(--gris); }
.mu-chiffres { margin-top: 0.4rem; font-size: 0.85rem; }
.mu-chiffres summary { cursor: pointer; color: var(--gris); padding-block: 0.3rem; }
.mu-chiffres table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mu-chiffres th, .mu-chiffres td { padding: 0.3rem 0.5rem 0.3rem 0; border-bottom: 1px solid var(--filet); text-align: left; font-weight: 400; }
.mu-chiffres th { font: 500 0.72rem var(--mono); color: var(--gris); }
.mu-chiffres td:last-child, .mu-chiffres th:last-child { text-align: right; font-weight: 600; }
.duels { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1rem; }
.duel { padding: 1.1rem 1.25rem; border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre-papier); }
.duel h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin: 0 0 0.75rem; font-size: 1rem; }
.duel h3 a { text-decoration: none; }
.duel h3 a:hover { text-decoration: underline; }
.du-contre { font: 500 0.75rem var(--mono); color: var(--gris); }
.duel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.du-source { display: block; margin-bottom: 0.25rem; font: 500 0.75rem var(--mono); color: var(--gris); }
.du-barre { position: relative; display: flex; gap: 2px; height: 1.6rem; }
.du-barre::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--gris); }
.du-barre > span { display: flex; align-items: center; flex: var(--p) 1 0; min-width: 2.5rem; padding-inline: 0.5rem; font: 700 0.85rem var(--mono); }
.du-a { background: var(--encre); color: var(--papier); border-radius: var(--r) 0 0 var(--r); }
.du-b { justify-content: flex-end; background: var(--tole); color: var(--encre); border-radius: 0 var(--r) var(--r) 0; }
.sondages-liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.sondages-liste > li { padding-block: 1.4rem; border-bottom: 1px solid var(--filet); scroll-margin-top: 1rem; }
.sondages-liste header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.sondages-liste h3 { margin: 0; font-size: 1.15rem; }
.sondages-liste header p { margin: 0; font: 500 0.8125rem var(--mono); color: var(--gris); }
.sd-mentions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 2rem; margin: 0.9rem 0 0; font-size: 0.875rem; }
.sd-mentions dt { font: 500 0.72rem var(--mono); color: var(--gris); text-transform: uppercase; letter-spacing: 0.04em; }
.sd-mentions dd { margin: 0.1rem 0 0; }
.sd-note { margin: 0.9rem 0 0; font-size: 0.875rem; max-width: 80ch; }
.sd-detail { margin-top: 1rem; }
.sd-detail summary { cursor: pointer; font-weight: 600; padding-block: 0.3rem; }
.sd-detail h4 { margin: 1.25rem 0 0; font: 600 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); }
.sd-question { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--gris); max-width: 80ch; }
.sd-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem 2rem; margin-top: 0.6rem; }
.sd-table { border-collapse: collapse; width: 100%; font-size: 0.875rem; font-variant-numeric: tabular-nums; align-self: start; }
.sd-table caption { text-align: left; font-weight: 700; padding-bottom: 0.4rem; }
.sd-table caption .etiquette { cursor: default; margin-left: 0.25rem; }
.sd-table th, .sd-table td { padding: 0.3rem 0; border-bottom: 1px solid var(--filet); text-align: left; font-weight: 400; }
.sd-table td { text-align: right; font-family: var(--mono); font-weight: 600; }
.sd-table th a { text-decoration: none; font-weight: 600; }
@media (max-width: 860px) {
  .multiples { grid-template-columns: 1fr; }
  .sd-mentions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sm-matrice th, .sm-matrice td { padding: 0.6rem 0.6rem; }
  .sm-matrice tbody th { min-width: 8.5rem; }
  .sm-matrice thead th { min-width: 6rem; }
  .sd-mentions { grid-template-columns: 1fr; }
}

/* Écrans moyens et petits */
@media (max-width: 1000px) {
  .sujets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-partenaires ul { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Menu sous la marque ; sur les écrans les plus étroits, il passe à la ligne plutôt que d'être coupé. */
  .entete-principale nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .panneau--grand .affiche { min-height: 10rem; }
  .fiche-tete { padding-block: 1.5rem 2rem; }
  .ouverture .cadre, .theme-tete .cadre, .faits, .appel .cadre, .fiche-tete, .section-tete { grid-template-columns: 1fr; }
  .ouverture { padding-block: 1.5rem 3rem; }
  .faits { padding: 1.5rem; }
  .p-ligne, .etat-programmes div, .loin li, .definitions div, .journal > li, .fichiers li { grid-template-columns: 1fr; }
  .paires-groupes, .options { grid-template-columns: 1fr; }
  .bilan th:first-child { min-width: 9.5rem; }
  .bilan-defiler { display: block; }
  .priorites dl { grid-template-columns: 1fr; }
  .echeances ol { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--encre); gap: 1.5rem; padding-left: 1.25rem; }
  .echeances li { padding-top: 0; }
  .echeances li::before { top: 0.35rem; left: calc(-1.25rem - 7px); }
  .echeances li:first-child::before { top: 0.25rem; left: calc(-1.25rem - 9px); }
  .principes, .themes-grille { grid-template-columns: 1fr; }
  .graphique { padding: 1.25rem; }
  .panneaux { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 14rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; }
  .panneaux li { scroll-snap-align: start; }
  .panneau--grand { max-width: 22rem; }
  #comparaison { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; }
  .noms { display: none; }
  .grille { grid-template-columns: repeat(var(--n, 1), minmax(80vw, 1fr)); }
  .rangee h3 { grid-column: 1 / -1; margin-bottom: 1rem; position: sticky; left: 0; }
  .rangee details { grid-column: 1 / -1; position: sticky; left: 0; max-width: calc(100vw - 2rem); }
  .colonne { scroll-snap-align: start; }
  .nom-mobile { display: block; padding-bottom: 0.6rem; border-bottom: 2px solid var(--encre); }
  .nom-mobile strong { display: block; }
}
@media (max-width: 600px) {
  .entete-principale nav { gap: 0 0.85rem; font-size: 0.95rem; }
  /* La date reste dans le pied de page ; la barre garde ses quatre liens sur une ligne. */
  .entete-annexe .maj { display: none; }
  .entete-annexe nav { gap: 0 1rem; }
  .sujets, .pied-grille { grid-template-columns: 1fr; }
  .actions .bouton { flex: 1 1 auto; justify-content: center; }
  .piles { gap: 1rem 0.75rem; padding: 1rem; }
  .pile-prenom { font-size: 2.3vw; }
  .pile-nom { font-size: 2.5vw; letter-spacing: 0; }
  .ga-axe, .ga-ligne { grid-template-columns: 1fr; }
  .ga-axe .ga-nom { display: none; }
  .ga-nom { padding-top: 0.5rem; }
  .ga-detail { grid-column: 1; }
  .suite a, .suite .suite-suivant { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-revele] mark { background-size: 100% 78%; }
}
