/* ========================================
   RL ARTTECH — Boutons flottants CTA
   WhatsApp + Téléphone
   ======================================== */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    z-index: 9990;
}

/* Bouton générique */
.floating-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.floating-btn:active {
    transform: translateY(-1px);
}

/* Icône SVG dans le bouton */
.floating-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* Label texte — caché par défaut, visible au hover */
.floating-btn .btn-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.floating-btn:hover .btn-label {
    max-width: 200px;
    opacity: 1;
}

/* === WHATSAPP === */
.floating-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

/* === TÉLÉPHONE === */
.floating-btn--phone {
    background: var(--color-primary, #F5901E);
    color: #fff;
}

/* Animation d'entrée au chargement */
.floating-cta {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pulse discret sur WhatsApp pour attirer l'œil */
.floating-btn--whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: #25D366;
    z-index: -1;
    animation: pulse-wa 2.5s ease-out infinite;
    animation-delay: 2s;
}

.floating-btn--whatsapp {
    position: relative;
}

@keyframes pulse-wa {
    0%   { opacity: 0.6; transform: scale(1); }
    70%  { opacity: 0;   transform: scale(1.3); }
    100% { opacity: 0;   transform: scale(1.3); }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .floating-cta {
        bottom: 1.25rem;
        right: 1rem;
        gap: 0.6rem;
    }

    .floating-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    /* Sur mobile : on n'affiche que l'icône (rond) */
    .floating-btn .btn-label {
        display: none;
    }

    .floating-btn {
        border-radius: 50%;
        padding: 0.85rem;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}
