/* RESET + BASE */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol, p, h1, h2, h3, h4, h5, h6 { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
[hidden] { display: none !important; }

/* TEX-3 Points (fond papier + points discrets) */
body {
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* typo */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; }

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

/* scrollbar fine */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 50%, var(--bg-alt)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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