/* --- Look Google Gemini Dark --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Google Sans', 'Roboto', 'Segoe UI', sans-serif;
}

body {
    background-color: #131314; /* Le noir profond de Gemini */
    color: #e3e3e3;
    height: 100vh;
    display: flex;
    justify-content: center;
}

/* On s'assure que tout le reste est caché */
nav, .sidebar, .recent-sidebar, #menu, .menu-bar, header {
    display: none !important;
}

.main-container {
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Zone de messages */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Style des messages */
.message {
    max-width: 90%;
    font-size: 16px;
    line-height: 1.6;
}

.user-message {
    align-self: flex-end;
    background-color: #2b2c2f; /* Gris foncé arrondi */
    padding: 14px 24px;
    border-radius: 28px; /* Coins très arrondis style "pilule" */
    color: #ffffff;
}

.ai-message {
    align-self: flex-start;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* L'icône animée ✨ */
.ai-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(45deg, #4285f4, #9b72cb, #d96570);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pulsing {
    animation: googlePulse 2s infinite ease-in-out;
}

@keyframes googlePulse {
    0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(155, 114, 203, 0.4); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 15px 5px rgba(155, 114, 203, 0.2); }
    100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(155, 114, 203, 0); }
}

/* Barre de saisie style "Google Search" version sombre */
.input-container {
    padding: 20px 20px 40px 20px;
    background: #131314;
}

.input-wrapper {
    background: #1e1f20; /* Plus clair que le fond */
    border: 1px solid transparent;
    border-radius: 32px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    transition: background 0.3s, border 0.3s;
}

.input-wrapper:focus-within {
    background: #2b2c2f;
    border: 1px solid #4285f4;
}

#userInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #e3e3e3;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
}

#sendBtn {
    cursor: pointer;
    font-size: 24px;
    color: #c4c7c5;
    margin-left: 15px;
    transition: color 0.2s;
}

#sendBtn:hover {
    color: #4285f4; /* Bleu Google au survol */
}

/* Scrollbar élégante pour Chrome/Safari */
.content::-webkit-scrollbar {
    width: 8px;
}
.content::-webkit-scrollbar-thumb {
    background: #3c4043;
    border-radius: 10px;
}
/* Style des voyants de sécurité */
.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: baseline;
    }

.status-vert { background-color: #00e676; box-shadow: 0 0 10px #00e676, 0 0 20px rgba(0, 230, 118, 0.3) !important; }
.status-orange { background-color: #ff9100; box-shadow: 0 0 10px #ff9100, 0 0 20px rgba(255, 145, 0, 0.3) !important; }
.status-rouge { background-color: #ff5252; box-shadow: 0 0 10px #ff5252, 0 0 20px rgba(255, 82, 82, 0.3) !important; }

/* Animation pour que le voyant "respire" */
.status-indicator {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}
.suggestions-container {
    margin-bottom: 15px;
    padding: 0 10px;
    text-align: center;
    }

.suggestion-title {
    font-size: 13px;
    color: #9aa0a6;
    margin-bottom: 8px;
    font-weight: 500;
}

.suggestion-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    }

.suggestion-chips button {
    background: #1e1f20;
    border: 1px solid #3c4043;
    color: #e3e3e3;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    }

.suggestion-chips button:hover {
    background: #2b2c2f;
    border-color: #4285f4;
}
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #1e1f20;
    border: 1px solid #3c4043;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.auth-container h2 {
    color: #e3e3e3;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #9aa0a6;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #131314;
    border: 1px solid #3c4043;
    border-radius: 8px;
    color: white;
    box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
}

.form-group input:focus {
    border-color: #4285f4;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.auth-btn:hover {
    background-color: #3367d6;
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #4285f4;
    text-decoration: none;
    font-size: 14px;
}
.auth-nav {
    display: flex;
    justify-content: flex-end;
    padding: 15px 25px;
    background: #1e1f20;
    border-bottom: 1px solid #3c4043;
}

.nav-link {
    color: #9aa0a6;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4285f4;
}

.btn-primary {
    background: #4285f4;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
}

.user-info {
    color: #e3e3e3;
    font-size: 14px;
}