/* geoStrat — public home (on top of night.css) -------------------------------------- */
.top { justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav a:not(.pill) { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.nav a:not(.pill):hover { background: var(--surface-2); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 6px; }
.hero p { margin: 0; }
.search { display: flex; flex-direction: column; gap: 4px; min-width: min(360px, 100%); }
.search input { font: inherit; font-size: 15px; height: 44px; padding: 0 14px; border-radius: 12px;
                border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.live-banner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius);
               background: color-mix(in srgb, var(--live) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--live) 30%, var(--border));
               font-size: 14.5px; }
.live-banner a { font-weight: 600; }
.live-banner .cd { display: grid; grid-template-columns: auto auto auto auto; column-gap: 5px; align-items: baseline; min-width: 96px; }
.live-banner .cd b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--live); }
.live-banner .cd span { font-size: 12px; color: var(--muted); }
.live-banner.on { background: var(--live); color: #fff; border-color: var(--live); }
.live-banner.on a { color: #fff; }
.dot-live { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; flex: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.races { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.race { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
        color: var(--text); text-decoration: none; }
.race:hover { border-color: var(--text); }
.race .pbar { flex: none; width: 100%; height: 8px; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface);
        border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.door b { font-size: 17px; }
.door span { color: var(--muted); font-size: 14px; }
.door:hover { border-color: var(--primary); }
.door b::after { content: " →"; color: var(--primary); }
.btn-link { font-weight: 600; }
.foot { padding: 8px 2px 24px; line-height: 1.6; }
@media (max-width: 960px) { .hero-grid, .doors { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .nav a:not(.pill) { display: none; }
  .hero h1 { font-size: 24px; }
  .live-banner { flex-direction: column; align-items: flex-start; }
}

.explore { display: flex; flex-direction: column; gap: 12px; }
.explore-head h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 4px; }
.explore-head p { margin: 0; max-width: 780px; }
.explore-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.preview { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface);
           border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.preview:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); border-color: var(--primary); }
.preview .shot { aspect-ratio: 1.65; overflow: hidden; background: var(--surface-2); }
.preview .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.preview:hover .shot img { transform: scale(1.04); }
.preview .shot.sankey { display: grid; place-items: center; padding: 12px; }
.preview .shot svg { width: 100%; height: 100%; }
.pv-text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.pv-text b { font-size: 18px; letter-spacing: -0.01em; }
.pv-text span { color: var(--muted); font-size: 14px; }
.pv-text .cta { color: var(--primary); font-weight: 600; }
.sk-lab { font-size: 11px; fill: var(--text); }
.sk-lab.muted { fill: var(--muted); }
.sk-yr { font-size: 12px; font-weight: 700; fill: var(--muted); }
@media (max-width: 960px) { .explore-grid { grid-template-columns: 1fr; } }

/* the interactive map, made obvious */
.hero-actions { display: flex; flex-direction: column; gap: 12px; min-width: min(420px, 100%); }
.cta-map { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px;
  border-radius: 14px; background: var(--primary); color: #fff; text-decoration: none; box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: transform .15s, box-shadow .15s; font-size: 18px; }
.cta-map:hover { transform: translateY(-2px); box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 45%, transparent); }
.cta-map b { display: block; font-size: 17px; }
.cta-map small { display: block; font-size: 13px; opacity: .85; }
.cta-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.btn-map { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--primary);
  color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.btn-map:hover { filter: brightness(1.1); }
.map.main { position: relative; }
.map-over { position: absolute; right: 12px; bottom: 12px; padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); text-decoration: none; border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.map-over:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 560px) { .map-over { left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: 12.5px; } }

/* home: scenarios (poll replay + scenario cards) */
.home-scenarios .poll-bar p { margin: 0 0 8px; }
/* one row: as many polls as the width allows (night.js hides the ones that would wrap) */
.poll-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.poll-chip.hide { display: none; }
.poll-chip { display: grid; gap: 2px; text-align: left; font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.poll-chip:hover { background: var(--surface-2); } .poll-chip.on { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.poll-chip .muted { font-size: 12px; } .pc-vals i { font-style: normal; font-weight: 700; font-size: 12px; margin-right: 4px; }
.sc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.sc-card { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--border); border-top: 5px solid var(--pc);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 7%, var(--surface)), var(--surface)); color: var(--text); text-decoration: none; }
.sc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); transition: .15s; }
.sc-card-t { font-weight: 700; line-height: 1.3; }
.sc-card { align-content: space-between; min-height: 118px; gap: 12px; }
.sc-card-logo { height: 30px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.sc-card-t { font-size: 15px; }
@media (max-width: 600px) { .poll-chips { gap: 5px; } .poll-chip { padding: 6px 7px; font-size: 12px; } .poll-chip .muted { font-size: 11px; } .pc-vals i:nth-child(3) { display: none; } }

/* hero, redesigned */
.hero-card { display: block; padding: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: radial-gradient(1200px 300px at 0% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%), var(--surface); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 32px; align-items: center; padding: 28px 30px 24px; }
@media (max-width: 900px) { .hero-main { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px 18px; } }
.hero-card h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; margin: 2px 0 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-stats .hs { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--pc); }
.hero-stats .hs b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--pc); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats .hs span { font-size: 12px; line-height: 1.25; color: var(--muted); max-width: 96px; }
.hero-stats .hs small { display: block; } .hero-stats .hs small { font-size: 11.5px; }
.hero-card .hero-actions { min-width: 0; }
.hero-card .live-banner { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 12px 30px;
  background: var(--surface-2); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.hero-card .live-banner .cd { min-width: 0; grid-template-columns: auto auto auto auto; }
.hero-card .live-banner .cd b { font-size: 22px; }
.hero-card .live-banner .lb-text { flex: 1 1 320px; }
.hero-card .live-banner .lb-links { display: flex; gap: 14px; align-items: center; }
.hero-card .live-banner .lb-btn { background: var(--live); color: #fff; padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.hero-card .live-banner .dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 25%, transparent); }
.hero-card .live-banner.on { background: var(--live); color: #fff; }
@media (max-width: 600px) { .hero-card .live-banner { padding: 12px 18px; } .hero-stats .hs b { font-size: 24px; } }
@media (max-width: 600px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hero-stats .hs { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 9px; }
  .hero-stats .hs b { font-size: 22px; } .hero-stats .hs span { font-size: 11px; max-width: none; }
  .hero-card .live-banner { flex-direction: row; align-items: center; gap: 8px 12px; }
  .hero-card .live-banner .lb-text { flex-basis: 100%; order: 3; font-size: 13px; }
  .hero-card .live-banner .lb-links { order: 4; flex-wrap: wrap; font-size: 13px; }
}
.model-update { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--primary, #3b5bdb); background: var(--primary-soft, rgba(59,91,219,.08)); border-radius: 4px; }

/* bigger « suivre les résultats en direct » announcement (election day, 2026-10-05) */
.hero-card .live-banner.lb-big { padding: 18px 30px; gap: 14px 22px; background: color-mix(in srgb, var(--live) 9%, var(--surface)); }
.hero-card .live-banner.lb-big .lb-text { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.hero-card .live-banner.lb-big .lb-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.hero-card .live-banner.lb-big .cd b { font-size: 34px; }
.hero-card .live-banner.lb-big .dot-live { width: 13px; height: 13px; }
.hero-card .live-banner .lb-cta { font-size: 17px; font-weight: 700; padding: 12px 20px; white-space: nowrap; flex: none; }
.hero-card .live-banner.on.lb-big { background: var(--live); }
.hero-card .live-banner.on .lb-cta { background: #fff; color: var(--live); }
.hero-card .live-banner.on .dot-live { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
@media (max-width: 700px) {
  .hero-card .live-banner.lb-big { flex-wrap: wrap; padding: 16px 18px; }
  .hero-card .live-banner.lb-big .lb-text { flex-basis: 100%; order: 3; font-size: 14px; }
  .hero-card .live-banner.lb-big .lb-title { font-size: 19px; }
  .hero-card .live-banner .lb-cta { order: 4; width: 100%; text-align: center; }
}
.hero-card .live-banner.lb-final { background: color-mix(in srgb, var(--primary, #1B4FA0) 8%, var(--surface)); }
.hero-card .live-banner.lb-final .lb-cta { background: var(--primary, #1B4FA0); color: #fff; }

/* « Bilan de l'élection » — link to the analysis, after the final results */
.bilan { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; padding: 22px 26px;
  border-left: 5px solid var(--primary, #1B4FA0); }
.bilan-text { flex: 1 1 420px; min-width: 0; }
.bilan-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--primary, #1B4FA0); }
.bilan h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.bilan-text p:last-child { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.bilan-btn { flex: none; padding: 12px 20px; border-radius: 999px; background: var(--primary, #1B4FA0); color: #fff; font-weight: 700;
  text-decoration: none; white-space: nowrap; }
.bilan-btn:hover { filter: brightness(1.1); }
@media (max-width: 600px) { .bilan { padding: 18px; } .bilan-btn { width: 100%; text-align: center; } }
