/* ============================================================
   UPia v2 : self-hosted fonts
   - PolySans Trial (Gradient/Befonts) declare en plages de poids
     pour qu'il matche tous les usages CSS (400-700).
   - General Sans (ITF) declare comme famille separee, pour servir
     de fallback caractere par caractere quand PolySans n'a pas
     le glyph (accents francais).
   - Stack CSS : "PolySans", "General Sans", ... : le navigateur
     pioche PolySans pour les chars ASCII (presents) et tombe
     automatiquement sur General Sans pour les accents (absents).
   - Inter (OFL) pour le corps.
   ============================================================ */

/* ===== PolySans Trial : titres et nav, plages de poids ===== */
@font-face {
  font-family: "PolySans";
  src: url("../fonts/PolySans-Slim.otf") format("opentype");
  font-weight: 100 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("../fonts/PolySans-Neutral.otf") format("opentype");
  font-weight: 351 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("../fonts/PolySans-Median.otf") format("opentype");
  font-weight: 451 599;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("../fonts/PolySans-Bulky.otf") format("opentype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("../fonts/PolySans-BulkyItalic.otf") format("opentype");
  font-weight: 600 900;
  font-style: italic;
  font-display: swap;
}

/* ===== General Sans Variable : fallback pour les chars absents
   du Trial PolySans (accents francais, etc.) ===== */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Variable.woff2") format("woff2-variations"),
       url("../fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-VariableItalic.woff2") format("woff2-variations"),
       url("../fonts/GeneralSans-VariableItalic.woff2") format("woff2");
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

/* --- Inter (corps) --- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
