/* ================ Global & Layout ================ */
html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: black;
  overflow: hidden;
}

#bgVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  min-width: 100%;
  min-height: 100%;
}

#renderCanvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
#overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2;
}

/* ================ Colonne centrale ================ */
#centerContainer {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 33%;
  display: flex; flex-direction: column;
  box-sizing: border-box;
  max-width: 800px;
  min-width: 300px;
}

/* ================ Zone de conversation ================ */
#consoleOutput {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 15px;
  color: #ccc; /* remplace lime */
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ================ Bulles utilisateur (droite) ================ */
.userMessageBubble {
  float: right;
  clear: both;
  background: rgba(204,204,204,0.3); /* remplace vert foncé */
  color: #ccc; /* remplace lime */
  padding: 8px;
  border-radius: 8px;
  margin: 5px 0;
  max-width: 80%;
}

/* ================ Réponses du bot (gauche) ================ */
.botResponse {
  clear: both;
  margin-top: 1em;
}
.botMessage {
  margin-bottom: 5px;
}

/* ================ Prompt centré en bas ================ */
#chatPrompt {
  padding: 8px;
  display: flex;
  justify-content: center;
}
#chatBox {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* ================ Champ texte & bouton ================ */
/* Input plein largeur avec padding-right pour bouton */
#consoleInput {
  width: 100%;
  height: 45px;
  padding: 5px 50px 5px 10px; /* droite = espace pour bouton */
  font-family: monospace;
  font-size: 18px;
  background: black;
  color: #ccc; /* remplace lime */
  border: 1px solid #ccc; /* remplace #00ff00 */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(204,204,204,0.3); /* remplace vert */
  outline: none;
  box-sizing: border-box;
}

/* Bouton carré & cercle parfait */
#sendButton {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: 35px;   /* hauteur par défaut */
  height: 35px;
  padding: 0;
  background: rgba(0,0,0,0.6);
  color: #ccc; /* remplace lime */
  border: 1px solid #ccc; /* remplace #00ff00 */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================ Responsive Breakpoints ================ */
/* ≤1024px : bouton 50×50, input padding-right ajusté, colonne 50% */
@media (max-width: 1024px) {
  #centerContainer {
    width: 50%;
  }
  #sendButton {
    width: 50px;
    height: 50px;
  }
  #consoleInput {
    padding: 5px 60px 5px 10px; /* droite = 50 + 10 */
    height: 50px;
  }
}

/* ≤768px : colonne 70%, texte et input plus grand */
@media (max-width: 768px) {
  #centerContainer {
    width: 70%;
  }
  #consoleOutput {
    font-size: 17px;
  }
  #consoleInput {
    font-size: 20px;
    height: 50px;
    padding: 6px 60px 6px 12px;
  }
  #sendButton {
    width: 50px;
    height: 50px;
  }
}

/* ≤480px : colonne 95%, mobile, input & bouton encore agrandis */
@media (max-width: 480px) {
  #centerContainer {
    width: 95%;
    left: 50%; transform: translateX(-50%);
  }
  #consoleOutput {
    font-size: 19px;
    padding: 8px;
  }
  #consoleInput {
    font-size: 22px;
    height: 55px;
    padding: 8px 63px 8px 14px; /* droite = 55 + 8 */
  }
  #sendButton {
    width: 45px;
    height: 45px;
  }
}

/* Conteneur de choix-boutons, caché par défaut */
#buttonContainer {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}
/* Boutons de choix */
#buttonContainer button {
  background: black;
  color: #ccc; /* remplace lime */
  border: 1px solid #ccc; /* remplace lime */
  border-radius: 8px;
  margin: 4px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 16px;
  cursor: pointer;
}