/* ==========================================================
   Programmes 2027 — thème « jaune, gras, bordé de noir »
   Mobile first.
   ========================================================== */
:root {
  --jaune: #FFD23F;
  --jaune-fonce: #F5C211;
  --encre: #121212;
  --creme: #FFF7D6;
  --blanc: #FFFFFF;
  --rose: #FF7EB6;
  --rouge: #F23A2E;
  --vert: #20C997;
  --gris: #5b5b5b;
  --bord: 3px solid var(--encre);
  --ombre: 5px 5px 0 var(--encre);
  --ombre-sm: 3px 3px 0 var(--encre);
  --radius: 18px;
  --radius-sm: 12px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--encre);
  background-color: var(--jaune);
  background-image: radial-gradient(rgba(0,0,0,.13) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--blanc); padding: 8px 12px; border: var(--bord); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }

/* ---------- Bandeau défilant ---------- */
.ticker {
  background: var(--encre);
  color: var(--blanc);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 0;
}
.ticker__track { display: inline-block; padding-left: 100%; animation: defile 40s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; padding-left: 16px; } }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--jaune);
  border-bottom: var(--bord);
}
.logo {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--encre); color: var(--jaune);
  font-family: var(--mono); font-weight: 700; text-decoration: none;
}
.topnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  flex: none;
  text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: 7px 11px; border: var(--bord); border-radius: 999px;
  background: var(--blanc); box-shadow: var(--ombre-sm);
}
.topnav a.actif { background: var(--encre); color: var(--jaune); }
.countdown { display: none; }

@media (min-width: 720px) {
  .countdown {
    display: block; margin-left: auto;
    background: var(--blanc); border: var(--bord); border-radius: 14px;
    box-shadow: var(--ombre-sm); padding: 6px 14px;
    font-family: var(--mono); font-size: .85rem; line-height: 1.35;
  }
  .countdown b { color: var(--rouge); }
}
.dot-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); border: 2px solid var(--encre); margin-right: 6px; vertical-align: -1px; }

/* ---------- Mise en page ---------- */
main { display: block; max-width: 1100px; margin: 0 auto; padding: 22px 16px 120px; outline: none; }
.section { margin-top: 30px; }
.section-titre {
  font-family: var(--mono); font-size: .85rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px;
}

/* ---------- Pastilles / étiquettes ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--encre); color: var(--jaune);
  font-family: var(--mono); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 10px;
  transform: rotate(-1.5deg);
}
.pill .dot-live { border-color: var(--encre); }

/* ---------- Héros ---------- */
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.8rem); font-weight: 700; margin-top: 16px; }
.surligne-rose { background: var(--rose); border-radius: 10px; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.surligne-noir { background: var(--encre); color: var(--jaune); border-radius: 10px; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.chapo { font-size: 1.12rem; margin: 16px 0 0; max-width: 46ch; }
.chip-inline { display: inline-block; border: 2.5px solid var(--encre); background: var(--creme); border-radius: 10px; padding: 0 8px; font-weight: 700; }

/* ---------- Carte ---------- */
.carte {
  background: var(--blanc);
  border: var(--bord);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 18px;
}
.carte--creme { background: var(--creme); }

/* ---------- Panneau sombre « live » ---------- */
.panneau {
  background: var(--encre); color: var(--creme);
  border-radius: var(--radius); padding: 18px;
  border: 3px solid #6b5a12;
  box-shadow: inset 0 0 0 3px var(--encre), var(--ombre);
  font-family: var(--mono);
}
.panneau__titre { display: flex; justify-content: space-between; color: var(--rose); letter-spacing: .14em; font-weight: 700; font-size: .85rem; }
.panneau__titre .live { color: var(--vert); }
.panneau__gros { font-size: clamp(2.4rem, 13vw, 4rem); font-weight: 700; color: var(--jaune); margin: 6px 0 2px; line-height: 1; }
.panneau__sous { font-size: .9rem; color: var(--creme); }
.panneau hr { border: 0; border-top: 1.5px dashed #6b5a12; margin: 12px 0; }
.panneau__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .9rem; }
.panneau__stats b { color: var(--jaune); }
.panneau__stats span { color: #c9b77a; }

/* ---------- Étapes « en trois lignes » ---------- */
.etapes { display: grid; gap: 12px; }
.etape { display: flex; gap: 14px; align-items: flex-start; background: var(--creme); border: var(--bord); border-radius: var(--radius-sm); padding: 14px; }
.etape__num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: var(--jaune); display: grid; place-items: center; font-weight: 700; font-family: var(--mono); font-size: .9rem; }

/* ---------- Spectre politique ---------- */
.spectre { position: relative; padding: 4px 0 0; }
.spectre__barre {
  height: 16px; border: var(--bord); border-radius: 999px;
  background: linear-gradient(90deg, #B5001B, #DD0000 18%, #F0457E 32%, #F2B705 50%, #1D3E8F 64%, #0066CC 74%, #0D2F6E 92%);
}
.spectre__labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; font-weight: 700; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }

.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  flex: none; border: var(--bord); border-radius: 999px; background: var(--blanc);
  padding: 7px 13px; font-weight: 700; font-size: .88rem; box-shadow: var(--ombre-sm);
  display: inline-flex; align-items: center; gap: 7px;
}
.filtre[aria-pressed="true"] { background: var(--encre); color: var(--jaune); }
.filtre .pastille { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--encre); }

