/* ======================================== */
/* STYLE PAGE CHATBOT (Inspiration Gemini) */
/* ======================================== */

:root {
    --primary-color: #007bff;
    --primary-darker: #0056b3;
    --text-primary: #1d2b4f;
    --text-secondary: #5a647e;
    --background-light: #f0f5fa;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: #f7f7f8;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.chatbot-main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.chat-conversation {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 150px;
}

/* --- Vue d'accueil --- */
.welcome-view { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text-primary); }
.welcome-avatar { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 20px; object-fit: cover; }
.welcome-view h1 { font-size: 2rem; font-weight: 600; }
.suggestion-prompts { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.prompt-card { background: var(--background-light); padding: 12px 18px; border-radius: 10px; cursor: pointer; transition: background-color 0.3s; border: 1px solid #e0e5eb; }
.prompt-card:hover { background-color: #e3e8ee; }

/* --- Bulles de Message --- */
.message-container { display: flex; gap: 15px; margin-bottom: 20px; max-width: 90%; }
.message-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-content { padding: 15px 20px; border-radius: 18px; line-height: 1.5; }
.bot { align-self: flex-start; }
.bot .message-content { background-color: var(--background-light); color: var(--text-primary); border-top-left-radius: 4px; }
.user { margin-left: auto; flex-direction: row-reverse; }
.user .message-content { background-color: var(--primary-color); color: white; border-top-right-radius: 4px; }

/* --- Zone de Saisie --- */
.chat-input-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0 20px 0;
    background: linear-gradient(180deg, rgba(247, 247, 248, 0) 0%, #f7f7f8 100%);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #e0e5eb;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: background-color 0.3s;
    flex-shrink: 0;
}
.icon-button:hover {
    background-color: var(--background-light);
}

#chatInput {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
    background: transparent;
    max-height: 200px;
    line-height: 1.5;
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}
.send-button:hover {
    background-color: var(--primary-darker);
}

.chatbot-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
}