/* ============================================================
   Floating CTA — Appel + WhatsApp (cohérence noir/or Oscar'Eaux)
   ============================================================ */

.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.floating-cta__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px 0 18px;
    height: 50px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    transition:
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        width   0.45s cubic-bezier(0.4, 0, 0.2, 1),
        height  0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s ease,
        transform  0.2s ease;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.floating-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.floating-cta__btn svg {
    flex-shrink: 0;
    margin-right: 8px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta__label {
    transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease 0.1s,
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 200px;
    opacity: 1;
    transform: translateX(0);
    display: inline-block;
    overflow: hidden;
}

/* APPEL — fond noir + texte or (cohérent navbar/footer/site) */
.floating-cta__btn--call {
    background: #0a0a0c;
    color: #c9a356;
    border: 1px solid #0a0a0c;
}
.floating-cta__btn--call:hover {
    background: #b8924d;
    color: #fff;
    border-color: #b8924d;
}

/* WHATSAPP — fond or + texte noir (équilibre visuel) */
.floating-cta__btn--whatsapp {
    background: #b8924d;
    color: #fff;
    border: 1px solid #b8924d;
}
.floating-cta__btn--whatsapp:hover {
    background: #0a0a0c;
    color: #c9a356;
    border-color: #0a0a0c;
}

/* État replié — cercle parfait icône or sur fond noir / fond or icône blanche */
.floating-cta--collapsed .floating-cta__btn {
    padding: 0;
    width: 52px;
    height: 52px;
}
.floating-cta--collapsed .floating-cta__btn svg {
    margin-right: 0;
    width: 22px;
    height: 22px;
}
.floating-cta--collapsed .floating-cta__label {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition:
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile : toujours en cercle */
@media (max-width: 768px) {
    .floating-cta {
        right: 14px;
        bottom: 14px;
    }
    .floating-cta__btn {
        padding: 0;
        width: 52px;
        height: 52px;
    }
    .floating-cta__btn svg {
        width: 22px;
        height: 22px;
        margin-right: 0;
    }
    .floating-cta__label {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
    }
}

/* Cacher sur pages panier / checkout */
body[data-page="checkout"] .floating-cta,
body[data-page="panier"] .floating-cta {
    display: none;
}
