/* 
 * Polices web embarquées pour garantir une cohérence visuelle
 * sur tous les OS et navigateurs
 * 
 * Police principale: Inter (hébergée localement)
 * https://github.com/rsms/inter
 */

/* Déclarations @font-face pour Inter - Police hébergée localement */
/* Les chemins sont relatifs au fichier CSS (assets/css/fonts.css) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

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

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

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

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

/* Déclaration de la police principale */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-monospace: 'Courier New', Courier, 'Liberation Mono', monospace;
}

/* Application globale de la police principale */
* {
    font-family: var(--font-primary);
}

/* Réinitialisation spécifique pour les icônes Font Awesome */
.fas,
.fab,
.far,
.fal,
.fad {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* Styles pour le code et éléments monospace */
code,
pre,
kbd,
samp,
.monospace,
.font-monospace {
    font-family: var(--font-monospace) !important;
}
