/* Bouton WhatsApp flottant */
.bw-wa {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    animation: bw-wa-in 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) 1.2s both;
}

.bw-wa-icon {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bw-gold, #a88447);
    box-shadow: 0 8px 24px rgba(168, 132, 71, 0.4), 0 2px 6px rgba(23, 23, 23, 0.15);
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* Onde lumineuse discrète */
.bw-wa-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bw-gold, #a88447);
    opacity: 0.45;
    animation: bw-wa-pulse 2.6s ease-out infinite;
    z-index: -1;
}

.bw-wa:hover .bw-wa-icon {
    transform: scale(1.07);
}

.bw-wa-label {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bw-ivory, #fcfaf5);
    box-shadow: 0 6px 20px rgba(23, 23, 23, 0.12);
    color: var(--bw-black, #171717);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.bw-wa-label strong {
    font-weight: 600;
}

.bw-wa:hover .bw-wa-label,
.bw-wa:focus-visible .bw-wa-label {
    opacity: 1;
    transform: none;
}

/* Masqué quand le menu mobile est ouvert */
html.bw-menu-open .bw-wa {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .bw-wa {
        left: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .bw-wa-icon {
        width: 56px;
        height: 56px;
    }

    .bw-wa-label {
        display: none;
    }
}

/* Fiche de pack : au-dessus de la barre « Check availability » fixée en bas */
@media (max-width: 1024px) {
    body.single-togo_trip .bw-wa {
        bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

@keyframes bw-wa-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bw-wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }
    70%,
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bw-wa,
    .bw-wa-icon::before {
        animation: none;
    }
}
