/* Styles pour les boutons flottants */

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 9998;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.back-to-top.visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.back-to-top i {
    font-size: 20px;
    line-height: 1;
}

/* Styles responsives */
@media screen and (max-width: 992px) {
    .back-to-top {
        bottom: 25px;
        left: 25px;
        width: 40px;
        height: 40px;
    }

    .back-to-top i {
        font-size: 18px;
    }

    /* Chat Widget Responsive */
    .chat-widget {
        width: 280px;
        right: 25px;
        bottom: 25px;
    }

    .chat-widget.expanded {
        width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 35px;
        height: 35px;
    }

    .back-to-top i {
        font-size: 16px;
    }

    /* Chat Widget Mobile */
    .chat-widget {
        width: 180px;
        right: 20px;
        bottom: 20px;
    }

    .chat-widget.expanded {
        width: 100%;
        right: 0;
        bottom: 0;
        height: 80vh;
    }

    .chat-widget.expanded .chat-header {
        border-radius: 15px 15px 0 0;
    }

    .chat-body {
        height: calc(80vh - 45px);
    }
}

@media screen and (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
    }

    .back-to-top i {
        font-size: 18px;
    }

    /* Chat Widget Small Mobile */
    .chat-widget {
        width: 160px;
    }

    .chat-widget.expanded {
        height: 90vh;
    }

    .chat-body {
        height: calc(90vh - 45px);
    }
}
