/* base.css — reset + typographie */

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.65;
  overflow-x: clip; /* clip horizontal sans bloquer le scroll Y */
}

/* Prevent accidental overscroll lock */
html, body { overscroll-behavior: auto; }

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: 0; background: transparent; font: inherit; }
[hidden] { display: none !important; }

/* Typographie */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.08;
  font-weight: 500;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }

p { color: var(--text-2); line-height: 1.68; }

/* Micro-détails propres */
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::placeholder { color: var(--text-mute); opacity: .7; }

/* Container utilitaire */
.container { width: var(--container); margin-inline: auto; }

/* Texte accentué dans les titres */
em { font-style: italic; color: var(--accent); }
