/* Styles généraux */
body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}

header {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Chat text button */
#textChatButton {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: none; /* Cache le bouton de chat texte */
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    transition: transform 0.2s;
}

#textChatButton:hover {
    transform: scale(1.05);
}

/* Chat container */
#chatContainer {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

#chatMessages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

#chatForm {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

#messageInput {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
}

#chatForm button {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 80%;
}

.message.user {
    background: #f3f4f6;
    margin-left: auto;
}

.message.assistant {
    background: #dbeafe;
    margin-right: auto;
}
