/* base.css — reset, polices locales, éléments natifs */

@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan.woff2") format("woff2-variations"),
       url("../assets/fonts/LeagueSpartan.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto.woff2") format("woff2-variations"),
       url("../assets/fonts/Roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  font-weight: var(--gras-texte);
  line-height: var(--interligne-texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--e-4);
  font-family: var(--police-titre);
  font-weight: var(--gras-titre);
  line-height: var(--interligne-titre);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 var(--e-4); }
blockquote, figure { margin: 0; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

ul, ol { margin: 0 0 var(--e-4); padding-left: 1.25em; }
li { margin-bottom: var(--e-2); }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

hr { border: 0; border-top: 1px solid var(--bordure); margin: var(--e-7) 0; }

table { border-collapse: collapse; width: 100%; }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-noir);
  color: var(--c-blanc);
  padding: var(--e-3) var(--e-5);
  z-index: 999;
  border-radius: 0 0 var(--r-md) 0;
}
.saut-contenu:focus { left: 0; color: var(--c-blanc); }

.lecteur-ecran {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* L'en-tête est collant : une ancre ne doit pas déposer le titre dessous. */
[id] { scroll-margin-top: calc(var(--en-tete-h) + var(--e-4)); }
