/* ═══════════════════════════════════════════
   WhatsApp Float Button — wfb.css v1.1.0
═══════════════════════════════════════════ */

/* ── Wrapper : fixé à droite avec marge, centré verticalement ── */
.wfb-wrapper {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Masquage optionnel sur desktop ── */
.wfb--mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .wfb--mobile-only {
        display: flex;
    }
}

/* ── Bouton principal — cercle complet ── */
.wfb-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wfb-color, #A1997E);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    text-decoration: none;
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
    outline: none;
}

.wfb-btn:hover,
.wfb-btn:focus {
    background: var(--wfb-color-dark, #8a8269);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ── Icône SVG ── */
.wfb-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* ── Tooltip — toujours visible ── */
.wfb-tooltip {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--wfb-color, #A1997E);
    color: #7C7C7C;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.wfb-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: var(--wfb-color, #A1997E);
}

/* ══════════════════════════════════════════
   ANIMATION VAGUE — subtile, légère
══════════════════════════════════════════ */

.wfb-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    /* anneau uniquement, pas de fond plein — beaucoup plus discret */
    background: transparent;
    border: 2px solid var(--wfb-color, #A1997E);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    animation: wfb-wave 2.6s ease-out infinite;
}

.wfb-ripple--1 { animation-delay: 0s;    }
.wfb-ripple--2 { animation-delay: 0.9s;  }
.wfb-ripple--3 { animation-delay: 1.8s;  }

@keyframes wfb-wave {
    0%   {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5;
    }
    80%  {
        transform: translate(-50%, -50%) scale(1.65);
        opacity: .04;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.75);
        opacity: 0;
    }
}

/* ── Pause au survol ── */
.wfb-wrapper:hover .wfb-ripple {
    animation-play-state: paused;
    opacity: 0;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 480px) {
    .wfb-wrapper {
        right: 14px;
    }
    .wfb-btn {
        width: 48px;
        height: 48px;
    }
    .wfb-icon {
        width: 30px;
        height: 30px;
    }
    .wfb-ripple {
        width: 48px;
        height: 48px;
    }
    .wfb-tooltip {
        display: none;
    }
}
