/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

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

/* overflow-x: clip (pas hidden+overscroll:none — PIÈGE PROD #11) */
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  max-width: 100vw;
}

/* [hidden] forcé display:none — PIÈGE PROD #8 */
[hidden] { display: none !important; }

/* Reset figure — PIÈGE PROD #5 */
figure { margin: 0; }

/* Media responsive */
img, video, iframe, svg { max-width: 100%; }
img { display: block; }

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--text);
  margin: 0;
}

p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: var(--ff-ui); cursor: pointer; border: none; background: none; }

/* ::selection — micro-detail */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar rebrandée */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

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

/* :focus-visible — accessibilité */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Container */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* Eyebrow / label */
.eyebrow {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-block;
}

/* Section title */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
}

.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-2);
  max-width: 56ch;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.chip--dark {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* Séparateur fin */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0;
}

@media (min-width: 768px) {
  html { scroll-padding-top: var(--header-h); }
}
