/* =========================================================
   RESET.CSS
   Reset moderne, accessible et robuste
   ========================================================= */

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

/* ---------------------------------------------------------
   Suppression des marges par défaut
   --------------------------------------------------------- */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* ---------------------------------------------------------
   Hauteur pleine
   --------------------------------------------------------- */
html,
body {
  min-height: 100%;
}

/* ---------------------------------------------------------
   Corps du texte
   --------------------------------------------------------- */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------
   Médias responsives
   --------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* ---------------------------------------------------------
   Formulaires : héritage typographique
   --------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
}

/* ---------------------------------------------------------
   Boutons et inputs
   --------------------------------------------------------- */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   Liens
   --------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------------------------------------------------------
   Tableaux
   --------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---------------------------------------------------------
   Détails / Summary (important pour cards)
   --------------------------------------------------------- */
details {
  display: block;
}

summary {
  display: list-item;
}

/* ---------------------------------------------------------
   Focus visible (accessibilité)
   --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.4);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Sélection de texte
   --------------------------------------------------------- */
::selection {
  background: rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------
   Préférences utilisateurs : réduction animations
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
