/* css/reset.css
   Reset CSS moderne et minimal.
   Objectif : neutraliser les styles par défaut des navigateurs
   sans supprimer les comportements accessibles utiles. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

/* Empêche le zoom automatique iOS sur les champs de saisie < 16px,
   important pour le formulaire de username (étape 3). */
input,
textarea,
select {
  font-size: max(16px, 1rem);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Focus visible clair et cohérent (accessibilité, section 36) */
:focus-visible {
  outline: 2px solid var(--color-primary, #6c5cE7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respecte les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
