/* ==========================================================================
   Base : remise à zéro, typographie, accessibilité, utilitaires
   ========================================================================== */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body{
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
h1,h2,h3,h4{ font-family: var(--font-title); letter-spacing: -.02em; line-height: 1.2; margin: 0; font-weight: 600; }
p{ margin: 0; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
img,svg{ display: block; max-width: 100%; }
button,input,select,textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
::selection{ background: var(--accent-soft); }
code{ font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }

svg.i{
  width: 18px; height: 18px; flex: none; display: inline-block;
  stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
svg.i.is-small{ width: 15px; height: 15px; }
svg.i.is-large{ width: 22px; height: 22px; }

/* Barres de défilement discrètes */
*{ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* Utilitaires */
.sr-only{ position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted{ color: var(--text-2); }
.subtle{ color: var(--text-3); }
.eyebrow{ font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-weight: 600; }
.stack{ display: grid; gap: var(--space-4); }
.row{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.spacer{ flex: 1; }
[hidden]{ display: none !important; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
