/* ============================================================================
 * Base — reset + typo + body
 * ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis gère le smooth */
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--line-loose);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img { user-select: none; }

h1, h2, h3, h4, h5, h6, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

::selection {
  background: var(--or);
  color: var(--noir);
}

/* ── Typo display ────────────────────────────────────────────────────── */
.display, h1.hero-title, h2.section-title {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: var(--line-tight);
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}

.display em, h1.hero-title em, h2.section-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}

.overline {
  font-family: var(--ff-mono);
  font-size: var(--fs-xxs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.overline::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xxs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-soft);
}

/* ── Containers ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding-block: var(--sp-10);
  position: relative;
}

/* ── Utilitaires ─────────────────────────────────────────────────────── */
.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;
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
