/* Base : remise à zéro, typographie, mise en page, accessibilité */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--marine);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* Langues : contenus éditoriaux doublés FR / EN dans le HTML */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* Mise en page */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.stack > * + * { margin-top: var(--s4); }
.measure { max-width: 65ch; }

/* Titres de rôle (plan §4.3) */
.t-lockup {
  font-size: var(--fs-lockup);
  font-weight: 850;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.t-section {
  font-size: var(--fs-section);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.015em;
}
.t-h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.t-h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; }
.t-small { font-size: var(--fs-small); line-height: 1.4; font-weight: 450; }
.t-muted { color: var(--ardoise); }
.t-num { font-variant-numeric: tabular-nums; }

/* Accessibilité */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--marine); color: var(--blanc); padding: 12px 18px; border-radius: var(--r-pilule);
  font-weight: 600; transition: top var(--d-micro) var(--ease);
}
.skip-link:focus { top: var(--s4); }
:focus { outline: none; }
:focus-visible { outline: var(--liseré) solid var(--marine); outline-offset: 3px; }
.on-dark :focus-visible, .on-photo :focus-visible { outline-color: var(--blanc); }

/* Médias */
.ratio { position: relative; overflow: hidden; background: var(--pierre); }
.ratio > img, .ratio > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio--2-3 { aspect-ratio: 2 / 3; }
.ratio--3-4 { aspect-ratio: 3 / 4; }
.ratio--4-5 { aspect-ratio: 4 / 5; }
.ratio--1-1 { aspect-ratio: 1 / 1; }
.ratio--16-9 { aspect-ratio: 16 / 9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
