/* Styles de base pour le mode incrustation */

/* Bouton flottant en bas à droite */
#aiap-floating-button {
    position: fixed; /* Assurez-vous que c'est bien fixed */
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-size: 12px;
    text-align: center;
    padding: 5px;
    animation: pulsate 2s infinite; /* Animation de pulsation */
}

/* Pseudo-élément pour l'effet de lumière tournante */
#aiap-floating-button::before {
    content: '';
    position: absolute; /* Positionné relativement au bouton flottant */
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rotate-light 2s linear infinite;
    pointer-events: none; /* Permet de cliquer sur le bouton sans interférence */
}

#aiap-floating-button:hover {
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

/* Conteneur de l'assistant en mode incrustation */
#aiap-embedded-container {
    position: fixed;
    bottom: 90px; /* Juste au-dessus du bouton flottant */
    right: 20px;
    background-color: #fff;
    width: 500px;
    height: 700px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999999;
    padding-top: 5px;
}

@media (max-width: 600px) {
    #aiap-embedded-container {
        width: 80%;
        height: 80%;
    }
}

#aiap-embedded-container #aiap-chatbot {
    height: 100%;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Animation de rotation de lumière */
@keyframes rotate-light {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation de pulsation */
@keyframes pulsate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
