/**
 * WIDGET DE PARTAGE FLOTTANT
 * Bouton fixe bottom-right sur toutes les pages
 */

/* ========== WIDGET FLOTTANT ========== */
.share-widget-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    animation: pulseWidget 2s ease-in-out infinite;
}

.share-widget-btn {
    background: linear-gradient(135deg, #E63946 0%, #d62839 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-widget-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
    background: linear-gradient(135deg, #d62839 0%, #c41e2e 100%);
}

.share-widget-btn .emoji {
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

.share-widget-btn .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.share-widget-btn .main-text {
    font-size: 1rem;
}

.share-widget-btn .sub-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Animation pulse */
@keyframes pulseWidget {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation bounce pour emoji */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Badge de notification */
.share-widget-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FFD166;
    color: #333;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .share-widget-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .share-widget-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .share-widget-btn .text {
        display: none;
    }
    
    .share-widget-btn .emoji {
        font-size: 1.8rem;
    }
    
    /* Sur mobile, afficher seulement l'emoji */
    .share-widget-btn::after {
        content: '+7';
        position: absolute;
        top: -5px;
        right: -5px;
        background: #FFD166;
        color: #333;
        font-size: 0.7rem;
        font-weight: 800;
        padding: 3px 6px;
        border-radius: 10px;
    }
}

/* Masquer sur très petits écrans si nécessaire */
@media (max-width: 480px) {
    .share-widget-floating {
        bottom: 15px;
        right: 15px;
    }
    
    .share-widget-btn {
        padding: 12px 15px;
    }
}

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        transform: translateX(200px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.share-widget-floating {
    animation: slideInRight 0.5s ease-out, pulseWidget 2s ease-in-out infinite 0.5s;
}
