/* === BASE — reset + typo fondamentale === */

/* Reset universel */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Anti-scroll horizontal — overflow-x:clip ne crée pas de scroll container (cf PIÈGE #11) */
body { overflow-x: clip; }

/* Reset figures et images */
figure { margin: 0; }
img, video, iframe { max-width: 100%; display: block; }

/* Forcer [hidden] à display:none (cf PIÈGE #8) */
[hidden] { display: none !important; }

/* Typographie de base */
html {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* Ancrage pour menu sticky */
  scroll-padding-top: var(--header-h-mobile);
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.1;
  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; }

/* Sélection aux couleurs de la marque */
::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--text);
}

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

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

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

/* Container commun */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Sections — espacements mobile-first */
section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  section { padding: 88px 0; }
}
