/* Icônes : Material Symbols Outlined (sous-ensemble, voir config/icons.py).
   On garde la classe .material-icons dans les templates, comme le handoff V2.
   Contour au repos, rempli (FILL 1) seulement pour l'état actif.
   font-display: block → jamais le nom de l'icône en texte pendant le chargement. */
/* ═══ Base du composant (règles communes) ; les variantes V2 suivent ═══ */
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@font-face {
  font-display: block;
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/material-symbols-subset.98c9a8b40e66.woff2") format('woff2');
}

.material-icons {
  direction: ltr;
  display: inline-block;
  font-family: 'Material Symbols Outlined';
  font-feature-settings: 'liga';
  font-size: 24px;
  font-style: normal;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  font-family: var(--font-sans);
}

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

body {
  line-height: 1.5;
  min-height: 100vh;
  overscroll-behavior-y: none;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
