/* global.css — base, grain, typographie, utilitaires */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  position: relative;
}

/* Grain photographique global (réf. pochette 2) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; color: var(--c-white); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { color: var(--text-muted); max-width: 68ch; }
p + p { margin-top: var(--sp-4); }
a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--c-white); }
::selection { background: var(--c-blood); color: var(--c-white); }

:focus-visible { outline: 2px solid var(--c-ember); outline-offset: 3px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--c-crimson); color: #fff; padding: .6rem 1rem; transition: top var(--t-fast); }
.skip-link:focus { top: 1rem; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }

/* Apparition progressive */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
