/* Polices hébergées sur le site (licence SIL Open Font License) : aucune requête vers un service tiers. */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/libre-franklin-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/libre-franklin-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/libre-franklin-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/libre-franklin-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/libre-franklin-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/libre-franklin-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Encre et papier d'hémicycle : un seul monde graphique, aucune couleur de parti.
     Mise en page : colonne de lecture étroite pour voter, colonne large pour les résultats. */
  --bg: #eceef2;
  --surface: #ffffff;
  --ink: #141821;
  --muted: #586071;
  --line: #d4d9e1;
  --accent: #2b3a5c;
  --accent-soft: #e3e8f2;
  --pour: #1f7a4f;
  --pour-soft: #e1f1e8;
  --contre: #b0372d;
  --contre-soft: #f7e3e0;
  --abst: #737b89;
  --abst-soft: #e9ebef;
  --seat: #c3c9d3;
  --fr-bleu: #000091;
  --logo: #000000;
  --fr-rouge: #e1000f;
  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #181d26; --ink: #e9ecf2; --muted: #a3abb9; --line: #2d3441;
    --accent: #a9b8d8; --accent-soft: #232c3d;
    --pour: #5cc08f; --pour-soft: #16301f; --contre: #ec7d72; --contre-soft: #3a1d1a;
    --abst: #9aa2b0; --abst-soft: #262b34; --seat: #3a4251;
    --fr-bleu: #8585f6; --fr-rouge: #ff5655; --logo: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #181d26; --ink: #e9ecf2; --muted: #a3abb9; --line: #2d3441;
  --accent: #a9b8d8; --accent-soft: #232c3d;
  --pour: #5cc08f; --pour-soft: #16301f; --contre: #ec7d72; --contre-soft: #3a1d1a;
  --abst: #9aa2b0; --abst-soft: #262b34; --seat: #3a4251;
  --fr-bleu: #8585f6; --fr-rouge: #ff5655; --logo: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ── En-tête ── */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand svg { width: 40px; height: 24px; flex: none; margin-top: -3px; }
.brand svg circle { fill: var(--logo); }
.brand svg circle.siege { fill: var(--fr-rouge); }
.brand .b-bleu { color: var(--fr-bleu); }
.brand .b-rouge { color: var(--fr-rouge); }
.top nav { display: flex; gap: 6px; }
.linkbtn {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  background: none; border: 1px solid transparent; color: var(--muted);
  padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.linkbtn:hover { color: var(--ink); border-color: var(--line); }

main.wrap { padding-top: 40px; padding-bottom: 96px; }
.view[hidden] { display: none !important; }

/* ── Boutons ── */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--surface);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }

/* ── Accueil ── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 12px 0 36px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin-top: 18px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero .meta { font-family: var(--font-display); font-size: 0.88rem; color: var(--muted); }
.hemi { width: 100%; height: auto; display: block; }
.hemi circle { fill: var(--seat); }
.hemi circle:not(.halo) { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.2, .8, .2, 1), fill .5s ease; }
.hemi circle.lit { fill: var(--accent); transform: scale(1.9); }
.hemi .halo { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.hemi .halo.pulse { animation: halo 1.4s ease-out; }
@keyframes halo { from { opacity: .75; transform: scale(1.4); } to { opacity: 0; transform: scale(5); } }
.hemi-cap { text-align: center; font-family: var(--font-display); font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.step { display: grid; gap: 8px; }
.step .n { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--accent); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

.pledge { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pledge h2 { font-size: 1.1rem; margin-bottom: 12px; }
.pledge ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }

/* ── Questionnaire ── */
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-family: var(--font-display); font-size: 0.88rem; color: var(--muted); }
.bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s ease; }
.count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.tag.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.q-title { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 750; letter-spacing: -0.015em; }
.q-context { margin-top: 14px; color: var(--muted); max-width: 62ch; }

