/* ============================================================
   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 — 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-400.woff2') format('woff2');
}

/* Inter — 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-500.woff2') format('woff2');
}

/* Inter — 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter-600.woff2') format('woff2');
}

/* Inter — 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Inter-700.woff2') format('woff2');
}

/* Inter — 800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Inter-800.woff2') format('woff2');
}

/* Inter — 900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-900.woff2') format('woff2');
}
