/* MétaSondages — feuille de style unique, sans dépendance externe.
   Neutralité : une seule encre pour tous les candidats, aucune couleur politique. */
:root {
  --paper: #f6f5f1;
  --paper-2: #edebe4;
  --card: #ffffff;
  --ink: #14161a;
  --ink-2: #3a3f48;
  --muted: #6b707b;
  --line: #dedbd2;
  --bar: #14161a;
  --bar-soft: #c9c6bd;
  --track: #ecebe6;
  --accent: #2f4bff;
  --night: #101216;
  --night-2: #1b1e24;
  --night-ink: #f3f1ea;
  --night-muted: #a4a8b2;
  --warn: #f1d77a;
  --radius: 14px;
  --max: 72rem;
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "SF Pro Display", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121418;
    --paper-2: #171a1f;
    --card: #1b1e24;
    --ink: #f1efe8;
    --ink-2: #cfd2d8;
    --muted: #9aa0ab;
    --line: #2b2f37;
    --bar: #f1efe8;
    --bar-soft: #4a4f59;
    --track: #262a31;
    --accent: #8ea0ff;
    --night: #0b0c0f;
    --night-2: #15171c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .skip:focus { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête et pied ---------- */
header.site { background: var(--night); color: var(--night-ink); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--night-ink); text-decoration: none; }
.brand::before { content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-right: 0.45em; border-radius: 2px; background: var(--night-ink); box-shadow: 0.3em 0.3em 0 -0.05em var(--accent); vertical-align: 0.02em; }
header nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.92rem; }
header nav a { color: var(--night-muted); text-decoration: none; }
header nav a:hover { color: var(--night-ink); }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { padding-top: 20px; padding-bottom: 28px; }
footer.site a { color: var(--ink-2); }

