/* ============================================================
   BASE — reset moderne, typographie, primitives de mise en page
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--heartwood); color: var(--linen); }

/* ---- TYPOGRAPHIE --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
}
em, .italic {
  font-style: italic;
  font-optical-sizing: auto;
}

/* eyebrow : petite étiquette éditoriale */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent-lit);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow.center::before { display: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-dark-soft);
  font-weight: 350;
  max-width: 46ch;
}

/* ---- LAYOUT -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--space-2xl); position: relative; }
.section-sm { padding-block: var(--space-xl); }

.on-light { background: var(--parchment); color: var(--on-light); }
.on-light .lede { color: var(--on-light-soft); }
.on-light .eyebrow { color: var(--heartwood-deep); }

.grid { display: grid; gap: var(--gutter); }

/* ---- UTILITAIRES --------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.muted { color: var(--on-dark-soft); }

/* accessibilité : focus clavier visible */
:focus-visible {
  outline: 2px solid var(--accent-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link */
.skip {
  position: absolute; top: -100px; left: var(--gutter);
  background: var(--linen); color: var(--ink);
  padding: .8em 1.4em; border-radius: var(--radius-pill);
  z-index: 1000; font-weight: 600; font-size: var(--step--1);
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 1rem; }
