.sticky-bar { display: none; }

@media (max-width: 768px) {
    .sticky-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 1045;
        opacity: 0;
        visibility: hidden;
        transform: translateY(120%);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s ease;
        pointer-events: none;
    }
    .sticky-bar.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .sticky-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        min-height: 48px;
        border-radius: 12px;
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.2;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        border: 0;
        font-family: inherit;
        cursor: pointer;
    }
    /* Jetons du bouton d'appel (.claude/rules/design-cta.md). Le dégradé
       vif cyan-violet d'origine donnait 1,8:1 de contraste au texte blanc. */
    .sticky-btn-call {
        background: linear-gradient(135deg, var(--call-from, #0e7490), var(--call-to, #a21caf));
        color: var(--call-ink, #fff);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 8px 26px var(--call-glow, rgba(162, 28, 175, 0.38));
    }
    /* Action secondaire : contour cyan, fond sombre pour rester lisible
       au-dessus du contenu qui défile. */
    .sticky-btn-diag {
        background: rgba(10, 10, 15, 0.88);
        border: 1.5px solid rgba(0, 212, 255, 0.45);
        color: var(--accent-cyan, #00d4ff);
        backdrop-filter: blur(10px);
    }
    .sticky-btn i { font-size: 1.05rem; }

    /* Libère l'espace bas pour ne pas masquer la fin de page / le footer */
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }

    /* Le bouton flottant « Contacter » masquerait le contenu au-dessus de
       la barre : retiré sous 768px. */
    .fab-trigger { display: none !important; }

    /* Retour en haut : placé juste au-dessus du bouton Appeler, aligné sur
       son bord droit. La barre occupe 12px à ~76px depuis le bas (libellé
       « Identifier ma panne » sur deux lignes à 390px). */
    .fab-container {
        bottom: 84px !important;
        right: 12px !important;
        gap: 10px;
    }

    /* Le menu s'ouvre au-dessus, sans le bouton déclencheur sous lui. */
    .fab-contact-wrapper { margin: 0; }
}

/* Les anciennes règles anti-chevauchement visaient #btn-back-to-top et
   #btn-whatsapp, deux identifiants qui n'existent plus depuis le passage au
   FAB (.fab-container / .fab-back-to-top). Supprimées. */

.sticky-btn:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
    .sticky-btn:active { transform: none; }
}
