/**
 * @file
 * CSS Reset / Normalize.
 */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  color: var(--color-black);
  background-color: var(--color-blue-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Utility: hide subheader "Sources médicales" link — remove class on element to re-enable */
.subheader-hidden {
  display: none !important;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== FOCUS STATES — Accessibility ===== */
/* Visible focus indicator for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove default outline for mouse users — keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Utility: hidden state (JS toggle) */
.is-hidden {
  display: none !important;
}

/* ===== REDUCED MOTION — Accessibility ===== */
@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;
  }
}
