.chatbot {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 9999 !important;
    font-family: var(--font-family-body, Arial, sans-serif);
}

/* Bouton flottant */
.chatbot-toggle {
    width: 3.2rem !important;
    height: 3.2rem !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-primary, #003b8e) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}


/* Fenêtre du chatbot */
.chatbot-window {
    position: absolute !important;
    bottom: 4rem !important;
    right: 0 !important;
    width: 320px !important;
    max-height: 420px !important;
    background: #fff !important;
    border-radius: 1rem !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.open {
    display: flex !important;
}

/* Header */
.chatbot-header {
    background: var(--color-primary, #003b8e) !important;
    color: #fff !important;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Messages + form restent comme avant */
.chatbot-messages {
    padding: 0.7rem 0.9rem;
    flex: 1;
    overflow-y: auto;
    background: #f5f5f7;
    font-size: 0.85rem;
}

.chatbot-message {
    max-width: 90%;
    padding: 0.5rem 0.7rem;
    border-radius: 0.7rem;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.chatbot-message.bot {
    background: #ffffff;
    color: #000;
    align-self: flex-start;
}

.chatbot-message.user {
    background: var(--color-primary, #003b8e);
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.chatbot-form {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 0.7rem;
    border-top: 1px solid #dcdce0;
    background: #fff;
}

.chatbot-form input {
    flex: 1;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #c9c9d4;
    font-size: 0.85rem;
}

.chatbot-form button {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: var(--color-primary, #003b8e);
    color: #fff;
    cursor: pointer;
}
