/* CSS pour corriger les icônes manquantes dans l'admin */

/* Forcer le chargement de FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Styles pour les cartes de statistiques avec icônes */
.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-card-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Icônes dans les cartes de statistiques */
.stat-card i {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Correction pour les rectangles vides - ajouter des icônes par défaut */
.card-body:empty::before {
    content: "\f1c0"; /* icône fa-database */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: #6c757d;
    display: block;
    text-align: center;
    padding: 20px;
}

/* Styles pour les boutons avec icônes */
.btn i {
    margin-left: 8px;
}

/* Styles pour les listes avec icônes */
.list-group-item i {
    width: 20px;
    text-align: center;
    margin-left: 10px;
}

/* Styles pour les tableaux avec icônes */
.table th i,
.table td i {
    margin-left: 8px;
    color: #6c757d;
}

/* Styles pour les badges avec icônes */
.badge i {
    margin-left: 4px;
}

/* Correction spécifique pour les icônes manquantes dans le footer */
.footer-social {
    position: relative;
}

.footer-social:empty::before {
    content: "\f0c0"; /* icône fa-users par défaut */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Icônes spécifiques pour chaque réseau social */
.footer-social[title="Facebook"]:empty::before {
    content: "\f39e"; /* fa-facebook-f */
}

.footer-social[title="Twitter"]:empty::before {
    content: "\f099"; /* fa-twitter */
}

.footer-social[title="Instagram"]:empty::before {
    content: "\f16d"; /* fa-instagram */
}

.footer-social[title="YouTube"]:empty::before {
    content: "\f167"; /* fa-youtube */
}

/* Styles pour les cercles d'icônes */
.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* Animation pour les icônes */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-card i:hover {
    animation: iconPulse 0.6s ease-in-out;
}

/* Correction pour les icônes qui ne s'affichent pas */
i[class*="fa-"]:empty::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .stat-card i {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}