/* Reset ——————————————————————— */

/* Règles de dimensionnement (box-sizing) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Défilement fluide */
html {
  interpolate-size: allow-keywords;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Taille de conteneur des éléments */
body > :is(header, footer),
main,
section,
article {
  container-type: inline-size;
}

/* Suppression du padding par défaut */
ul[class],
ol[class] {
  padding: 0;
}

/* Suppression des marges par défaut */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 70ch;
}

header,
footer,
main,
section,
article {
  container-type: inline-size;
}

/* Valeurs par défaut du corps de la page */
body {
  min-height: 100vh;
  /*scroll-behavior: smooth;*/
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Suppression des styles de liste sur ul, ol avec une classe */
ul[class],
ol[class] {
  list-style: none;
}

/* Les liens sans classe conservent le style par défaut */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Images plus faciles à manipuler */
img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Rythme typographique naturel dans les articles */
article > * + * {
  margin-top: 1rem;
}

/* Héritage de la police pour les champs et boutons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Suppression des animations pour les utilisateurs sensibles au mouvement */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}