/* Pages « Vivre au/à … » (tools/pages.mjs) : mêmes couleurs et polices que le calculateur. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
  --fond: #F3F5F4;
  --surface: #FFFFFF;
  --encre: #0E1A2B;
  --texte-2: #4B5563;
  --texte-3: #6B7280;
  --primaire: #0B6E5B;
  --primaire-fonce: #08574A;
  --primaire-clair: #E2F0EB;
  --bord: rgba(14, 26, 43, 0.08);
  --bord-fort: rgba(14, 26, 43, 0.16);
  --titre: 'Bricolage Grotesque', system-ui, sans-serif;
  --texte: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--primaire); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--primaire); outline-offset: 2px; border-radius: 4px; }

.page { max-width: 820px; margin: 0 auto; padding: 0 16px 64px; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { font-family: var(--titre); font-weight: 700; font-size: 20px; color: var(--encre); text-decoration: none; }
.langue { font-size: 14px; font-weight: 600; color: var(--texte-2); text-decoration: none; border: 1px solid var(--bord-fort); border-radius: 999px; padding: 4px 12px; }
.fil { font-size: 14px; color: var(--texte-3); margin: 8px 0 0; }
.fil a { color: var(--texte-2); }

h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(28px, 6vw, 40px); line-height: 1.12; margin: 16px 0 8px; text-wrap: balance; }
.maj { color: var(--texte-3); font-size: 14px; margin: 0 0 20px; }
.chapo { font-size: 18px; color: var(--texte-2); margin: 0 0 20px; }
h2 { font-family: var(--titre); font-weight: 650; font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
p, ul { margin: 0 0 12px; }
p:last-child, ul:last-child { margin-bottom: 0; }
ul { padding-left: 20px; }
li + li { margin-top: 6px; }

.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.bloc.accent { background: var(--primaire-clair); border-color: transparent; }
.chiffre { font-family: var(--titre); font-weight: 700; font-size: 26px; }
.note { font-size: 14px; color: var(--texte-3); }
.source { font-size: 13px; color: var(--texte-3); margin-top: 10px; }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--primaire); color: #fff; }
.bouton:hover { background: var(--primaire-fonce); }

dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dt { color: var(--texte-2); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: 12px; }
}

.tableau { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--bord); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
thead th { font-size: 13px; color: var(--texte-2); font-weight: 600; }

.pays { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pays li { margin: 0; }
.pays a { display: inline-block; padding: 6px 12px; border: 1px solid var(--bord-fort); border-radius: 999px; text-decoration: none; color: var(--encre); background: var(--surface); }

.pied { font-size: 14px; color: var(--texte-3); border-top: 1px solid var(--bord); margin-top: 32px; padding-top: 16px; }
.pied a { color: var(--texte-2); }
