/* ═══════════════════════════════════════════════════
   RESET — Normalize + Modern Reset
   ═══════════════════════════════════════════════════ */

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* garde-fou : aucun pin GSAP ne doit créer une scrollbar globale */
}

body {
  min-height: 100vh;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* idem : empêche la scrollbar horizontale en bas de page */
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 0.92;
}

p {
  text-wrap: pretty;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--c-accent);
  color: var(--c-navy-2);
}

/* Scroll locked state */
body.is-locked {
  overflow: hidden;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 99999;
  padding: 12px 24px;
  background: var(--c-accent);
  color: var(--c-navy-2);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top 0.3s;
}
.skip-link:focus {
  top: 16px;
}
