* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #F5F5F7;
    min-height: 100vh;
}

.chat-container {
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
}

/* Desktop - Centré avec max-width */
@media (min-width: 768px) {
    .chat-container {
        max-width: 900px;
        height: 85vh;
        margin: 0 auto;
        margin-top: 40px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
    }
}

/* Header */
.chat-header {
    background: #FAFAFA;
    padding: 20px 24px;
    border-bottom: 1px solid #E8E8E8;
}

.header-text h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: white;
}

.message {
    display: flex;
    margin-bottom: 16px;
    animation: fadeIn 0.3s;
}

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

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: #1D1D1F;
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background: #F5F5F7;
    color: #1D1D1F;
    border-bottom-left-radius: 4px;
}

.bot-message .message-content p {
    margin: 0 0 8px 0;
}

.bot-message .message-content p:last-child {
    margin: 0;
}

/* Typing */
.typing-indicator .message-content {
    padding: 16px 20px;
}

.typing-dots {
    display: flex;
    gap: 6px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #86868B;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

/* Input */
.chat-input-container {
    background: #FAFAFA;
    padding: 16px 20px;
    border-top: 1px solid #E8E8E8;
}

.chat-form {
    display: flex;
    gap: 12px;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E8E8E8;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background: white;
}

.message-input:focus {
    border-color: #1D1D1F;
}

.send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #1D1D1F;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover:not(:disabled) {
    background: #000;
}

.send-button:disabled {
    background: #E8E8ED;
    cursor: not-allowed;
}