:root {
  --paper: #efe3c8;
  --paper-2: #f7f0de;
  --card: #fbf7ec;
  --ink: #2a2118;
  --ink-soft: #6a5a47;
  --red: #c0392b;
  --blue: #1f4e8c;
  --line: rgba(42, 33, 24, .2);
  --sea: #cddbe0;
  --land-off: #e2d6b8;
  --ok: #1f4e8c;
  --check: #d39a3a;
  --hover: #c0392b;
  --none-ink: #6b5d49;
  --check-ink: #9a6420;
  /* l'enveloppe reste du papier clair, même en mode sombre */
  --env: #fbf4e2;
  --env-ink: #2a2118;
  --airmail: repeating-linear-gradient(-45deg, #c0392b 0 14px, #fbf4e2 14px 24px, #1f4e8c 24px 38px, #fbf4e2 38px 48px);
  --radius: 10px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #1d1812;
    --paper-2: #26201a;
    --card: #2c251d;
    --ink: #f1e8d6;
    --ink-soft: #b3a48f;
    --red: #e0735f;
    --blue: #7fb0d0;
    --line: rgba(241, 232, 214, .2);
    --sea: #1a2a32;
    --land-off: #3a3226;
    --ok: #6f9fd8;
    --check: #d9a14a;
    --none-ink: #b3a48f;
    --check-ink: #e0b062;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Inter, system-ui, sans-serif; line-height: 1.6;
  background-image:
    radial-gradient(rgba(120, 90, 40, .07) 1px, transparent 1px),
    radial-gradient(rgba(120, 90, 40, .05) 1px, transparent 1px);
  background-size: 23px 23px, 37px 37px;
  background-position: 0 0, 11px 17px;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
section, header, footer { padding: 3rem 16px; max-width: 1180px; margin: 0 auto; }
.kicker {
  font-family: "Special Elite", monospace; text-transform: uppercase; letter-spacing: .18em;
  color: var(--red); font-size: .85rem; margin: 0 0 .3rem;
}

/* ---------- barre du haut : langue, thème, GitHub ---------- */
.topbar { max-width: 1180px; margin: 0 auto; padding: .8rem 16px 0; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { font-family: "Special Elite", monospace; letter-spacing: .08em; background: transparent; color: var(--ink); border: 0; padding: .3rem .65rem; cursor: pointer; font-size: .9rem; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 34px; border: 2px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
#theme .sun { display: none; }
:root[data-theme="dark"] #theme .sun { display: block; }
:root[data-theme="dark"] #theme .moon { display: none; }
.seg button:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- pages secondaires (faux timbre d'artiste) ---------- */
.nav-link { margin-right: auto; font-family: "Special Elite", monospace; letter-spacing: .05em; font-size: .92rem; color: var(--ink); text-decoration: none; border-bottom: 2px dashed var(--line); padding: .2rem 0; }
.nav-link:hover { border-bottom-color: var(--ink); }
.support { color: var(--red); text-decoration: none; font-family: "Special Elite", monospace; letter-spacing: .04em; border-bottom: 2px dashed var(--red); }
.support:hover { border-bottom-style: solid; }
.hero.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
/* le titre est long : on réserve la place du timbre et du tampon à droite */
.hero.page-hero .hero-card { padding-left: 190px; padding-right: 190px; }
@media (max-width: 980px) {
  .hero.page-hero .hero-card { padding: 6.4rem 1.4rem 2.4rem; }
  .hero.page-hero .hero-marks { transform: scale(.7); transform-origin: top right; }
}
.countdown-line { margin: .2rem 0 1.1rem; }
.countdown-line .ink { font-size: .95rem; padding: .25rem .8rem; }
.prose > p, .prose > ul { max-width: 46rem; }
.prose .facts { margin-top: 1.4rem; }
.small { font-size: .9rem; color: var(--ink-soft); }
.mini-title { font-size: 1.15rem; margin-top: 1.4rem; }
.note { position: relative; margin-top: 1.6rem; padding: 1rem 1.2rem 1rem 1.5rem; background: var(--card); border: 1px dashed var(--line); border-radius: 6px; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(-45deg, #c0392b 0 6px, #fbf4e2 6px 9px, #1f4e8c 9px 15px, #fbf4e2 15px 18px); }
.note h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.note p { margin: 0; color: var(--ink-soft); }
.edition-card { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 1.2rem; padding: 1.4rem; background: var(--card); border: 1px solid var(--line); border-top: 6px solid transparent; border-image: var(--airmail) 6 0 0 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); }
.edition-date { flex: none; min-width: 112px; padding: .5rem .9rem; text-align: center; color: var(--red); border: 3px double var(--red); border-radius: 4px; transform: rotate(-3deg); font-family: "Special Elite", monospace; text-transform: uppercase; letter-spacing: .08em; filter: url(#rough); line-height: 1.15; }
.edition-date .d-day { display: block; font-family: Fraunces, serif; font-weight: 800; font-size: 3.4rem; letter-spacing: -.02em; line-height: 1; }
.edition-date .d-mon, .edition-date .d-dow { display: block; font-size: .85rem; }
.edition-body { flex: 1; min-width: 0; }
.edition-body p:first-child { margin-top: 0; }
.addr-note { margin: .8rem 0; padding: .7rem .9rem; background: var(--paper-2); border: 1px dashed var(--line); border-radius: 6px; font-size: .95rem; }
.addr-note a, .link-list a { color: var(--blue); }
.addr-caption { margin: .2rem 0 .6rem; font-size: .85rem; color: var(--ink-soft); }
.jmfta-address .envelope { min-height: 0; padding-top: 1.4rem; margin: .8rem 0; }
.jmfta-address .envelope .addr { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .5rem; max-width: 46rem; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.timeline { list-style: none; margin: .6rem 0 1rem 6px; padding: 0 0 0 1.3rem; border-left: 3px dashed var(--line); max-width: 46rem; }
.timeline li { position: relative; margin-bottom: .6rem; }
.timeline li::before { content: ""; position: absolute; left: -1.75rem; top: .5rem; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid var(--paper); }
.link-list { padding-left: 1.1rem; max-width: 46rem; }
.link-list li { margin-bottom: .35rem; }
@media (max-width: 700px) { .edition-card { flex-direction: column; } .edition-date { align-self: flex-start; } }

/* ---------- bande « par avion » ---------- */
.airmail-bar { height: 12px; background: var(--airmail); }
footer .airmail-bar { margin-bottom: 1.4rem; border-radius: 2px; }

/* ---------- timbres ---------- */
.stamp {
  --behind: var(--paper);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  width: 74px; height: 92px; padding: 8px; color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, var(--behind) 3.5px, transparent 4px) top left / 11px 8px repeat-x,
    radial-gradient(circle at 50% 100%, var(--behind) 3.5px, transparent 4px) bottom left / 11px 8px repeat-x,
    radial-gradient(circle at 0 50%, var(--behind) 3.5px, transparent 4px) top left / 8px 11px repeat-y,
    radial-gradient(circle at 100% 50%, var(--behind) 3.5px, transparent 4px) top right / 8px 11px repeat-y,
    #fffdf6;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .25));
  color: #2a2118;
}
.stamp::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(31, 78, 140, .5); pointer-events: none; }
.stamp { position: relative; }
.stamp .flag { font-size: 2.1rem; line-height: 1; }
.stamp .denom { font-family: "Special Elite", monospace; font-size: .8rem; color: #1f4e8c; letter-spacing: .08em; }
.stamp.sm { width: 52px; height: 64px; padding: 6px; --behind: var(--card); }
.stamp.sm::after { inset: 8px; }
.stamp.sm .denom { font-size: 1.6rem; font-family: Fraunces, serif; font-weight: 800; color: #c0392b; letter-spacing: 0; }

/* ---------- oblitération ---------- */
.pm-wrap { position: relative; width: 150px; height: 150px; }
.postmark { width: 100%; height: 100%; color: #1f4e8c; opacity: .72; transform: rotate(-12deg); mix-blend-mode: multiply; filter: url(#rough); font-family: "Special Elite", monospace; }
.postmark text { font-family: "Special Elite", monospace; }
.waves { position: absolute; width: 120px; height: 40px; color: #1f4e8c; opacity: .6; mix-blend-mode: multiply; filter: url(#rough); }
:root[data-theme="dark"] .postmark, :root[data-theme="dark"] .waves { mix-blend-mode: normal; }

/* ---------- tampons dessinés (stamps.js) ---------- */
.ink-blue { --inkc: #1f4e8c; }
.ink-red { --inkc: #c0392b; }
.ink-black { --inkc: #2a2118; }
.stamp-svg { display: block; width: 100%; height: auto; color: var(--inkc, #1f4e8c); opacity: .8; mix-blend-mode: multiply; filter: url(#rough); }
.stamp-svg text { font-family: "Special Elite", monospace; }
.hero-deco .d { position: absolute; pointer-events: none; }
.d-meter { left: 22px; bottom: 20px; width: 96px; transform: rotate(-7deg); }
.d-oval { right: 18px; bottom: 16px; width: 170px; transform: rotate(5deg); }
.contribute { position: relative; }
.contrib-deco { position: absolute; top: 18px; right: 22px; width: 150px; transform: rotate(4deg); pointer-events: none; }
:root[data-theme="dark"] .contrib-deco .ink-blue { --inkc: #7fb0d0; }
:root[data-theme="dark"] .contrib-deco .stamp-svg { mix-blend-mode: normal; }
.oval-wrap { position: absolute; top: 34px; right: -4px; width: 170px; transform: rotate(-8deg); }
.reg-wrap { position: absolute; bottom: 10px; right: 12px; width: 100px; transform: rotate(4deg); pointer-events: none; }
@media (max-width: 900px) { .hero-deco { display: none; } }
@media (max-width: 700px) { .contrib-deco { display: none; } }

/* ---------- hero : une grande enveloppe ---------- */
.hero { padding-top: 2.4rem; }
.hero-card {
  position: relative; text-align: center; background: var(--env); color: var(--env-ink);
  border: 12px solid transparent; border-image: var(--airmail) 12;
  padding: 3.2rem 1.4rem 2.4rem; box-shadow: 0 10px 0 -2px rgba(0, 0, 0, .08), 0 16px 30px rgba(60, 40, 10, .18);
}
.par-avion {
  position: absolute; top: 14px; left: 16px; font-family: "Special Elite", monospace; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: #1f4e8c; border: 2px solid #1f4e8c; padding: .1rem .5rem;
  transform: rotate(-2deg);
}
.hero-marks { position: absolute; top: 12px; right: 14px; width: 170px; height: 140px; --behind: var(--env); }
.hero-marks .stamp { --behind: var(--env); position: absolute; top: 0; right: 0; transform: rotate(3deg); }
.hero-marks .pm-wrap { position: absolute; top: 20px; right: 36px; width: 130px; height: 130px; }
.hero .kicker { color: #c0392b; }
.hero h1 { font-size: clamp(3rem, 11vw, 6.2rem); font-weight: 800; letter-spacing: -.02em; margin: .1em 0 .2em; }
.lede { max-width: 38rem; margin: 0 auto 1.4rem; font-size: 1.15rem; color: #6a5a47; }
.hero-addr { font-family: Caveat, cursive; font-size: 1.5rem; line-height: 1.2; margin: 0 0 1.2rem; color: #2a2118; opacity: .85; }
.btn {
  display: inline-block; background: #c0392b; color: #fff; padding: .7rem 1.5rem; border-radius: 4px;
  text-decoration: none; font-family: "Special Elite", monospace; letter-spacing: .08em; text-transform: uppercase;
  border: 2px dashed rgba(255, 255, 255, .6); outline: 2px solid #c0392b; outline-offset: 0; transition: transform .15s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }

/* ---------- étapes ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-top: 6px solid transparent; border-image: var(--airmail) 6 0 0 0;
  padding: 3.3rem 1.4rem 1.5rem; position: relative; box-shadow: 0 3px 0 rgba(0, 0, 0, .06);
}
.steps .stamp { position: absolute; top: -22px; right: 16px; transform: rotate(4deg); }
.steps li:nth-child(2) .stamp { transform: rotate(-3deg); }
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- carte ---------- */
.hint { color: var(--ink-soft); margin-top: -.2rem; }
.toolbar { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin: 1.2rem 0 .8rem; }
.search { flex: 1 1 280px; }
.search-label { display: block; font-family: "Special Elite", monospace; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--ink-soft); margin-bottom: .25rem; }
.search-box { position: relative; }
#q {
  width: 100%; font: inherit; font-size: 1.1rem; padding: .7rem .9rem; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 4px;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(31, 78, 140, .15) 27px 28px);
}
#q:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem; list-style: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); max-height: 320px; overflow: auto;
}
.results li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 3px; cursor: pointer; }
.results li[aria-selected="true"], .results li:hover { background: var(--paper); }
.results .nm { font-weight: 600; }
.results .sub { color: var(--ink-soft); font-size: .85rem; margin-left: auto; }
.results .none-found { color: var(--ink-soft); cursor: default; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; border: 1px solid rgba(0, 0, 0, .25); }
.dot.ok { background: var(--ok); }
.dot.check { background: var(--check); }
.dot.none { background: repeating-linear-gradient(45deg, var(--none-ink) 0 2px, transparent 2px 4px); }
.btn-ghost {
  font: inherit; font-family: "Special Elite", monospace; letter-spacing: .06em; padding: .7rem 1.1rem; cursor: pointer;
  background: transparent; color: var(--ink); border: 2px dashed var(--ink); border-radius: 4px;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.legend button {
  display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem .3rem .6rem;
}
.legend button[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink); }
.legend .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.map-layout { display: grid; gap: 1.2rem; grid-template-columns: 1.6fr 1fr; align-items: start; }
.map-wrap {
  position: relative; background: var(--sea); overflow: hidden; aspect-ratio: 960 / 500;
  border: 9px solid transparent; border-image: var(--airmail) 9;
}
#map { width: 100%; height: 100%; display: block; cursor: grab; }
#map:active { cursor: grabbing; }
.country { fill: var(--land-off); stroke: var(--paper); stroke-width: .4; vector-effect: non-scaling-stroke; transition: fill .15s, opacity .15s; }
.country.on { cursor: pointer; }
.country.s-ok { fill: var(--ok); }
.country.s-check { fill: var(--check); }
.country.s-none { fill: url(#hatch); stroke: var(--none-ink); stroke-width: .5; }
.country.on:hover, .country.on:focus { fill: var(--hover); outline: none; }
.country.on.s-none:hover, .country.on.s-none:focus { fill: var(--hover); }
.country.dim { opacity: .22; }
.country.selected { fill: var(--hover) !important; stroke: var(--ink); stroke-width: 1.2; }
.zoom-ctrl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.zoom-ctrl button { width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 4px; font-size: 1.1rem; cursor: pointer; }
.zoom-ctrl button:hover { background: var(--paper); }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); padding: .25rem .6rem; border-radius: 3px; font-size: .85rem; transform: translate(-50%, -140%); white-space: nowrap; }
.map-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--ink-soft); margin: 0; }

/* ---------- panneau ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; min-height: 320px; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); --behind: var(--card); }
.panel-empty { text-align: center; color: var(--ink-soft); padding: 2.4rem 0; }
.panel-empty .stamp { --behind: var(--card); transform: rotate(-4deg); margin-bottom: 1rem; }
.panel h3 { font-size: 1.8rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .2rem; }
.panel .sub { color: var(--ink-soft); margin: 0 0 1rem; font-size: .95rem; }

/* tampons d'encre */
.ink {
  display: inline-block; font-family: "Special Elite", monospace; text-transform: uppercase; font-size: .72rem; letter-spacing: .1em;
  padding: .12rem .55rem; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-3deg);
  filter: url(#rough); mix-blend-mode: multiply; line-height: 1.5; vertical-align: middle; font-weight: 400;
}
.ink.ok { color: var(--ok); }
.ink.check { color: var(--check-ink); }
.ink.none { color: var(--none-ink); }
:root[data-theme="dark"] .ink { mix-blend-mode: normal; }

/* l'enveloppe */
.envelope {
  position: relative; background: var(--env); color: var(--env-ink); margin: 0 0 .8rem; padding: 1.7rem 1.1rem 1.2rem 1.3rem;
  border: 9px solid transparent; border-image: var(--airmail) 9; box-shadow: 0 6px 14px rgba(60, 40, 10, .15);
  min-height: 190px; --behind: var(--env);
}
.envelope .par-avion { top: 6px; left: 8px; font-size: .68rem; }
.env-marks { position: absolute; top: 6px; right: 8px; width: 130px; height: 120px; pointer-events: none; }
.env-marks .stamp { --behind: var(--env); position: absolute; top: 0; right: 0; width: 58px; height: 72px; padding: 6px; transform: rotate(3deg); }
.env-marks .stamp::after { inset: 8px; }
.env-marks .stamp .flag { font-size: 1.7rem; }
.env-marks .stamp .denom { font-size: .65rem; }
.env-marks .pm-wrap { position: absolute; top: 24px; right: 22px; width: 100px; height: 100px; }
.env-marks .waves { top: 8px; right: 98px; width: 70px; height: 26px; opacity: .5; }
.envelope .addr { font-family: Caveat, cursive; font-size: 1.5rem; line-height: 1.25; margin: 2.6rem 0 0; padding-right: 6px; font-weight: 500; position: relative; }
.envelope .addr .mention { color: #c0392b; font-weight: 700; }
.envelope .addr .ph { color: #8a7a62; font-style: italic; font-weight: 500; border-bottom: 1.5px dashed #b9a98a; padding-right: .14em; }
.env-legend { font-size: .82rem; color: var(--ink-soft); margin: .1rem 0 .6rem; }
.copy { background: none; border: 2px dashed var(--line); color: var(--ink-soft); border-radius: 4px; padding: .3rem .7rem; cursor: pointer; font-family: "Special Elite", monospace; font-size: .8rem; }
.copy:hover { color: var(--ink); border-color: var(--ink); }

/* « retour à l'expéditeur » */
.return-box { position: relative; text-align: center; padding: 1.4rem 1rem; margin: 0 0 1rem; border: 2px dashed var(--line); border-radius: 6px; }
.return-stamp {
  display: inline-block; font-family: "Special Elite", monospace; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; line-height: 1.3;
  color: #c0392b; border: 3px double #c0392b; padding: .5rem .9rem; transform: rotate(-5deg); filter: url(#rough); mix-blend-mode: multiply; opacity: .9;
}
:root[data-theme="dark"] .return-stamp { color: #e0735f; border-color: #e0735f; mix-blend-mode: normal; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.fact { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 6px; padding: .6rem .8rem; }
.fact .k { font-family: "Special Elite", monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.fact .v { font-family: Fraunces, serif; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.panel .cost-detail { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; }
.panel ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.panel li { margin-bottom: .35rem; font-size: .95rem; }
.panel .src { font-size: .85rem; margin: 0; }
.panel .src a { color: var(--blue); }
.k-title { font-family: "Special Elite", monospace; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .3rem; font-size: .8rem; color: var(--ink-soft); }

/* ---------- pages pays générées (scripts/build-pages.js) ---------- */
.seg a { display: inline-block; font-family: "Special Elite", monospace; letter-spacing: .08em; background: transparent; color: var(--ink); padding: .3rem .65rem; font-size: .9rem; text-decoration: none; }
.seg a + a { border-left: 2px solid var(--ink); }
.seg a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.seg a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.country-hero { max-width: 1180px; margin: 0 auto; padding: 1.6rem 16px .6rem; }
.crumbs { font-family: "Special Elite", monospace; font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.crumbs a { color: var(--ink-soft); }
.country-hero h1 { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; margin-bottom: .3rem; }
.country-hero .flag { font-size: .9em; }
.country-hero .sub { color: var(--ink-soft); margin: 0 0 .6rem; }
.brief { max-width: 52rem; margin: .6rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.brief strong { color: var(--ink); }
.country-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; max-width: 1180px; margin: 0 auto; padding: 1rem 16px 1.6rem; }
h2.k-title { font-weight: 400; }
.caveat { font-size: .88rem; color: var(--ink-soft); border-left: 4px solid var(--check); padding-left: .7rem; margin: 0 0 1rem; }
.page-link { margin: 0 0 .5rem; font-size: .92rem; }
.page-link a, .pager a { color: var(--blue); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 0 16px 2.4rem; font-family: "Special Elite", monospace; }
.pager a { text-decoration: none; border-bottom: 2px dashed var(--line); padding: .2rem 0; }
.pager a:hover { border-bottom-color: var(--blue); }
#country-index { display: grid; gap: .6rem; margin-top: 1.2rem; }
.country-index details.region { background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: .2rem 1rem; }
.country-index .region summary { cursor: pointer; padding: .7rem 0; font-family: Fraunces, serif; font-weight: 600; font-size: 1.05rem; }
.country-index .region[open] summary { color: var(--red); }
.country-index .region summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.country-index .region .count { margin-left: .5rem; padding: .05rem .5rem; font-family: "Special Elite", monospace; font-weight: 400; font-size: .75rem; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 999px; vertical-align: middle; }
.country-links { list-style: none; padding: 0 0 .9rem; margin: 0; columns: 3 13rem; column-gap: 2rem; }
.country-links li { break-inside: avoid; margin-bottom: .35rem; }
.country-links a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; }
.country-links a:hover { text-decoration: underline dashed; text-underline-offset: 3px; }
@media (max-width: 820px) { .country-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .6rem; margin-top: 1.4rem; max-width: 52rem; }
.faq-list details { background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: .2rem 1rem; }
.faq-list summary { cursor: pointer; padding: .7rem 0; font-family: Fraunces, serif; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
.faq-list details[open] summary { color: var(--red); }
.faq-list summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-list p { margin: 0 0 .9rem; color: var(--ink-soft); }

/* ---------- conseils ---------- */
.tip-grid { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tip-grid li { background: var(--card); border: 1px dashed var(--line); padding: 1rem 1.1rem; border-radius: 6px; position: relative; }
.tip-grid li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: repeating-linear-gradient(-45deg, #c0392b 0 6px, #fbf4e2 6px 9px, #1f4e8c 9px 15px, #fbf4e2 15px 18px); }
.tip-grid h3 { font-size: 1.1rem; margin-bottom: .2rem; padding-left: .3rem; }
.tip-grid p { margin: 0; color: var(--ink-soft); padding-left: .3rem; }

.contribute { background: var(--card); border: 1px solid var(--line); border-top: 6px solid transparent; border-image: var(--airmail) 6 0 0 0; margin: 1rem auto 0; width: calc(100% - 32px); max-width: 1148px; padding: 2rem 1.6rem; }
.contribute .ink { margin: 0 .25rem; }
code { background: var(--paper-2); padding: .1rem .4rem; border-radius: 3px; }
footer { text-align: center; color: var(--ink-soft); font-size: .9rem; }
footer a:not(.support) { color: var(--blue); }

@media (max-width: 820px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-wrap { aspect-ratio: 960 / 500; }
  .hero-marks { transform: scale(.7); transform-origin: top right; }
  .hero-card { padding-top: 6.4rem; }
  .par-avion { font-size: .7rem; }
  section, header, footer { padding-top: 2.2rem; padding-bottom: 2.2rem; }
}
