/* ═══════════════════════════════════════════════════════════
   moncentredeloisirs.com — Base CSS (reset + typo + utilitaires)
   Charge apres tokens.css.
   ═══════════════════════════════════════════════════════════ */

/* ── Reset moderne minimaliste ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--primary-600); text-decoration: none; transition: color var(--motion-fast) var(--ease-out); }
a:hover { color: var(--primary-700); }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

/* ── Headings ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, var(--fs-4xl)); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, var(--fs-2xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-4); }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding-block: var(--space-16); }
.section-sm { padding-block: var(--space-10); }
.section-lg { padding-block: var(--space-24); }

/* ── Utilitaires ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-muted); }
.text-strong { color: var(--text-strong); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.skip-link {
  position: absolute; top: -100px; left: var(--space-4);
  background: var(--primary-600); color: var(--neutral-0);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
  z-index: 9999; font-weight: var(--fw-medium);
  transition: top var(--motion-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: var(--neutral-0); }
