/* =========================================================================
   NOVA · Base : remise à zéro, typographie, utilitaires
   ========================================================================= */

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg) 60%) no-repeat, var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p, ul, ol, dl, dd, figure { margin: 0; }

img, svg { max-width: 100%; }

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Sections ciblées par les liens d'ancre : pas de cadre de focus autour de toute la section */
[tabindex="-1"]:focus { outline: none; }

::selection { background: var(--primary); color: white; }

/* Utilitaires */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 46ch;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: .75rem 1rem;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus-visible { transform: none; }

/* Texte découpé par le script (lettres / mots) */
.word { display: inline-block; white-space: nowrap; }
.char, .char-in { display: inline-block; }
