/**
 * ============================================================
 *  base.css — RESET & FONDATIONS TYPOGRAPHIQUES
 * ============================================================
 */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

/* ---- Typographie fluide ---- */
.h-display {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 650;
}
.h-1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.h-2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.h-3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-dark-60);
  line-height: 1.65;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Conteneur global ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.section-head--center .eyebrow::before { display: none; }
.section-head--center .eyebrow { justify-content: center; }

/* ---- Sections sombres ---- */
.on-dark { color: var(--text-light); }
.on-dark .lede { color: var(--text-light-60); }
.on-dark .eyebrow { color: var(--amber); }
