/*
  Reset moderne — Étape 1
  Objectif : base stable sans casser l’accessibilité native.
*/

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

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

:where(ul, ol)[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

img,
picture,
video {
  height: auto;
}

svg {
  overflow: visible;
}

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

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

:target {
  scroll-margin-block: var(--scroll-margin-anchor, 80px);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--state-focus-ring, 2px solid currentColor);
  outline-offset: var(--state-focus-offset, 4px);
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: var(--motion-reduced-duration, 1ms) !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: var(--motion-reduced-duration, 1ms) !important;
  }
}
