/* =====================================================================
   reset.css — remise à zéro
   ===================================================================== */

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

* { margin: 0; }

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

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

body {
  font-family: var(--police-texte);
  font-size: var(--t-base);
  line-height: var(--interligne);
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;   /* aucun débordement horizontal à 320px */
}

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

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

/* Jamais moins de 16px dans un champ : iOS zoome en dessous. */
input, select, textarea { font-size: max(1rem, var(--t-base)); }

button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: var(--interligne-titre);
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p, li { text-wrap: pretty; }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

table { border-collapse: collapse; width: 100%; }

/* Focus clavier visible partout */
:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
  border-radius: var(--rayon-s);
}
:focus:not(:focus-visible) { outline: none; }

[hidden] { display: none !important; }

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

.saut-contenu {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: var(--z-modale);
  background: var(--blanc);
  color: var(--bleu);
  padding: var(--e-3) var(--e-5);
  border-radius: 0 0 var(--rayon-m) var(--rayon-m);
  font-weight: 600;
  transition: transform var(--duree) var(--courbe);
}
.saut-contenu:focus { transform: translate(-50%, 0); }
