/* /sondages/: the polls behind the projection */
.p-CAQ { --pc: #00AFEA; } .p-PLQ { --pc: #ED1B2D; } .p-QS { --pc: #FF5505; } .p-PQ { --pc: #1E295C; } .p-PCQ { --pc: #6B4FA0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-PQ { --pc: #7F92D8; } :root:not([data-theme="light"]) .p-PCQ { --pc: #9C82D0; } }
:root[data-theme="dark"] .p-PQ { --pc: #7F92D8; } :root[data-theme="dark"] .p-PCQ { --pc: #9C82D0; }

.pl { display: grid; gap: 18px; }
.pl-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 4px 0 8px; letter-spacing: -.01em; }
.pl-update { font-size: 16px; margin: 0 0 6px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
@media (max-width: 900px) { .pl-grid { grid-template-columns: 1fr; } }

.pl-avg { display: grid; gap: 8px; margin: 6px 0 12px; }
.pl-bar { display: grid; grid-template-columns: 48px 1fr 64px; align-items: center; gap: 10px; }
.pl-bar b { color: var(--pc); }
.pl-track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.pl-track i { display: block; height: 100%; background: var(--pc); border-radius: 7px; }
.pl-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pl-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); white-space: nowrap; }
.pl-table th.p-CAQ, .pl-table th.p-PLQ, .pl-table th.p-QS, .pl-table th.p-PQ, .pl-table th.p-PCQ { color: var(--pc); }
.pl-table td { padding: 7px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.pl-table tr:hover td { background: var(--surface-2); }
.pl-table .num { text-align: right; }
.pl-table td.lead { font-weight: 800; color: var(--pc); }
.pl-table td.strong { font-weight: 700; }
.pl-table .nowrap, .nowrap { white-space: nowrap; }
.pl-polls td:first-child { color: var(--muted); }
.pl-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); vertical-align: 1px; }
.pl-table a { color: var(--primary); text-decoration: none; font-weight: 600; }
.pl-table a:hover { text-decoration: underline; }
.pl .small { font-size: 13px; line-height: 1.5; }
/* /scenarios/ */
.sc h1 { color: var(--pc); }
.sc-big { font-size: 1.25em; color: var(--pc); }
.sc-vote { font-size: 15px; } .sc-vote b { font-size: 34px; color: var(--pc); }
.sc-delta { font-weight: 700; color: #15803d; margin-left: 6px; }
.sc-try { font-weight: 600; color: var(--primary); }
.sc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sc-riding { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.sc-riding header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sc-riding header a { color: var(--text); text-decoration: none; } .sc-riding header a:hover { text-decoration: underline; }
.sc-odds { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.sc-bar { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; margin: 8px 0; overflow: hidden; }
.sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--pc); opacity: .35; border-radius: 4px; }
.sc-bar i.g { opacity: .9; height: 3px; top: auto; }
.sc-riding p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sc-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sc-others a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); border-left: 5px solid var(--pc);
  background: var(--surface); color: var(--text); text-decoration: none; }
