/* RESET + BASE */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  /* PIEGE PROD #11 : overscroll-behavior reste auto */
}
body {
  overflow-x: clip;            /* clipping horizontal sans bloquer le scroll */
  max-width: 100vw;
  min-height: 100vh;
}
img, picture, video, iframe, svg { max-width: 100%; display: block; }
figure { margin: 0; }           /* PIEGE PROD #5 */
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; } /* PIEGE PROD #8 */

::selection { background: var(--accent-soft); color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

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

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

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 0;
}
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

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

/* utilitaires de section */
section { padding: 48px 0; position: relative; }
@media (min-width: 768px) {
  section { padding: 80px 0; }
}

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

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  font-family: var(--ff-display);
  font-weight: 500;
  max-width: 22ch;
}
.section-head h2 em {
  color: var(--accent);
  font-style: italic;
}
.section-head__sub {
  margin-top: 14px;
  color: var(--text-2);
  max-width: 56ch;
}
