/* ============================================
   CHATBOT - STYLES UNIFIÉS
   ============================================ */

/* Widget principal */
#chatbot-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

/* Conteneur du chat */
#chatbot-container {
    position: absolute !important;
    bottom: 70px !important;
    right: 0 !important;
    width: 350px !important;
    height: 450px !important;
    border-radius: 15px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
}

/* Bouton toggle */
#chatbot-toggle {
    background: #C9A84C !important;
    border: none !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 22px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    color: #0A0A0A !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#chatbot-toggle:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Iframe */
#chatbot-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Version arabe - police uniquement */
html[lang="ar"] #chatbot-iframe,
html[lang="ar"] #chatbot-container {
    font-family: 'Noto Sans Arabic', sans-serif !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    #chatbot-container {
        width: 90vw !important;
        height: 70vh !important;
        right: 5vw !important;
        bottom: 80px !important;
    }
    
    #chatbot-toggle {
        width: 55px !important;
        height: 55px !important;
        font-size: 18px !important;
    }
}

/* Très petit mobile (max-width: 380px) */
@media (max-width: 380px) {
    #chatbot-toggle {
        width: 48px !important;
        height: 48px !important;
        font-size: 16px !important;
    }
}