details.args { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
details.args summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px; }
details.args summary::-webkit-details-marker { display: none; }
details.args summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.95rem; line-height: 1; }
details.args[open] summary::before { content: "–"; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.side { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); }
.side h4 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.side.p h4 { color: var(--pour); }
.side.c h4 { color: var(--contre); }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.side li { font-size: 0.97rem; }
.side .who { display: block; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.side .info { color: var(--muted); font-style: italic; }

.vote { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.vbtn {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  padding: 18px 12px; border-radius: 12px; cursor: pointer; border: 2px solid; background: var(--surface);
  transition: background .12s ease, transform .12s ease;
}
.vbtn:hover { transform: translateY(-1px); }
.vbtn.p { border-color: var(--pour); color: var(--pour); }
.vbtn.p:hover, .vbtn.p[aria-pressed="true"] { background: var(--pour); color: var(--surface); }
.vbtn.c { border-color: var(--contre); color: var(--contre); }
.vbtn.c:hover, .vbtn.c[aria-pressed="true"] { background: var(--contre); color: var(--surface); }
.subvote { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.subvote .linkbtn[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* ── Résultats ── */
.res-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 24px; }
.res-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.res-head p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.winner { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.winner .pct { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.winner .who { font-family: var(--font-display); }
.winner .who b { display: block; font-size: 1.35rem; }
.winner .who span { color: var(--muted); }
.winner-note { margin-top: 14px; color: var(--muted); font-size: 0.97rem; }

.ranking { margin-top: 22px; display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 26px minmax(170px, 1.1fr) 2fr 64px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .rk { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .nm { font-family: var(--font-display); line-height: 1.25; }
.row .nm b { font-size: 0.98rem; }
.row .nm small { display: block; color: var(--muted); font-size: 0.8rem; }
.track { height: 12px; background: var(--abst-soft); border-radius: 99px; overflow: hidden; }
.track > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.row .v { font-family: var(--font-display); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.row .v small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 10px; }
.panel p, .panel li { color: var(--muted); font-size: 0.97rem; }
.panel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.big { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.section-title { font-size: 1.4rem; margin: 40px 0 6px; }
.section-sub { color: var(--muted); margin-bottom: 18px; }

.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-top: 14px; }
.item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.item h3 { font-size: 1.15rem; font-weight: 750; }
.item .facts { margin-top: 8px; font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }
.pill { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.pour { background: var(--pour-soft); color: var(--pour); }
.pill.contre { background: var(--contre-soft); color: var(--contre); }
.pill.abst, .pill.neutre { background: var(--abst-soft); color: var(--abst); }
.pill.ok { background: var(--accent-soft); color: var(--accent); }

.gtable { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 6px; }
.gcell { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: var(--font-display); font-size: 0.82rem; }
.gcell.same { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.gcell b { font-weight: 700; }
.gcell .cnt { grid-column: 1 / -1; color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.legend { margin-top: 8px; font-family: var(--font-display); font-size: 0.78rem; color: var(--muted); }

.why { margin-top: 16px; }
.why h4 { font-size: 0.95rem; margin-bottom: 4px; }
.note { margin-top: 12px; font-size: 0.93rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.sources { margin-top: 12px; font-family: var(--font-display); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Méthode ── */
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.prose h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 8px 0 0; }
.formula { font-family: var(--font-display); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 10px; font-size: 0.95rem; }
.list-votes { margin-top: 12px; overflow-x: auto; }
.list-votes table { border-collapse: collapse; width: 100%; font-size: 0.88rem; font-family: var(--font-display); }
.list-votes th, .list-votes td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list-votes th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.list-votes td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-family: var(--font-display); font-size: 0.82rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--surface); font-family: var(--font-display); font-size: 0.9rem; padding: 10px 16px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.toast.on { opacity: 1; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .res-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  .two { grid-template-columns: 1fr; }
  .row { grid-template-columns: 22px 1fr 54px; }
  .row .track { grid-column: 2 / 4; grid-row: 2; }
  .item, .panel { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .hemi .halo { display: none; }
}

/* ── Ajouts banque dynamique ── */
.panel .verdict { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 1rem; }
.panel .verdict-parti { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); margin: 4px 0 10px; text-wrap: balance; }
.panel .verdict-detail { color: var(--muted); }
.panel .verdict-detail b { color: var(--ink); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.side .src { display: inline-block; margin-top: 2px; font-family: var(--font-display); font-size: 0.75rem; }
.auto { font-family: var(--font-display); font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.etat { padding: 60px 0; text-align: center; font-family: var(--font-display); color: var(--muted); }
.maj { font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }

/* ── Pied de page et pages annexes ── */
.f-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.f-liens a { color: var(--muted); }
.f-liens a:hover { color: var(--ink); }
.legal h2 { font-size: 1.15rem; margin: 30px 0 8px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 0; }
.legal dt { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 0.92rem; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* ── Bouton « Méthode et sources » encadré ── */
.top nav .linkbtn { border-color: var(--line); }
.top nav .linkbtn:hover { border-color: var(--ink); }

/* ── Bouton « Commencer le test » : onde qui s'en échappe régulièrement, flèche qui avance au survol ── */
.btn-start { position: relative; isolation: isolate; }
.btn-start::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent);
  opacity: 0; pointer-events: none; z-index: -1; animation: appel 2.8s ease-out 1.2s infinite;
}
@keyframes appel { 0% { opacity: .6; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.12, 1.5); } }
.btn-start:hover::after { animation: none; }
.btn-start .fleche { display: inline-block; transition: transform .25s ease; }
.btn-start:hover .fleche { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .btn-start::after { animation: none; } }

/* Mobile : bouton d'en-tête sur une ligne, liste des scrutins de la banque en cartes empilées */
.top nav .linkbtn { white-space: nowrap; }
@media (max-width: 420px) {
  .hors-mobile { display: none; }
  .brand { font-size: 0.98rem; gap: 8px; }
}
@media (max-width: 640px) {
  .list-votes { overflow-x: visible; }
  .list-votes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .list-votes table, .list-votes tbody, .list-votes tr, .list-votes td { display: block; width: auto; }
  .list-votes tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .list-votes td { border: 0; padding: 0; }
  .list-votes td:nth-child(1) { grid-column: 1 / -1; order: 1; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .list-votes td:nth-child(2) { grid-column: 1 / -1; order: 2; margin: 2px 0 4px; }
  .list-votes td:nth-child(3) { order: 3; color: var(--muted); }
  .list-votes td:nth-child(4) { order: 4; text-align: right; }
}
