/* Base : remise à zéro légère, typographie, accessibilité. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hauteur-entete) + var(--e-4)); }
body {
  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;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
/* :where() = spécificité nulle : les composants peuvent redéfinir marges et retraits sans conflit */
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }
h1, h2, h3, h4 {
  font-family: var(--police-titres);
  font-weight: 400;
  line-height: var(--interligne-titres);
  letter-spacing: var(--interlettrage-titres);
}
h1 { font-size: var(--taille-h1); }
h2 { font-size: var(--taille-h2); }
h3 { font-size: var(--taille-h3); }
/* Pas de text-wrap: balance/pretty : ils déplacent les retours à la ligne par rapport aux maquettes */
em { font-style: italic; }

/* L’attribut hidden doit toujours masquer, même sur un élément stylé en flex ou en bouton */
[hidden] { display: none !important; }

/* Focus visible au clavier, invisible à la souris */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--couleur-focus); outline-offset: 3px; }
/* Fonds sombres : focus Or mat (5,6:1 sur marine, 5,0:1 sur Encre) */
.entete, .pied, .section--encre, .consentement { --couleur-focus: var(--c-or-mat); }
main:focus { outline: none; }

.lien-evitement {
  position: absolute; left: var(--e-4); top: -100%; z-index: 100;
  padding: var(--e-3) var(--e-4);
  background: var(--couleur-fond-inverse); color: var(--couleur-texte-inverse);
}
.lien-evitement:focus { top: var(--e-4); }

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

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur-max) + 2 * var(--marge-page));
  margin-inline: auto;
  padding-inline: var(--marge-page);
}

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