/*
 * Fonts auto-hébergées du projet (branding des écoles).
 * Familles : Gotham (font principale des écoles), Space Grotesk,
 * Garamond (IFA Paris) et Inter (École Bleue).
 * Fichiers : assets/fonts/. Voir js/fonts.js pour le registre associé.
 * NB : Gotham et Garamond sont des polices commerciales — usage projet interne
 * uniquement. Inter est sous SIL Open Font License (assets/fonts/inter/OFL.txt).
 */

/* ── Gotham (.otf) — graisses complètes + italiques ─────────────────────────
   Mapping des graisses Gotham → font-weight CSS :
   Thin 100 · XLight 200 · Light 300 · Book 400 (normal) · Medium 500 ·
   Bold 700 · Black 800 · Ultra 900. (Gotham n'a pas de SemiBold 600.)
   Chaque graisse est déclarée en normal ET italic. */

/* Thin — 100 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-ThinItalic.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }

/* Extra Light (XLight) — 200 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-XLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-XLightItalic.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }

/* Light — 300 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }

/* Book (graisse normale) — 400 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Book.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-BookItalic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }

/* Medium — 500 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }

/* Bold — 700 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-BoldItalic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }

/* Black — 800 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Black.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-BlackItalic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }

/* Ultra — 900 */
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-Ultra.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/gotham/Gotham-UltraItalic.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

/* ── Space Grotesk (.ttf) ───────────────────────────────────────────────── */
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk/SpaceGrotesk-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk/SpaceGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk/SpaceGrotesk-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Garamond (.ttf) — police de l'école IFA Paris ─────────────────────────
   Le lot ne fournit que 3 fichiers : Regular, Bold et Italic. Les graisses
   intermédiaires (300/500/600) sont donc synthétisées par le navigateur ;
   c'est voulu, il n'existe pas de fichier pour elles. Pas de Bold Italic. */
@font-face {
    font-family: 'Garamond';
    src: url('../assets/fonts/garamond/Garamond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Garamond';
    src: url('../assets/fonts/garamond/Garamond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Garamond';
    src: url('../assets/fonts/garamond/Garamond-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Inter (.ttf variable) — police de l'école École Bleue ─────────────────
   Fonts variables (axes opsz + wght) : 2 fichiers couvrent TOUTE la plage de
   graisses 100→900, en normal et en italique. D'où la syntaxe de plage
   `font-weight: 100 900` au lieu d'une déclaration par graisse.
   Inter était auparavant chargée depuis Google Fonts : elle est désormais
   auto-hébergée (plus de dépendance réseau externe). */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Italic-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
