/* =====================================================================
   Base : police hébergée localement, remise à zéro, typographie
   ===================================================================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--police);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--c-texte);
  background: var(--c-fond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--c-texte); }
h1 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--t-md); font-weight: 600; }
p { margin: 0; }

a { color: var(--c-primaire-fort); text-underline-offset: 3px; }
a:hover { color: var(--c-primaire-texte); }

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

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

/* Focus clavier toujours visible */
:focus-visible {
  outline: 3px solid var(--c-primaire);
  outline-offset: 2px;
  border-radius: 6px;
}

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

[hidden] { display: none !important; }

.texte-doux { color: var(--c-texte-doux); }
.chiffres { font-variant-numeric: tabular-nums; }

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