/* base.css — reset + typographie + fondation */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  /* overflow-x: clip ne crée pas de conteneur de scroll (piège prod #11) */
  overflow-x: clip;
  max-width: 100vw;
}

/* TEX-2 — Grain fin SVG noise très léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

/* Reset éléments */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.1;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }  /* piège prod #5 — reset marge UA figure */
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: transparent; font-family: var(--ff-ui); padding: 0; }
input, textarea, select { font-family: var(--ff-ui); font-size: 1rem; }
select, input { min-width: 0; } /* piège prod #10 — select min-width */

/* [hidden] forcé à display:none (piège prod #8) */
[hidden] { display: none !important; }

/* Typographie fluide */
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-style: italic; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-family: var(--ff-ui); font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--ff-ui); font-weight: 700; }

/* Lettrine éditoriale sur section à-propos */
.drop-cap::first-letter {
  float: left;
  font-family: var(--ff-display);
  font-size: 3.6em;
  line-height: 0.78;
  margin: 0.04em 0.1em 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* Texte utilitaires */
.eyebrow {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-2);
}

strong { font-weight: 700; }
em { font-style: italic; }