.sc-others a span { font-size: 13px; color: var(--muted); }
.sc-others a:hover { background: var(--surface-2); }
/* scenario pages: stage */
:root { --c-CAQ: #00AFEA; --c-PLQ: #ED1B2D; --c-QS: #FF5505; --c-PQ: #1E295C; --c-PCQ: #6B4FA0; --c-Autres: #8a93a3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-PQ: #7F92D8; --c-PCQ: #9C82D0; } }
:root[data-theme="dark"] { --c-PQ: #7F92D8; --c-PCQ: #9C82D0; }
.sc-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 28px 30px; border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--pc) 16%, var(--surface)), var(--surface) 70%); border: 1px solid var(--border); }
.sc-hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05; margin: 4px 0 12px; color: var(--pc); letter-spacing: -.02em; }
.sc-logo img { height: 44px; width: auto; display: block; margin-bottom: 10px; }
.sc-leader { margin: 0; text-align: center; }
.sc-leader img { width: 170px; height: 170px; object-fit: cover; object-position: top; border-radius: 50%; border: 5px solid var(--pc);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--pc) 35%, transparent); background: var(--surface-2); }
.sc-leader figcaption { display: grid; margin-top: 8px; } .sc-leader figcaption span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .sc-hero { grid-template-columns: 1fr; } .sc-leader img { width: 120px; height: 120px; } }
.sc-toggle { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.sc-toggle button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.sc-toggle button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.sc-stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .sc-stage-grid { grid-template-columns: 1fr; } }
#sc-hemi { width: 100%; height: auto; display: block; }
#sc-hemi .st { fill: var(--c-Autres); transition: fill .45s ease; stroke: var(--surface); stroke-width: 1.5; }
#sc-hemi .h-big { font-size: 64px; font-weight: 800; letter-spacing: -.03em; transition: fill .4s; }
#sc-hemi .h-sub { font-size: 15px; fill: var(--muted); }
.sc-seats td { padding: 6px 8px; } .sc-mk { height: 18px; width: auto; vertical-align: -4px; margin-right: 8px; }
.sc-seats .n { font-size: 17px; } .sc-seats td.up { color: #15803d; font-weight: 700; } .sc-seats td.down { color: #b42318; font-weight: 700; }
.sc-maps { position: relative; }
.sc-map-big { width: 100%; aspect-ratio: 1.25; display: block; background: var(--surface-2); border-radius: 14px; }
.sc-insets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.sc-insets figure { margin: 0; } .sc-insets figcaption { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.sc-insets svg { width: 100%; aspect-ratio: 1; display: block; background: var(--surface-2); border-radius: 10px; }
@media (max-width: 600px) { .sc-insets { grid-template-columns: repeat(2, 1fr); } }
.sc-maps path.rd { fill: var(--c-Autres); stroke: var(--surface); transition: fill .6s ease, fill-opacity .6s ease, stroke .3s, stroke-width .3s; cursor: pointer; }
.sc-maps path.rd:hover { stroke: var(--text); }
.sc-maps path.rd.on { stroke: var(--text); stroke-width: var(--sw) !important; paint-order: stroke; }
.sc-duel { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.sc-duel .vs { font-size: 12px; color: var(--muted); font-weight: 700; }
.sc-face { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-face img, .sc-face .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--pc); flex: none; background: var(--surface-2); }
.sc-face .ph { display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--pc); }
.sc-face span { display: grid; line-height: 1.2; min-width: 0; } .sc-face b { font-size: 13.5px; } .sc-face small { font-size: 11.5px; color: var(--muted); }

.sc-olog { height: 28px; width: 44px; object-fit: contain; grid-row: span 2; }
.sc-lead { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.sc-defend { border-left: 5px solid var(--pc); }
.sc-rivals-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(200px, 1fr); gap: 24px; align-items: center; }
@media (max-width: 800px) { .sc-rivals-grid { grid-template-columns: 1fr; } }
#sc-rivals { width: 100%; height: auto; display: block; }
#sc-rivals .rv-ring { fill: none; stroke: var(--border); } #sc-rivals .rv-edge { stroke: var(--border); stroke-dasharray: 3 4; }
#sc-rivals .rv-core { fill: var(--surface-2); } #sc-rivals .rv-core-t { font-size: 11px; fill: var(--muted); }
#sc-rivals .rv-anchor { fill: var(--surface); stroke-width: 2.5; } #sc-rivals .rv-party { font-size: 14px; font-weight: 800; }
#sc-rivals .rv-spoke { stroke-width: 2; opacity: .5; }
#sc-rivals .rv-dot { stroke-width: 1.2; cursor: pointer; transition: cx 1.1s cubic-bezier(.4,0,.2,1), cy 1.1s cubic-bezier(.4,0,.2,1), fill .6s, fill-opacity .6s; }
#sc-rivals .rv-dot.on { stroke: var(--text) !important; stroke-width: 2.6; }
.sc-rivals-read p { margin: 0 0 10px; line-height: 1.55; }
.sc-rivals-side h3 { margin: 0 0 6px; font-size: 17px; }
.sc-rivals-side p { margin: 0 0 10px; line-height: 1.5; }
.sc-votes { margin: 6px 0 12px; } .sc-votes td { padding: 6px 6px; } .sc-votes tr.me td { background: color-mix(in srgb, var(--pc) 8%, transparent); }
.sc-votes td.up { color: #15803d; font-weight: 700; } .sc-votes td.down { color: #b42318; font-weight: 700; }
.sc-vbar { display: block; height: 5px; background: var(--surface-2); border-radius: 3px; margin-top: 4px; width: 90px; overflow: hidden; }
.sc-vbar i { display: block; height: 100%; background: var(--pc); }
.sc-hyp { display: grid; gap: 4px; margin: 0 0 12px; }
.sc-poll { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); width: fit-content; font-size: 14px; }
.sc-pvals i { font-style: normal; font-weight: 700; color: var(--pc); margin-right: 8px; }
.sc-poll a { font-weight: 600; color: var(--primary); font-size: 13px; }
.sc-verdict { font-size: 17px; line-height: 1.45; margin: 4px 0 8px; } .sc-verdict b { color: var(--pc); }
.sc-verdict.ok::first-letter { color: #15803d; }
#sc-rivals .rv-seats .n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
#sc-rivals .rv-seats .u { font-size: 12px; font-weight: 600; fill: var(--muted); }
/* /projection/liste/ */
.rl-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.rl-tools input[type=search], .rl-tools select { font: inherit; font-size: 14px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.rl-tools input[type=search] { min-width: 220px; }
.rl-chk { font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.rl-table th[data-k] { cursor: pointer; user-select: none; }
.rl-table th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
.rl-table th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.rl-table td { white-space: nowrap; }
.rl-fav, .rl-2 { color: var(--pc); font-weight: 700; }
.rl-bar { display: inline-block; width: 42px; height: 6px; background: var(--surface-2); border-radius: 3px; margin-right: 6px; vertical-align: middle; overflow: hidden; }
.rl-bar i { display: block; height: 100%; background: var(--pc); }
.rl-flip { font-size: 12px; font-weight: 700; color: var(--muted); }
.rl-c { color: var(--pc); font-weight: 700; }
.rl-table a { color: var(--text); text-decoration: none; font-weight: 600; } .rl-table a:hover { text-decoration: underline; }

.rl-preview { border: 1px solid color-mix(in srgb, #d69e2e 60%, var(--border)); background: color-mix(in srgb, #d69e2e 12%, transparent);
  border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }
