/* FicheDéputé.fr — light civic theme (product override of the dark ZLEF DA).
   Palette inspired by the French State design system: Bleu France + Rouge Marianne. */
:root {
  --bleu:        #000091;
  --bleu-700:    #1212a0;
  --bleu-soft:   #e8e8ff;
  --rouge:       #e1000f;
  --rouge-soft:  #ffe6e6;
  --ink:         #161616;
  --ink-2:       #3a3a44;
  --muted:       #6a6a78;
  --faint:       #9a9aa6;
  --bg:          #f4f6fb;
  --bg-2:        #eef1f8;
  --card:        #ffffff;
  --line:        #e6e9f1;
  --line-2:      #d7dbe6;
  --ok:          #18753c;
  --warn:        #b34000;
  --shadow-sm:   0 1px 3px rgba(16,24,64,.06), 0 1px 2px rgba(16,24,64,.04);
  --shadow:      0 6px 24px rgba(16,24,64,.09), 0 2px 6px rgba(16,24,64,.05);
  --shadow-lg:   0 18px 50px rgba(16,24,64,.16);
  --r:           16px;
  --r-sm:        10px;
  --maxw:        1080px;
  --font: 'Inter', 'Marianne', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.3px; }
.brand:hover { text-decoration: none; }
.brand .flag { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; display: inline-grid; grid-template-columns: 1fr 1fr 1fr; box-shadow: var(--shadow-sm); }
.brand .flag i { display: block; }
.brand .flag i:nth-child(1) { background: var(--bleu); }
.brand .flag i:nth-child(2) { background: #fff; }
.brand .flag i:nth-child(3) { background: var(--rouge); }
.brand b { color: var(--bleu); }
nav.main { display: flex; gap: 4px; margin-left: auto; align-items: center; }
nav.main a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 9px; transition: background .16s, color .16s; }
nav.main a:hover { background: var(--bg-2); text-decoration: none; }
nav.main a.active { color: var(--bleu); background: var(--bleu-soft); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 9px; width: 40px; height: 40px; font-size: 18px; color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 11px; padding: 12px 20px; font-weight: 700; font-size: 15px; transition: transform .12s, box-shadow .16s, background .16s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--bleu); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--bleu-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--bleu); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn:active { transform: translateY(0) scale(.99); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 54px 0 30px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 15% 0%, rgba(0,0,145,.06), transparent 60%),
  radial-gradient(50% 50% at 95% 10%, rgba(225,0,15,.05), transparent 60%);
  pointer-events: none; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 850; letter-spacing: -1.2px; line-height: 1.06; max-width: 15ch; }