/* ---------- Accueil : bandeau ---------- */
main.full { padding: 0; }
.hero-band { background: var(--night); color: var(--night-ink); padding: 22px 0 32px; }
@media (min-width: 720px) { .hero-band { padding: 34px 0 48px; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--night-muted); margin: 0 0 14px; }
.display { font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
.display span { color: var(--night-muted); font-weight: 700; }
.tiles { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #2a2e36; border: 1px solid #2a2e36; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--night-2); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.tile-n { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
@media (max-width: 340px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile-l { font-weight: 600; margin-top: 8px; }
.tile-s { color: var(--night-muted); font-size: 0.86rem; }
.disclaimer { max-width: 60ch; color: var(--night-muted); margin: 0; padding-left: 14px; border-left: 3px solid var(--warn); }
.disclaimer strong { color: var(--night-ink); }
.disclaimer a { color: var(--night-ink); }

/* ---------- Accueil : sections ---------- */
.block { padding: 48px 0; }
@media (min-width: 720px) { .block { padding: 80px 0; } }
.block-alt { background: var(--paper-2); }
.block-dark { background: var(--night); color: var(--night-ink); }
.block-head { display: grid; gap: 4px 24px; margin-bottom: 28px; }
@media (min-width: 900px) { .block-head { grid-template-columns: 5rem 1fr; } .block-head .block-sub { grid-column: 2; } }
.num { margin: 0; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--muted); padding-top: 0.6em; }
.block-dark .num { color: var(--night-muted); }
.block-head h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.block-sub { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }

/* Calendrier des enquêtes */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-row, .tl-axis { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: 12px; }
@media (min-width: 720px) { .tl-row, .tl-axis { grid-template-columns: 13rem 1fr; } }
.tl-row { padding: 9px 0; border-top: 1px solid var(--line); }
.tl-name { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tl-name:hover { text-decoration: underline; }
.tl-track { position: relative; height: 26px; }
.tl-row .tl-track { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%); }
.tl-bar { position: absolute; top: 6px; height: 14px; background: var(--bar); border-radius: 7px; }
.tl-date { position: absolute; top: 3px; margin-left: 10px; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.tl-axis { margin-top: 4px; border-top: 1px solid var(--ink); }
.tl-axis .tl-track { height: 22px; }
.tl-tick { position: absolute; top: 4px; font-size: 0.78rem; color: var(--muted); transform: translateX(-50%); text-transform: uppercase; letter-spacing: 0.06em; }
.tl-tick.tl-today { color: var(--accent); font-weight: 700; }
@media (max-width: 560px) { .tl-date { display: none; } }

/* Cartes premier tour */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.c { background: var(--card); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(20, 22, 26, 0.25); }
.c-head h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 800; }
.c-head h3 a { color: var(--ink); text-decoration: none; }
.c-head h3 a:hover { text-decoration: underline; }
.c-for { margin: 2px 0 0; color: var(--ink-2); font-size: 0.92rem; }
.c-meta { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; }
.c-meta span { background: var(--track); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.c-scen { margin: 16px 0 10px; font-size: 0.82rem; color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.b-row { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr 3.4rem; align-items: center; gap: 10px; }
.b-name { font-size: 0.9rem; line-height: 1.2; overflow-wrap: anywhere; }
.b-party { display: block; font-size: 0.72rem; color: var(--muted); }
.b-track { height: 12px; background: var(--track); border-radius: 6px; overflow: hidden; }
.b-fill { display: block; height: 100%; background: var(--bar); border-radius: 6px; }
.v { text-align: right; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.v small { font-size: 0.7em; font-weight: 600; margin-left: 1px; color: var(--muted); }
.v-text { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.c-hidden { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }
.c-link { margin-top: auto; padding-top: 16px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.c-link:hover { text-decoration: underline; }

/* Duels de second tour */
.duels { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .duels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.duel { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 var(--line); }
.duel h3 { margin: 0 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em; }
.duel h3 span:last-child { text-align: right; }
.duel h3 .d-vs { align-self: center; }
.d-vs { font-size: 0.75rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-row { display: grid; gap: 4px; }
.d-inst { font-size: 0.82rem; color: var(--ink-2); text-decoration: none; display: flex; justify-content: space-between; }
.d-inst small { color: var(--muted); }
.d-inst:hover { text-decoration: underline; }
.d-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: var(--bar-soft); }
.d-a { background: var(--bar); color: var(--paper); display: flex; align-items: center; padding-left: 10px; }
.d-b { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: var(--ink); }
.d-bar b { font-size: 0.92rem; font-weight: 800; }

/* Principes */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #2a2e36; border-radius: var(--radius); overflow: hidden; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principles li { background: var(--night-2); padding: 22px; }
.principles h3 { margin: 0 0 6px; font-size: 1.05rem; }
.principles p { margin: 0; color: var(--night-muted); font-size: 0.92rem; }
.pr-link { margin: 24px 0 0; }
.pr-link a { color: var(--night-ink); font-weight: 600; }
.version { font-size: 0.82rem; color: var(--muted); margin: 24px 0; }

/* ---------- Pages intérieures ---------- */
main.wrap { padding-top: 36px; padding-bottom: 56px; max-width: 56rem; }
main.wrap h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0.2em 0 0.5em; }
main.wrap h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2em 0 0.7em; }
.kicker { color: var(--muted); font-size: 0.95rem; margin: 0; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.crumb, .meta, .base, .party, .note { color: var(--muted); }
.crumb { font-size: 0.9rem; }
.party { font-size: 0.85rem; font-weight: 400; }
.note { font-size: 0.9rem; margin-top: -4px; }
.warning { background: var(--card); border-left: 4px solid var(--warn); padding: 10px 16px; border-radius: 6px; margin: 16px 0; }
.warning p { margin: 0.4em 0; }
table.results { width: 100%; border-collapse: collapse; margin: 8px 0 14px; background: var(--card); border-radius: 10px; overflow: hidden; }
table.results caption { text-align: left; font-weight: 700; padding: 6px 0 10px; }
table.results .base { font-weight: 400; font-size: 0.86rem; }
table.results th, table.results td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.results thead th { font-size: 0.8rem; color: var(--muted); font-weight: 600; border-top: 0; text-transform: uppercase; letter-spacing: 0.05em; }
table.results th[scope="row"] { font-weight: 500; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 6.5rem; font-weight: 700; }
td.bar { width: 40%; }
td.bar span { display: block; height: 10px; background: var(--bar); border-radius: 5px; }
@media (max-width: 560px) { td.bar { display: none; } table.results:not(.list) thead th:last-child { display: none; } }
dl.mentions { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 8px 16px; margin: 0; background: var(--card); padding: 18px; border-radius: 10px; }
dl.mentions dt { color: var(--muted); }
dl.mentions dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.mentions { grid-template-columns: 1fr; } dl.mentions dd { margin-bottom: 8px; } }
code { font-size: 0.9em; }
.tl-tick.tl-start { transform: none; }

/* ---------- Graphique d'accueil (ADR-017) ---------- */
.chart-block .block-sub { color: var(--night-muted); }
.chart-block .num { color: var(--night-muted); }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ch-chip { font: inherit; font-size: 0.84rem; padding: 6px 13px; border-radius: 999px; border: 1px solid #343944; background: transparent; color: var(--night-muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ch-chip:hover, .ch-chip.is-on { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.ch-fig { position: relative; margin: 0; }
svg.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: #262a31; stroke-width: 1; }
.ch-base { stroke: #4a4f59; stroke-width: 1; }
.ch-tick { stroke: #4a4f59; }
.ch-ylab, .ch-xlab { fill: #8a8f9a; font-size: 13px; font-family: var(--font); }
.ch-ylab { text-anchor: end; }
.ch-xlab { text-anchor: middle; }
.ch-pt circle { fill: #e9e6dc; stroke: var(--night); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: ch-drop .9s cubic-bezier(.22, 1.35, .36, 1) backwards; transition: fill .25s, opacity .25s, r .25s; cursor: pointer; }
.ch-pt:focus { outline: none; }
.ch-pt:focus-visible circle { stroke: var(--accent); stroke-width: 3; }
.ch-lab { fill: #b9bcc4; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; animation: ch-fade .6s ease backwards; transition: fill .25s, opacity .25s; }
svg.ch.has-focus .ch-pt circle { opacity: .14; }
svg.ch.has-focus .ch-pt.is-on circle { opacity: 1; fill: #7b8cff; r: 8px; }
svg.ch.has-focus .ch-lab { opacity: .35; }
svg.ch.has-focus .ch-lab.is-on { opacity: 1; fill: #ffffff; }
svg.ch.is-waiting .ch-pt circle, svg.ch.is-waiting .ch-lab { animation-play-state: paused; }
@keyframes ch-drop { 0% { opacity: 0; transform: translateY(-140px) scale(.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ch-fade { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.ch-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--night-ink); color: var(--night); padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; line-height: 1.35; pointer-events: none; opacity: 0; transition: opacity .15s; max-width: 18rem; z-index: 2; }
.ch-tip strong { display: block; font-size: 0.95rem; }
.ch-tip span { display: block; color: #4a4f59; }
.ch-tip.is-visible { opacity: 1; }
.ch-fig figcaption { margin-top: 14px; font-size: 0.86rem; color: var(--night-muted); max-width: 70ch; }
.ch-pt circle { r: 6px; }
svg.ch.ch-mob { display: none; }
.ch-mob .ch-ylab, .ch-mob .ch-xlab { font-size: 14px; }
.ch-mob .ch-pt circle { r: 5.5px; stroke-width: 2; }
svg.ch-mob.has-focus .ch-pt.is-on circle { r: 7px; }
@media (max-width: 640px) {
  svg.ch.ch-desk { display: none; }
  svg.ch.ch-mob { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-pt circle, .ch-lab { animation: none; }
}
table.results.list td, table.results.list th { font-size: 0.92rem; }
@media (max-width: 560px) { table.results.list td:nth-child(3) { display: none; } table.results.list thead th:nth-child(3) { display: none; } }

/* ADR-018 : une ligne par candidat, points visibles au choix */
.ch-hit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.ch-line { fill: none; stroke: #9aa0ab; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; animation: ch-draw 1.6s cubic-bezier(.65, 0, .35, 1) backwards; transition: stroke .25s, stroke-width .25s, opacity .25s; pointer-events: none; }
@keyframes ch-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ch-pt circle { opacity: 0; animation: none; pointer-events: none; transform: scale(.2); transition: opacity .3s, transform .35s cubic-bezier(.22, 1.35, .36, 1); }
svg.ch.has-focus .ch-line { opacity: .16; }
svg.ch.has-focus .ch-line.is-on { opacity: 1; stroke: #7b8cff; stroke-width: 3; }
svg.ch.has-focus .ch-pt circle { opacity: 0; }
svg.ch.has-focus .ch-pt.is-on circle { opacity: 1; transform: scale(1); pointer-events: auto; fill: #7b8cff; }
svg.ch.is-waiting .ch-line, svg.ch.is-waiting .ch-lab { animation-play-state: paused; }
.ch-fig figcaption a { color: var(--night-ink); }
.ch-mob .ch-line { stroke-width: 1.6; }
svg.ch-mob.has-focus .ch-line.is-on { stroke-width: 2.6; }
@media (prefers-reduced-motion: reduce) { .ch-line { animation: none; } }
@media (max-width: 640px) {
  .ch-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
  .ch-chips::-webkit-scrollbar { display: none; }
  .ch-chip { flex: none; }
}


/* =====================================================================
   Thème « Verre et profondeur » (ADR-019) — remplace la palette précédente.
   Neutralité : une seule teinte pour tous les candidats, le violet ne sert
   qu'à la sélection et à l'interface.
   ===================================================================== */
:root, :root * { color-scheme: dark; }
:root {
  --paper: #0b1020;
  --paper-2: #0e142a;
  --card: rgba(255, 255, 255, 0.045);
  --ink: #f2f3fb;
  --ink-2: #c9cbe3;
  --muted: #8d91b3;
  --line: rgba(255, 255, 255, 0.10);
  --bar: #c9cbe3;
  --bar-soft: rgba(255, 255, 255, 0.16);
  --track: rgba(255, 255, 255, 0.07);
  --accent: #b69cff;
  --night: #0b1020;
  --night-2: rgba(255, 255, 255, 0.045);
  --night-ink: #f2f3fb;
  --night-muted: #8d91b3;
  --warn: #b69cff;
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 20px;
}
body { background: var(--paper); }
header.site { background: rgba(11, 16, 32, 0.72); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand::before { background: var(--accent); box-shadow: 0.3em 0.3em 0 -0.05em #5ee3e4; border-radius: 3px; }

.glass-hero { position: relative; overflow: hidden; background: var(--paper); padding: 28px 0 40px; isolation: isolate; }
.glass-hero::before, .glass-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.glass-hero::before { width: 46rem; height: 46rem; right: -14rem; top: -22rem; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.34), transparent); }
.glass-hero::after { width: 40rem; height: 40rem; left: -16rem; bottom: -24rem; background: radial-gradient(closest-side, rgba(34, 193, 195, 0.16), transparent); }
.glass-hero .eyebrow { color: var(--muted); }
.glass-hero .display { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 22px; }
.glass-hero .display span { color: #9f8cff; font-weight: 700; }

.ch-chip { border-color: var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--ink-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ch-chip:hover { background: rgba(255, 255, 255, 0.10); color: var(--ink); border-color: rgba(255, 255, 255, 0.24); }
.ch-chip.is-on { background: var(--accent); color: #140e2e; border-color: var(--accent); }

.ch-fig { background: rgba(255, 255, 255, 0.045); border: 1px solid var(--glass-border); border-radius: 24px; padding: 18px 18px 14px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ch-grid { stroke: rgba(255, 255, 255, 0.07); }
.ch-base, .ch-tick { stroke: rgba(255, 255, 255, 0.18); }
.ch-ylab, .ch-xlab { fill: #6f7394; }
.ch-line { stroke: #9ea3c8; stroke-opacity: .6; }
.ch-lab { fill: #a5a9c7; }
svg.ch.has-focus .ch-line { opacity: .12; }
svg.ch.has-focus .ch-line.is-on { opacity: 1; stroke: #b69cff; stroke-opacity: 1; stroke-width: 3.2; filter: drop-shadow(0 0 6px rgba(182, 156, 255, 0.55)); }
svg.ch.has-focus .ch-pt.is-on circle { fill: #b69cff; stroke: #0b1020; }
svg.ch.has-focus .ch-lab.is-on { fill: #ffffff; }
.ch-tip { background: rgba(21, 26, 51, 0.92); color: var(--ink); border: 1px solid rgba(182, 156, 255, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; }
.ch-tip span { color: var(--muted); }
.ch-fig figcaption { color: var(--muted); }
.ch-fig figcaption a { color: var(--ink-2); }

.ch-card { position: absolute; top: 18px; right: 220px; min-width: 13rem; padding: 12px 16px 14px; border-radius: 16px; background: rgba(21, 26, 51, 0.86); border: 1px solid rgba(182, 156, 255, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; gap: 2px; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.ch-card.is-visible { opacity: 1; transform: none; }
.ch-card-name { font-size: 0.85rem; color: var(--ink-2); }
.ch-card-v { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
.ch-card-src { font-size: 0.8rem; color: #9f8cff; }
.ch-card-note { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 900px) { .ch-card { right: 16px; } }
@media (max-width: 640px) { .ch-card { position: static; margin: 0 0 10px; transform: none; display: none; } .ch-card.is-visible { display: grid; } .ch-fig { padding: 12px 10px 10px; border-radius: 18px; } }

.pills { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); color: var(--ink-2); font-size: 0.9rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill b { color: #fff; font-weight: 700; margin-right: 2px; }

.block-alt { background: var(--paper-2); }
.block-dark { background: var(--paper); }
.c, .duel { background: var(--card); border: 1px solid var(--glass-border); box-shadow: none; border-radius: var(--radius); }
.c-meta span { background: rgba(255, 255, 255, 0.07); }
.b-fill { background: #c9cbe3; }
.d-a { background: #c9cbe3; color: #0b1020; }
.d-b { color: var(--ink); }
.principles { background: transparent; gap: 12px; }
.principles li { background: var(--card); border: 1px solid var(--glass-border); border-radius: 18px; }
.disclaimer { border-left-color: var(--accent); }
table.results, dl.mentions, .warning { background: var(--card); border: 1px solid var(--glass-border); }
.warning { border-left: 4px solid var(--accent); }
td.bar span { background: #c9cbe3; }
footer.site a { color: var(--ink-2); }

/* Carte du candidat : en-tête du panneau, jamais par-dessus les courbes */
.ch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 8px; min-height: 52px; }
.ch-head-t { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }
.ch-card, .ch-card.is-visible { position: static; opacity: 1; transform: none; display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); pointer-events: none; }
.ch-card.is-visible { border-color: rgba(182, 156, 255, 0.6); background: rgba(124, 92, 255, 0.16); }
.ch-card-name, .ch-card-v, .ch-card-src { display: none; }
.ch-card.is-visible .ch-card-name, .ch-card.is-visible .ch-card-v, .ch-card.is-visible .ch-card-src { display: inline; }
.ch-card.is-visible .ch-card-hint { display: none; }
.ch-card-hint { font-size: 0.85rem; color: var(--muted); }
.ch-card-name { font-size: 0.95rem; color: #fff; font-weight: 600; }
.ch-card-v { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: #cbbcff; line-height: 1; }
.ch-card-src { font-size: 0.8rem; color: var(--ink-2); }
@media (max-width: 640px) { .ch-head-t { display: none; } .ch-card, .ch-card.is-visible { display: flex; width: 100%; margin: 0; flex-wrap: wrap; } .ch-head { min-height: 0; } }
/* Halos dessinés dans le fond du bandeau : aucun débordement, donc aucun défilement parasite */
.glass-hero { overflow: visible; background:
  radial-gradient(48rem 34rem at 92% -8%, rgba(124, 92, 255, 0.30), transparent 70%),
  radial-gradient(40rem 30rem at -6% 110%, rgba(34, 193, 195, 0.13), transparent 70%),
  var(--paper); }
.glass-hero::before, .glass-hero::after { content: none; }
@media (max-width: 640px) { .ch-card:not(.is-visible) { display: none; } }

/* ADR-020 : bandeau défilant des chiffres clés (type « news ticker ») */
.glass-hero { padding-top: 0; }
.ticker { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); margin-bottom: 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker li { padding: 11px 22px 11px 0; white-space: nowrap; font-size: 0.92rem; color: var(--ink-2); }
.ticker li::after { content: "◆"; color: #9f8cff; font-size: 0.6rem; margin-left: 22px; vertical-align: 0.15em; }
.ticker b { color: #fff; font-weight: 700; margin-right: 4px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker ul[aria-hidden] { display: none; } .ticker { -webkit-mask-image: none; mask-image: none; } .ticker ul { flex-wrap: wrap; padding-left: 16px; } }
/* Boutons candidats : utiles sur téléphone, redondants sur ordinateur (noms à droite du graphique) */
@media (min-width: 641px) { .ch-chips { display: none; } }
@media (max-width: 640px) { .ch-card-hint { display: none; } }

/* =====================================================================
   ADR-023 : informations de campagne (accueil) et page Agenda.
   Neutralité : même présentation et mêmes teintes pour toutes les personnalités.
   ===================================================================== */
.info { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 900px) { .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .info-solo { grid-template-columns: minmax(0, 1fr); } }
.i-col { background: rgba(255, 255, 255, 0.045); border: 1px solid var(--glass-border); border-radius: 24px; padding: 20px 20px 16px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); min-width: 0; }
.i-h { margin: 0 0 12px; font-size: 1.15rem; letter-spacing: -0.015em; font-weight: 700; color: #fff; }
.i-h3 { margin: 18px 0 8px; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.i-list, .i-evs { list-style: none; margin: 0; padding: 0; }
.i-item { padding: 11px 0; border-top: 1px solid var(--line); }
.i-item:first-child { border-top: 0; padding-top: 0; }
.i-meta { margin: 0 0 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.8rem; color: var(--muted); }
.i-meta time { color: #cbbcff; font-weight: 600; }
.i-cat { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.i-title { margin: 0; font-weight: 600; line-height: 1.3; color: var(--ink); }
.i-sum { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
.i-src { font-size: 0.8rem; color: #cbbcff; white-space: nowrap; }
.i-empty { margin: 0; font-size: 0.92rem; color: var(--muted); }
.i-ev { display: grid; gap: 1px 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.i-ev:first-child { border-top: 0; }
@media (min-width: 520px) { .i-ev { grid-template-columns: 10.5rem minmax(0, 1fr); } }
.i-when { color: #cbbcff; font-weight: 600; }
.i-what { color: var(--ink-2); }
.i-what b { color: var(--ink); font-weight: 600; }
.i-where { color: var(--muted); }
.i-more { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.i-more a { color: var(--ink); font-weight: 600; text-decoration: none; }
.i-more a:hover { text-decoration: underline; }
.i-hint { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.i-hint b { display: block; color: #fff; font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.i-party { margin: -8px 0 10px; color: var(--muted); font-size: 0.92rem; }
.i-status { margin: 0; font-size: 0.86rem; color: var(--muted); }
.i-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(182, 156, 255, 0.55); background: rgba(124, 92, 255, 0.16); color: #fff; font-weight: 600; font-size: 0.82rem; }
.i-cand + .i-cand { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
/* Avec JavaScript : une seule fiche à la fois, celle du candidat choisi dans le graphique. */
.i-one.is-js .i-cand { display: none; margin: 0; padding: 0; border: 0; }
.i-one.is-js .i-cand.is-on { display: block; }
.i-one.is-js.has-one .i-hint { display: none; }
.i-one:not(.is-js) .i-hint { display: none; }
.i-one.has-one { border-color: rgba(182, 156, 255, 0.5); }
@media (max-width: 899px) { .i-one.has-one { order: -1; } }
@media (min-width: 900px) { .i-one { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; } }

/* ---------- Page Agenda ---------- */
.ag-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.ag-f { font: inherit; font-size: 0.86rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--ink-2); cursor: pointer; }
.ag-f:hover { background: rgba(255, 255, 255, 0.10); color: var(--ink); }
.ag-f.is-on { background: var(--accent); color: #140e2e; border-color: var(--accent); }
.ag-f:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ag-day { margin-top: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius); }
main.wrap .ag-day h2 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: 0; }
.ag-day h2::first-letter { text-transform: uppercase; }
.ag-rel { color: #cbbcff; }
.ag-list { list-style: none; margin: 0; padding: 0; }
.ag-ev, .ag-off { display: grid; gap: 2px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.ag-list > :first-child { border-top: 0; }
@media (min-width: 560px) { .ag-ev { grid-template-columns: 5.5rem minmax(0, 1fr); } .ag-off { grid-template-columns: 11rem minmax(0, 1fr); } }
.ag-time, .ag-odate { color: #cbbcff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-body { display: grid; gap: 2px; min-width: 0; }
.ag-who { font-weight: 700; color: #fff; }
.ag-role { font-size: 0.84rem; color: var(--muted); }
.ag-what { color: var(--ink-2); }
.ag-kind { margin-left: 8px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.ag-src { font-size: 0.8rem; color: var(--muted); }
.ag-none { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.ag-allpast { color: var(--ink-2); }
.ag-official { margin-top: 8px; }
.ag-official .ag-list { padding: 4px 18px; background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.ag-rules { padding-left: 1.1em; color: var(--ink-2); }
.ag-rules li { margin: 0.5em 0; }
[hidden] { display: none !important; }

/* Largeurs et délais par classe : la CSP (style-src 'self') bloque les attributs style. Généré, ne pas éditer à la main. */
.w-0{width:0%}.w-1{width:0.5%}.w-2{width:1%}.w-3{width:1.5%}.w-4{width:2%}.w-5{width:2.5%}.w-6{width:3%}.w-7{width:3.5%}.w-8{width:4%}.w-9{width:4.5%}.w-10{width:5%}.w-11{width:5.5%}.w-12{width:6%}.w-13{width:6.5%}.w-14{width:7%}.w-15{width:7.5%}.w-16{width:8%}.w-17{width:8.5%}.w-18{width:9%}.w-19{width:9.5%}.w-20{width:10%}.w-21{width:10.5%}.w-22{width:11%}.w-23{width:11.5%}.w-24{width:12%}.w-25{width:12.5%}.w-26{width:13%}.w-27{width:13.5%}.w-28{width:14%}.w-29{width:14.5%}.w-30{width:15%}.w-31{width:15.5%}.w-32{width:16%}.w-33{width:16.5%}.w-34{width:17%}.w-35{width:17.5%}.w-36{width:18%}.w-37{width:18.5%}.w-38{width:19%}.w-39{width:19.5%}.w-40{width:20%}.w-41{width:20.5%}.w-42{width:21%}.w-43{width:21.5%}.w-44{width:22%}.w-45{width:22.5%}.w-46{width:23%}.w-47{width:23.5%}.w-48{width:24%}.w-49{width:24.5%}.w-50{width:25%}.w-51{width:25.5%}.w-52{width:26%}.w-53{width:26.5%}.w-54{width:27%}.w-55{width:27.5%}.w-56{width:28%}.w-57{width:28.5%}.w-58{width:29%}.w-59{width:29.5%}.w-60{width:30%}.w-61{width:30.5%}.w-62{width:31%}.w-63{width:31.5%}.w-64{width:32%}.w-65{width:32.5%}.w-66{width:33%}.w-67{width:33.5%}.w-68{width:34%}.w-69{width:34.5%}.w-70{width:35%}.w-71{width:35.5%}.w-72{width:36%}.w-73{width:36.5%}.w-74{width:37%}.w-75{width:37.5%}.w-76{width:38%}.w-77{width:38.5%}.w-78{width:39%}.w-79{width:39.5%}.w-80{width:40%}.w-81{width:40.5%}.w-82{width:41%}.w-83{width:41.5%}.w-84{width:42%}.w-85{width:42.5%}.w-86{width:43%}.w-87{width:43.5%}.w-88{width:44%}.w-89{width:44.5%}.w-90{width:45%}.w-91{width:45.5%}.w-92{width:46%}.w-93{width:46.5%}.w-94{width:47%}.w-95{width:47.5%}.w-96{width:48%}.w-97{width:48.5%}.w-98{width:49%}.w-99{width:49.5%}.w-100{width:50%}.w-101{width:50.5%}.w-102{width:51%}.w-103{width:51.5%}.w-104{width:52%}.w-105{width:52.5%}.w-106{width:53%}.w-107{width:53.5%}.w-108{width:54%}.w-109{width:54.5%}.w-110{width:55%}.w-111{width:55.5%}.w-112{width:56%}.w-113{width:56.5%}.w-114{width:57%}.w-115{width:57.5%}.w-116{width:58%}.w-117{width:58.5%}.w-118{width:59%}.w-119{width:59.5%}.w-120{width:60%}.w-121{width:60.5%}.w-122{width:61%}.w-123{width:61.5%}.w-124{width:62%}.w-125{width:62.5%}.w-126{width:63%}.w-127{width:63.5%}.w-128{width:64%}.w-129{width:64.5%}.w-130{width:65%}.w-131{width:65.5%}.w-132{width:66%}.w-133{width:66.5%}.w-134{width:67%}.w-135{width:67.5%}.w-136{width:68%}.w-137{width:68.5%}.w-138{width:69%}.w-139{width:69.5%}.w-140{width:70%}.w-141{width:70.5%}.w-142{width:71%}.w-143{width:71.5%}.w-144{width:72%}.w-145{width:72.5%}.w-146{width:73%}.w-147{width:73.5%}.w-148{width:74%}.w-149{width:74.5%}.w-150{width:75%}.w-151{width:75.5%}.w-152{width:76%}.w-153{width:76.5%}.w-154{width:77%}.w-155{width:77.5%}.w-156{width:78%}.w-157{width:78.5%}.w-158{width:79%}.w-159{width:79.5%}.w-160{width:80%}.w-161{width:80.5%}.w-162{width:81%}.w-163{width:81.5%}.w-164{width:82%}.w-165{width:82.5%}.w-166{width:83%}.w-167{width:83.5%}.w-168{width:84%}.w-169{width:84.5%}.w-170{width:85%}.w-171{width:85.5%}.w-172{width:86%}.w-173{width:86.5%}.w-174{width:87%}.w-175{width:87.5%}.w-176{width:88%}.w-177{width:88.5%}.w-178{width:89%}.w-179{width:89.5%}.w-180{width:90%}.w-181{width:90.5%}.w-182{width:91%}.w-183{width:91.5%}.w-184{width:92%}.w-185{width:92.5%}.w-186{width:93%}.w-187{width:93.5%}.w-188{width:94%}.w-189{width:94.5%}.w-190{width:95%}.w-191{width:95.5%}.w-192{width:96%}.w-193{width:96.5%}.w-194{width:97%}.w-195{width:97.5%}.w-196{width:98%}.w-197{width:98.5%}.w-198{width:99%}.w-199{width:99.5%}.w-200{width:100%}
.dl-200{animation-delay:200ms}.dl-340{animation-delay:340ms}.dl-480{animation-delay:480ms}.dl-620{animation-delay:620ms}.dl-760{animation-delay:760ms}.dl-900{animation-delay:900ms}.dl-1040{animation-delay:1040ms}.dl-1180{animation-delay:1180ms}.dl-1320{animation-delay:1320ms}.dl-1460{animation-delay:1460ms}.dl-1600{animation-delay:1600ms}.dl-1660{animation-delay:1660ms}.dl-1720{animation-delay:1720ms}.dl-1740{animation-delay:1740ms}.dl-1780{animation-delay:1780ms}.dl-1840{animation-delay:1840ms}.dl-1880{animation-delay:1880ms}.dl-1900{animation-delay:1900ms}.dl-1960{animation-delay:1960ms}.dl-2020{animation-delay:2020ms}.dl-2080{animation-delay:2080ms}.dl-2140{animation-delay:2140ms}.dl-2160{animation-delay:2160ms}.dl-2200{animation-delay:2200ms}.dl-2260{animation-delay:2260ms}.dl-2300{animation-delay:2300ms}.dl-2320{animation-delay:2320ms}.dl-2380{animation-delay:2380ms}.dl-2440{animation-delay:2440ms}.dl-2500{animation-delay:2500ms}.dl-2560{animation-delay:2560ms}.dl-2580{animation-delay:2580ms}.dl-2620{animation-delay:2620ms}.dl-2680{animation-delay:2680ms}.dl-2720{animation-delay:2720ms}.dl-2740{animation-delay:2740ms}.dl-2800{animation-delay:2800ms}.dl-2860{animation-delay:2860ms}.dl-2920{animation-delay:2920ms}.dl-2980{animation-delay:2980ms}.dl-3000{animation-delay:3000ms}.dl-3040{animation-delay:3040ms}.dl-3100{animation-delay:3100ms}.dl-3140{animation-delay:3140ms}.dl-3160{animation-delay:3160ms}.dl-3220{animation-delay:3220ms}.dl-3280{animation-delay:3280ms}.dl-3340{animation-delay:3340ms}.dl-3400{animation-delay:3400ms}.dl-3420{animation-delay:3420ms}.dl-3460{animation-delay:3460ms}.dl-3520{animation-delay:3520ms}.dl-3560{animation-delay:3560ms}.dl-3580{animation-delay:3580ms}.dl-3640{animation-delay:3640ms}.dl-3700{animation-delay:3700ms}.dl-3760{animation-delay:3760ms}.dl-3820{animation-delay:3820ms}.dl-3840{animation-delay:3840ms}.dl-3880{animation-delay:3880ms}.dl-3940{animation-delay:3940ms}.dl-3980{animation-delay:3980ms}.dl-4120{animation-delay:4120ms}.dl-4260{animation-delay:4260ms}.dl-4400{animation-delay:4400ms}.dl-4540{animation-delay:4540ms}.dl-4680{animation-delay:4680ms}.dl-4820{animation-delay:4820ms}.dl-4960{animation-delay:4960ms}.dl-5100{animation-delay:5100ms}.dl-5240{animation-delay:5240ms}.dl-5380{animation-delay:5380ms}.dl-5520{animation-delay:5520ms}.dl-5660{animation-delay:5660ms}
