/* ==========================================================================
   02 — BASE
   Réglages par défaut des balises HTML (texte, titres, liens, images).
   ========================================================================== */

/* ---------- Remise à zéro légère ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4,
p, ul, ol, figure {
  margin: 0;
}

/* ---------- Page ---------- */
body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Titres ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-h1); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.02em; }

/* ---------- Liens ---------- */
a {
  color: var(--color-red-text);
}

a:hover {
  color: var(--color-ink);
}

/* Contour visible au clavier (accessibilité) */
:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

/* ---------- Images ---------- */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Utilitaires ---------- */

/* Masque un élément à l'écran mais le garde pour les lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Lien « Aller au contenu », visible seulement au clavier */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 10;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-sm);
}