.recherche { display: flex; gap: 10px; margin: 6px 0 12px; }
.recherche input {
  flex: 1; min-width: 0; font: inherit; font-weight: 500;
  border: var(--bord); border-radius: 14px; padding: 11px 14px; background: var(--blanc);
  box-shadow: var(--ombre-sm);
}
.toggle { display: inline-flex; border: var(--bord); border-radius: 999px; background: var(--encre); padding: 3px; gap: 3px; }
.toggle button { border: 0; border-radius: 999px; background: transparent; color: var(--creme); padding: 7px 12px; font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.toggle button[aria-pressed="true"] { background: var(--jaune); color: var(--encre); }

/* ---------- Grille candidats ---------- */
.grille { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grille { grid-template-columns: 1fr 1fr 1fr; } }

.cand {
  position: relative; display: flex; flex-direction: column;
  background: var(--blanc); border: var(--bord); border-radius: var(--radius);
  box-shadow: var(--ombre); overflow: hidden; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cand:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--encre); }
.cand:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--encre); }
.cand__bande { height: 12px; background: var(--c); border-bottom: var(--bord); }
.cand__corps { display: flex; gap: 14px; padding: 14px; align-items: center; }
.cand__infos { min-width: 0; flex: 1; }
.cand__nom { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.1; text-decoration: none; }
.cand__nom::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cand__nom:focus-visible { outline: none; }
.cand:has(.cand__nom:focus-visible) { outline: 3px solid var(--rouge); outline-offset: 3px; }
.cand__prenom { display: block; font-size: .95rem; font-weight: 500; }
.cand__slogan { font-style: italic; color: var(--gris); font-size: .9rem; padding: 0 14px 12px; margin: -4px 0 0; }
.cand__pied { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; border-top: 2px dashed var(--encre); background: var(--creme); margin-top: auto; }
.cand__ajout {
  position: relative; z-index: 1;
  margin-left: auto; border: var(--bord); border-radius: 10px; background: var(--blanc);
  font-weight: 700; font-size: .8rem; padding: 4px 10px; box-shadow: 2px 2px 0 var(--encre);
}
.cand__ajout[aria-pressed="true"] { background: var(--rouge); color: var(--blanc); }

