/* ============================================================
   Self-hosted fonts — Klarrro
   Replace Google Fonts CDN with local WOFF2 files.
   See /assets/fonts/README.md for download instructions.
   ============================================================ */

/* Playfair Display — un seul fichier pour 400–900.
   PlayfairDisplay-700/800/900.woff2 ont le même md5 (fichier variable, axe wght) :
   trois @font-face téléchargeaient trois fois les mêmes 72 Ko. Une déclaration,
   un téléchargement. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-700.woff2') format('woff2');
}

/* Playfair Display Italic — vrai italique (plus de synthèse), fichier variable wght 400–900,
   sous-ensemble latin (fonts.gstatic.com, v40), licence OFL : PlayfairDisplay-OFL.txt */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — fichier variable unique (axe wght 100–1000, vérifié avec fontTools).
   Une seule déclaration : un seul téléchargement, et un vrai 900 pour l'affiche
   sans graisse synthétique. Les anciennes URL DMSans-500…800 pointaient vers
   le même fichier (même md5). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/DMSans-400.woff2') format('woff2');
}

/* Inter — fichier variable unique (axe wght 100–900, vérifié avec fontTools).
   Inter-400…900.woff2 ont le même md5 (4f2d3cb4…) : six @font-face faisaient
   télécharger jusqu'à quatre fois les mêmes 225 Ko (feedback.html). Une
   déclaration, un téléchargement. Les fichiers restent sur le disque. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-400.woff2') format('woff2');
}
