/* ============================================================
   BASE - reset + typo + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* PIEGE PROD #11: pas d'overscroll-behavior, overflow-x clip plutot que hidden */
  overflow-x: clip;
}

img, video, iframe, picture { max-width: 100%; display: block; }
img { height: auto; }
/* PIEGE PROD #5 : reset figure (sinon UA margin 40px) */
figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2rem; }

/* PIEGE PROD #8 : [hidden] force */
[hidden] { display: none !important; }

/* Typo */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 500; }

p { margin: 0 0 var(--space-2); max-width: 64ch; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: #fff; }

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

::placeholder { color: var(--text-mute); opacity: 1; }

/* Scrollbar fine rebrandee */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
*::-webkit-scrollbar-track { background: transparent; }

/* TEX-5 : papier chaud (degrade radial doux) */
body {
  background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 5%, var(--bg)) 0%, var(--bg) 60%);
  background-attachment: fixed;
}

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

/* Section padding mobile 48px / desktop 80px */
.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

.section--tight { padding-top: 32px; }
@media (min-width: 768px) { .section--tight { padding-top: 56px; } }

/* Section eyebrow */
.eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-2);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 0 var(--space-4);
}

.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;
}
