/* [TOUT LE CSS PRÉCÉDENT RESTE IDENTIQUE JUSQU'À LA SECTION RESPONSIVE] */
/* ... (copiez-collez tout le css d'avant jusqu'à la ligne ci-dessous) ... */

#ssti-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999 !important; /* Valeur très élevée pour passer au-dessus de Divi */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#ssti-chatbot-button {
    background: #0073aa;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

#ssti-chatbot-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

#ssti-chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

#ssti-chatbot-header {
    background: #0073aa;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ssti-chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

#ssti-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

#ssti-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.ssti-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ssti-message-user {
    background: #0073aa;
    color: white;
    margin-left: auto;
    text-align: right;
}

.ssti-message-bot {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

#ssti-chatbot-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
    border-radius: 0 0 12px 12px;
}

#ssti-chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

#ssti-chatbot-send {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

#ssti-chatbot-send:hover {
    background: #005a87;
}

.ssti-typing {
    display: inline-block;
    padding: 10px;
}

.ssti-typing span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0073aa;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.ssti-typing span:nth-child(2) { animation-delay: 0.2s; }
.ssti-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.ssti-chatbot-header-content {
    display: flex;
    align-items: center;
}

#ssti-chatbot-button .chatbot-mustache-icon {
    width: 45px;
    height: auto;
    margin-right: 10px;
}

#ssti-chatbot-header .chatbot-mustache-icon {
    width: 80px;
    height: auto;
    margin-right: 10px;
}


/* --- RESPONSIVE ET MODE PLEIN ÉCRAN (RENFORCÉ) --- */

@media (max-width: 768px) {
    
    body.ssti-chatbot-fullscreen-active {
        overflow: hidden !important;
    }

    body.ssti-chatbot-fullscreen-active #ssti-chatbot-button {
        display: none !important;
    }

    #ssti-chatbot-window {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }

    #ssti-chatbot-header {
        border-radius: 0 !important;
        padding-top: calc(20px + env(safe-area-inset-top));
    }

    #ssti-chatbot-input-area {
        border-radius: 0 !important;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}