/* Police auto-hébergée (aucun appel à Google) */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Remise à zéro minimale */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
picture { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-black);
  font: var(--text-body);
}

/* Visible uniquement pour les lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Lien d'évitement : apparaît seulement au clavier */
.skip-link {
  position: absolute;
  left: var(--sp-xs);
  top: -100px;
  padding: var(--sp-2xs) var(--sp-xs);
  background: var(--color-black);
  color: var(--color-bg);
}
.skip-link:focus { top: var(--sp-xs); }

/* Focus clavier visible, invisible à la souris */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--color-purple); outline-offset: 3px; }
