/* Reset minimal + base typo */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, blockquote, figure, ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, iframe, svg { max-width: 100%; display: block; }
figure { margin: 0; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* TEX-1 uni propre — pas de texture */

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

p { color: var(--text-2); line-height: 1.65; }
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

a { color: var(--accent); transition: color var(--t-fast); }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}