.avatar {
  flex: none; position: relative;
  width: 76px; height: 76px; border-radius: 50%;
  border: var(--bord); background: var(--c, #ddd); overflow: hidden;
  display: grid; place-items: center;
  box-shadow: var(--ombre-sm);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.avatar__init { font-family: var(--mono); font-weight: 700; color: var(--blanc); font-size: 1.4rem; text-shadow: 1px 1px 0 var(--encre); }
.avatar--xl { width: 128px; height: 128px; }
.avatar--sm { width: 44px; height: 44px; border-width: 2.5px; box-shadow: none; }
.avatar--sm .avatar__init { font-size: .85rem; }

.parti {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--c); color: var(--ct, #fff);
  border: 2.5px solid var(--encre); border-radius: 8px; padding: 2px 8px;
  max-width: 100%;
}
.tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid var(--encre); border-radius: 8px; padding: 1px 7px; background: var(--blanc);
}
.tag--complet { background: var(--vert); }
.tag--partiel { background: var(--jaune); }
.tag--non { background: #e9e4d4; color: #555; }
.meta-ligne { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- Fiche candidat ---------- */
.fiche__tete { position: relative; overflow: hidden; padding: 0; }
.fiche__fond { height: 92px; background: var(--c); border-bottom: var(--bord); background-image: radial-gradient(rgba(255,255,255,.25) 1.4px, transparent 1.5px); background-size: 16px 16px; }
.fiche__id { padding: 0 18px 18px; margin-top: -64px; }
.fiche__id h1 { font-size: clamp(2rem, 9vw, 3rem); margin-top: 12px; }
.fiche__slogan { font-size: 1.15rem; font-weight: 700; margin: 10px 0 0; }
.fiche__bio { margin: 10px 0 0; }
.actions { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 560px) { .actions { grid-template-columns: 1fr 1fr; } }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: var(--bord); border-radius: 16px; background: var(--blanc);
  box-shadow: var(--ombre); padding: 14px 18px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--encre); }
.btn--rouge { background: var(--rouge); color: var(--blanc); font-size: 1.3rem; flex-direction: column; gap: 2px; }
.btn--rouge small { font-family: var(--mono); font-weight: 400; font-size: .78rem; letter-spacing: .04em; }
.btn--noir { background: var(--encre); color: var(--jaune); }

.phares { counter-reset: ph; }

/* Accordéons par thème */
.theme-bloc { border: var(--bord); border-radius: var(--radius-sm); background: var(--blanc); margin-bottom: 12px; overflow: hidden; }
.theme-bloc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 14px; font-weight: 700; font-size: 1.05rem; background: var(--creme);
}
.theme-bloc summary::-webkit-details-marker { display: none; }
.theme-bloc summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 1.3rem; }
.theme-bloc[open] summary::after { content: "–"; }
.theme-bloc[open] summary { border-bottom: 2px dashed var(--encre); }
.theme-bloc .compte { font-family: var(--mono); font-size: .75rem; background: var(--encre); color: var(--jaune); border-radius: 6px; padding: 1px 6px; }
.prop { padding: 14px; border-bottom: 1.5px solid #eee3bd; }
.prop:last-child { border-bottom: 0; }
.prop h4 { margin: 0; font-size: 1.02rem; }
.prop p { margin: 4px 0 0; }
.source { font-family: var(--mono); font-size: .75rem; color: var(--gris); text-decoration: underline; word-break: break-all; display: inline-block; margin-top: 4px; }
.vide { font-family: var(--mono); font-size: .85rem; color: var(--gris); padding: 14px; }

/* ---------- Comparateur ---------- */
.selecteur { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin; }
.sel {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 74px; padding: 6px 2px; border: 2.5px solid transparent; border-radius: 14px; background: transparent;
  font-size: .72rem; font-weight: 700; line-height: 1.1; text-align: center;
}
.sel[aria-pressed="true"] { background: var(--blanc); border-color: var(--encre); box-shadow: var(--ombre-sm); }
.sel[aria-pressed="false"] .avatar { filter: grayscale(.85); opacity: .75; }

.onglets { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: none; position: sticky; top: 66px; z-index: 5; background: var(--jaune); }
.onglets::-webkit-scrollbar { display: none; }

.compare-scroll { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: thin; }
.compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 14px; }
@media (min-width: 720px) { .compare { grid-auto-columns: minmax(260px, 1fr); } }
.col { scroll-snap-align: start; background: var(--blanc); border: var(--bord); border-radius: var(--radius); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.col__tete { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: var(--bord); background: var(--c); color: var(--ct, #fff); }
.col__tete a { text-decoration: none; font-weight: 700; line-height: 1.1; }
.col__tete .avatar { box-shadow: none; }
.col__corps { padding: 0; }
.col .prop { padding: 12px; }

.matrice { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.matrice-wrap { overflow-x: auto; border: var(--bord); border-radius: var(--radius); background: var(--blanc); box-shadow: var(--ombre); }
.matrice th, .matrice td { padding: 10px 12px; border-bottom: 1.5px solid #eee3bd; text-align: left; vertical-align: top; min-width: 120px; }
.matrice thead th { background: var(--creme); border-bottom: var(--bord); font-size: .85rem; }
.matrice tbody th { position: sticky; left: 0; background: var(--creme); z-index: 1; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; border-right: 2px solid var(--encre); min-width: 110px; max-width: 130px; }
.matrice thead th:first-child { position: sticky; left: 0; z-index: 2; border-right: 2px solid var(--encre); }
.matrice tr:last-child td, .matrice tr:last-child th { border-bottom: 0; }
.th-cand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.inconnu { color: #aaa; font-family: var(--mono); }

/* ---------- Thèmes ---------- */
.themes-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) { .themes-grille { grid-template-columns: repeat(5, 1fr); } }
.theme-tuile {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--blanc); border: var(--bord); border-radius: var(--radius-sm); box-shadow: var(--ombre-sm);
  padding: 14px; font-weight: 700; min-height: 110px;
}
.theme-tuile .emoji { font-size: 1.8rem; }
.theme-tuile small { font-family: var(--mono); font-weight: 400; font-size: .72rem; color: var(--gris); margin-top: auto; }

.ligne-cand { display: flex; gap: 12px; padding: 14px; border-bottom: 1.5px solid #eee3bd; }
.ligne-cand:last-child { border-bottom: 0; }
.ligne-cand__corps { min-width: 0; flex: 1; }
.ligne-cand__nom { font-weight: 700; text-decoration: none; }

/* ---------- Panier comparateur (barre collante) ---------- */
.tray {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 640px; margin: 0 auto;
}
.tray .btn--rouge { width: 100%; flex-direction: row; justify-content: space-between; padding: 10px 14px; font-size: 1.15rem; }
.tray__avatars { display: flex; }
.tray__avatars .avatar { margin-left: -10px; border-color: var(--blanc); }
.tray__avatars .avatar:first-child { margin-left: 0; }

/* ---------- Divers ---------- */
.alerte { border: var(--bord); border-radius: var(--radius-sm); background: var(--creme); padding: 12px 14px; font-size: .92rem; }
.alerte b { font-family: var(--mono); }
.footer { max-width: 1100px; margin: 0 auto; padding: 24px 16px 110px; border-top: var(--bord); }
.footer p { margin: 4px 0; }
.lien-retour { display: inline-block; font-family: var(--mono); font-weight: 700; text-decoration: none; margin-bottom: 14px; }
.chargement { font-family: var(--mono); padding: 40px 0; text-align: center; }
.prose h2 { margin: 22px 0 8px; font-size: 1.4rem; }
.prose p, .prose li { max-width: 68ch; }
.prose code { font-family: var(--mono); background: var(--creme); border: 1.5px solid var(--encre); border-radius: 6px; padding: 0 5px; font-size: .85em; }

/* ---------- Biographie ---------- */
.sous-titre { font-size: 1.1rem; margin: 20px 0 10px; }
.faits { margin: 0; display: grid; gap: 10px; }
.faits > div { background: var(--creme); border: 2.5px solid var(--encre); border-radius: var(--radius-sm); padding: 10px 12px; }
.faits dt { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.faits dd { margin: 2px 0 0; font-weight: 500; }
@media (min-width: 720px) { .faits { grid-template-columns: repeat(3, 1fr); } }
.parcours { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--encre); display: grid; gap: 10px; }
.parcours li { position: relative; display: flex; flex-direction: column; }
.parcours li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--c, var(--jaune)); border: 2.5px solid var(--encre); }
.parcours__date { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--gris); }
.bio-texte p { margin: 0 0 10px; }
.suite summary { cursor: pointer; font-weight: 700; text-decoration: underline; margin-bottom: 10px; }
.credit { color: var(--gris); margin: 14px 0 0; }
.liste-simple { margin: 0; padding-left: 18px; }
.liste-simple li { margin: 4px 0; }

/* ---------- Parrainages ---------- */
.cand__parr { padding: 0 14px 12px; }
.jauge { margin-top: 6px; }
.jauge__barre { height: 14px; border: 2.5px solid var(--encre); border-radius: 999px; background: var(--blanc); overflow: hidden; }
.jauge__barre span { display: block; height: 100%; background: var(--c, var(--jaune)); border-right: 2.5px solid var(--encre); }
.jauge--ok .jauge__barre span { background: var(--vert); }
.jauge__texte { font-size: .78rem; margin-top: 3px; }
.spark { width: 100%; height: 80px; margin-top: 10px; }
.spark__ligne { fill: none; stroke: var(--encre); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark__seuil { stroke: var(--rouge); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }

@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .logo { width: 38px; height: 38px; font-size: .9rem; }
  .topnav { gap: 5px; }
  .topnav a { padding: 6px 9px; font-size: .8rem; box-shadow: 2px 2px 0 var(--encre); }
}
@media (max-width: 420px) { .logo { display: none; } }
@media (max-width: 380px) { .topnav a { padding: 6px 7px; font-size: .76rem; } }

.source--sombre { color: #c9b77a; margin: 0; }

.avatar__silhouette { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255,255,255,.55); }
.avatar__init--petit { position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; font-size: .7rem !important; letter-spacing: .05em; }
.avatar--sm .avatar__init--petit { display: none; }

/* ---------- Duels ---------- */
.duels { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .duels { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .duels { grid-template-columns: 1fr 1fr 1fr; } }
.duel { display: flex; align-items: center; gap: 10px; background: var(--blanc); border: var(--bord); border-radius: var(--radius-sm); box-shadow: var(--ombre-sm); padding: 8px 12px; text-decoration: none; font-weight: 500; }
.duel b { font-family: var(--mono); font-size: .8rem; }
.duel__avatars { display: flex; }
.duel__avatars .avatar + .avatar { margin-left: -12px; }
.footer-liens { columns: 2; column-gap: 18px; font-size: .85rem; padding: 0; list-style: none; margin: 10px 0 16px; }
@media (min-width: 720px) { .footer-liens { columns: 4; } }
.footer-liens li { break-inside: avoid; margin: 2px 0; }
.footer h2 { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 0; }

/* ---------- Liste officielle ---------- */
.liste-officielle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .liste-officielle { grid-template-columns: 1fr 1fr; } }
.liste-officielle a, .lo-sans { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--creme); border: 2.5px solid var(--encre); border-radius: var(--radius-sm); padding: 6px 10px; }
.lo-sans { min-height: 58px; }
.liste-officielle b { font-family: var(--mono); }

.section-titre a { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 700; }
.candidatures td, .candidatures th { min-width: 0; }
.candidatures tbody th { max-width: none; text-transform: none; font-family: var(--sans); font-size: .92rem; letter-spacing: 0; }
.candidatures .th-cand { text-decoration: none; white-space: normal; }

/* ---------- Positions (40 propositions) et boussole ---------- */
.niveau { display: inline-block; white-space: nowrap; font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: 2px solid var(--encre); border-radius: 8px; padding: 2px 7px; }
.niveau--2 { background: #20C997; }
.niveau--1 { background: #BDEFD9; }
.niveau--0 { background: #ECE7D8; color: #3d3d3d; }
.niveau--m1 { background: #FFD1E3; }
.niveau--m2 { background: #FF7EB6; }
.pos { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-bottom: 1.5px solid #eee3bd; }
.pos:last-child { border-bottom: 0; }
.pos__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pos__texte span { font-size: .92rem; }
.pos__indicatif { font-family: var(--mono); font-size: .72rem; color: var(--gris); }
.boussole-bloc { display: grid; gap: 18px; }
@media (min-width: 720px) { .boussole-bloc { grid-template-columns: 300px 1fr; align-items: start; } .boussole-bloc--large { grid-template-columns: minmax(300px, 460px) 1fr; } }
.boussole { width: 100%; max-width: 460px; height: auto; display: block; }
.boussole__fond { fill: var(--creme); stroke: var(--encre); stroke-width: 3; rx: 14; }
.boussole__axe { stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .5; }
.boussole__lib { font-family: var(--mono); font-size: 10px; font-weight: 700; fill: var(--encre); }
.bp__cible { fill: transparent; }
.bp__point { stroke: #fff; stroke-width: 2; }
.bp--focus .bp__point { stroke: var(--encre); stroke-width: 3; }
.bp:hover .bp__point, .bp:focus .bp__point { stroke: var(--encre); stroke-width: 3; }
.bp__nom { font-family: var(--sans); font-size: 10.5px; font-weight: 700; fill: var(--encre); paint-order: stroke; stroke: var(--creme); stroke-width: 3px; }
.bp__nom--focus { font-size: 13px; }
.bp__noms { pointer-events: none; }
.proches { display: grid; gap: 8px; }
.proche { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--blanc); border: 2.5px solid var(--encre); border-radius: var(--radius-sm); padding: 6px 10px; }
.proche b { margin-left: auto; font-family: var(--mono); }
.matrice--pos tbody th { text-transform: none; font-family: var(--sans); font-size: .85rem; letter-spacing: 0; font-weight: 700; }
.matrice--pos .ligne-theme th { background: var(--encre); color: var(--jaune); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; position: static; }
.niveau--ne { background: transparent; border-style: dashed; color: var(--gris); }
.bp__trait { stroke: var(--encre); stroke-width: 1.5; }
