/**
 * Boutons CTA Flottants - AMIDA BY SAKA
 * WhatsApp + Partage sur réseaux sociaux
 * Design moderne et responsive
 */

/* Container principal */
.floating-cta-container {
    position: fixed;
    right: 20px;
    bottom: 180px; /* Monté plus haut pour éviter le conflit avec GoTop */
    z-index: 9998; /* Z-index plus bas que GoTop (9999) */
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

/* Boutons individuels */
.floating-cta-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Bouton WhatsApp */
.floating-cta-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-cta-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Bouton Partage */
.floating-cta-share {
    background: linear-gradient(135deg, #cc238c, #e91e63);
}

.floating-cta-share:hover {
    background: linear-gradient(135deg, #e91e63, #cc238c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(204, 35, 140, 0.4);
    color: white;
}

/* Icons SVG */
.floating-cta-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Labels tooltip */
.floating-cta-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-cta-btn::after {
    content: '';
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-cta-btn:hover::before,
.floating-cta-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Modal de partage */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.share-btn-facebook {
    background: #1877f2;
}

.share-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn-twitter {
    background: #1da1f2;
}

.share-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.share-modal-close {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-cta-container {
        right: 15px;
        bottom: 160px; /* Position ajustée sur mobile aussi */
    }
    
    .floating-cta-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-cta-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Masquer les tooltips sur mobile */
    .floating-cta-btn::before,
    .floating-cta-btn::after {
        display: none;
    }
    
    .share-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .share-buttons {
        gap: 12px;
    }
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating-cta-container.animate-in .floating-cta-btn:nth-child(1) {
    animation: slideInUp 0.6s ease 0.1s both;
}

.floating-cta-container.animate-in .floating-cta-btn:nth-child(2) {
    animation: slideInUp 0.6s ease 0.2s both;
}

/* Masquer pendant le chargement */
.floating-cta-container:not(.animate-in) {
    opacity: 0;
}
