/* =======================
   typography.css
   ======================= */

/* Inter local (variable) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    local("Inter Variable"),
    local("InterVariable"),
    url("/assets/fonts/inter/InterVariable.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src:
    local("Inter Variable Italic"),
    local("InterVariable-Italic"),
    url("/assets/fonts/inter/InterVariable-Italic.woff2") format("woff2-variations");
}

/* Fallback statique si pas de variable */
@supports not (font-variation-settings: normal){
  @font-face{ font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/inter/Inter-Regular.woff2") format("woff2"); }
  @font-face{ font-family:"Inter"; font-style:italic;  font-weight:400; font-display:swap; src:url("/assets/fonts/inter/Inter-Italic.woff2")   format("woff2"); }
}

/* Base */
html { font-size: var(--font-size-base); }

body{
  color: var(--text);
  background: var(--bg-page);
  font-family: var(--font-sans);
  font-weight: var(--text-weight);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "calt" 1, "liga" 1, "tnum" 1;
  font-optical-sizing: auto;
  font-synthesis: none;
}

/* Titres */
h1,h2,h3,h4,h5,h6{
  /* color: var(--text); */
  font-weight: var(--heading-weight);
  letter-spacing: .01em;
}

/* Liens (déplacé depuis core.css) */
a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--primary); }

/* Code / mono */
code, pre, kbd, samp { font-family: var(--font-mono); }

/* Chiffres tabulaires */
[data-numeric], .badge, .stat, .kpi { font-variant-numeric: tabular-nums; }