/* =====================================================================
   RESET.CSS — Reset moderne et minimal
   ===================================================================== */

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-snug);
  font-weight: var(--fw-extrabold);
}

p { text-wrap: pretty; }

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

ul, ol { list-style: none; }

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

/* Les images gardent leurs proportions par défaut (pas d'écrasement).
   Les images avec un cadrage précis (object-fit: cover) redéfinissent
   leur hauteur dans leur propre règle, ce qui l'emporte sur celle-ci. */
img {
  height: auto;
}

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

button { cursor: pointer; background: none; border: 0; }

/* Accessibilité : focus visible cohérent */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Cible d'ancre sous le header sticky */
:target { scroll-margin-top: calc(var(--header-height) + 1rem); }

/* Lien d'évitement (accessibilité) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: var(--z-toast);
  background: var(--color-orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: var(--fw-bold);
}
.skip-link:focus {
  left: 0;
}

/* Utilitaire lecteur d'écran uniquement */
.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;
}

/* Respect des préférences de mouvement réduit */
@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;
  }
}
