
/* Charte Votona (fond crème, violet, Baloo 2 / Work Sans / IBM Plex Mono, largeur 880 px) ;
   échelle des verdicts propre à l'Observatoire (bleu → orange), distincte du vert/rouge « pour/contre » de Votona. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --soft: #f1ece0; --fg: #191d2b; --muted: #4d5468; --faint: #6b7284; --line: #e4dfd0;
  --link: #6d28d9; --accent: #7C3AED; --accent-ink: #ffffff;
  --accent-soft: #efe4fd; --off: #e9e4d6; --warn-bg: #fbecd1; --warn-fg: #6b4206;
  --v-true: #1f5fa8; --v-mostly_true: #9dc0e6; --v-half_true: #cfc8ba; --v-mostly_false: #f2b57e; --v-false: #b4500a;
  --hatch: #c9c2b2; --unrated-line: #8a8170;
  --display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --sans: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 20px; --gutter: clamp(20px, 4vw, 40px);
  --masthead-bg: #F6F2FE; --masthead-ink: #191d2b; --masthead-line: rgba(25,29,43,.14); --masthead-accent: #7C3AED;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14171c; --surface: #1c2028; --soft: #252a36; --fg: #f1ede4; --muted: #aab0c0; --faint: #8f96a8; --line: #2d323f;
  --link: #b9a2fb; --accent: #A78BFA; --accent-ink: #1c1230;
  --accent-soft: #2f2350; --off: #2d323f; --warn-bg: #3a2a12; --warn-fg: #f0c27a;
  --v-true: #4f8fd6; --v-mostly_true: #9dc0e6; --v-half_true: #b9b2a4; --v-mostly_false: #f2b57e; --v-false: #e07a32;
  --hatch: #4a525c; --unrated-line: #8d96a1; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #14171c; --surface: #1c2028; --soft: #252a36; --fg: #f1ede4; --muted: #aab0c0; --faint: #8f96a8; --line: #2d323f;
  --link: #b9a2fb; --accent: #A78BFA; --accent-ink: #1c1230;
  --accent-soft: #2f2350; --off: #2d323f; --warn-bg: #3a2a12; --warn-fg: #f0c27a;
  --v-true: #4f8fd6; --v-mostly_true: #9dc0e6; --v-half_true: #b9b2a4; --v-mostly_false: #f2b57e; --v-false: #e07a32;
  --hatch: #4a525c; --unrated-line: #8d96a1; color-scheme: dark }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.12; }
h2 { font-size: 20px; } /* mêmes tailles que les pages de votona.fr */
.muted { color: var(--muted); }
.small { font-size: 13px; }

.masthead { position: sticky; top: 0; z-index: 20; background: var(--bg); }
/* Bandeau : copie de header.topbar / .brand / .icon-btn de Votona (index.html et pages générées). */
header.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter); border-bottom: 3px solid var(--masthead-accent); background: var(--masthead-bg); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--masthead-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.brand .mark { width: 40px; height: 32px; flex: none; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.08); }
.brand .mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .2px; white-space: nowrap; transition: color .15s ease; }
.brand:hover .name { color: var(--masthead-accent); }
.brand .year { font-family: var(--mono); font-size: 11px; color: var(--masthead-accent); letter-spacing: .06em; white-space: nowrap; }
.brand .beta-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: #6b4206; background: #fbecd1; border-radius: 999px; padding: 2px 7px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--masthead-line); background: transparent; color: var(--masthead-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn:hover, .icon-btn[aria-current="page"] { color: var(--masthead-accent); border-color: var(--masthead-accent); }
/* Lien vers le site frère : même composant que le lien « Observatoire » de la barre de Votona. */
.sister-link { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--masthead-line); color: var(--masthead-ink); font-family: var(--sans); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sister-link:hover { color: var(--masthead-accent); border-color: var(--masthead-accent); }
@media (max-width: 480px) { .sister-link { width: 34px; padding: 0; justify-content: center; } .sister-link span { display: none; } }
@media (max-width: 420px) { .brand .beta-tag { display: none; } }
/* Onglets : une rangée sous le bandeau, défilante sur mobile. */
nav.subnav { border-bottom: 1px solid var(--line); background: var(--bg); }
nav.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.subnav .wrap::-webkit-scrollbar { display: none; }
nav.subnav button, nav.subnav a { flex: none; text-decoration: none; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; padding: 12px 12px 9px; cursor: pointer; min-height: 44px; }
nav.subnav .wrap > :first-child { margin-left: -12px; }
nav.subnav button:hover, nav.subnav a:hover { color: var(--accent); }
nav.subnav [aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 480px) { nav.subnav button, nav.subnav a { padding: 12px 8px 9px; font-size: 14px; } nav.subnav .wrap > :first-child { margin-left: -8px; } nav.subnav .lg { display: none; } }

