/* Override Font Awesome: improve font rendering performance (Lighthouse) */

/*
  Font Awesome (npm) définit généralement `font-display: block`.
  On redéclare les mêmes polices ici (chargées APRÈS all.min.css)
  pour forcer `font-display: swap`.

    Les webfonts sont servies via /node_modules/@fortawesome/.../webfonts/* (prod).
*/

@font-face {
    font-family: "Font Awesome 7 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 7 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 7 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2");
}

/* Compat / anciens noms (souvent présents dans le bundle) */
@font-face {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
    url("/node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2") format("woff2");
}
