/* Socle technique : reset, accessibilité, défilement lissé. Aucun choix esthétique ici. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
img, video { object-fit: cover; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* Accessibilité */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.visually-hidden {
  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: absolute; left: var(--gutter); top: -100px; z-index: 200; padding: var(--space-xs) var(--space-s); background: var(--navy); color: var(--ivory); }
.skip-link:focus { top: var(--space-xs); }

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

/* Lenis (défilement lissé) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* CTA fixe : mobile uniquement */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta { display: block; }
}

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