@font-face { font-family: 'Archivo'; src: url('archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root { --bg: #efefec; --paper: #ffffff; --ink: #111213; --muted: #4c5054; --line: #c9cbc4; --red: #cf2a12; --on-red: #ffffff; --strip: #111213; --on-strip: #ffffff; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #131415; --paper: #f4f4f1; --ink: #f1f1ee; --muted: #b2b6ba; --line: #34373a; --red: #ff5b42; --on-red: #1c0300; --strip: #000000; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 'Archivo', system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
header, main, footer { width: min(1120px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
header { padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Menu des langues : fonctionne sans script. */
.lang { position: relative; font-size: .9375rem; font-weight: 700; }
.lang summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 16px; border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; list-style: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang ul { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; min-width: 100%; width: max-content; margin: 0; padding: 4px; list-style: none; background: var(--bg); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 0 16px 32px -18px rgb(0 0 0 / .5); }
.lang li a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 8px 12px; border-radius: 2px; text-decoration: none; }
.lang li a:hover { text-decoration: underline; }
.lang li a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wordmark { font-size: 1.75rem; line-height: 1; font-weight: 720; font-stretch: 106%; letter-spacing: -.035em; text-decoration: none; }
.wordmark-i { position: relative; display: inline-block; }
.wordmark-i svg { position: absolute; left: 50%; bottom: .74em; width: .27em; height: .35em; transform: translateX(-50%); fill: #e23119; overflow: visible; }

.home { flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-block: 32px 56px; }
h1 { margin: 0 0 .5em; font-size: clamp(2.35rem, 1.2rem + 4vw, 4.25rem); line-height: 1; font-weight: 880; font-stretch: 112%; letter-spacing: -.03em; text-wrap: balance; }
.lead { max-width: 34em; margin: 0 0 28px; color: var(--muted); font-size: 1.1875rem; }
.write { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 26px; background: var(--red); color: var(--on-red); border-radius: 4px; font-weight: 750; font-stretch: 104%; text-decoration: none; }
.write:hover { text-decoration: underline; }
.address { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; user-select: all; }

/* Le dossard : à la place du numéro, « Bientôt ». Il reste clair dans les deux thèmes, comme un vrai. */
.bib { position: relative; width: 100%; max-width: 440px; justify-self: center; background: var(--paper); color: #111213; border-radius: 14px; box-shadow: 0 24px 48px -28px rgb(0 0 0 / .45); overflow: hidden; container-type: inline-size; }
.bib-top { background: var(--strip); color: var(--on-strip); padding: 18px 44px; text-align: center; font-weight: 700; font-size: .9375rem; line-height: 1.35; }
.bib-number { display: block; padding: 9cqi 4cqi 7cqi; text-align: center; font-size: 31cqi; line-height: .92; font-weight: 880; font-stretch: 64%; letter-spacing: -.015em; }
.bib-bottom { margin: 0 8cqi; padding: 5cqi 0 8cqi; border-top: 2px dashed #b9bbb4; text-align: center; font-weight: 650; }
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 3px rgb(0 0 0 / .4); }
.pin:nth-of-type(1) { top: 14px; left: 14px; } .pin:nth-of-type(2) { top: 14px; right: 14px; }
.pin:nth-of-type(3) { bottom: 14px; left: 14px; } .pin:nth-of-type(4) { bottom: 14px; right: 14px; }

.prose { flex: 1; max-width: 760px; padding-block: 16px 56px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.prose h2 { margin: 1.6em 0 .4em; font-size: 1.25rem; font-weight: 780; font-stretch: 112%; }
mark { background: #fbf0cf; color: #5c4100; padding: 0 4px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 40px; align-content: start; padding-block: 12px 40px; }
  .bib { max-width: 380px; }
}
