/* ==========================================================================
   Snapzone · Design system web — BASE DE PAGE
   --------------------------------------------------------------------------
   Remplace la section « Reset & base » du site. Optionnel : si le site garde
   son propre reset, ne reprendre que le bloc body, les titres, :focus-visible
   et prefers-reduced-motion.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-content);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Titres : Archivo Black Italic, capitales (voix « display » de la charte).
   Les noms de lieux gardent leur casse : utiliser .sz-place. */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 900;
  font-style: italic;
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-display);
  color: var(--color-content);
  text-wrap: balance;
}

h1 { font-size: var(--text-display-lg); line-height: var(--leading-display); text-transform: uppercase; }
h2 { font-size: var(--text-display-md); line-height: var(--leading-display); text-transform: uppercase; }
h3 { font-size: var(--text-title); }
h4 { font-size: var(--text-title-sm); }

p { margin: 0; text-wrap: pretty; }

/* L'italique est réservé aux titres, accroches, CTA et verdicts (charte). */
em { font-style: normal; color: var(--color-content); font-weight: 700; }
strong { font-weight: 700; color: var(--color-content); }

a {
  color: var(--color-instrument-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-micro) var(--ease-micro);
}

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

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

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

::selection {
  color: var(--color-on-selection);
  background: var(--color-selection);
}

/* Focus clavier visible partout, décalé pour rester lisible sur le jaune. */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Tout mouvement est réduit ou supprimé si l'utilisateur le demande. */
@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;
  }
}
