/* =========================================================================
   GENERIC — Reset & box-sizing (faible spécificité, sélecteurs larges)
   ========================================================================= */

/* --- Polices de marque (self-hosted, cf. brand-source/TYPOGRAPHIES) -------
   Display/titres/wordmark = Impact · corps = Europa Grotesk Light ·
   labels/caps = Europa Grotesk Medium. (woff2 = optimisation phase H) */
@font-face {
  font-family: 'Impact';
  src: url('../assets/fonts/impact.ttf') format('truetype');
  font-weight: 400 900;        /* face unique → couvre toute la plage, pas de faux-gras */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Europa Grotesk';
  src: url('../assets/fonts/europa-grotesk-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Europa Grotesk';
  src: url('../assets/fonts/europa-grotesk-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Accent manuscrit — handle réseau uniquement (décoratif, hors charte, self-hosted) */
@font-face {
  font-family: 'Permanent Marker';
  src: url('../assets/fonts/permanent-marker.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Médias : block + fluides par défaut */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Les éléments de formulaire héritent de la typo */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Listes utilisées comme structure (nav, footer) : on retire les puces au reset */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Cibles de défilement ancrées : on dégage la hauteur du header sticky */
:target {
  scroll-margin-top: calc(var(--header-h) + var(--space-16));
}
