/* ============================================================
   AGORA · paires typographiques par univers (v1.6.0)
   ------------------------------------------------------------
   3 paires libres (OFL) pour les documents PDF white-label,
   alignées sur les 3 univers couleur :

     .pair-convivial  → Lora + Inter        (chaleureux, village)
     .pair-sobre      → Source Serif 4 + IBM Plex Sans (institutionnel)
     .pair-culturel   → Abril Fatface + Lato (expressif, festival)

   Les @font-face pointent vers les .ttf à déposer dans
   assets/fonts/np-<univers>/ (voir le README.txt de chaque
   dossier pour les liens de téléchargement). Tant que les TTF
   ne sont pas présents, le navigateur retombe sur les piles de
   secours système indiquées dans chaque --font-*.

   Compatible dompdf : ne référencer QUE des .ttf statiques
   (pas de woff2, pas de fonts variables).
   ============================================================ */

/* -------- Convivial -------- */
@font-face {
  font-family: "AGORA Lora";
  src: url("np-convivial/Lora-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AGORA Inter";
  src: url("np-convivial/Inter-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AGORA Inter";
  src: url("np-convivial/Inter-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* -------- Sobre -------- */
@font-face {
  font-family: "AGORA Source Serif";
  src: url("np-sobre/SourceSerif4-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AGORA Plex Sans";
  src: url("np-sobre/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AGORA Plex Sans";
  src: url("np-sobre/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* -------- Culturel -------- */
@font-face {
  font-family: "AGORA Abril";
  src: url("np-culturel/AbrilFatface-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AGORA Lato";
  src: url("np-culturel/Lato-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AGORA Lato";
  src: url("np-culturel/Lato-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================================================
   Assignation aux tokens --font-title / --font-body.
   À appliquer sur la racine du document PDF (ex <body class>).
   Chaque pile inclut un secours système au cas où le TTF manque.
   ============================================================ */
.pair-convivial {
  --font-title: "AGORA Lora", Georgia, "Times New Roman", serif;
  --font-body:  "AGORA Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --title-weight: 600;
  --title-letter-spacing: -0.005em;
}
.pair-sobre {
  --font-title: "AGORA Source Serif", Georgia, "Times New Roman", serif;
  --font-body:  "AGORA Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --title-weight: 600;
  --title-letter-spacing: 0;
}
.pair-culturel {
  --font-title: "AGORA Abril", "Playfair Display", Georgia, serif;
  --font-body:  "AGORA Lato", -apple-system, "Segoe UI", Roboto, sans-serif;
  --title-weight: 400;
  --title-letter-spacing: 0;
}
