/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 12px);
}
@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Texture TEX-3 — Points discrets */
  background-image: radial-gradient(color-mix(in srgb, var(--text) 8%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* [hidden] force par dessus tout (piege #8) */
[hidden] { display: none !important; }

img, picture, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-style: italic; font-weight: 500; }
h4 { font-size: var(--fs-lg); }

::selection { background: var(--accent); color: var(--bg); }
::-moz-selection { background: var(--accent); color: var(--bg); }

* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface); }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

section { padding: 56px 0; position: relative; }
@media (min-width: 768px) { section { padding: 88px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 60ch;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-2); margin: 0 auto; max-width: 56ch; }
