/* Fiches statiques PoliCulture : mêmes couleurs et polices que le jeu (src/theme.ts). */
@font-face { font-family: "Instrument Serif"; src: url("/fiches/fonts/InstrumentSerif_400Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fiches/fonts/BricolageGrotesque_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fiches/fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fiches/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --paper: #ffffff; --surface: #f6f7f9; --line: #eceef1; --ink: #111418; --soft: #5b6270;
  --red: #c8102e; --blue: #0b2a6f; --sky: #eaf0fb; --green: #1e7a46; --greenl: #e8f4ec;
  --orange: #d9661f; --orangel: #fff1e0; --flagb: #0055a4; --flagr: #ef4135;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 "Bricolage", system-ui, sans-serif; }
a { color: var(--blue); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.flag { display: flex; height: 6px; } .flag i { flex: 1; } .flag i:nth-child(1) { background: var(--flagb); } .flag i:nth-child(2) { background: #e3e5ea; } .flag i:nth-child(3) { background: var(--flagr); }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font: 400 32px/1 "Instrument Serif", Georgia, serif; color: var(--ink); text-decoration: none; }
.menu { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.menu a { color: var(--soft); font-weight: 700; font-size: 15px; text-decoration: none; }
.menu a[aria-current], .menu a:hover { color: var(--blue); }
.play, .cta { display: inline-block; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; border-radius: 999px; }
.play { padding: 8px 18px; }
.cta { padding: 12px 22px; margin: 10px 0 22px; }
.play:hover, .cta:hover { filter: brightness(1.08); }

main { padding-top: 18px; padding-bottom: 40px; }
.crumbs { font-size: 14px; color: var(--soft); margin-bottom: 10px; }
.crumbs a { color: var(--soft); }
h1 { font: 400 44px/1.1 "Instrument Serif", Georgia, serif; margin: 6px 0 12px; }
h2 { font: 400 32px/1.15 "Instrument Serif", Georgia, serif; margin: 34px 0 12px; padding-top: 14px; border-top: 3px solid var(--ink); }
h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 8px; }
h3.sub { color: var(--red); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; margin-top: 20px; }
h4 { font-size: 17px; margin: 22px 0 8px; }
.kicker { color: var(--red); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; margin: 0; }
.lead { font-size: 19px; color: var(--soft); margin-top: 0; }
.count { font-weight: 700; color: var(--blue); }

.hero { display: flex; gap: 22px; align-items: center; margin-bottom: 8px; }
.portrait { margin: 0; flex: none; width: 160px; }
.portrait img { width: 160px; height: 200px; object-fit: cover; border-radius: 22px; display: block; background: var(--surface); }
.portrait figcaption { font-size: 11px; color: var(--soft); margin-top: 4px; }

.item { border: 2px solid var(--line); border-radius: 22px; padding: 16px 20px; margin: 14px 0; }
.item p { margin: 6px 0; }
.meta { font-size: 14px; color: var(--soft); font-weight: 700; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
blockquote { margin: 6px 0 10px; font: 400 25px/1.25 "Instrument Serif", Georgia, serif; }
.who { font-weight: 700; }
.src { font-size: 14px; color: var(--soft); }
.tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.tag.ok { background: #fbeaec; color: var(--red); }
.tag.warn { background: var(--orangel); color: #8a3a08; }

.pos { border-top: 1px solid var(--line); padding: 8px 0; }
.pos:first-of-type { border-top: 0; }
.vote { font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 8px; white-space: nowrap; }
.vote.pour { background: var(--sky); color: var(--blue); }
.vote.contre { background: var(--orangel); color: #8a3a08; }
.vote.nuance, .vote.abstention, .vote.divise, .vote.non_votant { background: var(--surface); color: var(--soft); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--blue); }
.card span { color: var(--soft); font-size: 14px; }
.card small { color: var(--blue); font-weight: 700; }

.facts { padding-left: 18px; }
.list { padding-left: 18px; } .list li { margin: 6px 0; } .list small { color: var(--soft); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--soft); }
.n { text-align: right; font-variant-numeric: tabular-nums; }

.foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--soft); padding: 18px 0; }
.foot a { color: var(--soft); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; } h2 { font-size: 27px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .menu { order: 3; flex-basis: 100%; gap: 12px; }
  blockquote { font-size: 22px; }
}
