/* ══════════════════════════════════════════════════════════════
   float-contact.css — Boutons flottants WhatsApp + Appel
   Styles repris À L'IDENTIQUE de index.php (assets/css/home-inline.css) :
     .wa-float        → bouton WhatsApp (vert) — mobile uniquement
     .float-call-btn  → bouton d'appel (noir & blanc) — mobile uniquement
   Les positions sont ajustées automatiquement au-dessus de la barre mobile
   par assets/css/mobile-bottom-nav.css (html.mbn-on).
   Utilisé par : pages/batteries.php
   ══════════════════════════════════════════════════════════════ */

/* BOUTON WHATSAPP FLOTTANT */
.wa-float {
    position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #2EE070 0%, #25D366 45%, #128C7E 100%);
    color: #ffffff; text-decoration: none; z-index: 9998;
    box-shadow: 0 6px 18px rgba(18, 140, 126, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; display: block; }
.wa-float:hover { color: #ffffff; transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 26px rgba(18, 140, 126, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2); }
.wa-float:active { transform: scale(0.95); }
.wa-float:focus-visible { outline: 3px solid #F7B801; outline-offset: 3px; }
.wa-float-label {
    position: absolute; right: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #111111; color: #ffffff; font: 600 0.8rem 'Montserrat', 'Segoe UI', sans-serif;
    letter-spacing: 0.3px; padding: 0.45rem 0.8rem; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float-label { transition: none; } }

/* BOUTON D'APPEL FLOTTANT (MOBILE UNIQUEMENT) — au-dessus du bouton WhatsApp */
.float-call-btn { display: none; }
@media (max-width: 768px) {
    .float-call-btn {
        position: fixed; right: 18px; bottom: 76px; width: 48px; height: 48px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%; border: 1.5px solid #ffffff;
        background: linear-gradient(145deg, #232323 0%, #0a0a0a 100%);
        color: #ffffff; text-decoration: none; z-index: 1000;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 8px 18px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .float-call-btn svg { width: 22px; height: 22px; }
    .float-call-btn:active { transform: scale(0.92); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.3); }
    body.menu-open .float-call-btn { display: none; }
}
@media (max-width: 768px) {
    .wa-float { right: 18px; bottom: 20px; width: 48px; height: 48px; }
    .wa-float svg { width: 26px; height: 26px; }
    .wa-float-label { display: none; }
    body.menu-open .wa-float { display: none; }
}
/* DESKTOP : pas de bouton WhatsApp flottant (identique à l'accueil) */
@media (min-width: 769px) {
    .wa-float { display: none !important; }
}
