/* ============================================================
   SOCLE COMMUN : reset court + primitives partagees par tous
   les blocs. Ne consomme QUE des roles semantiques et des
   echelles core. Aucune couleur en dur, aucun style de pack.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

ul[role='list'], ol[role='list'] { list-style: none; }

a { color: inherit; }

/* Conteneur standard */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---- Boutons : la forme vient des roles, le pack decide tout ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-weight: var(--w-strong);
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: var(--bw-1) solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

/* ---- Reveal d'entree en cascade (WowKit transversal minimal) ----
   Actif UNIQUEMENT si l'utilisateur accepte le mouvement.
   Sans cette media query : tout est visible d'emblee, aucun saut. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal-up var(--dur-3) var(--ease-out) forwards;
    animation-delay: calc(var(--reveal-i, 0) * var(--stagger));
  }
  @keyframes reveal-up {
    to { opacity: 1; transform: none; }
  }
}
