/* Base : reset moderne, typographie, accessibilité */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hauteur-entete);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 300 1.0625rem/1.75 var(--sans);
  color: var(--encre);
  background: var(--ivoire);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif); font-weight: 500;
  line-height: 1.08; letter-spacing: .005em;
  margin: 0; text-wrap: balance;
}
h2 { font-size: var(--t-h2); text-transform: uppercase; }
em { font-style: italic; }
p { text-wrap: pretty; }

/* Focus visible au clavier uniquement */
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.clair :focus-visible { outline-color: var(--or-texte); }

/* Lien d'évitement */
.evitement {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .8rem 1.2rem; background: var(--or); color: var(--nuit);
  font-weight: 500;
}
.evitement:focus { top: 1rem; }

/* Texte réservé aux lecteurs d'écran */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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