/* base.css — reset + typo + base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
  font-size: 16px;
}
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  /* TEX-4 grille fine */
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
figure { margin: 0; }
img, video, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: 0; cursor: pointer; font-family: var(--ff-ui); }
input, textarea, select {
  font-family: var(--ff-body);
  font-size: 1rem;
  min-width: 0;
}
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.15; }

/* Micro-détails propres */
::selection { background: var(--accent-soft); color: var(--text); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
::placeholder { color: var(--text-mute); opacity: 1; }

/* Utilitaires */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
section {
  padding: 48px 20px;
}
@media (min-width: 768px) {
  html { scroll-padding-top: var(--header-h); }
  section { padding: 80px 40px; }
}
