/* base.css — reset + typo + helpers */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) { html { scroll-padding-top: var(--header-h); } }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  /* TEX-3 : points discrets */
  background-image: radial-gradient(
    color-mix(in srgb, var(--text) 8%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}

/* Contenu au-dessus du fond */
body > * { position: relative; z-index: 1; }

/* Règle [hidden] */
[hidden] { display: none !important; }

img, video, iframe { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.08; font-weight: 500; }

/* Scrollbar fine */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt, var(--bg)); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* Sélection */
::selection { background: var(--accent); color: #fff; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Placeholder */
::placeholder { color: var(--text-mute); opacity: 1; }
