/* ═══════════════════════════════════════════════════════════════
 BASE — réinitialisation, typographie fondamentale, accessibilité.
 Les couleurs et les polices proviennent de css/theme.css, généré
 depuis config/product.config.json. Aucun littéral ici.
 ═══════════════════════════════════════════════════════════════ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

/* Accessibilité : focus toujours visible au clavier. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Contenu réservé aux lecteurs d'écran. */
.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;
}

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

/* Lien d'évitement : invisible jusqu'à la prise de focus au clavier. */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 999;
  padding: 10px 16px;
  background: var(--ink); color: var(--on-ink);
  font-family: var(--font-body); font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 8px; }
