/* Styles Généraux */
body {
  font-family: sans-serif;
}

input {
  color: #000;
}

/* Bulle flottante */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #D5F502;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 30px;
  color: #000;
  z-index: 1000;
}

/* Fenêtre de chat */
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: #000; /* Changé pour un fond noir */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  z-index: 999;
}

/* Style de l'en-tête */
#chat-header {
  background: #000;
  color: white;
  padding: 20px;
  border-radius: 10px 10px 0 0;
}

#chat-header h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}

#chat-header p {
  margin-top: 5px;
  font-size: 0.8em;
  color: #ccc;
}

/* Corps des messages */
#messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  font-size: 14px;
  background-color: #333; /* Changé pour un fond gris foncé */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Styles des bulles de messages */
.message-bot .message-bubble {
  background: #e9e9eb; /* Gris clair */
  color: #000;
  border-radius: 10px 10px 10px 0;
  margin-right: auto;
  padding: 10px 15px;
  max-width: 75%;
  word-wrap: break-word;
}
.message-user {
  justify-content: flex-end; /* Aligne le conteneur à droite */
}

.message-user .message-bubble {
  background: #D5F502; /* VOTRE COULEUR */
  color: #000; /* TEXTE NOIR */
  border-radius: 10px 10px 0 10px;
  margin-left: auto;
  padding: 10px 15px;
  max-width: 75%;
  word-wrap: break-word;
}

/* Zone de saisie */
#input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #000 !important; /* Ajouté pour un fond noir */
  color: #fff !important; /* Ajouté pour que le texte de saisie soit blanc */
}
 
#user-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 10px;
  outline: none;
  background-color: #000 !important; /* Changé pour un fond noir */
  color: #fff !important; /* Ajouté pour que le texte soit blanc */
}

#send-btn {
  background: #D5F502; /* VOTRE COULEUR */
  color: #000; /* TEXTE NOIR */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  cursor: pointer;
  line-height: 1;
  color: #000 !important;
}

#credit {
  background-color: #333; /* Changé pour un fond gris foncé */
  padding: 5px;
  text-align: center;
  font-size: 0.8em;
  color: #888;
  border-top: 1px solid #ddd;
  border-radius: 0 0 10px 10px;
}
