/* =========================================================
   fonts.css
   Les polices sont sur NOTRE serveur (dossier public/fonts),
   plus chez Google : aucune adresse IP de visiteur n'est envoyee a Google (RGPD).
   ========================================================= */

/* Space Grotesk : police "variable" = UN seul fichier pour toutes les graisses (300 a 700) */
@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;   /* affiche le texte tout de suite avec une police de secours */
}

/* JetBrains Mono : aussi variable */
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* IBM Plex Sans Arabic : un fichier par graisse.
   unicode-range = le navigateur ne telecharge ces fichiers QUE s'il y a de l'arabe dans la page */
@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-arabic-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-arabic-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-arabic-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}