/* ═══════════════════════════════════════════════
   FONTS — Marianne (FR) + Vazirmatn (FA/PS)
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: 'Marianne';
  src: url('/static/fonts/Marianne-Light.woff2') format('woff2'),
       url('/static/fonts/Marianne-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marianne';
  src: url('/static/fonts/Marianne-Regular.woff2') format('woff2'),
       url('/static/fonts/Marianne-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marianne';
  src: url('/static/fonts/Marianne-Medium.woff2') format('woff2'),
       url('/static/fonts/Marianne-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marianne';
  src: url('/static/fonts/Marianne-Bold.woff2') format('woff2'),
       url('/static/fonts/Marianne-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marianne';
  src: url('/static/fonts/Marianne-ExtraBold.woff2') format('woff2'),
       url('/static/fonts/Marianne-ExtraBold.woff') format('woff');
  font-weight: 800 900; font-style: normal; font-display: swap;
}

/* ── Apply by language ── */
html[lang="fr"],
html[lang="fr"] body {
  font-family: 'Marianne', 'Segoe UI', Arial, sans-serif;
}
html[lang="fa"], html[lang="fa"] body,
html[lang="ps"], html[lang="ps"] body {
  font-family: 'Vazirmatn', 'Tahoma', Arial, sans-serif;
}

/* Keep Font Awesome icons intact */
.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-brands,
i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Vazirmatn (FA/PS) — self-hosted */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
