/* Reset minimal + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (max-width: 768px) { html { scroll-padding-top: 72px; } }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* PIEGE PROD #11 : overflow-x clip (pas hidden) pour ne pas creer de scroller body */
  overflow-x: clip;
  min-height: 100dvh;
  /* TEX-4 grille fine */
  background-image:
    linear-gradient(rgba(42,42,38,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,42,38,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
figure { margin: 0; } /* PIEGE PROD #5 */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { color: var(--text-2); font-size: 1rem; line-height: 1.65; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::placeholder { color: var(--text-mute); opacity: 1; }
