/* ============================================================
   RESET : minimal, moderne
============================================================ */

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

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

ul, ol { padding: 0; list-style: none; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* les ancres ne passent pas sous le header fixe */
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

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

/* <picture> ne doit jamais participer à la mise en page : seul l'<img>
   qu'il contient doit être stylé (positionnement absolu des vignettes,
   object-fit des couvertures, dimensions du logo...). Cette règle rend
   l'introduction de <picture> pour le WebP totalement transparente pour
   tout le CSS existant. */
picture {
  display: contents;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

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