/* Reset + base — anti-PIEGES PROD */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Scroll horizontal CONTRE PIEGE PROD #13 : overflow-x clip (jamais hidden), overscroll-behavior auto */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h-mobile) + 8px); }
}
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

/* PIEGE PROD #5 : reset figure margin (sinon UA met 40px) */
figure { margin: 0; }
/* PIEGE PROD #8 : hidden force */
[hidden] { display: none !important; }

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

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--surface-deep); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* Micro-details soignes */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::placeholder { color: var(--text-mute); font-family: var(--ff-body); }

/* TEX-5 papier chaud (impose) */
body{
  background:var(--bg);
  background-image:radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 5%, var(--bg)) 0%, var(--bg) 60%);
  background-attachment: fixed;
}
