/* --- STYLE GLOBAL --- */
body {
    margin: 0;
    padding: 20px;
    background-color: #f4f7f9;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 100vh;
}

/* --- BLOC 1 : NOCTIS --- */
.chat-container {
    width: 90%;
    max-width: 1200px;
    height: 60vh;
    background-color: #1e1e1e;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

/* Effet visuel Glitch (activé plus tard) */
.glitch-mode {
    border: 2px solid #ff0000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3) !important;
}

.glitch-text {
    color: #ff5555 !important;
    font-family: 'Courier New', Courier, monospace;
}

.header {
    background-color: #252525;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.header h1 {
    margin: 0;
    color: #007bff;
    font-size: 2rem;
}

.header p {
    margin: 5px 0 0;
    color: #888;
}

#chat-box {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#chat-box::-webkit-scrollbar {
    width: 10px;
}

#chat-box::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 5px;
}

.message {
    max-width: 75%;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.user-message {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 2px;
}

.bot-message {
    align-self: flex-start;
    background-color: #2d2d2d;
    color: #ddd;
    border-left: 4px solid #28a745;
    border-bottom-left-radius: 2px;
}

/* Message spécial Hacker */
.bot-hacked {
    align-self: flex-start;
    background-color: #1a0000;
    color: #ff9999;
    border-left: 4px solid red;
    border-bottom-left-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.input-area {
    padding: 25px;
    background-color: #252525;
    display: flex;
    gap: 15px;
    border-top: 1px solid #333;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 30px;
    border: 1px solid #444;
    background: #333;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #28a745;
}

button {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    background: #007bff;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s;
}

button:hover {
    transform: scale(1.05);
    background-color: #5ce1ff;
}

/* --- BLOC 2 : LE VALIDATEUR (Initialement caché) --- */
.validator-container {
    display: none;
    /* Caché au début */
    width: 90%;
    max-width: 1200px;
    background-color: #1a262e;
    border-radius: 20px;
    border: 1px solid #007bff;
    padding: 25px;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.validator-question {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.result-box {
    padding: 15px;
    border-radius: 10px;
    background-color: #222;
    min-height: 40px;
    border-left: 5px solid #555;
    display: none;
}

.btn-valid {
    background: #007bff;
}

.btn-valid:hover {
    background: #5ce1ff;
}

/* Nouveau bouton ajouté */
.btn-next {
    background: #00ff00;
    color: #333;
    margin-top: 10px;
    display: none;
    /* Caché par défaut */
}

.btn-next:hover {
    background: #66ff66;
}