.hero p.lead { margin-top: 16px; font-size: clamp(16px, 2.3vw, 19px); color: var(--ink-2); max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--bleu); background: var(--bleu-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Search ─────────────────────────────────────────────────────────────── */
.searchbox { position: relative; margin-top: 30px; max-width: 620px; }
.searchbox input {
  width: 100%; font-size: 17px; padding: 17px 20px 17px 52px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .16s, box-shadow .16s;
}
.searchbox input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--bleu-soft); }
.searchbox .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 20px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; max-height: 62vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--bg-2); text-decoration: none; }
.sr-none { padding: 16px; color: var(--muted); font-size: 14px; }
.search-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ── Stat strip ─────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 34px; font-weight: 850; color: var(--bleu); letter-spacing: -1px; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.block { padding: 34px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.sec-head h1, .sec-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.sec-head a { font-size: 14px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Deputy chip / avatar ───────────────────────────────────────────────── */
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; letter-spacing: .3px; }
.avatar.lg { width: 92px; height: 92px; font-size: 30px; }
.grp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; }
.grp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ── Cards / list ───────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.rank-card { padding: 8px; }
.rank-row { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 12px; transition: background .14s; color: var(--ink); }
.rank-row:hover { background: var(--bg-2); text-decoration: none; }
.rank-row .pos { width: 26px; text-align: center; font-weight: 800; color: var(--faint); font-size: 15px; }
.rank-row .who { min-width: 0; flex: 1; }
.rank-row .who .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .who .sub { font-size: 12.5px; color: var(--muted); }
.rank-row .val { font-weight: 800; font-size: 16px; }
.bar { height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* ── Deputy grid list ───────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filters select, .filters input { padding: 11px 14px; border-radius: 11px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14.5px; color: var(--ink); font-family: inherit; }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--bleu); }
.dep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dep-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .14s, box-shadow .16s, border-color .16s; }
.dep-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.dep-card .meta { min-width: 0; flex: 1; }
.dep-card .nm { font-weight: 750; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-card .sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-card .pp { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* ── Fiche ──────────────────────────────────────────────────────────────── */
.fiche-hero { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; margin-top: 12px; position: relative; overflow: hidden; }
.fiche-hero .accent { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.fiche-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.fiche-top .id { min-width: 0; }
.fiche-top h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 850; letter-spacing: -1px; line-height: 1.05; }
.fiche-top .circo { color: var(--muted); margin-top: 4px; font-size: 15px; }
.fiche-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 26px; }
.gauge { text-align: center; }
.ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .rv b { font-size: 27px; font-weight: 850; letter-spacing: -1px; }
.ring .rv span { font-size: 11px; color: var(--muted); }
.gauge .gl { margin-top: 10px; font-weight: 700; font-size: 14px; }
.gauge .gs { font-size: 12.5px; color: var(--muted); }
.votes-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.vsplit { text-align: center; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.vsplit b { display: block; font-size: 28px; font-weight: 850; letter-spacing: -1px; }
.vsplit span { font-size: 13px; color: var(--muted); font-weight: 600; }
.vsplit.pour b { color: var(--ok); } .vsplit.contre b { color: var(--rouge); } .vsplit.abst b { color: var(--warn); }

.vote-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.vote-item:last-child { border-bottom: none; }
.vote-pos { flex: none; width: 118px; }
.vpos-tag { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; text-transform: uppercase; letter-spacing: .3px; }
.vpos-tag.pour { background: #e6f4ea; color: var(--ok); }
.vpos-tag.contre { background: var(--rouge-soft); color: var(--rouge); }
.vpos-tag.abstention { background: #fff1e0; color: var(--warn); }
.vpos-tag.nonVotant { background: var(--bg-2); color: var(--muted); }
.vote-body { min-width: 0; flex: 1; }
.vote-body .vt { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.vote-body .vm { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sort-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.sort-tag.adopte { background: #e6f4ea; color: var(--ok); }
.sort-tag.rejete { background: var(--rouge-soft); color: var(--rouge); }

.side-card { padding: 20px; }
.side-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); } .kv .v { font-weight: 600; text-align: right; }
.link-row { display: flex; flex-direction: column; gap: 8px; }
.link-row a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-weight: 600; font-size: 14px; }
.link-row a:hover { background: var(--bleu-soft); text-decoration: none; }

.fiche-cols { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin-top: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; }
.panel h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; }

/* ── Groups ─────────────────────────────────────────────────────────────── */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grp-card { padding: 20px; border-left: 6px solid; }
.grp-card .gt { font-weight: 800; font-size: 17px; }
.grp-card .gsig { font-size: 13px; color: var(--muted); }
.grp-card .gm { display: flex; gap: 22px; margin-top: 14px; }
.grp-card .gm .n { font-size: 24px; font-weight: 850; }
.grp-card .gm .lbl { font-size: 12px; color: var(--muted); }

/* ── Methodo / prose ────────────────────────────────────────────────────── */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 30px; max-width: 760px; }
.prose h1 { font-size: 28px; font-weight: 850; margin-bottom: 16px; letter-spacing: -.6px; }
.prose p { color: var(--ink-2); font-size: 16px; margin-bottom: 14px; }
.prose .upd { font-size: 13px; color: var(--muted); margin-top: 8px; }
.faq-title { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin: 26px 0 12px; }
.faq { display: grid; gap: 10px; margin-bottom: 6px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; font-size: 15.5px; color: var(--ink); position: relative; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--bleu); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--bleu); }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; animation: faqIn .25s ease; }
.faq-a b { color: var(--ink); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.foot { border-top: 1px solid var(--line); margin-top: 50px; padding: 28px 0 48px; color: var(--muted); font-size: 13.5px; }
footer.foot .fi { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.views-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
.foot-credit { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-credit a { color: var(--bleu); font-weight: 700; }
.fr-flag { display: inline-grid; grid-template-columns: 1fr 1fr 1fr; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); vertical-align: middle; }
.fr-flag i { display: block; }
.fr-flag i:nth-child(1) { background: var(--bleu); }
.fr-flag i:nth-child(2) { background: #fff; }
.fr-flag i:nth-child(3) { background: var(--rouge); }

/* ── Skeleton / loading ─────────────────────────────────────────────────── */
.skel { background: linear-gradient(100deg, var(--bg-2) 30%, #f7f9fd 50%, var(--bg-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--bleu); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .3s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Activity card ──────────────────────────────────────────────────────── */
.act-grid { display: grid; gap: 10px; }
.act { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: none; }
.act b { font-size: 22px; font-weight: 850; color: var(--bleu); letter-spacing: -.5px; min-width: 44px; }
.act span { font-size: 13.5px; color: var(--ink-2); }
.act em { font-size: 12px; color: var(--muted); font-style: normal; margin-left: auto; }

/* ── Salary card ────────────────────────────────────────────────────────── */
.salary-card .salary-amount { font-size: 28px; font-weight: 850; color: var(--bleu); letter-spacing: -1px; margin-top: 2px; }
.salary-card .salary-unit { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.salary-card .salary-net { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.salary-card .salary-breakdown { border-top: 1px solid var(--line); padding-top: 6px; }
.salary-card .salary-breakdown .kv { font-size: 13px; }
.salary-card .salary-note { font-size: 12px; color: var(--muted); margin-top: 10px; font-style: italic; }
.salary-card .salary-src { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600; }

/* ── Game · Devine le député ────────────────────────────────────────────── */
.nav-game { position: relative; }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.game-title { font-size: 26px; font-weight: 850; letter-spacing: -.6px; }
.game-lead { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; max-width: 60ch; }
.game-score { display: flex; gap: 10px; }
.gsc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 12px 18px; text-align: center; min-width: 74px; }
.gsc b { display: block; font-size: 26px; font-weight: 850; color: var(--bleu); letter-spacing: -1px; }
.gsc span { font-size: 12px; color: var(--muted); font-weight: 600; }

.game-mode { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; }
.gm-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 20px; border: none; border-radius: 10px; background: transparent; color: var(--ink-2); transition: background .16s, box-shadow .16s, color .16s; }
.gm-btn b { font-size: 14.5px; font-weight: 700; }
.gm-btn span { font-size: 11.5px; color: var(--muted); }
.gm-btn.active { background: #fff; box-shadow: var(--shadow-sm); color: var(--bleu); }
.gm-btn.active span { color: var(--ink-2); }

.game-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; }

/* expert free-text autocomplete */
.g-expert { position: relative; max-width: 560px; }
.g-expert .ico { position: absolute; left: 16px; top: 15px; color: var(--faint); font-size: 18px; }
.g-expert input { width: 100%; font-size: 16px; padding: 14px 18px 14px 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
.g-expert input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--bleu-soft); }
.g-expert input:disabled { background: var(--bg-2); }
.g-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 20; max-height: 320px; overflow-y: auto; }
.g-sug { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 10px 14px; border: none; background: #fff; border-bottom: 1px solid var(--line); }
.g-sug:last-child { border-bottom: none; }
.g-sug:hover, .g-sug.sug-active { background: var(--bg-2); }
.g-sug .g-cname { font-weight: 700; font-size: 14.5px; }
.g-sug .g-cmeta { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.g-clues { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.g-gauge { flex: none; }
.g-votecols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; min-width: 260px; }
.g-votecol h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.g-votecol h4.g-yes { color: var(--ok); }
.g-votecol h4.g-no { color: var(--rouge); }
.g-votes { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.g-votes li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; align-items: flex-start; }
.g-tick { flex: none; font-weight: 800; }
.g-votes.yes .g-tick { color: var(--ok); }
.g-votes.no .g-tick { color: var(--rouge); }

.g-pick { margin-top: 22px; }
.g-pick h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.g-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-choice { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; transition: transform .12s, box-shadow .16s, border-color .16s, background .16s; min-width: 0; }
.g-choice:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--bleu); }
.g-cinfo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.g-choice .g-cname { font-weight: 750; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-choice .g-cmeta { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; flex: none; }
.g-choice:disabled { cursor: default; opacity: .85; }
.g-choice.is-right { border-color: var(--ok); background: #e9f7ee; opacity: 1; }
.g-choice.is-wrong { border-color: var(--rouge); background: var(--rouge-soft); opacity: 1; }

.g-result { margin-top: 20px; padding: 16px 18px; border-radius: 14px; }
.g-result.ok { background: #e9f7ee; border: 1px solid #b7e4c7; }
.g-result.ko { background: var(--rouge-soft); border: 1px solid #ffc9c9; }
.g-verdict { font-weight: 700; font-size: 15.5px; }
.g-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 780px) {
  nav.main { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px; gap: 2px; box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; }
  .menu-btn { display: block; }
  .stats { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .fiche-cols { grid-template-columns: 1fr; }
  .votes-split { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Fiche hero + score widget on phones ────────────────────────────────── */
@media (max-width: 560px) {
  .fiche-hero { padding: 22px 16px; border-radius: 18px; }
  .fiche-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .fiche-top .id { min-width: 0; width: 100%; }
  .fiche-top h1 { font-size: 27px; }
  .fiche-badges { justify-content: center; }
  .avatar.lg { width: 78px; height: 78px; font-size: 26px; }
  .fiche-top #share { width: 100%; justify-content: center; margin-top: 2px; }

  /* score widget: ring stacked over the vote breakdown, tight and centered */
  .gauges { grid-template-columns: 1fr; gap: 14px; margin-top: 20px;
            background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; }
  .ring { width: 148px; height: 148px; }
  .ring svg { width: 148px; height: 148px; }
  .ring .rv b { font-size: 30px; }
  .gauge .gl { font-size: 15px; }
  .votes-split { gap: 10px; margin-top: 2px; }
  .vsplit { padding: 13px 6px; border-radius: 12px; }
  .vsplit b { font-size: 24px; }
  .vsplit span { font-size: 12px; }

  .vote-pos { width: 100%; }
  .vote-item { flex-direction: column; gap: 7px; padding: 14px 0; }
  .panel { padding: 18px; }
  .prose { padding: 22px 18px; }

  .game-card { padding: 18px; }
  .g-clues { flex-direction: column; align-items: stretch; gap: 16px; }
  .g-gauge { align-self: center; }
  .g-votecols { grid-template-columns: 1fr; gap: 16px; }
  .g-choices { grid-template-columns: 1fr; }
  .g-cinfo { flex-direction: column; align-items: flex-start; gap: 1px; }
  .g-choice .g-cname { white-space: normal; }
  .g-choice .g-cmeta { margin-left: 0; }
}

/* ── HATVP flags ────────────────────────────────────────────────────────── */
.hatvp-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.hatvp-flags .chip { font-size: 11.5px; }

/* ── EU flag in brand ───────────────────────────────────────────────────── */
.euflag { font-size: 22px; line-height: 1; }

/* ── Pays (per-country stats) ───────────────────────────────────────────── */
.pays-sort { display: inline-flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.pays-sb { border: none; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: 8px; }
.pays-sb.active { background: #fff; color: var(--bleu); box-shadow: var(--shadow-sm); }
.pays-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pays-card { padding: 18px; }
.pays-top { display: flex; align-items: center; gap: 10px; }
.pays-flag { font-size: 30px; line-height: 1; }
.pays-name { font-weight: 750; font-size: 16px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pays-grp { flex: none; }
.pays-metrics { display: flex; gap: 22px; margin: 14px 0 12px; }
.pays-metrics b { font-size: 22px; font-weight: 850; letter-spacing: -.5px; }
.pays-metrics span { display: block; font-size: 11.5px; color: var(--muted); }

/* ── Pays cards: clickable + group breakdown ────────────────────────────── */
a.pays-card { display: block; color: var(--ink); transition: transform .14s, box-shadow .16s, border-color .16s; }
a.pays-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.pays-arrow { margin-left: auto; color: var(--faint); font-weight: 800; font-size: 18px; }
a.pays-card:hover .pays-arrow { color: var(--bleu); }
.pays-groups { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg-2); margin-top: 4px; }
.pays-groups i { display: block; height: 100%; }
.pays-glegend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.pays-glegend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pays-glegend i { width: 9px; height: 9px; border-radius: 2px; }

/* vote description (EU: uniquely identifies the vote within a report) */
.vdesc { font-size: 13px; color: var(--ink-2); margin-top: 2px; font-weight: 500; }
