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

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

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  /* JAMAIS overscroll-behavior sur body */
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  -webkit-appearance: none;
}

button { cursor: pointer; }

[hidden] { display: none !important; }

figure { margin: 0; }

/* Typographie base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.1;
  color: var(--text);
  font-weight: 500;
}

p { max-width: 68ch; }

strong { font-weight: 600; }

/* ::selection couleurs marque */
::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
}

/* Scrollbar fine rebrandée */
::-webkit-scrollbar { width: 8px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 4px; }

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

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