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

/* anti horizontal scroll */
html, body { max-width: 100vw; overflow-x: clip; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

img, video, iframe, svg { max-width: 100%; display: block; }
figure { margin: 0; }
p { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: 0.2em 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* hidden absolu pour modal/lightbox */
[hidden] { display: none !important; }

/* Scrollbar discrete */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
