/* Reset minimal + 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;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  background-image:
    radial-gradient(60% 60% at 12% 8%, color-mix(in oklab, var(--accent) 11%, var(--bg)) 0%, transparent 60%),
    radial-gradient(50% 50% at 92% 18%, color-mix(in oklab, var(--accent) 7%, var(--bg)) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.1; margin: 0; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--text); }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

/* Selection / scrollbar / focus */
::selection { background: var(--accent); color: var(--primary); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
::placeholder { color: var(--text-mute); opacity: 1; }

/* Anti-overflow form controls (regle bug mb-nettoyage) */
input, select, textarea { min-width: 0; max-width: 100%; }

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

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

.section-title { font-size: var(--fs-h2); margin-bottom: 12px; }
.section-sub { color: var(--text-2); max-width: 60ch; margin: 0 0 32px; }
