/* FIX NOTIFICATION BADGE - Corrige la visibilité du badge de notification */

/* Container principal doit permettre le débordement pour le badge */
.unified-marga-floating {
    overflow: visible !important;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    animation: simpleFloat 3s ease-in-out infinite !important;
}

/* Le bouton Marga avec overflow visible */
.unified-marga-icon {
    width: 70px !important;
    height: 70px !important;
    background: radial-gradient(circle, #9333ea, #6b21a8);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.5);
    position: relative;
    transition: transform 0.3s ease;
    overflow: visible !important; /* Permettre au badge de déborder */
}

/* Supprimer tous les pseudo-éléments d'animation */
.unified-marga-icon::before,
.unified-marga-icon::after {
    display: none !important;
}

/* Badge de notification amélioré */
.notification-badge {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    background: #ffd32a !important;
    color: #2c2c54 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
    animation: bounce-badge 2s infinite !important;
    border: 4px solid white !important;
    box-shadow: 0 4px 15px rgba(255, 211, 42, 0.8) !important;
    z-index: 100 !important;
    pointer-events: none !important; /* Ne pas interférer avec les clics */
}

/* Animation du badge */
@keyframes bounce-badge {
    0%, 100% { 
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-2px);
    }
    50% { 
        transform: scale(1.2) translateY(-4px);
    }
    75% {
        transform: scale(1.1) translateY(-2px);
    }
}

/* Animation du bouton */
@keyframes simpleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* S'assurer que l'image Marga reste dans le cercle */
.unified-marga-icon img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Effet de hover */
.unified-marga-icon:hover {
    transform: scale(1.1);
}

/* Effet de brillance optionnel (ne masque pas le badge) */
/* DÉSACTIVÉ pour éviter l'effet indésirable
.unified-marga-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
}

.unified-marga-icon:hover::before {
    left: 100%;
}
*/

/* Mobile responsive */
@media (max-width: 768px) {
    .unified-marga-floating {
        bottom: 1rem;
        right: 1rem;
    }
    
    .unified-marga-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .notification-badge {
        width: 30px !important;
        height: 30px !important;
        font-size: 1.2rem !important;
        border: 3px solid white !important;
        top: -8px !important;
        right: -8px !important;
    }
}