/* =============================================================
   BASE — reset, element defaults, foundational utilities
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text-strong);
  background: var(--surface-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* --- Focus a11y (clé RGAA/EAA) --- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; border-radius: 2px; }

/* --- Layout --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--section-y) 0; }
.section.dark  { background: var(--noir-950); color: var(--cream-100); }
.section.cream { background: var(--cream-100); color: var(--gray-800); }

/* --- Eyebrow (signature: court, uppercase, factuel) --- */
.eyebrow {
  font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--eyebrow-c);
}
.eyebrow.on-dark { color: var(--eyebrow-c); filter: brightness(1.15); }
/* eyebrow + barre (signature de section) */
.eyebrow.barred { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow.barred::before { content: ""; width: 32px; height: 1.5px; background: var(--hero-eyebrow-bar); }

/* --- Titres --- */
.h1-page { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--cream-100); }
.h1-page.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: var(--ls-display); line-height: var(--lh-display); }
.h2 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.01em; margin: 0; color: var(--gray-800); }
.h2.on-dark { color: var(--cream-100); }
.h2.display { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2-display); text-transform: uppercase; letter-spacing: var(--ls-display); line-height: 1; }
.h1-page.display .it, .h2.display .it { font-style: italic; font-weight: 700; }
.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.005em; margin: 0; color: var(--gray-800); }

/* --- Texte courant --- */
.lede { font-size: var(--fs-body); color: var(--gray-600); max-width: 640px; line-height: 1.6; }
.lede.on-dark { color: var(--cream-200); }

/* --- Section header (eyebrow + barre + h2 + lede) --- */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 48px; }
.section-head.center { align-items: center; text-align: center; }

/* --- Mono micro-textes (numérotation, refs, séries) --- */
.mono { font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-mono); letter-spacing: .04em; }
.serial { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--gray-500); }

/* --- Text link souligné accent --- */
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--fs-small); letter-spacing: var(--ls-cta); text-transform: uppercase;
  color: var(--gray-800); border-bottom: 1.5px solid var(--accent-500); padding: 6px 0; transition: color var(--dur);
}
.text-link:hover { color: var(--accent-500); }
