 /* css/chatbot-widget.css - Styles du widget de chat RénovAll */

#renovall-chat {
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Bouton d'ouverture du chatbot */
#chat-toggle {
    transition: all 0.3s ease;
}

#chat-toggle:hover {
    transform: scale(1.1);
    background: #0f2a40;
}

/* Fenêtre principale du chatbot */
#chat-window {
    width: 600px;
    height: 750px;
    max-width: 90vw;
    max-height: 85vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 16px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    transition: all 0.3s ease;
}


/* Zone des messages */
#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;

    scroll-behavior: smooth;
}


/* Messages utilisateur */
.chat-user {
    background: #1a3c5e;
    color: white;

    padding: 12px 16px;
    border-radius: 15px 15px 0 15px;

    margin: 10px 0;
    max-width: 80%;

    margin-left: auto;
}


/* Messages assistant */
.chat-bot {
    background: #f1f3f5;
    color: #333;

    padding: 12px 16px;
    border-radius: 15px 15px 15px 0;

    margin: 10px 0;
    max-width: 80%;

    margin-right: auto;
}


/* Zone de saisie */
#chat-input {
    border: 1px solid #ddd;

    padding: 14px;

    font-size: 15px;

    outline: none;

    transition: all 0.2s ease;
}


#chat-input:focus {
    border-color: #1a3c5e;

    box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.2);
}


/* Bouton envoyer */
#chat-send {
    background: #1a3c5e;

    color: white;

    border: none;

    cursor: pointer;

    padding: 12px 18px;

    transition: background 0.2s, opacity 0.2s;
}


#chat-send:hover {
    background: #0f2a40;
}


/* Animation générale */
#chat-window,
#chat-toggle,
#chat-send {
    transition: all 0.3s ease;
}


/* Scrollbar personnalisée */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}


#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}


#chat-messages::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 10px;
}


#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0a7ae;
}


/* Version tablette */
@media (max-width: 768px) {

    #chat-window {
        width: 90vw;
        height: 75vh;

        right: 5vw;
        bottom: 80px;
    }

}


/* Version téléphone */
@media (max-width: 480px) {

    #chat-window {
        width: 95vw;
        height: 80vh;

        right: 2.5vw;
        bottom: 70px;

        border-radius: 12px;
    }


    #chat-messages {
        padding: 15px;
    }


    #chat-input {
        font-size: 14px;
    }

}