/* base.css — reset + typo + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

[hidden] { display: none !important; }

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-6 dégradé OKLCH discret sur le fond */
  background-image:
    radial-gradient(60% 40% at 20% 5%,  color-mix(in oklab, var(--accent) 8%,  var(--bg)) 0%, transparent 55%),
    radial-gradient(50% 35% at 85% 15%, color-mix(in oklab, var(--accent) 5%,  var(--bg)) 0%, transparent 50%);
}

img, video, iframe { max-width: 100%; display: block; }
figure { margin: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Micro-détails propres */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }
: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: 66ch; }

.container {
  width: var(--container);
  margin-inline: auto;
}

section {
  padding: 48px 20px;
}
@media (min-width: 768px) {
  section { padding: 80px 40px; }
}
