/* ═══ 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); }
}

/* Inter (Système fonctionnel, guide 03), hébergée par le site : 400, 500, 600, 700. Sous-ensemble latin
   (kreyòl et français). font-display: swap → le texte s'affiche tout de suite dans la police système. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.f837d382a885.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.42b95430773b.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.75fb76ec3559.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.3714175d15f3.woff2") format('woff2'); }

/* Icônes Lucide (Système fonctionnel, guide 09) : sprite SVG static/icons/sprite.svg, liste dans
   config/icons.py, balise {% icon %}. Trait de 2 px et couleur du texte (currentColor) portés par le sprite.
   16 px par défaut (bouton, ligne, menu) ; 14 px dans une pastille, un segment, un lien. */
.icon {
  display: inline-block;
  flex-shrink: 0;
  height: var(--ds-size-icon);
  vertical-align: middle;
  width: var(--ds-size-icon);
}

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

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

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

/* Styles du navigateur ramenés à l'échelle (guide 03) : 700 réservé au hero, pas de 13 px.
   :where() = spécificité nulle, chaque composant garde la main. */
:where(b, strong, th, h1, h2, h3, h4, h5, h6) {
  font-weight: var(--ds-font-weight-semibold);
}

:where(small) {
  font-size: var(--ds-font-size-xs);
}

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

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

::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;
}
