/* Reset + base typo + selection + scrollbar + accessibilite */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 8% 12%, oklch(85% 0.05 145 / 0.18) 0, transparent 28%),
    radial-gradient(circle at 92% 85%, oklch(85% 0.05 60 / 0.13) 0, transparent 32%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; color: var(--text); margin: 0 0 var(--sp-4); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul { padding-left: 1.2em; }
ul.bare { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--accent); color: var(--bg); }
::placeholder { color: var(--text-muted); opacity: 0.9; }

/* Scrollbar fine rebrandee */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: oklch(60% 0.04 145); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visible accessible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Utilites */
.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-wrap { white-space: nowrap; }
.muted { color: var(--text-muted); }

/* Texture de fond papier subtile (SVG inline en bg) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.20  0 0 0 0 0.12  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }
