/* FontAwesome Icons Fallback CSS */
/* En cas de non-chargement de la CDN, utiliser des émojis ou des caractères de remplacement */

@supports not (font-family: "Font Awesome 6 Free") {
    /* Si FontAwesome ne charge pas, utiliser des émojis comme fallback */
    .fas::before {
        font-family: "Segoe UI Symbol", "Apple Color Emoji", sans-serif !important;
        font-style: normal;
        font-weight: normal;
        text-decoration: inherit;
        display: inline-block;
        width: auto;
        height: auto;
        min-width: 1em;
        line-height: 1;
        vertical-align: -0.125em;
    }
    
    .fas.fa-tachometer-alt::before { content: "📊" !important; }
    .fas.fa-users::before { content: "👥" !important; }
    .fas.fa-file-contract::before { content: "📄" !important; }
    .fas.fa-tools::before { content: "🔧" !important; }
    .fas.fa-chart-line::before { content: "📈" !important; }
    .fas.fa-folder::before { content: "📁" !important; }
    .fas.fa-history::before { content: "⏱️" !important; }
    .fas.fa-user-check::before { content: "✅" !important; }
    .fas.fa-cog::before { content: "⚙️" !important; }
    .fas.fa-sign-out-alt::before { content: "🚪" !important; }
    .fas.fa-download::before { content: "⬇️" !important; }
    .fas.fa-upload::before { content: "⬆️" !important; }
    .fas.fa-plus-circle::before { content: "➕" !important; }
    .fas.fa-eye::before { content: "👁️" !important; }
    .fas.fa-edit::before { content: "✏️" !important; }
    .fas.fa-trash::before { content: "🗑️" !important; }
    .fas.fa-check::before { content: "✓" !important; }
    .fas.fa-times::before { content: "✗" !important; }
    .fas.fa-search::before { content: "🔍" !important; }
    .fas.fa-bell::before { content: "🔔" !important; }
    .fas.fa-envelope::before { content: "📧" !important; }
    .fas.fa-lock::before { content: "🔒" !important; }
    .fas.fa-unlock::before { content: "🔓" !important; }
    .fas.fa-key::before { content: "🔑" !important; }
    .fas.fa-home::before { content: "🏠" !important; }
    .fas.fa-heart::before { content: "❤️" !important; }
    .fas.fa-star::before { content: "⭐" !important; }
    .fas.fa-arrow-right::before { content: "→" !important; }
    .fas.fa-arrow-left::before { content: "←" !important; }
    .fas.fa-file-csv::before { content: "📊" !important; }
    .fas.fa-chart-bar::before { content: "📊" !important; }
}

/* S'assurer que FontAwesome charge correctement */
@font-face {
    font-family: "Font Awesome 6 Free";
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Assurer le chargement des icônes */
.fas {
    display: inline-block;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fab {
    display: inline-block;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Masquer visuellement la scrollbar des sidebars (scroll conservé) */
.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
