/* Base : reset, typographie, mise en page */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-obsidian);
  color: var(--color-pure);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; text-wrap: balance; }

::selection { background: var(--color-pure); color: var(--color-void); }

:focus-visible { outline: 2px solid var(--color-pure); outline-offset: 3px; border-radius: 4px; }

/* ── Voix 1 : serif léger, pour l'émotion ── */
.display, .h2, .h3, .h4, .h5, .serif {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--color-cloud);
  font-variation-settings: 'opsz' 72;
}
.display { font-size: var(--text-display); line-height: 0.92; letter-spacing: -0.02em; }
.h2 { font-size: var(--text-h2); line-height: 0.95; letter-spacing: -0.015em; }
.h3 { font-size: var(--text-h3); line-height: 1; letter-spacing: -0.01em; }
.h4 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05; }
.h5 { font-size: 26px; line-height: 1.1; }
.display em, .h2 em, .h3 em, .serif em { font-style: italic; }

/* ── Voix 2 : sans, pour l'interface ── */
.h6 { font-size: var(--text-sub); line-height: 1.4; font-weight: 400; }
.lead { font-size: var(--text-sub); font-weight: 300; line-height: 1.5; color: var(--color-ash); max-width: 36em; }
.muted, .mist { color: var(--color-ash); }
.small { font-size: var(--text-small); line-height: 1.6; }
.strong { font-weight: 500; color: var(--color-pure); }
.accent { color: var(--color-pure); }
.iris { color: var(--tile-pale-iris); }

/* ── Voix 3 : mono, pour les étiquettes et les données ── */
.label, .caption, .mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { display: inline-block; font-weight: 500; color: var(--color-ash); }
.label--iris { color: var(--tile-pale-iris); }
.label--muted { color: var(--color-fog); }
.caption { color: var(--color-fog); line-height: 1.8; letter-spacing: 0.04em; }

.prose { max-width: 720px; margin-inline: auto; color: var(--color-ash); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-serif); font-weight: 300; font-size: 32px; line-height: 1.1; color: var(--color-cloud); margin-top: 2em; }
.prose h3 { font-size: var(--text-sub); color: var(--color-pure); margin-top: 1.6em; }
.prose a { color: var(--color-pure); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 500; color: var(--color-pure); }

/* ── Mise en page ── */
.container {
  width: 100%;
  max-width: calc(var(--page-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-gap); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.section--abyss { background: var(--color-abyss); }
.center { text-align: center; }
.center .lead, .lead.center { margin-inline: auto; }
.section-head { max-width: 860px; margin: 0 auto var(--space-15); text-align: center; }
.section-head .lead { margin: var(--space-6) auto 0; }
.section-head .label { margin-bottom: var(--space-5); }
.stack > * + * { margin-top: var(--stack, var(--space-6)); }
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-25); }
  .split--center { align-items: center; }
}
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
.grid-auto { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--color-pure); color: var(--color-void); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

main { position: relative; z-index: 1; }
