/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-mobile) + 8px); }
@media (min-width: 768px) { html { scroll-padding-top: calc(var(--header-h) + 8px); } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* TEX-3 Points (radial-gradient discret) */
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: clip;
  max-width: 100vw;
}

/* PIEGE PROD #5 : reset figure obligatoire */
figure { margin: 0; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

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

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; color: var(--text); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { padding-left: 1.2em; }

button { font: inherit; cursor: pointer; }

/* Selection / focus / scrollbar (micro-details propres) */
::selection { background: var(--accent); color: #fff; }
::-moz-selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::placeholder { color: var(--text-mute); opacity: 1; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 50%, var(--text)); border-radius: 4px; }
