/* reset.css — reset minimal natif, aucune dépendance */

/*
 * Transitions de page — API native du navigateur (zéro JS, zéro
 * bibliothèque). Fondu doux entre les 5 pages du site pour les
 * navigations same-origin ; ignoré silencieusement par les navigateurs
 * qui ne supportent pas encore la spec — dégradation gracieuse native.
 */
@view-transition {
  navigation: auto;
}

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

* {
  margin: 0;
}

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

/* Le drawer mobile est en position fixed + translateX(100%) hors écran ;
   sans ce garde-fou, certains moteurs comptent son ink overflow dans le
   scrollWidth du document et créent un scroll horizontal fantôme. */
html,
body {
  overflow-x: hidden;
}

@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;
  }
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--color-signal);
  outline-offset: 2px;
}
