/* Widget global */
#mxc-chatbot-widget {
    position: fixed;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Bouton robot (Conteneur) */
#mxc-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    user-select: none;
    overflow: hidden; /* Important pour l'image ronde */
}

/* Redimensionne l'image du bot */
#mxc-chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fenêtre chat */
#mxc-chatbot-box {
    display: none;
    width: 320px;
    height: 420px;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,204,0,0.2);
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: mxc-slideUp 0.25s ease;
}

/* Header */
.mxc-chatbot-header {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#mxc-chatbot-close {
    cursor: pointer;
    font-size: 18px;
    color: inherit;
}

/* Messages */
#mxc-chatbot-messages {
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    font-size: 14px;
}

#mxc-chatbot-messages div {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Input zone */
.mxc-chatbot-input {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#mxc-chatbot-input {
    flex: 1;
    padding: 10px;
    border: none;
    background: rgba(0,0,0,0.1);
    outline: none;
    color: inherit;
}

#mxc-chatbot-send {
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mxc-chatbot-send:hover {
    filter: brightness(0.9);
}

/* Animation */
@keyframes mxc-slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Boutons IA */
.mxc-chatbot-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffcc00;
    color: #000 !important;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
    font-weight: bold;
}

.mxc-chatbot-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}


.mxc-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mxc-dots span {
    width: 6px;
    height: 6px;
    background-color: currentColor; 
    border-radius: 50%;
    display: inline-block;
    animation: mxc-bounce 1.4s infinite ease-in-out both;
}

.mxc-dots span:nth-child(1) { animation-delay: -0.32s; }
.mxc-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes mxc-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}