main.wrap { display: flex; flex-direction: column; gap: 20px; padding-block: 28px 48px; } /* espacements de votona.fr */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filters label, .filters fieldset { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.filters select, .filters input[type="search"], .filters input[type="date"] { min-height: 44px; font: inherit; font-weight: 400; font-size: 14px; padding: 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); max-width: 100%; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 20px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.pill.verdict[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; flex: none; }
.sw.unrated { background: repeating-linear-gradient(45deg, var(--surface) 0 3px, var(--hatch) 3px 5px); border: 1px dashed var(--unrated-line); }
.reset { background: none; border: 0; color: var(--link); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; min-height: 40px; }

.summary { display: flex; flex-wrap: wrap; gap: 28px; }
.summary .bars { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 15px; }
.bar-row .lab { font-weight: 600; }
.track { height: 22px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; }
.fill.unrated { background: repeating-linear-gradient(45deg, var(--surface) 0 4px, var(--hatch) 4px 6px); box-shadow: inset 0 0 0 1px var(--unrated-line); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.side { flex: 1 1 240px; border: 1px solid var(--line); border-radius: var(--radius); align-self: flex-start; background: var(--surface); }
.side > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.side > div:last-child { border-bottom: 0; }
.side .k { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.side .v { font-family: var(--mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scope-note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.claim { font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.4; margin: 0; }
.meter { display: flex; gap: 3px; }
.meter span { width: 30px; height: 10px; border-radius: 2px; background: var(--off); }
.verdict { font-size: 14px; }
.verdict strong { font-size: 15px; }
.dates { font-size: 13px; color: var(--muted); }
.fallback { font-style: italic; }
.who { font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: none; font-weight: 700; text-align: left; }
.linkish:hover { text-decoration: underline; }

.facts { display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.fact .right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
@media (max-width: 640px) { .fact { grid-template-columns: minmax(0, 1fr); } .fact .right { align-items: flex-start; text-align: left; } .bar-row { grid-template-columns: 100px minmax(0, 1fr) 70px; font-size: 14px; } }
.report { background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report code { font-size: 12px; }
/* Pages fixes : « Signaler une erreur » sans script. */
details.report-d { display: inline; }
details.report-d summary { cursor: pointer; color: var(--muted); list-style: none; display: inline; }
details.report-d summary::-webkit-details-marker { display: none; }
details.report-d[open] summary { margin-bottom: 6px; }
.crumbs { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
a.tile { text-decoration: none; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; width: 100%; border-radius: 18px; padding: 14px 22px; font-family: var(--sans); font-size: 15px; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; border: 0; transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-bottom: 4px solid color-mix(in srgb, var(--accent) 70%, black); animation: softPulse 2.6s ease-in-out infinite; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 90%, black); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--muted); border: 2px solid color-mix(in srgb, var(--accent) 20%, var(--line)); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-row { max-width: 420px; margin-left: auto; margin-right: auto; }
.btn-mascot { width: 34px; height: auto; flex: none; margin: -8px 2px -8px -4px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn:hover .btn-mascot { transform: rotate(-10deg) scale(1.1); }
.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; font-weight: 700; border-radius: 14px; }
@keyframes softPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .btn-accent { animation: none; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; }
.people button, .people a { text-decoration: none; display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; cursor: pointer; min-height: 44px; }
.people button:hover .n1, .people a:hover .n1 { text-decoration: underline; }
.people .n2 { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 30px; font-weight: 800; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--fg); border-radius: 999px; padding: 4px 10px; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cand { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.cand.withdrawn { opacity: .7; }
/* Couleur du candidat : même dégradé et même pastille que ses fiches sur Votona (--cc). */
.head.cc { padding: 20px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 20%, var(--surface)), color-mix(in srgb, var(--cc) 6%, var(--surface))); border: 1px solid color-mix(in srgb, var(--cc) 28%, var(--surface)); }
.avatar.cc { background: var(--cc); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--cc) 40%, transparent); }
.cand.cc { background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 14%, var(--surface)), var(--surface) 75%); border-color: color-mix(in srgb, var(--cc) 24%, var(--line)); transition: transform .15s, border-color .15s; }
.cand.cc:hover { border-color: var(--cc); transform: translateY(-2px); }
.cand .nm { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cc); color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; box-shadow: 0 3px 8px color-mix(in srgb, var(--cc) 35%, transparent); }
.cand .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cand .cnt { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline { position: relative; height: 44px; border-bottom: 2px solid var(--line); }
.timeline span { position: absolute; bottom: 7px; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-7px); }
.timeline span.unrated { background: var(--surface); border: 2px dashed var(--unrated-line); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Méthode : mêmes onglets et même en-tête que votona.fr/methode/ (.mtabs, .hero, .toc). */
.mtabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.mtabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mtabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.mtabs a:not([aria-current]):hover { color: var(--accent); }
.mhero { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: 26px; background: linear-gradient(135deg, color-mix(in srgb, #7C3AED 16%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, #7C3AED 24%, var(--surface)); }
.mhero img { width: 104px; height: auto; flex: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.mhero h1 { margin: 0 0 8px; }
.mhero p { color: var(--muted); margin: 0; }
@media (max-width: 560px) { .mhero { flex-direction: column; text-align: center; } .mhero img { width: 88px; } }
.prose:has(> .mhero) { max-width: none; } /* même largeur que la méthode de votona.fr */
.mtoc { display: flex; flex-wrap: wrap; gap: 8px; }
.mtoc a { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.mtoc a:hover { color: var(--accent); border-color: var(--accent); }
.prose h2 { scroll-margin-top: 130px; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 14px; }
.prose p, .prose ul { margin: 0; }
.prose li { margin-bottom: 6px; }
.table-box { overflow-x: auto; }
table.plain { border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.plain th, table.plain td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
footer.gfoot { margin-top: 20px; font-size: 12px; color: var(--faint); text-align: center; line-height: 1.6; }
footer.gfoot .flinks a, footer.gfoot .flinks button { color: var(--accent); font-weight: 600; }
footer.gfoot .social { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
footer.gfoot .social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); text-decoration: none; }
footer.gfoot .social a:hover { border-color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--v-true); outline-offset: 2px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-size: 14px; }

.lede { max-width:70ch; margin:8px 0 0; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
@media (max-width:480px) { .kpis { grid-template-columns:1fr 1fr; } .kpi .v { font-size:22px; } }
.kpi { border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; background:var(--surface); display:flex; flex-direction:column; gap:2px; }
.kpi .v { font-family:var(--mono); font-size:26px; font-weight:600; font-variant-numeric:tabular-nums; }
.kpi .k { font-size:13px; color:var(--muted); }
.cov { height:8px; background:var(--soft); border-radius:4px; overflow:hidden; margin-top:6px; }
.cov > div { height:100%; background:var(--accent); }
.sect { display:flex; flex-direction:column; gap:14px; margin-top:12px; }
.sect-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.tile { position:relative; text-align:left; border:1px solid var(--line); border-radius:18px; padding:14px 16px; background:var(--surface); color:var(--fg); font:inherit; cursor:pointer; display:flex; flex-direction:column; gap:4px; min-height:44px; transition:transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { border-color:var(--accent); transform:translateY(-2px); }
.tile.theme { padding-right:62px; background:linear-gradient(150deg, color-mix(in srgb, var(--th) 22%, var(--surface)), color-mix(in srgb, var(--th) 6%, var(--surface))); border-color:color-mix(in srgb, var(--th) 30%, var(--surface)); }
.tile.theme:hover { border-color:var(--th); }
.tile .prop { position:absolute; top:10px; right:10px; width:44px; height:44px; object-fit:contain; }
.theme-hero { position:relative; padding:22px 120px 22px 22px; border-radius:24px; background:linear-gradient(135deg, color-mix(in srgb, var(--th) 26%, var(--surface)), color-mix(in srgb, var(--th) 8%, var(--surface))); border:1px solid color-mix(in srgb, var(--th) 35%, var(--surface)); }
.theme-hero .prop { position:absolute; right:18px; top:50%; transform:translateY(-50%); width:84px; height:84px; object-fit:contain; }
.theme-pill { display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
@media (max-width:520px) { .theme-hero { padding-right:22px; } .theme-hero .prop { position:static; transform:none; width:56px; height:56px; margin-bottom:8px; } }
.cta-band { display:flex; flex-direction:column; gap:10px; align-items:center; text-align:center; padding:26px 20px; border-radius:26px; background:linear-gradient(135deg, color-mix(in srgb, #7C3AED 16%, var(--surface)), var(--surface) 70%); border:1px solid color-mix(in srgb, #7C3AED 24%, var(--surface)); }
.cta-band h2 { font-size:22px; }
.cta-band p { margin:0; color:var(--muted); max-width:52ch; }
.tile .t { font-family:var(--display); font-weight:700; font-size:18px; line-height:1.2; }
.tile .c { font-size:13px; color:var(--muted); }
.mini { display:flex; height:6px; border-radius:3px; overflow:hidden; background:var(--soft); margin-top:4px; }
.mini span { height:100%; }
.mini span.unrated { background:repeating-linear-gradient(45deg,var(--surface) 0 2px,var(--hatch) 2px 4px); }
.tags { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; border-radius:999px; padding:3px 9px; background:var(--soft); color:var(--fg); border:0; font-family:inherit; cursor:pointer; text-decoration:none; }
.chip.multi { background:var(--accent-soft); font-weight:600; cursor:default; }
.chip.diverge { background:var(--warn-bg); color:var(--warn-fg); font-weight:600; cursor:help; }
.chip.votona { background:none; border:1px solid var(--accent); color:var(--link); }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.tabs button, .tabs a { text-decoration:none; background:none; border:0; border-bottom:3px solid transparent; font:inherit; font-weight:600; color:var(--muted); padding:10px 12px; cursor:pointer; min-height:44px; }
.tabs [aria-selected="true"] { color:var(--accent); border-bottom-color:var(--accent); }
.search { min-height:44px; font:inherit; font-size:14px; padding:0 12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--fg); width:100%; max-width:360px; }
.topics { display:flex; flex-direction:column; }
.topic { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; padding:12px 0; border-top:1px solid var(--line); align-items:baseline; }
.topic .n2 { font-family:var(--mono); white-space:nowrap; }
.topic.blind .n2 { color:var(--warn-fg); }
.pos { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.pos > div { border-left:3px solid var(--accent); padding:4px 0 4px 14px; }
.pos strong { display:block; font-family:var(--display); font-size:17px; }
.notice { border:1px solid var(--line); border-radius:var(--radius); padding:14px 18px; background:var(--surface); font-size:14px; }
/* Composants de votona.fr (generate-candidate-pages.js), repris à l'identique. */
.vhero { position: relative; overflow: hidden; padding: 28px 300px 28px 28px; border-radius: 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--hc, #7C3AED) 16%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--hc, #7C3AED) 24%, var(--surface)); }
.vhero.solo { padding-right: 28px; }
.vhero.one { padding-right: 190px; }
.vhero h1 { margin: 0 0 10px; }
.vhero p { color: var(--muted); line-height: 1.6; margin: 0; }
.vhero .stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; position: relative; z-index: 1; }
.vhero .stats span { padding: 5px 12px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.vhero .stats b { color: var(--hc-ink, var(--accent)); }
.vhero .crew { position: absolute; bottom: -30px; height: 200px; width: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.vhero .c1 { right: 170px; height: 170px; transform: rotate(-6deg); } .vhero .c2 { right: 88px; height: 205px; z-index: 1; } .vhero .c3 { right: 10px; height: 175px; transform: rotate(6deg); }
.vhero .hero-char { position: absolute; right: 18px; bottom: -22px; height: 190px; width: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.vhero.th { background: linear-gradient(135deg, color-mix(in srgb, var(--th) 26%, var(--surface)), color-mix(in srgb, var(--th) 8%, var(--surface))); border-color: color-mix(in srgb, var(--th) 35%, var(--surface)); }
.vhero .pill-k { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted); }
@media (max-width: 680px) { .vhero:not(.solo) { padding: 22px 20px 170px; } .vhero.solo { padding: 22px 20px; } .vhero .c1 { right: auto; left: calc(50% - 150px); height: 140px; } .vhero .c2 { right: auto; left: calc(50% - 60px); height: 170px; } .vhero .c3 { right: auto; left: calc(50% + 40px); height: 140px; } .vhero .hero-char { height: 150px; right: 50%; transform: translateX(50%); bottom: -26px; } }
.btn-pair { display: flex; gap: 8px; }
.btn-pair .btn { flex: 1; padding: 12px 14px; font-size: 14px; }
@media (max-width: 520px) { .btn-pair { flex-direction: column; } }
input.q { width: 100%; min-height: 0; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); font: inherit; font-size: 14.5px; background: var(--surface); color: var(--fg); }
input.q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.vlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vlist li[hidden] { display: none; }
.vlist a, .vlist button { display: flex; align-items: center; gap: 14px; width: 100%; height: 100%; padding: 14px 16px; border-radius: 18px; text-decoration: none; text-align: left; font: inherit; cursor: pointer; color: var(--fg); background: linear-gradient(150deg, color-mix(in srgb, var(--cc, var(--accent)) 14%, var(--surface)), var(--surface) 75%); border: 1px solid color-mix(in srgb, var(--cc, var(--accent)) 24%, var(--line)); transition: transform .15s, box-shadow .15s, border-color .15s; }
.vlist a:hover, .vlist button:hover { transform: translateY(-2px); border-color: var(--cc, var(--accent)); box-shadow: 0 8px 20px color-mix(in srgb, var(--cc, var(--accent)) 22%, transparent); }
.vlist .out a, .vlist .out button { filter: grayscale(.8); opacity: .7; }
.vlist .av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--cc); font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: 0 4px 10px color-mix(in srgb, var(--cc) 35%, transparent); }
.vlist .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: inherit; }
.vlist .nm { font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.vlist .party { color: var(--faint); font-size: 12.5px; }
.vlist .mini { height: 6px; margin-top: 7px; gap: 2px; border-radius: 99px; background: none; }
.vlist .meta { font-size: 11.5px; font-weight: 700; color: var(--faint); margin-top: 3px; }
.legend { font-size: 12.5px; color: var(--faint); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 4px 0 8px; }
.legend i.unrated { background: repeating-linear-gradient(45deg, var(--hatch) 0 2px, transparent 2px 4px); outline: 1px solid var(--unrated-line); outline-offset: -1px; }
.no-match { display: none; color: var(--faint); font-size: 13.5px; margin: 0; }
.cand-header { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 20%, var(--surface)), color-mix(in srgb, var(--cc) 6%, var(--surface))); border: 1px solid color-mix(in srgb, var(--cc) 28%, var(--surface)); }
.cand-header .cand-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--cc); font-family: var(--display); font-weight: 700; font-size: 20px; flex: none; box-shadow: 0 4px 14px color-mix(in srgb, var(--cc) 40%, transparent); }
.cand-header h1 { font-size: clamp(26px, 4vw, 34px); }
.cand-header .cand-id { position: relative; z-index: 1; min-width: 0; padding-right: 150px; }
.cand-header .party { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.cand-header .cand-stat { margin: 8px 0 0; display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted); }
.cand-header .hero-props { position: absolute; right: 0; top: 0; bottom: 0; width: 190px; pointer-events: none; }
.cand-header .hp { position: absolute; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.cand-header .hp1 { right: 26px; top: 14px; transform: rotate(10deg); } .cand-header .hp2 { right: 92px; top: 52px; transform: rotate(-12deg); }
.cand-header .hp3 { right: 30px; bottom: 12px; transform: rotate(-6deg); } .cand-header .hp4 { right: 120px; top: 8px; transform: rotate(14deg); opacity: .9; }
@media (max-width: 640px) { .cand-header .hero-props { display: none; } .cand-header .cand-id { padding-right: 0; } }
.ph { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.vlist .av, .cand-header .cand-avatar { overflow: hidden; }
.cand-header .cand-avatar.has-ph { width: 84px; height: 84px; box-shadow: 0 0 0 3px #fff, 0 6px 18px color-mix(in srgb, var(--cc) 45%, transparent); }
.photo-credit { margin: -8px 0 0; font-size: 12px; color: var(--faint); line-height: 1.5; }
.photo-credit a { color: inherit; text-decoration: underline; }
.credits { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.intro-p { color: var(--muted); line-height: 1.6; margin: 0; }
.intro-p a, .src-line a { color: var(--accent); font-weight: 600; }
.src-line { color: var(--muted); font-size: 14px; margin: -8px 0 0; }
.sect > h2:first-child, .sect-head h2 { font-size: 20px; }
