/* ==========================================================================
   Présidentielle 2027 — le panneau électoral
   Une seule audace : le mur d'affiches sur panneaux métalliques numérotés.
   Tout le reste reste sobre : papier blanc, encre noire, Archivo étroit.
   ========================================================================== */

:root {
  color-scheme: light;
  --page: #F2F3F5;
  --paper: #FFFFFF;
  --ink: #000000;
  --text: #22262E;
  --muted: #5E6573;
  --line: #DADDE3;
  --line-soft: #E9EBEF;
  --metal: #C3C9D1;
  --metal-hi: #D6DBE1;
  --metal-lo: #A8AFB9;
  --frame: #7C848F;
  --sticker: #FFD23F;
  --bleu: #1F3A93;
  --rouge: #D7263D;
  --hi: #1F8F55;
  --mid: #D08B00;
  --lo: #D2453B;
  --abst: #D9DDE3;
  --wrap: 1240px;
  --gutter: 24px;
  --cond: 'Archivo', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.55 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-stretch: 75%; line-height: 1.05; }
p { margin: 0; }
code { font-size: .9em; background: var(--line-soft); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- En-tête ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-stretch: 70%; font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
.flag { display: flex; width: 27px; height: 19px; border: 1px solid var(--line); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #002395; }
.flag i:nth-child(2) { background: #fff; }
.flag i:nth-child(3) { background: #ED2939; }
.top-ligne { display: flex; align-items: center; gap: 14px; }
.langue { flex: none; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1;
  letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.langue:hover { background: var(--ink); color: #fff; }
nav { display: flex; gap: 6px; }
nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 20px 10px 18px;
  border-bottom: 3px solid transparent; white-space: nowrap; }
nav a:hover { color: var(--ink); }
nav a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Boutons, chips ---------- */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: #2B2F38; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); padding: 9px 16px; font-size: 14px; }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Accueil : hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: end;
  padding-top: 56px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); font-weight: 900; font-stretch: 62%; line-height: .9;
  letter-spacing: -.015em; text-transform: none; }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.dates { margin: 18px 0 28px; font-size: 16px; }
.dates strong { color: var(--ink); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; }
.podium-item { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.podium-item.p1 { order: 2; }
.podium-item.p2 { order: 1; }
.podium-item.p3 { order: 3; }
.podium-photo { position: relative; }
.podium-photo .photo { aspect-ratio: 4 / 5; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 24px -12px rgba(0,0,0,.35); }
.podium-item .sticker { top: -12px; right: -10px; }
.podium-name { background: var(--paper); padding: 10px 12px 12px; font-size: 15px; line-height: 1.15; font-stretch: 85%; }
.podium-name b { display: block; font-size: 22px; font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em; }
.step { display: grid; place-items: center; font-weight: 900; font-stretch: 62%; font-size: 40px; color: var(--ink); }
.p2 .step { height: 70px; background: #002395; color: #fff; }
.p1 .step { height: 104px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.p3 .step { height: 48px; background: #ED2939; color: #fff; }
.podium-cap { grid-column: 1 / -1; order: 4; font-size: 13px; color: var(--muted); text-align: center; margin-top: 2px; }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; background: color-mix(in oklab, var(--c, #888) 22%, #EEF0F3); aspect-ratio: 5 / 6; }
.photo .ini { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-stretch: 62%;
  font-size: 44px; color: color-mix(in oklab, var(--c, #888) 75%, #000); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  opacity: 0; transition: opacity .35s ease; }
.photo.loaded img { opacity: 1; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.mini { width: 40px; height: 48px; aspect-ratio: auto; flex: none; }
.photo.mini .ini { font-size: 16px; }

/* Macaron de note, collé sur l'affiche */
.sticker { position: absolute; top: 12px; right: 12px; width: 66px; height: 66px; border-radius: 50%;
  background: var(--sticker); color: var(--ink); display: grid; place-content: center; text-align: center;
  transform: rotate(-8deg); box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 6px 14px -6px rgba(0,0,0,.45); line-height: 1; }
.sticker b { font-weight: 900; font-stretch: 62%; font-size: 27px; letter-spacing: -.01em; }
.sticker small { font-size: 11px; font-weight: 700; margin-top: 1px; }

/* ---------- Filtres ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--text); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
select { max-width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; cursor: pointer; }

/* ---------- Le panneau électoral ---------- */
.board { background: var(--metal); border-top: 12px solid var(--frame); border-bottom: 12px solid var(--frame);
  box-shadow: inset 0 1px 0 var(--metal-hi); }
.board-inner { max-width: calc(var(--wrap) + 0px); margin: 0 auto; padding: 0 calc(var(--gutter) - 10px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.panel { position: relative; padding: 52px 14px 30px;
  box-shadow: inset 1px 0 0 var(--metal-hi), inset -1px 0 0 var(--metal-lo);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.03)); }
.plate { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); min-width: 40px; height: 28px; padding: 0 8px;
  display: grid; place-items: center; background: #fff; color: #000; font-weight: 900; font-stretch: 62%; font-size: 21px;
  border: 2px solid #000; border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.poster { display: block; height: 100%; text-decoration: none; color: inherit; background: var(--paper);
  box-shadow: 0 1px 1px rgba(0,0,0,.18), 0 10px 22px -14px rgba(0,0,0,.55); transition: transform .2s ease, box-shadow .2s ease;
  animation: affiche .55s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--i) * 45ms); }
.poster:hover { transform: translateY(-3px); box-shadow: 0 2px 2px rgba(0,0,0,.18), 0 18px 30px -16px rgba(0,0,0,.6); }
.poster:hover .photo img { transform: scale(1.03); }
.poster .photo img { transition: opacity .35s ease, transform .4s ease; }
/* L'affiche se colle de haut en bas, comme un afficheur qui la déroule */
@keyframes affiche { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.poster-photo { position: relative; }
.band { background: color-mix(in oklab, var(--c) 72%, #000); color: #fff; font-weight: 700; font-stretch: 80%;
  font-size: 14px; padding: 7px 14px; letter-spacing: .01em; }
.poster-body { padding: 14px 16px 18px; }
.bulletin { line-height: 1; }
.bulletin .prenom { display: block; font-size: 17px; font-weight: 500; font-stretch: 85%; color: var(--text); margin-bottom: 2px; }
.bulletin .nomf { display: block; font-size: 32px; font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: .005em; }
.statut { font-size: 13px; color: var(--muted); margin: 8px 0 14px; line-height: 1.35; }
.statut.off, .badge.off { color: var(--muted); font-style: italic; }

/* Barres à dix cases : la note se lit comme une jauge calibrée */
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 104px 1fr 22px; align-items: center; gap: 10px; font-size: 13px; }
.bar-label { color: var(--muted); }
.cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; height: 9px; }
.cells i { background: var(--line-soft); border-radius: 1px; }
/* Une seule couleur, celle du camp : la note se lit à la longueur et au chiffre, pas à un feu tricolore */
.cells i.hi, .cells i.mid, .cells i.lo { background: var(--c, var(--ink)); }
.cells i.mid { opacity: .72; }
.cells i.lo { opacity: .45; }
.bar-val { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars.large .bar { grid-template-columns: 150px 1fr 26px; font-size: 15px; }
.bars.large .cells { height: 13px; gap: 3px; }

.pm { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.pm li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.pm li::before { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; }
.pm .p::before { content: "+"; background: var(--hi); }
.pm .m::before { content: "−"; background: var(--lo); }

/* ---------- Pages intérieures ---------- */
.page-head { padding: 44px 0 28px; max-width: 900px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 900; font-stretch: 62%; line-height: .95; }
.back { display: inline-block; margin: 26px 0 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--ink); }
.block { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.h-block { font-size: 23px; font-weight: 800; font-stretch: 75%; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.desc { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.45; }
.note a { color: var(--ink); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }

/* Fiche */
.fiche { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 40px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.fiche-affiche { box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 14px 28px -16px rgba(0,0,0,.5); align-self: start; }
.camp { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.camp i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.fiche h1.bulletin .prenom { font-size: 30px; }
.fiche h1.bulletin .nomf { font-size: clamp(48px, 6vw, 80px); }
.role { font-size: 18px; margin-top: 12px; }
.badge { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 4px; font-size: 14px; font-weight: 600;
  background: color-mix(in oklab, var(--c) 12%, #fff); color: color-mix(in oklab, var(--c) 70%, #000); }
.fiche-score { display: flex; align-items: center; gap: 18px; margin: 26px 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fiche-score .big { font-weight: 900; font-stretch: 62%; font-size: 76px; line-height: .9; color: var(--ink); }
.fiche-score .big small { font-size: 22px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.fiche-score p { color: var(--muted); font-size: 15px; line-height: 1.35; }
.h-block .mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; color: #fff; font-stretch: 100%; font-size: 18px; }
.plus .mark { background: var(--hi); }
.moins .mark { background: var(--lo); }
.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pros li { padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 16px; }
.pros li:first-child { border-top: 0; padding-top: 2px; }
.chances-fiche { margin-top: 20px; }
.chances-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.chances-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; }
.chances-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.chances-table td a { color: var(--ink); font-weight: 600; }
.meter { display: inline-block; width: 120px; height: 8px; background: var(--line-soft); border-radius: 2px; margin-right: 10px; vertical-align: middle; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 0 2px 2px 0; }
.defs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.defs dt { font-weight: 700; color: var(--ink); }
.defs dd { margin: 0; }

.radar { width: 100%; max-width: 520px; display: block; margin: 0 auto; }
.radar .grid { fill: none; stroke: var(--line); }
.radar .axis { stroke: var(--line); }
.radar text { font: 600 13px 'Archivo', sans-serif; fill: var(--muted); }

/* Comparer */
.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; max-width: 760px; margin: 0 auto 8px; }
.vs-side { display: grid; gap: 12px; }
.vs-photo { position: relative; max-width: 260px; width: 100%; justify-self: center; border-bottom: 6px solid var(--c);
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.5); }
.vs-side select { font-weight: 700; font-size: 16px; padding: 11px 14px; width: 100%; min-width: 0; }
.vs { font-weight: 900; font-stretch: 62%; font-size: 30px; color: var(--muted); }
.duel-block { margin-top: 24px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; color: var(--text); margin-top: 10px; }
.legend.small { justify-content: flex-start; font-size: 13px; margin: 0 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.legend i.abst { background: var(--abst); }
.duel { width: 100%; border-collapse: collapse; }
.duel th { font-size: 18px; font-weight: 800; font-stretch: 75%; color: var(--ink); padding-bottom: 12px; text-align: center; white-space: nowrap; }
.duel th:first-child { text-align: left; } .duel th:last-child { text-align: right; }
.duel td { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.duel td.a, .duel td.b { width: 48px; font-weight: 800; font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.duel td.b { text-align: right; }
.duel td.win { color: var(--ink); }
.duel .cat { text-align: center; font-size: 14px; color: var(--muted); }
.tug { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 7px; }
.tug span { height: 8px; background: var(--line-soft); border-radius: 2px; display: flex; }
.tug span:first-child { justify-content: flex-end; }
.tug i { display: block; height: 100%; }
.tug span:first-child i { border-radius: 2px 0 0 2px; }
.tug span:last-child i { border-radius: 0 2px 2px 0; }
.duel .total td { font-size: 24px; font-weight: 900; font-stretch: 70%; }
.duel .total .cat { font-size: 15px; font-weight: 700; color: var(--ink); font-stretch: 100%; }

/* Barre de duel (deux finalistes, ligne des 50 %) */
.split-bar { position: relative; display: flex; gap: 2px; height: 14px; }
.split-bar.big { height: 22px; }
.split-bar .seg { display: block; height: 100%; }
.split-bar .seg:first-child { border-radius: 4px 0 0 4px; }
.split-bar .seg:nth-child(2) { border-radius: 0 4px 4px 0; }
.split-bar .mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); }
.split-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 8px; }
.split-legend span { display: inline-flex; align-items: center; gap: 7px; }
.split-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.split-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Classements */
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.rank li:first-child { border-top: 0; }
.rank .pos { width: 18px; font-weight: 900; font-stretch: 62%; font-size: 22px; color: var(--muted); }
.rank li a { flex: 1; text-decoration: none; font-size: 16px; }
.rank li a b { font-stretch: 75%; font-weight: 800; text-transform: uppercase; }
.rank li a:hover { text-decoration: underline; }
.rank .photo.mini { border-bottom: 3px solid var(--c); }
.pill { font-weight: 800; min-width: 34px; text-align: center; padding: 3px 8px; border-radius: 4px; color: #fff; font-variant-numeric: tabular-nums; }
/* La couleur du camp, comme les barres de notes : le chiffre suffit, pas de feu tricolore */
.pill.hi, .pill.mid, .pill.lo { background: var(--c, var(--ink)); }
.pill.mid { opacity: .8; } .pill.lo { opacity: .6; }

/* ---------- Qui sera élu ? ---------- */
.verdict { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; background: var(--ink); color: #fff;
  border-radius: 6px; padding: 24px 32px 24px 24px; }
.verdict-photo .photo { aspect-ratio: 4 / 5; }
.verdict-main { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; font-stretch: 65%; line-height: 1.02; margin-bottom: 12px; color: #fff; }
.verdict-text p:last-child { color: #D5D9E0; font-size: 17px; max-width: 60em; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.subnav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); }
.subnav a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.section { padding-top: 48px; scroll-margin-top: 72px; }
.h-section { font-size: clamp(32px, 4vw, 48px); font-weight: 900; font-stretch: 62%; margin-bottom: 18px; }
.h-sub { font-size: 28px; font-weight: 900; font-stretch: 62%; margin: 40px 0 16px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 46em; margin: -6px 0 22px; }

.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tab { text-align: left; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 14px 12px; cursor: pointer; display: grid; gap: 10px; align-content: start; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 6px 16px -10px rgba(0,0,0,.4); }
.tab-title { font-weight: 800; font-stretch: 75%; font-size: 18px; color: var(--ink); line-height: 1.1; }
.tab-fav { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tab-fav b { font-size: 20px; font-weight: 900; font-stretch: 62%; color: var(--ink); display: block; line-height: 1; }
.tab-duel { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.scenario { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.scenario-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.scenario-head h3 { font-size: 34px; font-weight: 900; font-stretch: 62%; }
.hyp { font-size: 17px; margin-top: 8px; max-width: 48em; }
.source { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tag { flex: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 24px; }
.scenario-grid + .scenario-grid { border-top: 1px solid var(--line); margin-top: 26px; }
.tour h4 { font-size: 22px; font-weight: 800; font-stretch: 75%; margin-bottom: 14px; }

.fr-head { display: grid; grid-template-columns: 1fr 92px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.fr-head .fr-q { text-align: right; }
.fr-axis { position: relative; height: 16px; margin: 0 166px 2px 170px; font-size: 11px; color: var(--muted); }
.fr-axis span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.fr-axis span:first-child { transform: none; }
.fr-row, .ch-row { display: grid; grid-template-columns: 160px 1fr 54px 92px; align-items: center; gap: 10px; font-size: 14px; min-height: 30px; }
.ch-row { grid-template-columns: 160px 1fr 104px; }
.fr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-track, .ch-track { position: relative; height: 14px;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 22.222% 100%; }
.ch-track { background-size: 25% 100%; }
.fr-bar, .ch-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 0 4px 4px 0; display: block; }
.fr-range { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); display: block; opacity: .75; }
.fr-range::before, .fr-range::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: var(--ink); }
.fr-range::before { left: 0; } .fr-range::after { right: 0; }
.fr-val { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fr-q { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.fr-q.strong { color: var(--ink); font-weight: 800; }
.ch-row .fr-val { font-weight: 800; }

.duel-card { background: var(--page); border-radius: 6px; padding: 18px 20px 20px; }
.duel-freq { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.duel-freq b { color: var(--ink); }
.faces { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px; margin-bottom: 16px; }
.face { display: grid; gap: 8px; justify-items: center; text-align: center; font-weight: 800; font-stretch: 75%; font-size: 18px; color: var(--ink); line-height: 1.1; }
.face .photo { width: 104px; }
.contre { font-weight: 900; font-stretch: 62%; color: var(--muted); font-size: 20px; padding-bottom: 32px; }
.duel-verdict { margin-top: 14px; font-size: 15px; }
.duel-verdict b { font-weight: 900; color: var(--ink); }
.autres-duels { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.autres-duels caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 8px; font-size: 15px; }
.autres-duels th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 0 8px 6px 0; }
.autres-duels td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.autres-duels td:not(:first-child) { white-space: nowrap; }
.autres-duels td:not(:first-child), .autres-duels th:not(:first-child) { text-align: right; }

.rep-head, .rep-row { display: grid; grid-template-columns: 160px 1fr 64px; gap: 10px; align-items: center; font-size: 13.5px; min-height: 28px; }
.rep-head { font-size: 12.5px; color: var(--muted); min-height: 0; margin-bottom: 2px; }
.rep-head span:last-child { grid-column: 2 / 4; text-align: right; }
.rep-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-bar { display: flex; gap: 2px; height: 12px; }
.rep-bar i { display: block; height: 100%; }
.rep-bar i:first-child { border-radius: 3px 0 0 3px; }
.rep-bar i:last-child { border-radius: 0 3px 3px 0; }
.rep-bar i.abst { background: var(--abst); }
.rep-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }

.duels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 28px; }
.duel-line { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.duel-line:nth-child(-n+2) { border-top: 0; }
.duel-poll { font-size: 13px; color: var(--muted); margin-top: 6px; }
.duel-poll b { color: var(--ink); }

.histo-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
figure { margin: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .maj { stroke: var(--ink); stroke-width: 1.5; }
.chart .axis-line { stroke: var(--ink); stroke-width: 1; }
.chart .tick { font-size: 12px; fill: var(--muted); }
.chart .val { font-size: 14px; font-weight: 800; fill: var(--ink); }
.chart .year { font-size: 14px; font-weight: 700; fill: var(--ink); }
.chart .absent { font-size: 12px; fill: var(--muted); font-style: italic; }
.chart .maj-label { font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart .year-sub { font-size: 11.5px; fill: var(--muted); }

.dumbbells { display: grid; gap: 6px; }
.db-row { display: grid; grid-template-columns: 150px 1fr 92px; gap: 12px; align-items: center; min-height: 32px; font-size: 14px; }
.db-name small { color: var(--muted); font-size: 12px; }
.db-track { position: relative; height: 16px; background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 28.571% 100%; }
.db-line { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--muted); }
.db-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.db-dot.hollow { background: var(--paper); box-shadow: inset 0 0 0 2px var(--muted); }
.db-dot.full { background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.db-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.db-axis { position: relative; height: 16px; margin: 4px 104px 0 162px; font-size: 11px; color: var(--muted); }
.db-axis span { position: absolute; transform: translateX(-50%); }
.db-axis span:first-child { transform: none; }
.legend .dot-hollow, .legend .dot-full { width: 12px; height: 12px; border-radius: 50%; }
.legend .dot-hollow { box-shadow: inset 0 0 0 2px var(--muted); background: #fff; }
.legend .dot-full { background: var(--ink); }

.elections { display: grid; gap: 0; margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 6px 28px; }
.elec { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.elec:first-child { border-top: 0; }
.elec-year { font-size: 46px; font-weight: 900; font-stretch: 62%; line-height: .9; }
.elec-meta { font-size: 14px; color: var(--muted); margin-top: 10px; }
.elec-lecon { font-size: 16px; margin-top: 6px; max-width: 52em; }

.lecons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.lecon { padding: 24px 26px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.lecon:nth-child(3n+1) { border-left: 0; }
.lecon:nth-child(-n+3) { border-top: 0; }
.lecon h4 { font-size: 21px; font-weight: 800; font-stretch: 75%; margin-bottom: 8px; line-height: 1.1; }
.lecon p { font-size: 15px; color: var(--text); }

/* Simulateur */
.sim { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sim-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sim-top label { font-weight: 700; }
.sim-top select { flex: 1 1 220px; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin-bottom: 18px; line-height: 1.4; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); }
.sliders { display: grid; gap: 4px; }
.sl-row { display: grid; grid-template-columns: 12px 150px 1fr 60px; gap: 10px; align-items: center; font-size: 14px; min-height: 32px; }
.sl-row .sw { width: 10px; height: 10px; border-radius: 2px; }
.sl-row output { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sl-row input[type=range] { width: 100%; accent-color: var(--ink); }
.sim-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.total { font-size: 14px; color: var(--muted); }
.sim-result { position: sticky; top: 84px; }
.sim-result .split-bar { margin-top: 6px; }
.sim-qualif { font-size: 15px; margin-bottom: 14px; }
.sim-qualif b { color: var(--ink); }
.sim-out-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.sim-result .ch-row { grid-template-columns: 160px 1fr 104px; }
#sim-out.loading { opacity: .55; transition: opacity .2s; }

/* Méthode */
.methode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.methode-text .h-block { font-size: 20px; margin: 18px 0 8px; }
.methode-text .h-block:first-child { margin-top: 0; }
.methode-text p { font-size: 15.5px; }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.heat th { font-weight: 600; color: var(--muted); font-size: 12px; padding: 4px; }
.heat thead th { text-align: center; vertical-align: bottom; }
.heat tbody th { text-align: left; color: var(--ink); white-space: nowrap; padding-right: 10px; }
.heat td { text-align: center; padding: 9px 4px; border-radius: 2px; font-weight: 600; min-width: 46px; }

/* ---------- Pied de page ---------- */
.foot { margin-top: 64px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px; font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; }
.foot-inner p { max-width: 70em; }
.foot strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .top-inner { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .top-ligne { justify-content: space-between; }
  nav { overflow-x: auto; scrollbar-width: none; margin: 0 -10px; }
  nav::-webkit-scrollbar { display: none; }
  /* Le menu continue à droite : un fondu le signale tant qu'on n'est pas au bout (classe posée par base.html) */
  nav.defile { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  nav a { padding: 12px 10px 10px; }
}
@media (max-width: 1080px) {
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scenario-grid, .histo-grid, .methode, .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-result { position: static; }
  .lecons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lecon:nth-child(n) { border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
  .lecon:nth-child(2n+1) { border-left: 0; }
  .lecon:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .split, .duels-grid { grid-template-columns: minmax(0, 1fr); }
  .duel-line:nth-child(2) { border-top: 1px solid var(--line-soft); }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche-affiche { max-width: 340px; }
  nav a { padding: 20px 6px 18px; font-size: 14px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top-inner { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  nav { overflow-x: auto; gap: 2px; margin: 0 -8px; }
  nav a { padding: 12px 8px 10px; }
  .logo { font-size: 21px; }
  .lead { font-size: 17px; }
  .podium { gap: 8px; }
  .podium-name { font-size: 13px; padding: 8px; }
  .podium-name b { font-size: 17px; }
  .sticker { width: 52px; height: 52px; }
  .sticker b { font-size: 21px; }
  .board-inner { grid-template-columns: 1fr; padding: 0 4px; }
  .panel { padding: 48px 10px 24px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario, .block { padding: 18px; }
  .scenario-head { flex-direction: column; gap: 12px; }
  .fr-row { grid-template-columns: 104px 1fr 46px 76px; gap: 6px; font-size: 13px; }
  .fr-axis { margin: 0 134px 2px 110px; }
  .fr-head { grid-template-columns: 1fr 76px; }
  .fr-q { font-size: 12px; }
  .ch-row, .sim-result .ch-row { grid-template-columns: 104px 1fr 92px; gap: 6px; font-size: 13px; }
  .rep-head, .rep-row { grid-template-columns: 104px 1fr 52px; gap: 6px; font-size: 12.5px; }
  .db-row { grid-template-columns: 110px 1fr 76px; gap: 8px; font-size: 13px; }
  .db-axis { margin: 4px 84px 0 118px; }
  .face .photo { width: 80px; }
  .elec { grid-template-columns: 1fr; gap: 8px; }
  .elections, .duels-grid { padding: 4px 18px; }
  .lecons { grid-template-columns: minmax(0, 1fr); }
  .lecon:nth-child(n) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .lecon:first-child { border-top: 0; }
  .verdict { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
  .versus { gap: 10px; }
  .vs { font-size: 20px; }
  .bars.large .bar { grid-template-columns: 112px 1fr 24px; font-size: 14px; }
  .sl-row { grid-template-columns: 10px 110px 1fr 52px; gap: 8px; font-size: 13px; }
  .split-legend { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster { animation: none; }
  .poster, .photo img { transition: none; }
}

/* ==========================================================================
   Ajouts : sondages, calendrier, programmes, quiz
   ========================================================================== */
.dates .j { display: inline-block; font-weight: 900; font-stretch: 62%; font-size: 20px; color: var(--ink); background: var(--sticker);
  padding: 2px 8px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.toolbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lien-discret { font-size: 14px; font-weight: 600; color: var(--ink); }

/* Graphiques temporels */
.ts { width: 100%; height: auto; display: block; overflow: visible; }
.ts .gl { stroke: var(--line-soft); stroke-width: 1; }
.ts .maj { stroke: var(--ink); stroke-width: 1.2; }
.ts .axis-line { stroke: var(--muted); stroke-width: 1; }
.ts .tick { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ts .pt { fill: var(--c); fill-opacity: .32; }
.ts .pt.creux { fill: #fff; fill-opacity: 1; stroke: var(--c); stroke-width: 1.5; }
.ts .hit { fill: transparent; }
.ts .hit:hover { fill: rgba(0, 0, 0, .06); }

.multiples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.multiples.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.multiple { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px 16px 12px; }
.mult-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.mult-nom { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; line-height: 1.15; }
.mult-nom b { display: block; font-weight: 900; font-stretch: 65%; font-size: 21px; text-transform: uppercase; color: var(--ink); }
.mult-nom .photo.mini { width: 34px; height: 41px; border-bottom: 3px solid var(--c); }
.mult-val { text-align: right; line-height: 1.1; }
.mult-val b { display: block; font-weight: 900; font-stretch: 62%; font-size: 28px; color: var(--ink); }
.mult-val span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mult-val.off span { white-space: normal; font-style: italic; }
.mult-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend .dot-full.rn { background: #3F4E99; }
.legend .dot-hollow.rn { box-shadow: inset 0 0 0 2px #3F4E99; background: #fff; }

.maj { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.maj-titre { font-weight: 700; color: var(--ink); }
.maj-ligne { font-size: 13.5px; color: var(--muted); margin: -8px 0 28px; }
.maj .note { margin-top: 4px; }
.maj-etat { grid-column: 1 / -1; font-size: 14px; }
.maj-etat:empty { display: none; }
.maj-etat.ok { color: var(--hi); font-weight: 600; }
.maj-etat.ko { color: var(--lo); font-weight: 600; }
.btn:disabled { opacity: .6; cursor: progress; }

.table-scroll { overflow-x: auto; padding: 8px 18px; }
.enquetes { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.enquetes th, .enquetes td { padding: 10px 8px; border-top: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.enquetes thead th { border-top: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.enquetes thead th i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.enquetes tbody th { font-weight: 700; color: var(--ink); }
.enquetes .num { text-align: right; }

/* Calendrier */
.compte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.compte-item { background: var(--ink); color: #D5D9E0; border-radius: 6px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; }
.compte-j { font-weight: 900; font-stretch: 62%; font-size: 56px; line-height: .9; color: #fff; white-space: nowrap; }
.compte-item strong { color: #fff; }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 162px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.evt { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 0 44px; padding: 12px 0 18px; }
.evt::before { content: ""; position: absolute; left: 156px; top: 16px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.evt.passe::before { background: var(--muted); box-shadow: 0 0 0 3px var(--page); }
.evt.vote::before { width: 20px; height: 20px; left: 153px; top: 13px; background: #ED2939; box-shadow: 0 0 0 3px var(--page); }
.evt-date { text-align: right; font-weight: 700; font-size: 14px; color: var(--ink); padding-top: 12px; }
.evt.passe .evt-date { color: var(--muted); font-weight: 600; }
.evt-corps { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; }
.evt.passe .evt-corps { background: transparent; border-color: transparent; padding-top: 10px; }
.evt-titre { font-size: 20px; font-weight: 800; font-stretch: 75%; margin-bottom: 4px; }
.evt.vote .evt-titre { font-size: 26px; font-weight: 900; font-stretch: 62%; }
.evt.passe .evt-titre { font-size: 17px; color: var(--text); }
.evt-corps p { font-size: 14.5px; }
.evt.passe .evt-corps p { color: var(--muted); }
.evt-lien { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.frise-auj { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 0 44px; margin: 6px 0; }
.frise-auj span { grid-column: 2; display: inline-block; justify-self: start; background: #ED2939; color: #fff; font-weight: 800;
  font-size: 13px; padding: 4px 10px; border-radius: 999px; position: relative; z-index: 1; }
.frise-auj::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid #ED2939; }
.parrainages { position: sticky; top: 84px; }
.parrainages p { font-size: 15px; }
.parrainages .desc { margin: 18px 0 8px; }
.qualifies { display: grid; gap: 6px; }
.q-row { display: grid; grid-template-columns: 44px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.q-track { height: 12px; background: var(--line-soft); }
.q-track i { display: block; height: 100%; background: var(--ink); border-radius: 0 3px 3px 0; }
.q-row b { text-align: right; color: var(--ink); }

/* Programmes */
.tabs-themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.theme-tab { border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.props { list-style: none; margin: 0; padding: 0; }
.prop { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.prop:first-child { border-top: 0; padding-top: 4px; }
.prop-qui { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; }
.prop-qui .photo.mini { border-bottom: 3px solid var(--c); }
.prop-qui b { display: block; font-weight: 900; font-stretch: 65%; font-size: 20px; text-transform: uppercase; color: var(--ink); }
.prop-qui small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.prop-texte { font-size: 16px; padding-top: 4px; }
.prop.vide .prop-texte { color: var(--muted); font-style: italic; }
.sources { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.sources a { color: var(--ink); }
.fiche-sondage { font-size: 16px; margin-bottom: 10px; }
.fiche-sondage b { font-weight: 900; font-stretch: 62%; font-size: 30px; color: var(--ink); vertical-align: -3px; }
.fiche-prog { margin: 0; display: grid; gap: 4px; }
.fiche-prog dt { font-weight: 700; color: var(--ink); font-size: 14px; margin-top: 10px; }
.fiche-prog dt:first-child { margin-top: 0; }
.fiche-prog dd { margin: 0; font-size: 15px; }
.prog-duel { margin-top: 20px; }
.prog-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prog-table th, .prog-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line-soft); }
.prog-table thead th { border-top: 0; font-weight: 800; font-stretch: 75%; font-size: 17px; color: var(--ink); }
.prog-table thead th i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; }
.prog-table tbody th { width: 150px; font-size: 14px; color: var(--muted); font-weight: 600; }
.prog-table td { width: 42%; }
.prog-table td.vide { color: var(--muted); font-style: italic; }


@media (max-width: 1080px) {
  .multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .multiples.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid { grid-template-columns: minmax(0, 1fr); }
  .parrainages { position: static; }
}
@media (max-width: 640px) {
  .multiples, .multiples.quatre { grid-template-columns: minmax(0, 1fr); }
  .maj { grid-template-columns: minmax(0, 1fr); }
  .compte { grid-template-columns: minmax(0, 1fr); }
  .compte-j { font-size: 44px; }
  .frise::before { left: 8px; }
  .evt, .frise-auj { grid-template-columns: minmax(0, 1fr); padding-left: 30px; gap: 4px; }
  .evt::before { left: 2px; }
  .evt.vote::before { left: -1px; }
  .evt-date { text-align: left; padding-top: 0; }
  .frise-auj span { grid-column: 1; }
  .prop { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prog-table, .prog-table tbody, .prog-table tr, .prog-table td, .prog-table th { display: block; width: auto; }
  .prog-table thead { display: none; }
  .prog-table tbody th { width: auto; padding-bottom: 4px; }
  .prog-table td { border-top: 0; padding: 4px 0 8px; width: auto; }
  .prog-table td::before { content: attr(data-qui) " : "; font-weight: 700; color: var(--ink); font-style: normal; }
}

@media (max-width: 640px) {
  .chances-table th { font-size: 12px; }
  .chances-table td { font-size: 14px; }
  .meter { display: block; width: 100%; margin: 0 0 6px; }
  .vs-side select { font-size: 14px; padding: 9px 8px; }
}

/* Simulateur (page dédiée) */
.sim-label { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.sim-bases { margin-bottom: 12px; }
.sim-base { border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sim-hyp { font-size: 14px; color: var(--muted); margin-bottom: 16px; min-height: 2.8em; }
.sl-head { display: grid; grid-template-columns: 12px 150px 1fr 60px; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.sl-head span:last-child { text-align: right; }
.sl-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; margin: 0;
  background: linear-gradient(to right, var(--c) 0 var(--p, 0%), var(--line) var(--p, 0%) 100%); cursor: pointer; }
.sl-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px var(--c), 0 1px 3px rgba(0, 0, 0, .35); }
.sl-row input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--c);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.sl-row input[type=range]:focus-visible { outline: 3px solid var(--bleu); outline-offset: 6px; }
.sim-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.total.ecart { color: var(--mid); font-weight: 600; }
.sim-note { margin-top: 18px; }
.scenario-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sim-result .rep-head, .sim-result .rep-row { grid-template-columns: 140px 1fr 56px; }
@media (max-width: 640px) {
  .sl-head { grid-template-columns: 10px 110px 1fr 52px; gap: 8px; }
  .sim-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .sim-actions { justify-content: stretch; }
  .sim-actions .btn { flex: 1; }
  .scenario-actions { align-items: flex-start; }
  .sim-result .rep-head, .sim-result .rep-row { grid-template-columns: 104px 1fr 52px; }
}

/* Très petits écrans (panneau étroit, petits téléphones) : nom et valeur sur une ligne, barre en dessous */
@media (max-width: 420px) {
  :root { --gutter: 12px; }
  .block, .scenario { padding: 14px; }
  .h-section { font-size: 28px; }
  .verdict { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .verdict-photo { max-width: 96px; }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .fr-head { grid-template-columns: minmax(0, 1fr) auto; }
  .fr-axis { display: none; }
  .fr-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "nom val q" "barre barre barre"; gap: 2px 8px; padding: 4px 0; }
  .fr-row .fr-name { grid-area: nom; }
  .fr-row .fr-track { grid-area: barre; }
  .fr-row .fr-val { grid-area: val; }
  .fr-row .fr-q { grid-area: q; }
  .ch-row, .sim-result .ch-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom val" "barre barre"; gap: 2px 8px; padding: 3px 0; }
  .ch-row .fr-name { grid-area: nom; }
  .ch-row .ch-track { grid-area: barre; }
  .ch-row .fr-val { grid-area: val; }
  .rep-head, .rep-row, .sim-result .rep-head, .sim-result .rep-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .rep-row { grid-template-areas: "nom val" "barre barre"; padding: 3px 0; }
  .rep-row .rep-name { grid-area: nom; }
  .rep-row .rep-bar { grid-area: barre; }
  .rep-row .rep-val { grid-area: val; }
  .rep-head span:last-child { grid-column: auto; }
  .db-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom val" "barre barre"; gap: 2px 8px; }
  .db-row .db-name { grid-area: nom; }
  .db-row .db-track { grid-area: barre; }
  .db-row .db-val { grid-area: val; }
  .db-axis { margin: 4px 0 0; }
  .sl-head { display: none; }
  .sl-row { grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "sw nom val" "barre barre barre"; gap: 6px 8px; padding: 4px 0; }
  .sl-row .sw { grid-area: sw; }
  .sl-row label { grid-area: nom; }
  .sl-row input[type=range] { grid-area: barre; }
  .sl-row output { grid-area: val; }
  .split-legend { flex-wrap: wrap; }
  .faces .photo, .face .photo { width: 64px; }
  .contre { font-size: 16px; padding-bottom: 24px; }
  .bar { grid-template-columns: 92px 1fr 20px; gap: 6px; font-size: 12px; }
  .bars.large .bar { grid-template-columns: 96px 1fr 22px; font-size: 13px; }
  .compte-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .vs { text-align: center; }
  .duel td.a, .duel td.b { width: 34px; font-size: 16px; }
  .podium-name b { font-size: 15px; }
  .sticker { width: 44px; height: 44px; }
  .sticker b { font-size: 18px; }
  .sticker small { font-size: 9px; }
  .multiple { padding: 12px; }
  .mult-nom b { font-size: 18px; }
  .mult-val b { font-size: 22px; }
  .autres-duels th, .autres-duels td { padding-right: 4px; font-size: 12.5px; }
  .autres-duels td:not(:first-child) { white-space: normal; }
  .enquetes th, .enquetes td { padding: 8px 6px; font-size: 13px; }
}

/* ==========================================================================
   Quiz : une affirmation à la fois, puis résultats
   ========================================================================== */
.quiz2 { --oui: #1F8F55; --oui-clair: #8CCBA6; --neutre: #C9CED6; --non-clair: #EFA49C; --non: #D2453B; }
.q-intro { max-width: 820px; padding: 44px 0 10px; }
.q-intro h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 900; font-stretch: 62%; line-height: .92; }
.q-atouts { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-atouts li { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.q-atouts b { display: block; font-weight: 800; font-stretch: 75%; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.q-atouts span { font-size: 14px; color: var(--muted); }
.q-visages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.q-visages a { display: block; }
.q-visages .photo.mini { width: 44px; height: 54px; border-bottom: 3px solid var(--c); }
.q-depart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

.q-jeu { max-width: 860px; margin: 0 auto; padding: 36px 0 10px; }
.q-progres { margin-bottom: 14px; }
.q-compte { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.q-barre { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.q-barre i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .3s ease; }
.q-carte { padding: 30px 30px 22px; }
.q-carte.entree { animation: carte .32s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes carte { from { opacity: 0; transform: translateX(18px); } }
.q-theme { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--page);
  box-shadow: inset 0 0 0 1px var(--line); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.q-texte { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; font-stretch: 68%; line-height: 1.08; margin-bottom: 10px; }
.q-contexte { font-size: 15px; color: var(--muted); margin-bottom: 24px; max-width: 46em; }
.q-echelle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.q-rep { font: inherit; cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center;
  padding: 16px 8px 14px; background: var(--paper); border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.25; transition: box-shadow .15s, background .15s; }
.q-rep i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--r); background: var(--paper); transition: background .15s; }
.q-rep[data-v="2"] { --r: var(--oui); }
.q-rep[data-v="1"] { --r: var(--oui-clair); }
.q-rep[data-v="0"] { --r: var(--neutre); }
.q-rep[data-v="-1"] { --r: var(--non-clair); }
.q-rep[data-v="-2"] { --r: var(--non); }
.q-rep:hover { box-shadow: inset 0 0 0 2px var(--r); }
.q-rep:hover i { background: color-mix(in oklab, var(--r) 30%, #fff); }
.q-rep.on { box-shadow: inset 0 0 0 2px var(--ink); background: color-mix(in oklab, var(--r) 14%, #fff); }
.q-rep.on i { background: var(--r); }
.q-important { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }
.q-important input { width: 18px; height: 18px; accent-color: var(--ink); }
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.lien-bouton { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lien-bouton:disabled { color: var(--line); cursor: default; text-decoration: none; }
.q-clavier { text-align: center; }

/* Résultats */
.q-resultats .page-head { padding-bottom: 18px; }
.res-base { font-size: 14px; color: var(--muted); margin-top: 8px; }
.res-podium { max-width: 620px; margin: 6px auto 32px; }
.res-podium .sticker { width: 74px; height: 74px; }
.res-podium .sticker b { font-size: 25px; }
.res-podium .sticker small { font-size: 10px; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.res-ligne { display: grid; grid-template-columns: 22px minmax(0, 210px) 1fr 70px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.res-ligne:first-of-type { border-top: 0; }
.res-ligne.peu { opacity: .55; }
.res-rang { font-weight: 900; font-stretch: 62%; font-size: 20px; color: var(--muted); text-align: center; }
.res-qui { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.1; min-width: 0; }
.res-qui span { min-width: 0; }
.res-qui b { font-weight: 900; font-stretch: 65%; font-size: 17px; text-transform: uppercase; color: var(--ink); }
.res-qui small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-qui .photo.mini { width: 34px; height: 41px; border-bottom: 3px solid var(--c); }
.res-pct { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.res-pct small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.boussole { width: 100%; height: auto; display: block; overflow: visible; }
.boussole .b-cadre { fill: var(--page); stroke: var(--line); }
.boussole .b-axe { stroke: var(--muted); stroke-width: 1; }
.boussole .b-lab { font-size: 11.5px; font-weight: 600; fill: var(--muted); }
.boussole .b-cand circle { stroke: #fff; stroke-width: 2; }
.boussole .b-nom { font-size: 12px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--page); stroke-width: 3px; stroke-linejoin: round; }
.boussole .b-moi rect { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.boussole .b-moi text { font-size: 13px; font-weight: 900; fill: var(--ink); paint-order: stroke; stroke: var(--page); stroke-width: 3px; }

.res-themes { margin-top: 20px; }
.themes-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 14px; font-variant-numeric: tabular-nums; }
.themes-table thead th { font-weight: 800; font-stretch: 75%; font-size: 16px; color: var(--ink); text-align: center; padding: 4px; }
.themes-table thead th:first-child { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; font-stretch: 100%; }
.themes-table thead th i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.themes-table tbody th { text-align: left; font-weight: 600; color: var(--text); padding: 8px 8px 8px 0; white-space: nowrap; }
.themes-table td { text-align: center; padding: 9px 6px; border-radius: 3px; font-weight: 700;
  background: color-mix(in oklab, #1F8F55 calc(var(--a) * .7), #F3F5F2); }
.themes-table td span { background: rgba(255, 255, 255, .85); padding: 1px 6px; border-radius: 3px; color: var(--ink); }
.themes-table td.vide { background: var(--line-soft); color: var(--muted); font-weight: 500; }

.res-detail { padding-top: 40px; }
.qd { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.qd summary { cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; list-style: none; }
.qd summary::-webkit-details-marker { display: none; }
.qd summary::after { content: "+"; margin-left: auto; font-weight: 800; font-size: 20px; line-height: 1; color: var(--muted); }
.qd[open] summary::after { content: "−"; }
.qd-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 900; font-stretch: 62%; font-size: 16px; }
.qd-q { font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.3; }
.qd-q small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 3px; }
.qd ul { list-style: none; margin: 0; padding: 0 16px 10px 56px; display: grid; gap: 7px; }
.qd-l { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: start; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.qd-l.proche { background: color-mix(in oklab, #1F8F55 12%, #fff); }
.qd-l.loin { background: color-mix(in oklab, #D2453B 10%, #fff); }
.qd-dot { width: 10px; height: 10px; border-radius: 2px; margin-top: 5px; }
.qd-l em { font-style: normal; font-weight: 700; color: var(--ink); margin: 0 4px; }
.qd-l.proche em { color: #17703F; }
.qd-l.loin em { color: #B23329; }
.qd-inconnus { font-size: 13px; color: var(--muted); padding: 0 16px 14px 56px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

@media (max-width: 1080px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .q-atouts { grid-template-columns: minmax(0, 1fr); }
  .q-echelle { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .q-rep { grid-template-columns: 26px 1fr; justify-items: start; align-items: center; text-align: left; padding: 12px 14px; font-size: 15px; }
  .q-carte { padding: 20px 16px 16px; }
  .q-nav { flex-direction: column; align-items: flex-start; }
  .res-ligne { grid-template-columns: 18px minmax(0, 1fr) 64px; grid-template-areas: "rang qui pct" ". barre barre"; row-gap: 6px; }
  .res-ligne .res-rang { grid-area: rang; }
  .res-ligne .res-qui { grid-area: qui; }
  .res-ligne .ch-track { grid-area: barre; }
  .res-ligne .res-pct { grid-area: pct; }
  .qd ul { padding: 0 10px 10px 10px; }
  .qd-inconnus { padding: 0 12px 12px 12px; }
  .res-podium .sticker { width: 56px; height: 56px; }
  .res-podium .sticker b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-carte.entree { animation: none; }
  .q-barre i, .q-rep, .q-rep i { transition: none; }
}

.defile-x { overflow-x: auto; }
@media (max-width: 420px) {
  .themes-table { border-spacing: 2px; }
  .themes-table thead th { font-size: 13px; padding: 2px; }
  .themes-table tbody th { white-space: normal; font-size: 12.5px; padding-right: 4px; }
  .themes-table td { padding: 6px 2px; font-size: 12.5px; }
  .themes-table td span { padding: 0 3px; }
  .podium-item .sticker { right: -4px; }
  .q-texte { font-size: 24px; }
}

/* ==========================================================================
   Le P'tit Isoloir, le jeu de pronostics
   Le jaune des macarons du site devient l'univers du jeu. Tout ce qu'on touche
   est en papier (bulletins, cartes, enveloppes), cerné d'un trait noir comme
   les dessins. Un seul moment animé : le vote.
   ========================================================================== */
:root {
  --jaune: #FFD23F;
  --jaune-pale: #FFF3C8;
  --kraft: #D2A86F;
  --violet: #5B2C91;            /* encre du tampon « A voté » */
  --trait: 2px solid var(--ink);
}

/* ---------- Entrée du jeu dans l'en-tête du site ---------- */
.isoloir-entree { display: inline-flex; align-items: center; gap: 7px; flex: none; text-decoration: none; color: var(--ink);
  background: var(--jaune); font-weight: 800; font-stretch: 80%; font-size: 15px; line-height: 1; white-space: nowrap;
  padding: 7px 14px 7px 9px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); }
.isoloir-entree:hover { background: #FFDC66; }
.isoloir-entree.on { background: var(--ink); color: var(--jaune); }
.isoloir-entree.on .iso-picto path:first-child { fill: var(--ink); }
.iso-picto { width: 19px; height: 19px; flex: none; }
nav a.retour-site { color: var(--muted); font-weight: 500; margin-left: auto; }

/* ---------- Grand bandeau de l'accueil du jeu ---------- */
.iso-hero { background: var(--jaune); border-bottom: var(--trait); overflow: hidden; }
.iso-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: end; gap: 24px 48px; padding-top: 46px; }
.iso-hero-txt { align-self: center; padding-bottom: 42px; }
.iso-logo { color: var(--ink); font-size: clamp(66px, 10.5vw, 158px); font-weight: 900; font-stretch: 62%; line-height: .82; letter-spacing: -.02em; }
.iso-logo span { display: block; }
.iso-accroche { color: var(--ink); font-size: 20px; line-height: 1.45; max-width: 29em; margin-top: 24px; }
.iso-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.iso-hero .lien-bouton { color: var(--ink); font-size: 15px; }
.iso-hero-illu { margin-bottom: -16px; }
.iso-illu { display: block; width: 100%; height: auto; }
/* Pendant la partie, le bandeau se fait discret */
.iso-joue .iso-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
.iso-joue .iso-hero-illu, .iso-joue .iso-accroche, .iso-joue .iso-hero-actions { display: none; }
.iso-joue .iso-hero-txt { padding-bottom: 18px; }
.iso-joue .iso-logo { font-size: clamp(40px, 5vw, 56px); line-height: .95; }
.iso-joue .iso-logo span { display: inline; }

/* ---------- Bandeau des autres pages du jeu ---------- */
.iso-bandeau { background: var(--jaune); border-bottom: var(--trait); overflow: hidden; }
.iso-bandeau-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 34px; }
.iso-bandeau-in > div { padding-bottom: 30px; }
.iso-bandeau h1 { color: var(--ink); font-size: clamp(48px, 6.6vw, 92px); font-weight: 900; font-stretch: 62%; line-height: .88; }
.iso-bandeau-sous { color: var(--ink); font-size: 18px; margin-top: 12px; max-width: 34em; }
.iso-bandeau-urne { flex: none; display: block; width: 136px; height: auto; margin-bottom: -6px; }

/* ---------- Éléments communs ---------- */
.iso { padding-top: 40px; }
.iso-accueil, .iso-bulletin { max-width: 1060px; }
.iso-questions, .iso-classement { max-width: 760px; margin: 0 auto; }
.iso-h2 { color: var(--ink); font-size: clamp(30px, 3.6vw, 42px); font-weight: 900; font-stretch: 62%; line-height: 1; }
.iso-sous { color: var(--text); font-size: 17px; margin-top: 8px; max-width: 44em; }
.iso-lead { color: var(--ink); font-size: 20px; line-height: 1.5; max-width: 40em; }
.iso-note { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 14px; }
.iso-note a { color: var(--ink); }
.iso-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 8px; }
.iso-panneau { background: var(--paper); border: var(--trait); border-radius: 20px; padding: 26px 28px; box-shadow: 6px 6px 0 var(--ink); }
.btn.iso-cta { font-size: 17px; padding: 15px 26px; border-radius: 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); transition: transform .12s, box-shadow .12s; }
.btn.iso-cta:hover { transform: translateY(-1px); }
.btn.iso-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.btn.ghost { border-radius: 999px; }
/* Visages des candidats : un rond cerclé de la couleur de leur camp */
.photo.iso-visage { width: 48px; height: 48px; aspect-ratio: auto; flex: none; border-radius: 50%; border: 3px solid var(--c, var(--ink));
  background: color-mix(in oklab, var(--c, #888) 30%, #fff); }
.photo.iso-visage .ini { font-size: 16px; color: var(--ink); }
.photo.iso-visage.petit { width: 34px; height: 34px; border-width: 2px; }
.photo.iso-visage.petit .ini { font-size: 12px; }
.photo.iso-visage.grand { width: 112px; height: 112px; border-width: 4px; }
.photo.iso-visage.grand .ini { font-size: 36px; }
/* Avatars des joueurs : leurs initiales */
.iso-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; border: var(--trait); background: var(--av, var(--jaune));
  display: grid; place-items: center; font-weight: 900; font-stretch: 70%; font-size: 17px; color: var(--ink); text-transform: uppercase; }

/* ---------- Accueil : les trois étapes ---------- */
.iso-etapes { list-style: none; counter-reset: etape; position: relative; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.iso-etapes::before { content: ""; position: absolute; top: 27px; left: 40px; right: calc(33.3% - 16px); border-top: 3px dotted var(--ink); }
.iso-etapes li { counter-increment: etape; position: relative; padding-top: 76px; }
.iso-etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--jaune); border: var(--trait); box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center;
  font-weight: 900; font-stretch: 62%; font-size: 30px; color: var(--ink); }
.iso-etapes b { display: block; color: var(--ink); font-weight: 900; font-stretch: 68%; font-size: 27px; line-height: 1; margin-bottom: 8px; }
.iso-etapes span { color: var(--text); font-size: 16px; }
.iso-accueil .iso-note { margin-top: 30px; }

/* ---------- Questions : une carte, des réponses à toucher ---------- */
.iso-progres { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.iso-compte { font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; }
.iso-barre { flex: 1; height: 14px; border: var(--trait); border-radius: 999px; background: var(--paper); overflow: hidden; }
.iso-barre i { display: block; height: 100%; width: 0; background: var(--jaune); box-shadow: 2px 0 0 var(--ink); transition: width .3s ease; }
.iso-carte { background: var(--paper); border: var(--trait); border-radius: 22px; padding: 34px 34px 22px; box-shadow: 6px 6px 0 var(--ink); }
.iso-carte.entree { animation: carte .32s cubic-bezier(.2, .75, .25, 1) both; }
.iso-question { color: var(--ink); font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; font-stretch: 62%; line-height: 1.02; }
.iso-contexte { color: var(--text); font-size: 16px; margin: 12px 0 24px; max-width: 46em; }
.iso-choix { display: grid; gap: 12px; }
.iso-choix.grille { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.iso-option { font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; background: var(--paper); color: var(--ink); border: var(--trait); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background-color .12s; }
.iso-option:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.iso-option:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.iso-option.on { background: var(--jaune); }
.iso-option:focus-visible, .iso-combattant:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.iso-option-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.iso-option-nom { font-size: 18px; font-weight: 600; line-height: 1.2; }
.iso-option-nom b { font-weight: 900; text-transform: uppercase; }
.iso-option small { font-size: 14px; color: var(--text); }
.iso-coche { flex: none; width: 26px; height: 26px; border-radius: 50%; border: var(--trait); background: var(--paper); display: grid; place-items: center; }
.iso-option.on .iso-coche { background: var(--ink); }
.iso-option.on .iso-coche::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid var(--jaune); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.iso-choix.grille .iso-option { padding: 10px 12px; gap: 10px; }
.iso-choix.grille .iso-coche { display: none; }
.iso-choix.grille .iso-option-nom { font-size: 16px; }
.iso-carte-pied { margin-top: 22px; padding-top: 14px; border-top: 2px dashed var(--line); }

/* ---------- Le bulletin : des bulletins de papier à réordonner ---------- */
.iso-tete { margin-bottom: 22px; }
.iso-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.iso-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; transition: transform .18s ease; }
.iso-item.glisse { transition: none; position: relative; z-index: 3; }
.iso-item:nth-child(2)::after { content: var(--coupure, ""); grid-column: 1 / -1; margin-top: 12px; padding-top: 8px; border-top: 3px dotted var(--ink);
  font-size: 13.5px; font-weight: 800; color: var(--ink); text-align: center; }
.iso-pos { font-weight: 900; font-stretch: 62%; font-size: 34px; line-height: 1; color: var(--metal-lo); text-align: right; font-variant-numeric: tabular-nums; }
.iso-item.qualifie .iso-pos { color: var(--ink); }
.iso-slip { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  background: var(--paper); border: var(--trait); border-radius: 10px; padding: 8px 12px 8px 4px; box-shadow: 0 3px 0 var(--ink);
  transition: box-shadow .15s, transform .15s; }
.iso-item.qualifie .iso-slip { background: var(--jaune-pale); }
.iso-item.glisse .iso-slip { transform: rotate(-1.2deg) scale(1.02); box-shadow: 0 18px 28px -14px rgba(0, 0, 0, .55); }
.iso-poignee { width: 28px; height: 44px; border: 0; padding: 0; background: none; cursor: grab; touch-action: none; display: grid; place-items: center; border-radius: 6px; }
.iso-poignee i { width: 12px; height: 20px; background: radial-gradient(circle, var(--ink) 1.8px, transparent 2.2px) 0 0 / 6px 6.7px; }
.iso-poignee:focus-visible { outline: 3px solid var(--bleu); outline-offset: 1px; }
.iso-item.glisse .iso-poignee { cursor: grabbing; }
.iso-slip-nom { display: grid; min-width: 0; }
.iso-slip-nom > span { font-size: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iso-slip-nom b { font-weight: 900; text-transform: uppercase; }
.iso-slip-nom .iso-fiche { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.iso-slip-nom .iso-fiche:hover { color: var(--ink); }
.iso-slip-nom small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iso-est { font-weight: 800; font-size: 14px; color: var(--ink); background: var(--page); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iso-fleches { display: grid; gap: 4px; }
.iso-fleches button { width: 30px; height: 22px; border: var(--trait); border-radius: 7px; background: var(--paper); cursor: pointer; display: grid; place-items: center; padding: 0; }
.iso-fleches button::before { content: ""; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid var(--ink); }
.iso-fleches .iso-bas::before { transform: rotate(180deg); }
.iso-fleches button:hover:not(:disabled) { background: var(--jaune); }
.iso-fleches button:disabled { opacity: .25; cursor: default; }

/* ---------- Le second tour : le face-à-face ---------- */
.iso-face { margin-top: 36px; background: var(--paper); border: var(--trait); border-radius: 22px; padding: 28px 30px; box-shadow: 6px 6px 0 var(--ink); }
/* Les deux cartes ont la même hauteur et le portrait reste en haut : les deux finalistes sont alignés
   même quand un nom passe sur deux lignes (DE VILLEPIN, GLUCKSMANN, ou un petit écran) */
.iso-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; margin-top: 22px; }
.iso-duel .iso-combattant { align-content: start; grid-template-rows: auto auto 1fr; }
.iso-duel .iso-combattant-etat { align-self: end; }
.iso-duel .iso-contre { align-self: center; }
.iso-combattant { font: inherit; cursor: pointer; display: grid; justify-items: center; gap: 12px; padding: 20px 12px 16px;
  background: var(--paper); color: var(--ink); border: var(--trait); border-radius: 20px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background-color .12s; }
.iso-combattant:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.iso-combattant.on { background: var(--jaune); }
.iso-combattant-nom { font-size: 17px; text-align: center; line-height: 1.15; }
.iso-combattant-nom b { display: block; font-weight: 900; font-stretch: 72%; font-size: 24px; text-transform: uppercase; }
.iso-combattant-etat { font-size: 13px; font-weight: 800; padding: 3px 11px; border-radius: 999px; background: var(--ink); color: var(--jaune); visibility: hidden; }
.iso-combattant.on .iso-combattant-etat { visibility: visible; }
.iso-contre { font-weight: 900; font-stretch: 62%; font-size: 30px; color: var(--ink); }
.iso-jauge { display: flex; height: 20px; border: var(--trait); border-radius: 999px; overflow: hidden; margin: 26px 0 6px; background: var(--paper); }
.iso-jauge i { display: block; height: 100%; transition: width .2s ease; }
.iso-jauge i + i { box-shadow: inset 2px 0 0 var(--ink); }
.iso-score { display: grid; grid-template-columns: auto minmax(0, 1fr) 86px; gap: 16px; align-items: center; margin-top: 16px; }
.iso-score label { font-weight: 800; color: var(--ink); font-size: 15px; }
.iso-score output { font-weight: 900; font-stretch: 62%; font-size: 36px; line-height: 1; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.iso-score input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 0; cursor: pointer;
  border: var(--trait); border-radius: 999px; background: linear-gradient(to right, var(--ink) 0 var(--p, 0%), var(--paper) var(--p, 0%) 100%); }
.iso-score input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--jaune); border: var(--trait); box-shadow: 0 3px 0 var(--ink); }
.iso-score input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--jaune); border: var(--trait); box-shadow: 0 3px 0 var(--ink); }
.iso-score input[type=range]:focus-visible { outline: 3px solid var(--bleu); outline-offset: 6px; }

/* ---------- Dépôt et formulaires ---------- */
.iso-depot { margin-top: 32px; }
.iso-qui { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.iso-champ { display: grid; gap: 6px; font-size: 14px; font-weight: 800; color: var(--ink); max-width: 420px; }
.iso-champ input { font: inherit; font-weight: 500; font-size: 18px; padding: 12px 14px; border: var(--trait); border-radius: 12px;
  background: var(--paper); color: var(--ink); width: 100%; }
.iso-champ input:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.iso-champ input::placeholder { color: #A8AFB9; }
.iso-erreur { color: #B23329; font-weight: 700; font-size: 15px; margin-top: 10px; }
.iso-erreur:empty { display: none; }
.iso-succes { background: #E3F4EA; color: #17703F; border: 2px solid #17703F; border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 20px; }
.iso-invitee { background: var(--jaune-pale); border: var(--trait); border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; font-size: 15px; color: var(--ink); }
.iso-reprise { margin: 0 0 30px; padding: 20px 22px; background: var(--paper); border: var(--trait); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); max-width: 820px; }
.iso-reprise-t { margin-bottom: 12px; color: var(--ink); }
.iso-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.iso-champs .btn { border-radius: 999px; }

/* ---------- « A voté ! » ---------- */
.iso-avote { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--paper); border: var(--trait); border-radius: 24px; padding: 24px 34px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.iso-urne-vote { display: block; width: 100%; height: auto; }
.iso-avote-txt h2 { color: var(--ink); font-size: clamp(32px, 4vw, 52px); font-weight: 900; font-stretch: 62%; line-height: .98; margin: 20px 0 10px; }
.iso-avote-txt p:not(.iso-tampon) { font-size: 16px; }
.iso-tampon { display: inline-block; color: var(--violet); font-weight: 900; font-stretch: 62%; font-size: 54px; line-height: 1; text-transform: uppercase;
  letter-spacing: .02em; padding: 6px 18px 9px; border: 6px double var(--violet); border-radius: 10px; transform: rotate(-7deg); opacity: .92; }
.iso-chute { transform: translateY(212px); }
.anime .iso-chute { animation: chute .95s cubic-bezier(.5, 0, .75, .35) .1s both; }
.anime .iso-tampon { animation: tampon .42s 1.05s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes chute { from { transform: translateY(-50px); } to { transform: translateY(212px); } }
@keyframes tampon { from { transform: rotate(-7deg) scale(2); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: .92; } }
.iso-confettis { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.iso-confettis i { position: absolute; top: -18px; width: 9px; height: 15px; border-radius: 2px; animation: confetti var(--t, 1.8s) cubic-bezier(.25, .6, .45, 1) var(--d, 1s) both; }
@keyframes confetti { from { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; } 80% { opacity: 1; } to { transform: translate3d(var(--dx, 0), 380px, 0) rotate(var(--r, 360deg)); opacity: 0; } }

.iso-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; margin-top: 30px; align-items: start; }
.iso-points-tete { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.iso-macaron { flex: none; width: 98px; height: 98px; border-radius: 50%; background: var(--jaune); border: var(--trait); box-shadow: 0 4px 0 var(--ink);
  display: grid; place-content: center; text-align: center; line-height: 1; transform: rotate(-6deg); color: var(--ink); }
.iso-macaron b { font-weight: 900; font-stretch: 62%; font-size: 42px; }
.iso-macaron small { font-size: 13px; font-weight: 800; }
.iso-mini { list-style: none; counter-reset: mini; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.iso-mini li { counter-increment: mini; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 5px 10px 5px 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 15px; color: var(--ink); }
.iso-mini li::before { content: counter(mini); font-weight: 900; font-stretch: 62%; font-size: 20px; color: var(--metal-lo); text-align: right; }
.iso-mini li:nth-child(-n+2) { border-color: var(--ink); background: var(--jaune-pale); }
.iso-mini li:nth-child(-n+2)::before { color: var(--ink); }
.iso-mini li > span:not(.photo) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-mini b, .iso-detail-second b { text-transform: uppercase; font-weight: 900; }
.gain { font-style: normal; font-weight: 900; font-size: 13px; color: var(--ink); background: #BDEBCF; border: 2px solid var(--ink); padding: 0 7px; border-radius: 999px; }
.iso-detail-second { margin-top: 14px; font-size: 15px; color: var(--ink); }
.iso-decompte { margin: 0; display: grid; }
.iso-decompte div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 2px dashed var(--line); }
.iso-decompte dt { font-weight: 600; color: var(--text); }
.iso-decompte dd { margin: 0; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Carte d'électeur du P'tit Isoloir : pseudo, code personnel et cases à tamponner */
.iso-carte-electeur { position: relative; margin-top: 30px; max-width: 580px; background: #EEF2FA; border: var(--trait); border-radius: 20px;
  padding: 22px 26px 20px 46px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.iso-carte-electeur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; border-right: var(--trait);
  background: linear-gradient(#000091 0 33.4%, #fff 33.4% 66.6%, #E1000F 66.6%); }
.iso-carte-electeur::after { content: ""; position: absolute; right: -60px; top: -60px; width: 230px; height: 230px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 7px, rgba(0, 0, 145, .07) 7px 8.5px); }
.iso-carte-titre { color: var(--ink); font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1; }
.iso-carte-lignes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 16px 0; align-items: baseline; }
.iso-carte-lignes dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.iso-carte-lignes dd { margin: 0; font-weight: 800; font-size: 19px; color: var(--ink); overflow-wrap: anywhere; }
.iso-carte-lignes dd.iso-code { font-weight: 900; font-stretch: 75%; font-size: 30px; letter-spacing: .1em; }
.iso-cases { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.iso-cases span { display: grid; place-items: center; text-align: center; width: 104px; height: 64px; padding: 4px; border: 2px dashed var(--metal-lo);
  border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--muted); background: rgba(255, 255, 255, .6); }
.iso-cases span.fait { border: 3px double var(--violet); color: var(--violet); font-weight: 900; font-stretch: 75%; font-size: 15px; text-transform: uppercase; transform: rotate(-4deg); }
.iso-carte-electeur p { font-size: 14px; color: var(--text); }
.iso-carte-electeur .btn { margin-top: 12px; }

/* ---------- Ligues ---------- */
.iso-cartes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 18px 0 40px; }
.iso-carte-ligue { position: relative; display: grid; align-content: end; gap: 4px; min-height: 156px; padding: 66px 18px 16px; text-decoration: none; color: var(--ink);
  background: var(--kraft); border: var(--trait); border-radius: 10px; box-shadow: 0 5px 0 var(--ink); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.iso-carte-ligue::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 62px;
  background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) right / 50% 100% no-repeat; }
.iso-carte-ligue b { font-weight: 900; font-stretch: 62%; font-size: 32px; line-height: .95; overflow-wrap: anywhere; }
.iso-carte-ligue span { font-size: 14px; font-weight: 700; }
.iso-carte-ligue:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 8px 0 var(--ink); }
.iso-vide { color: var(--text); font-size: 17px; padding: 20px 22px; background: var(--paper); border: 2px dashed var(--metal-lo); border-radius: 18px; margin: 0 0 32px; max-width: 760px; }
.iso-formulaires { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.iso-form { display: grid; gap: 14px; align-content: start; }
.iso-form .iso-sous { margin-top: -6px; }
.iso-form .btn { justify-self: start; }
.iso-champs-ligue { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; }
.iso-champ-code input { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.iso-anonyme { max-width: 820px; }
.iso-anonyme .iso-reprise { margin: 20px 0 0; box-shadow: none; }
.iso-retour { display: inline-block; margin-bottom: 16px; font-weight: 700; color: var(--ink); }
.iso-ligue-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 26px; }
.iso-ligue-nom { color: var(--ink); font-size: clamp(44px, 6vw, 80px); font-weight: 900; font-stretch: 62%; line-height: .9; overflow-wrap: anywhere; }
.iso-ligue-meta { font-size: 17px; font-weight: 700; color: var(--ink); }
.iso-ligue-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.iso-invit { background: var(--jaune); }
.iso-invit .iso-h2 { font-size: 32px; }
.iso-invit p { margin-top: 10px; color: var(--ink); }
.iso-code-ligue { display: grid; gap: 6px; margin: 14px 0 18px; padding: 14px 16px; background: var(--paper); border: var(--trait); border-radius: 14px; }
.iso-code-ligue span { font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.iso-code-ligue code { font: 900 34px/1 'Archivo', sans-serif; font-stretch: 75%; letter-spacing: .16em; color: var(--ink); }
.iso-invit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* Accueil : « Ce qui a changé », tiré des sondages */
.actu { margin-top: 8px; margin-bottom: 36px; }
.actu-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.actu-tete h2 { font-size: 30px; font-weight: 900; font-stretch: 62%; }
.actu-tete p { color: var(--muted); font-size: 14px; }
.actu-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.actu-carte { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.actu-carte h3 { font-size: 15px; font-weight: 800; color: var(--muted); margin-bottom: 12px; }
.actu-tete-liste { list-style: none; display: grid; gap: 8px; }
.actu-tete-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.actu-tete-liste a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.actu-tete-liste .photo.mini { width: 34px; height: 41px; border-bottom: 3px solid var(--c); }
.actu-tete-liste a span { font-stretch: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actu-tete-liste li em { font-style: normal; font-weight: 900; font-stretch: 75%; font-variant-numeric: tabular-nums; }
.actu-second { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--text); }
.actu-mouv { list-style: none; display: grid; gap: 8px; }
.actu-mouv li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.actu-mouv a { color: var(--ink); text-decoration: none; font-stretch: 85%; }
.actu-mouv em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.actu-mouv em.up { color: var(--hi); }
.actu-mouv em.down { color: var(--lo); }
.actu-calme, .actu-note { font-size: 14px; color: var(--muted); }
.actu-note { margin-top: 12px; }
.actu-note a { color: var(--ink); }
.actu-jeu { background: var(--sticker); border-color: var(--ink); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.actu-jeu h3 { color: var(--ink); font-size: 22px; font-weight: 900; font-stretch: 62%; margin-bottom: 0; }
.actu-jeu p { font-size: 15px; flex: 1; }
.actu-jeu .btn { align-self: flex-start; }
@media (max-width: 860px) { .actu-grille { grid-template-columns: minmax(0, 1fr); } }

/* Sondages : toutes les personnalités sur une même courbe */
.globale { padding: 18px 20px 14px; }
.globale-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; }
.globale-legende a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.globale-legende i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.globale-legende b { font-variant-numeric: tabular-nums; }

/* Fiche candidat : sa place dans le jeu */
.fiche-isoloir { background: var(--sticker); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.fiche-isoloir a { color: var(--ink); font-weight: 700; }

/* « Depuis votre dépôt » : ce qui a bougé dans l'estimation du jour */
.iso-bouge { margin-top: 10px; padding: 10px 14px; background: var(--jaune-pale); border-radius: 12px; font-size: 15px; color: var(--text); }
.iso-bouge b { color: var(--ink); }
/* Bandeau de la manche en cours, au-dessus de « A voté » */
.iso-manche-bandeau { margin: 0 0 18px; padding: 12px 18px; background: var(--jaune); border: var(--trait); border-radius: 16px; color: var(--ink); font-size: 16px; }
.iso-manche-bandeau.urgent { background: var(--ink); color: #fff; }
/* Application installable : « Installer l'app » et le geste à faire sur iPhone (static/appli.js) */
.foot-inner .installer .lien-bouton { font-size: 13.5px; }
.foot-inner .aide-installer { display: block; margin-top: 4px; color: var(--text); }
.iso-hero .aide-installer { margin-top: 14px; max-width: 34em; font-size: 15px; color: var(--ink); }
.iso-joue .iso-hero .aide-installer { display: none; }
.iso-quitter { margin-top: 30px; }

/* ---------- Classements ---------- */
.iso-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 600px; margin: 4px auto 30px; }
.iso-podium-pl { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.iso-podium-pl .iso-avatar { width: 66px; height: 66px; font-size: 26px; box-shadow: 0 3px 0 var(--ink); }
.iso-podium-pseudo { font-weight: 800; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-podium-pts { font-size: 14px; font-weight: 700; color: var(--text); margin-top: -6px; }
.iso-marche { width: 100%; border: var(--trait); border-bottom: 0; border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 8px;
  font-weight: 900; font-stretch: 62%; font-size: 40px; color: var(--ink); }
.iso-podium-pl.p1 { order: 2; } .iso-podium-pl.p2 { order: 1; } .iso-podium-pl.p3 { order: 3; }
.p1 .iso-marche { height: 122px; background: var(--jaune); }
.p2 .iso-marche { height: 92px; background: #E3E7EC; }
.p3 .iso-marche { height: 68px; background: #EBCB9F; }
.iso-podium::after { content: ""; grid-column: 1 / -1; order: 4; border-top: var(--trait); margin-top: -10px; }
.iso-tableau { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iso-ligne { background: var(--paper); border: var(--trait); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); }
.iso-ligne.moi { background: var(--jaune-pale); }
.iso-ligne.vide { box-shadow: none; border-style: dashed; }
.iso-resume { display: grid; grid-template-columns: 38px 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; cursor: pointer; list-style: none; }
.iso-resume::-webkit-details-marker { display: none; }
.iso-ligne summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 16px; }
.iso-ligne.vide .iso-resume { cursor: default; }
.iso-rang { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-stretch: 62%; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.iso-rang.r1, .iso-rang.r2, .iso-rang.r3 { border: var(--trait); }
.iso-rang.r1 { background: var(--jaune); } .iso-rang.r2 { background: #E3E7EC; } .iso-rang.r3 { background: #EBCB9F; }
.iso-ligne.vide .iso-rang, .iso-ligne.vide .iso-pts b { color: var(--metal-lo); }
.iso-joueur { display: grid; min-width: 0; gap: 2px; }
.iso-pseudo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.iso-pseudo b { font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-pseudo em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; background: var(--ink); color: var(--jaune); padding: 2px 8px; border-radius: 999px; }
.iso-joueur small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iso-pts { display: grid; justify-items: end; line-height: 1; }
.iso-pts b { font-weight: 900; font-stretch: 62%; font-size: 32px; color: var(--ink); font-variant-numeric: tabular-nums; }
.iso-pts small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.iso-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 14px 16px 18px; border-top: 2px dashed var(--line); }
.iso-detail .iso-mini { margin-top: 0; }
.iso-ref { color: var(--text); font-size: 15.5px; margin-bottom: 26px; max-width: 62em; }
.iso-ref a { color: var(--ink); font-weight: 700; }
.iso-compteur { color: var(--ink); font-weight: 900; font-stretch: 70%; font-size: 24px; margin: 6px 0 14px; }

/* ---------- Règles ---------- */
.iso-regles { max-width: 1060px; }
.iso-regle { padding-bottom: 40px; }
.iso-regle + .iso-regle { padding-top: 40px; border-top: 2px dashed var(--line); }
.iso-regle .iso-sous { margin-top: 12px; }
.iso-bareme { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.iso-bareme li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--paper); border: var(--trait);
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 4px 0 var(--ink); font-size: 15px; }
.iso-bareme li > span:last-child b { display: block; color: var(--ink); font-weight: 900; font-stretch: 70%; font-size: 22px; margin-bottom: 2px; }
.iso-pastille { width: 72px; height: 72px; border-radius: 50%; background: var(--jaune); border: var(--trait); display: grid; place-content: center; text-align: center;
  line-height: .9; font-size: 12px; font-weight: 800; color: var(--ink); transform: rotate(-6deg); }
.iso-pastille b { font-weight: 900; font-stretch: 62%; font-size: 32px; }
.iso-ref-liste { list-style: none; margin: 22px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.iso-ref-liste li { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: var(--paper);
  border: 2px solid var(--line); border-radius: 14px; padding: 6px 12px 6px 8px; font-size: 15px; color: var(--ink); }
.iso-ref-liste li:nth-child(-n+2) { border-color: var(--ink); background: var(--jaune-pale); }
.iso-ref-rang { font-weight: 900; font-stretch: 62%; font-size: 20px; color: var(--metal-lo); text-align: right; }
.iso-ref-liste li:nth-child(-n+2) .iso-ref-rang { color: var(--ink); }
.iso-ref-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-ref-nom b { text-transform: uppercase; font-weight: 900; }
.iso-ref-pct { font-weight: 800; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.iso-ref-second { font-weight: 800; color: var(--ink); font-size: 17px; }
.iso-regles-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.iso-regles-duo .iso-h2 { margin-bottom: 12px; font-size: 32px; }
.iso-regles-duo p + p { margin-top: 10px; }

/* ---------- Écrans plus étroits ---------- */
@media (max-width: 1180px) {
  .isoloir-entree { margin-left: auto; }
  nav a.retour-site { margin-left: 0; }
}
@media (max-width: 960px) {
  .iso-hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .iso-hero-txt { padding-bottom: 18px; }
  .iso-hero-illu { width: 100%; max-width: 460px; justify-self: center; }
  .iso-grille, .iso-ligue-grille, .iso-detail, .iso-formulaires, .iso-regles-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .iso-accroche { font-size: 17px; margin-top: 18px; }
  .iso-hero-actions { margin-top: 22px; }
  .iso-etapes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .iso-etapes::before { left: 27px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 3px dotted var(--ink); }
  .iso-etapes li { padding: 2px 0 0 76px; min-height: 58px; }
  .iso-etapes b { font-size: 24px; }
  .iso-carte, .iso-face, .iso-panneau, .iso-avote, .iso-carte-electeur { border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .iso-carte, .iso-face, .iso-panneau { padding: 22px 16px 18px; }
  .iso-item { grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; }
  .iso-pos { font-size: 26px; }
  .iso-slip { grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px 6px 2px; }
  .iso-slip .iso-visage { width: 40px; height: 40px; }
  .iso-est { display: none; }
  .iso-slip-nom > span { font-size: 16px; }
  .iso-duel { gap: 8px; }
  .iso-combattant { padding: 14px 6px 12px; border-radius: 16px; }
  .iso-combattant .photo.iso-visage.grand { width: 78px; height: 78px; }
  .iso-combattant-nom { font-size: 15px; }
  .iso-combattant-nom b { font-size: 19px; }
  .iso-combattant-nom b { font-size: clamp(14px, 5.2vw, 19px); font-stretch: 62%; letter-spacing: -.01em; }
  .iso-contre { font-size: 20px; }
  .iso-score { grid-template-columns: minmax(0, 1fr) 76px; }
  .iso-score label { grid-column: 1 / -1; margin-bottom: -8px; }
  .iso-champs, .iso-champs-ligue { grid-template-columns: minmax(0, 1fr); }
  .iso-champs .btn { justify-self: start; }
  .iso-avote { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 16px; align-items: start; }
  .iso-tampon { font-size: 34px; border-width: 5px; padding: 4px 12px 6px; }
  .iso-avote-txt h2 { margin-top: 14px; }
  .iso-carte-electeur { padding: 18px 16px 16px 36px; }
  .iso-carte-electeur::before { width: 16px; }
  .iso-cases span { width: 88px; height: 58px; }
  .iso-resume { grid-template-columns: 32px 36px minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px 10px 8px; }
  .iso-avatar { width: 36px; height: 36px; font-size: 15px; }
  .iso-rang { width: 30px; height: 30px; font-size: 18px; }
  .iso-pts b { font-size: 26px; }
  .iso-podium-pl .iso-avatar { width: 52px; height: 52px; font-size: 21px; }
  .iso-marche { font-size: 32px; }
  .p1 .iso-marche { height: 96px; } .p2 .iso-marche { height: 72px; } .p3 .iso-marche { height: 54px; }
  .iso-bandeau-urne { width: 88px; }
  .iso-bandeau-in > div { padding-bottom: 22px; }
  .iso-bareme { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .top-ligne { gap: 8px; }
  .logo { font-size: 18px; gap: 8px; }
  .flag { width: 22px; height: 16px; }
  .langue { padding: 6px 8px; }
  .isoloir-entree .le, .isoloir-entree .iso-picto { display: none; }
  .isoloir-entree { font-size: 13.5px; padding: 7px 11px; }
  .iso-logo { font-size: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .iso-item, .iso-slip, .iso-option, .iso-combattant, .iso-carte-ligue, .btn.iso-cta, .iso-jauge i, .iso-barre i { transition: none; }
  .iso-carte.entree, .anime .iso-chute, .anime .iso-tampon { animation: none; }
  .iso-confettis { display: none; }
}

/* ---------- P'tit Isoloir, version 2 : estimation du jour, comptes, manches ---------- */
.iso-liste-tete { display: flex; justify-content: space-between; gap: 12px; padding: 0 58px 8px 52px; font-size: 13px; font-weight: 800; color: var(--ink); }
.iso-item.hors .iso-slip { background: #F6F7F9; border-style: dashed; box-shadow: none; }
.iso-item.hors .iso-pos { color: #C7CCD3; }
.iso-item.hors .iso-visage { filter: grayscale(.6); opacity: .85; }
.iso-est:empty, .iso-item.hors .iso-est { color: var(--muted); }
.iso-onglets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-bottom: 4px; }
.iso-onglets::-webkit-scrollbar { display: none; }
.iso-onglets .chip { flex: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 2px var(--ink); }
.iso-onglets .chip.on { background: var(--ink); color: var(--jaune); }
.iso-vue-note { margin: 4px 0 18px; max-width: 54em; }
.iso-decompte .provisoire dt { color: var(--muted); font-style: italic; }
.iso-decompte .total { border-bottom: 0; padding-top: 11px; }
.iso-decompte .total dt { font-weight: 800; color: var(--ink); }
.iso-decompte .total dd { font-size: 18px; }
.iso-inscription { margin-bottom: 18px; }
.iso-inscription .iso-sous { margin-bottom: 14px; }
.iso-champs-inscription { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.iso-champs-inscription .iso-champ { max-width: none; }
.iso-connexion { max-width: 860px; }
.iso-oubli-lien { margin-top: 6px; }
.iso-oubli { margin-top: 12px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 15px; color: var(--ink); max-width: 46em; }
.iso-carte-lignes dd.iso-email { font-size: 16px; font-weight: 700; }
.iso-carte-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.iso-carte-electeur .iso-carte-actions .btn { margin-top: 0; }
.iso-supprimer { color: #B23329; }
.iso-form-mdp { max-width: 560px; }
.iso-form-mdp .iso-champ { max-width: none; }
.iso-repartition { display: grid; grid-template-columns: 2fr 1fr 1fr; margin: 20px 0 14px; border: var(--trait); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); }
.iso-repartition span { display: grid; align-content: center; gap: 2px; padding: 16px 18px; font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.2; }
.iso-repartition b { font-weight: 900; font-stretch: 62%; font-size: 44px; line-height: 1; }
.iso-repartition b::after { content: " pts"; font-size: 15px; font-stretch: 100%; font-weight: 700; }
.iso-part-mois { background: var(--jaune); }
.iso-part-t1 { background: #DCE6F7; border-left: var(--trait); }
.iso-part-t2 { background: #F7DCDC; border-left: var(--trait); }
.iso-dates { list-style: none; margin: 18px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.iso-dates li { padding: 8px 14px; border: var(--trait); border-radius: 999px; background: var(--paper); font-weight: 800; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 760px) {
  .iso-liste-tete { padding: 0 44px 8px 34px; }
  .iso-slip { grid-template-columns: 24px 40px minmax(0, 1fr) auto auto; }
  .iso-est { display: inline-block; font-size: 12.5px; padding: 2px 7px; }
  .iso-slip-nom > span { white-space: normal; line-height: 1.15; }
  .iso-slip-nom small { display: none; }
  .iso-champs-inscription { grid-template-columns: minmax(0, 1fr); }
  .iso-repartition { grid-template-columns: minmax(0, 1fr); }
  .iso-part-t1, .iso-part-t2 { border-left: 0; border-top: var(--trait); }
}

/* Deux déplacements par mois */
.iso-deplacements { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin: 0 0 16px;
  padding: 12px 16px; background: var(--jaune-pale); border: var(--trait); border-radius: 14px; color: var(--ink); font-size: 15px; }
.iso-deplacements.trop { background: #FBE3E1; border-color: #B23329; }
.iso-deplacements p { flex: 1 1 22em; }
.iso-item.deplace .iso-slip { background: #FFF8DC; box-shadow: inset 0 0 0 3px var(--jaune), 0 3px 0 var(--ink); }
.iso-avertissement { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--jaune); background: var(--paper); color: var(--ink); font-size: 15px; max-width: 46em; }
