/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-feature-settings: "ss01" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Texture papier subtile sur fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(oklch(45% 0.12 145 / 0.025) 1px, transparent 1px),
    radial-gradient(oklch(30% 0.08 100 / 0.018) 1px, transparent 1px);
  background-size: 28px 28px, 19px 19px;
  background-position: 0 0, 9px 9px;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-deep); }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-hero); font-style: italic; font-weight: 500; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 600; font-style: normal; font-family: var(--ff-ui); letter-spacing: 0.04em; text-transform: uppercase; }

strong, b { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

/* Focus visible (anti-IA propre) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible, a:focus-visible {
  outline-offset: 4px;
}

/* Scrollbar fine rebrandee */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--bg-alt); }
*::-webkit-scrollbar-thumb { background: oklch(60% 0.06 145); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: oklch(60% 0.06 145) var(--bg-alt); }

::placeholder { color: oklch(55% 0.02 100); opacity: 1; }

/* utilitaires */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.15rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.eyebrow {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
