/**
 * FontAwesome Fix CSS
 * Correctifs pour les icônes FontAwesome
 */

/* Fix pour les icônes qui ne s'affichent pas */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}

/* Assurer que les icônes solid fonctionnent */
.fas {
    font-weight: 900;
}

/* Assurer que les icônes regular fonctionnent */
.far {
    font-weight: 400;
}

/* Assurer que les icônes light fonctionnent */
.fal {
    font-weight: 300;
}

/* Assurer que les icônes brands fonctionnent */
.fab {
    font-weight: 400;
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
}

/* Fix pour les icônes dans les boutons */
.btn .fa,
.btn .fas,
.btn .far,
.btn .fal,
.btn .fab {
    margin-right: 5px;
}

/* Fix pour la taille des icônes */
.fa-xs { font-size: 0.75em; }
.fa-sm { font-size: 0.875em; }
.fa-lg { font-size: 1.25em; }
.fa-xl { font-size: 1.5em; }
.fa-2x { font-size: 2em; }
.fa-3x { font-size: 3em; }

/* Fix pour les icônes dans le panier */
.cart-icon .fa,
.payment-icon .fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Fix pour les icônes de paiement */
.stripe-icon::before {
    content: "\f1f4"; /* fa-credit-card */
}

.paypal-icon::before {
    content: "\f1ed"; /* fa-paypal */
}

/* Fix pour les icônes d'état */
.success-icon::before {
    content: "\f00c"; /* fa-check */
    color: #28a745;
}

.error-icon::before {
    content: "\f00d"; /* fa-times */
    color: #dc3545;
}

.warning-icon::before {
    content: "\f071"; /* fa-exclamation-triangle */
    color: #ffc107;
}

.info-icon::before {
    content: "\f05a"; /* fa-info-circle */
    color: #17a2b8;
}
