/* Proposition consultable, même matière que la maquette : vert sapin, fil abricot, Figtree. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/figtree-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; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --band: #1f4a40; --on-band: #fff4e8; --on-band-2: #d6e2db; --line: #f3a462; --line-soft: #fde7d3;
  --ink: #1e2b27; --ink-2: #3d4a45; --muted: #5f6b66; --rule: #dde4de; --ground: #eef2ee;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.col { max-width: 740px; margin: 0 auto; padding: 0 22px; }
a { color: var(--band); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; border-radius: 4px; }

.band { background: var(--band); color: var(--on-band); padding: 22px 0 34px; border-radius: 0 0 28px 28px; }
.band .back { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-band); font-weight: 650; font-size: 15px; }
.band .kicker { margin: 18px 0 6px; color: var(--on-band-2); font-size: 15px; }
.band h1 { margin: 0; font-size: clamp(24px, 5.2vw, 32px); line-height: 1.12; font-weight: 750; letter-spacing: -0.015em; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; }
.facts div { border-top: 3px solid var(--line); padding-top: 10px; }
.facts dt { font-size: 13.5px; color: var(--on-band-2); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: clamp(18px, 4.4vw, 24px); font-weight: 750; color: var(--on-band); white-space: nowrap; }

main.col { padding-top: 30px; padding-bottom: 60px; }
.toc { border: 1.5px solid var(--rule); border-radius: 18px; padding: 18px 20px; margin-bottom: 34px; }
.toc-h { font-size: 15px; margin: 0 0 8px; color: var(--muted); font-weight: 700; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 0; font-size: 16px; }
.toc li { margin: 0; }
.toc-a { margin: 14px 0 6px; font-size: 15px; color: var(--muted); font-weight: 700; }
.toc ol.ann { list-style: none; padding-left: 0; }
.toc a { display: inline-block; padding: 2px 0; line-height: 1.4; }

h2 { font-size: 24px; line-height: 1.2; margin: 38px 0 12px; font-weight: 750; letter-spacing: -0.01em; scroll-margin-top: 16px; }
h3 { font-size: 19px; line-height: 1.3; margin: 26px 0 8px; font-weight: 700; scroll-margin-top: 16px; }
p, ul, ol { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--band); }
strong { font-weight: 750; }
.corps > h2:first-child { margin-top: 0; }
.maq { background: var(--line-soft); border-radius: 14px; padding: 14px 16px; }
.maq a { font-weight: 700; white-space: nowrap; }

.tw { overflow-x: auto; margin: 6px 0 16px; padding: 4px 6px; border: 1.5px solid var(--rule); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--ground); font-weight: 700; font-size: 14px; }
tr:last-child td { border-bottom: 0; font-weight: 700; }
td:nth-child(n+3), th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.annexes table td:nth-child(n+2), .annexes table th:nth-child(n+2) { text-align: left; white-space: normal; }
.annexes tr:last-child td { font-weight: 400; }

.annexes { border-top: 3px solid var(--line); margin-top: 48px; padding-top: 8px; }
.ann-h { font-size: 30px; margin: 22px 0 8px; font-weight: 750; }
.chapeau { color: var(--ink-2); font-style: italic; }
.foot { margin-top: 46px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }

@media (max-width: 560px) {
  .tw.stack { border: 0; overflow: visible; padding: 0; }
  .stack table, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { border: 1.5px solid var(--rule); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
  .stack td { border: 0; padding: 0; text-align: left !important; white-space: normal !important; }
  .stack td:nth-child(1) { grid-column: 1 / -1; font-weight: 750; font-size: 16px; }
  .stack td:nth-child(2) { grid-column: 1 / -1; color: var(--ink-2); margin-bottom: 6px; }
  .stack td:nth-child(n+3)::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .stack td:nth-child(n+3) { font-weight: 700; }
  .stack td:empty { display: none; }
  .stack tr:last-child { background: var(--ground); border-color: var(--ground); }
  .stack tr:last-child td:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
  table { font-size: 14px; }
  th, td { padding: 8px 9px; }
}
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { font-size: 11.5pt; }
  .band { border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .band .back, .maq a { display: none; }
  .toc { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .tw, tr { break-inside: avoid; }
  .annexes { break-before: page; border-top: 0; }
  .foot { display: none; }
  main.col { padding-bottom: 0; }
  .annexes > :last-child { margin-bottom: 0; }
  .annexes ul { margin-bottom: 4px; }
}
