/* Niuweb — 01. Design tokens, typographie et réinitialisation. */
@font-face {
  font-family: Poppins;
  src: url('../fonts/poppins-semibold-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Poppins, var(--font-ui);
  --ink: #152c30;
  --ink-soft: #40585b;
  --muted: #738384;
  --background: #f8f9f6;
  --surface: #ffffff;
  --surface-raised: rgba(255,255,255,.63);
  --border: rgba(28,78,77,.105);
  --glass-border: rgba(255,255,255,.77);
  --glass-shadow: 0 18px 55px rgba(28,72,67,.055), inset 0 1px 0 rgba(255,255,255,.8);
  --deep: #064e4d;
  --accent: #057a6c;
  --mint: #95e6d1;
  --teal: #50bdaa;
  --orange: #f5a23c;
  --focus: #db8b25;
  --radius: 22px;
  --container: 1190px;
  --section-gap: clamp(96px, 10vw, 148px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eaf5f0;
  --ink-soft: #bbcdca;
  --muted: #94aaa6;
  --background: #000;
  --surface: #101312;
  --surface-raised: #171c1a;
  --border: rgba(182,241,225,.11);
  --glass-border: rgba(191,255,238,.19);
  --glass-shadow: 0 20px 55px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.08);
  --deep: #9ae6d3;
  --accent: #9ae6d3;
  --mint: #8ce1cb;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 104px; background-color: var(--background); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--ink); font-family: var(--font-ui); line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:100; opacity:.17; background: none; /* texture définie dans effects.css */ mix-blend-mode:multiply; }
:root[data-theme="dark"] body::before { content:none; }
img, svg { display: block; max-width:100%; }
a { color: inherit; text-decoration:none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #94e6d0; color: #123330; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
svg.icon { width: 19px; height: 19px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3 { font-family:var(--font-display); font-weight:600; }
h1, h2 { letter-spacing:-.04em; line-height:1.1; }
h2 { font-size: clamp(2.65rem, 4.8vw, 4.6rem); }
h3 { font-size:1.25rem; letter-spacing:-.04em; line-height:1.3; }
em { font-weight:500; color:var(--accent); }
:is(h1, h2, h3) em { font-style:normal; font-weight:inherit; }
.period { color:var(--orange); font-style:normal; }
.skip-link { position:fixed; top:12px; left:12px; z-index:110; padding:10px 16px; color:#fff; background:#064e4d; transform:translateY(-180%); }
.skip-link:focus { transform:translateY(0); }
.sprite-preload { position:absolute; height:0; width:0; overflow:hidden; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }
