/* 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) + 8px); }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

html, body {
  overflow-x: clip;       /* clip, JAMAIS overflow:hidden + overscroll-behavior */
  max-width: 100vw;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
}

/* Texture papier subtile (preset Craft) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Typo */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--fs-3xl); font-weight: 600; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-xl);  font-weight: 500; font-style: italic; }
h4 { font-size: var(--fs-lg);  font-weight: 600; }
h5 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }

p { max-width: 64ch; }
p + p { margin-top: 0.9em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--leaf-deep); }
::selection { background: var(--accent); color: var(--surface); }

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

/* Eyebrow / section label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

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

/* Sections */
section { padding: 48px 0; position: relative; }
@media (min-width: 768px) { section { padding: 80px 0; } }

/* Texte clair fonce / inverse */
.text-center { text-align: center; }
.muted { color: var(--text-2); }

hr {
  border: 0;
  border-top: 1.5px dashed var(--border-strong);
  margin: var(--sp-4) 0;
}

/* Reveal au scroll (vertical uniquement, jamais translateX) */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.stagger.in > *:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .stagger > * { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
