/* Reset + base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (min-width: 769px) {
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* PIEGE PROD 11 : pas d'overscroll-behavior, clip pour eviter scroll-x */
  overflow-x: clip;
  max-width: 100vw;
  min-height: 100dvh;
}

/* PIEGE PROD 5 : reset figure obligatoire */
figure { margin: 0; }

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

img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.6em;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); letter-spacing: -0.022em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1rem; max-width: 66ch; }

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

ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }

button { font-family: inherit; cursor: pointer; }

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

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

* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

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