/* Reset large incluant figure (PIEGE PROD #5) */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea, button { font: inherit; }

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

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

/* PIEGE PROD #11 : overflow-x clip sur body, overscroll auto sur html/body */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
}
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* TYPO */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
p { color: var(--text-2); }
em { font-style: italic; color: var(--accent); }

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

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

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

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

/* Section padding mobile-first */
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }

.eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
}

.text-center { text-align: center; }
