/* Police et couleurs globales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Titre */
h1 {
    text-align: center;
    color: #343a40;
}

/* Statut des API */
.api-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.api-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-ok {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.global-status {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.status-ok-text {
    color: #28a745;
}

.status-error-text {
    color: #dc3545;
}

/* Zone de conversation */
#conversation {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 300px;
    border: 1px solid #e9ecef;
}

/* Messages de conversation */
.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.message.user {
    text-align: right;
    background-color: #e3f2fd;
    border-bottom-right-radius: 0;
}

.message.ai {
    text-align: left;
    background-color: #f8f9fa;
    border-bottom-left-radius: 0;
}

/* Zone d'entrée texte */
.input-hint {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

#textInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

#sendButton {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#sendButton:hover {
    background-color: #218838;
}

/* Bouton micro */
#micButton {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

#micButton:hover {
    background-color: #0069d9;
}

#micButton:active {
    background-color: #0056b3;
}

#micButton.listening {
    background-color: #dc3545;
}

#micButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Statut */
#status {
    text-align: center;
    margin: 10px 0;
    color: #6c757d;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    #conversation {
        padding: 10px;
    }
    #micButton {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}
