/* Reset + base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
  overflow-x: clip;
}
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
    color-mix(in srgb, var(--text) 9%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* TEX-3 : points discrets - overscroll-behavior auto (jamais none, PIEGE #11) */

[hidden] { display: none !important; }
figure  { margin: 0; }

img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: var(--ff-ui); cursor: pointer; border: none; background: none; }

::selection { background: var(--accent); color: #fff; }

::-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: 3px;
}

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

h1,h2,h3,h4,h5 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

p { max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container--text {
  max-width: var(--container-text);
}

section {
  padding: 48px 0;
}
@media (min-width: 768px) {
  section { padding: 80px 0; }
  html { scroll-padding-top: var(--header-h); }
}
