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

body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; display: block; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; color: var(--text); margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.005em; }

/* [hidden] doit gagner sur display:flex/grid des modal/lightbox */
[hidden] { display: none !important; }

/* selection / scrollbar / focus / placeholder */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::placeholder { color: var(--text-mute); opacity: .8; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px){ .container { padding: 0 32px; } }

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

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0,0,0,0); white-space:nowrap; border:0; }
