/* pages.css — pages de correspondance SizeCheck (générées par tools/generate_pages.py)
   Même identité que l'accueil : aluminium, papier, encre, jaune mètre.
   Une seule famille (Archivo), on joue sur la largeur. */
/* Archivo (SIL OFL 1.1, voir assets/fonts/OFL.txt) — hébergée sur le site, aucun appel à Google. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --alu: #E3E5E6;
  --alu-deep: #CDD1D4;
  --paper: #FFFFFF;
  --ink: #202326;
  --muted: #575D62;
  --rule: #D3D7DA;
  --tape: #F6C500;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--alu);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 16px 56px; }

/* En-tête */
.top { padding: 18px 0 0; }
.top .brand {
  font-weight: 900; font-stretch: 70%; font-size: 24px; letter-spacing: -0.01em;
  text-decoration: none;
}
.crumbs { font-size: 14px; color: var(--muted); margin: 14px 0 30px; }
.crumbs a { color: var(--ink); font-weight: 600; }

h1 {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-stretch: 64%;
  font-weight: 850;
  line-height: 0.95;
  margin-bottom: 16px;
  text-wrap: balance;
}
h2 {
  font-size: 30px; font-weight: 850; font-stretch: 66%; line-height: 1.05;
  margin: 48px 0 14px; text-wrap: balance;
}
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.intro { color: var(--muted); max-width: 62ch; }
.updated { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Lien vers le convertisseur */
.convert-link {
  display: inline-block; padding-block: 10px; margin-bottom: -10px; /* zone cliquable agrandie (≈ 44 px) sans déplacer le texte */
  font-weight: 700; font-size: 15px;
}

/* CTA convertisseur — page index des correspondances */
.cta {
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: var(--paper);
  border-radius: 4px; padding: 16px 18px; margin: 26px 0 6px;
  text-decoration: none; font-weight: 700;
}
.cta .go {
  margin-left: auto; white-space: nowrap;
  background: var(--tape); color: var(--ink);
  border-radius: 4px; padding: 8px 14px; font-weight: 800; font-size: 14px;
}
.cta:hover .go { background: var(--paper); }

/* CTA extension */
.ext-cta {
  display: flex; align-items: center; gap: 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 4px; padding: 18px 20px; margin: 28px 0;
}
.ext-cta-main { flex: 1; min-width: 0; }
.ext-cta-text strong { display: block; font-size: 20px; font-weight: 850; font-stretch: 72%; line-height: 1.15; }
.ext-cta-text p { font-size: 14px; color: #C9CED2; margin-top: 4px; }
.ext-cta-btn {
  flex-shrink: 0; white-space: nowrap;
  background: var(--tape); color: var(--ink);
  font-size: 15px; font-weight: 800;
  border-radius: 4px; padding: 10px 16px; text-decoration: none;
}
.ext-cta-btn:hover { background: var(--paper); }
.ext-cta-btn:focus-visible { outline-color: var(--tape); }
@media (max-width: 560px) {
  .ext-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Tableaux : des étiquettes de boîte */
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .tables { grid-template-columns: 1fr; } }

table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 4px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top; text-align: left;
  font-weight: 800; font-stretch: 74%; font-size: 19px;
  padding: 0 0 8px;
}
th {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-align: left; padding: 9px 12px 6px;
  border-bottom: 2px solid var(--ink);
}
td { padding: 8px 12px; border-top: 1px solid var(--rule); }
tbody tr:first-child td { border-top: 0; }
td.eu { font-weight: 700; }
td.target { font-weight: 850; font-stretch: 72%; font-size: 19px; line-height: 1.1; }
td .alt { font-weight: 600; font-stretch: 100%; color: var(--muted); font-size: 13px; }
td.cm { color: var(--muted); }

.note {
  background: var(--paper);
  border-left: 4px solid var(--tape);
  padding: 12px 14px; margin: 12px 0;
  font-size: 15px;
}

/* Conseils de chaussant */
.tip {
  background: var(--paper);
  border-left: 4px solid var(--ink);
  padding: 12px 14px; margin: 10px 0;
  font-size: 15px; max-width: 70ch;
}

/* FAQ */
.faq details { border-top: 1.5px solid var(--alu-deep); }
.faq details:last-child { border-bottom: 1.5px solid var(--alu-deep); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 13px 28px 13px 0; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 9px; font-size: 24px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--muted); max-width: 66ch; }

/* Liens croisés */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 20px; }
.links a {
  display: block; padding: 10px 0;
  border-top: 1.5px solid var(--alu-deep);
  font-weight: 600; text-decoration: none;
}
.links a:hover { text-decoration: underline; }

/* Pied de page */
footer {
  margin-top: 56px; padding-top: 16px;
  border-top: 1.5px solid var(--alu-deep);
  font-size: 14px; color: var(--muted);
}

/* Index des correspondances */
.pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 20px; }
.pairs-grid a {
  display: block; padding: 11px 0;
  border-top: 1.5px solid var(--alu-deep);
  font-weight: 700; text-decoration: none;
}
.pairs-grid a:hover { text-decoration: underline; }

/* Analyse enrichie (paires prioritaires) */
.cases { list-style: none; margin: 12px 0 18px; }
.cases li {
  background: var(--paper);
  border-left: 4px solid var(--tape);
  padding: 10px 14px; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.deep { margin: 10px 0; max-width: 66ch; }
.deep + .deep { margin-top: 12px; }
