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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--couleur-fond);
  color: var(--couleur-texte);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: var(--interligne-texte);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--police-titres);
  line-height: var(--interligne-titres);
  color: var(--bleu-fonce-900);
  margin: 0 0 var(--espace-2);
}

h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-weight: 400; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.1rem); font-weight: 400; }
h3 { font-size: 1.3rem; font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 400; }

p {
  margin: 0 0 var(--espace-2);
  max-width: var(--largeur-texte-long);
}

a {
  color: var(--couleur-lien);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--couleur-primaire-hover);
}

ul, ol {
  padding-left: 1.25em;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--bleu-fonce);
  outline-offset: 2px;
}

.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;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bleu-fonce);
  color: var(--blanc);
  padding: var(--espace-1) var(--espace-2);
  z-index: 200;
}

.lien-evitement:focus {
  left: var(--espace-2);
  top: var(--espace-2);
}

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