/* ===========================
 * FONTS AUTO-HÉBERGÉES
 * ✅ PHASE 2 - Alternative Google Fonts
 * ===========================
 *
 * IMPORTANT : Pour production, télécharger les vrais fichiers .woff2 depuis:
 * https://google-webfonts-helper.herokuapp.com/fonts
 *
 * Étapes:
 * 1. Télécharger Montserrat (weights: 300,400,600,700,900)
 * 2. Télécharger Playfair Display (weights: 400,700)
 * 3. Placer les fichiers .woff2 dans ce dossier fonts/
 * 4. Activer les @font-face ci-dessous
 */

/* ===========================
 * MONTSERRAT (Primary Font)
 * ===========================*/

/* Montserrat Light (300) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('montserrat-v25-latin-300.woff2') format('woff2');
    */
    /* Fallback system fonts for now: */
    src: local('Montserrat Light'), local('Montserrat-Light'), local('Helvetica Neue Light'), local('Arial');
}

/* Montserrat Regular (400) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('montserrat-v25-latin-regular.woff2') format('woff2');
    */
    src: local('Montserrat'), local('Montserrat-Regular'), local('Helvetica Neue'), local('Arial');
}

/* Montserrat Semi-Bold (600) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('montserrat-v25-latin-600.woff2') format('woff2');
    */
    src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), local('Helvetica Neue Medium'), local('Arial Bold');
}

/* Montserrat Bold (700) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('montserrat-v25-latin-700.woff2') format('woff2');
    */
    src: local('Montserrat Bold'), local('Montserrat-Bold'), local('Helvetica Neue Bold'), local('Arial Bold');
}

/* Montserrat Black (900) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('montserrat-v25-latin-900.woff2') format('woff2');
    */
    src: local('Montserrat Black'), local('Montserrat-Black'), local('Helvetica Neue Bold'), local('Arial Black');
}

/* ===========================
 * PLAYFAIR DISPLAY (Secondary Font)
 * ===========================*/

/* Playfair Display Regular (400) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('playfair-display-v30-latin-regular.woff2') format('woff2');
    */
    src: local('Playfair Display'), local('PlayfairDisplay-Regular'), local('Georgia'), local('Times New Roman');
}

/* Playfair Display Bold (700) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    /* UNCOMMENT when fonts downloaded:
    src: url('playfair-display-v30-latin-700.woff2') format('woff2');
    */
    src: local('Playfair Display Bold'), local('PlayfairDisplay-Bold'), local('Georgia Bold'), local('Times New Roman Bold');
}

/* ===========================
 * FALLBACK SYSTEM FONTS
 * ===========================
 * Si les fonts ne se chargent pas, utiliser ces alternatives:
 * - Montserrat → -apple-system, Helvetica Neue, Arial
 * - Playfair Display → Georgia, Times New Roman, serif
 */

:root {
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ===========================
 * INSTRUCTIONS TÉLÉCHARGEMENT
 * ===========================
 *
 * Option 1 : google-webfonts-helper (Recommandé)
 * 1. Aller sur: https://gwfh.mranftl.com/fonts
 * 2. Chercher "Montserrat" et "Playfair Display"
 * 3. Sélectionner les weights nécessaires
 * 4. Télécharger les .woff2
 * 5. Placer dans ce dossier fonts/
 * 6. Décommenter les lignes src: url(...) ci-dessus
 *
 * Option 2 : Google Fonts Downloader (CLI)
 * npm install -g google-font-installer
 * gfi Montserrat:300,400,600,700,900 -o ./fonts
 * gfi Playfair+Display:400,700 -o ./fonts
 *
 * Option 3 : Wget manuel
 * wget https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900
 * Puis extraire les URLs des .woff2 et télécharger
 *
 * AVANTAGES AUTO-HÉBERGEMENT :
 * ✅ Pas de dépendance CDN externe
 * ✅ Conformité RGPD (pas de tracking Google)
 * ✅ Performance (1 requête DNS en moins)
 * ✅ Contrôle total sur les fonts
 * ✅ Fonctionne hors-ligne
 *
 * ÉCONOMIES :
 * - Requêtes HTTP: -2 (fonts.googleapis.com + fonts.gstatic.com)
 * - DNS lookup: -100-200ms
 * - Taille totale: ~100KB pour tous les weights
 */
