/* =============================================================
   bi_popupform – Barre de contact flottante
   Bootstrap 4.4.1 + FontAwesome 5 / PrestaShop 1.7
   ============================================================= */

/* ── Barre principale ── */
.bi-contact-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    height: 50px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 575.99px) {
    .bi-contact-bar {
        border-radius: 10px;
    }
}

@media (max-width: 575.98px) {
    .bi-contact-bar {
        right: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
    }
}

/* ── Lien téléphone ── */
.bi-bar-phone {
    background: #fff;
    text-decoration: none;
    min-width: 0;
    transition: background 0.15s;
}

@media (min-width: 575.99px) {
    .bi-bar-phone {
        border-radius: 10px 0 0 10px;
    }
}

.bi-bar-phone:hover,
.bi-bar-phone:focus {
    background: #f8f9fa;
    text-decoration: none;
}

.bi-bar-phone__icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.bi-bar-phone__number {
    font-size: 0.95rem;
    white-space: nowrap;
}
.bi-bar-phone__hours {
    font-size: 0.72rem;
    white-space: nowrap;
}

/* ── Séparateur vertical ── */
.bi-bar-divider {
    display: block;
    width: 1px;
    background: #e0e0e0;
    margin: 10px 0;
    flex-shrink: 0;
}

/* ── Bouton "Un expert vous rappelle" ── */
.bi-bar-help-btn {
    height: 100%;
    font-size: 0.82rem;
    text-transform: uppercase;
    flex-shrink: 0;
    padding: 0 1.5rem;
    border-radius: 0;
}

@media (min-width: 575.99px) {
    .bi-bar-help-btn {
        border-radius: 0 10px 10px 0;
    }
}

.bi-bar-help-btn__icon {
    transition: transform 0.25s;
}
.bi-bar-help-btn.is-open .bi-bar-help-btn__icon {
    transform: rotate(180deg);
}

/* ── Panel de contact ── */
.bi-help-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1039;
    width: 280px;
    border-radius: 12px 0 0 0;
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.25s,
        opacity 0.25s;
}

.bi-help-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── Options du panel ── */
.bi-help-option {
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.bi-help-option:hover,
.bi-help-option:focus {
    background: #f8f9fa;
    text-decoration: none;
    outline: none;
}

.bi-help-option__icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bi-icon-whatsapp {
    background: #25d366;
}
.bi-icon-callback {
    background: #212529;
}

/* ── Modale ── */
.bi-callback-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Mobile (< 576px) ── */
@media (max-width: 575.98px) {
    .bi-bar-phone {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .bi-bar-help-btn {
        padding: 0 1rem;
    }
    .bi-help-panel {
        width: 100%;
        left: 0;
        bottom: 50px;
        border-radius: 12px 12px 0 0;
    }
}
