/* 🌍 Structure générale */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #e5ddd5;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden; /* ✅ empêche le débordement vertical */
}

/* 🧱 Conteneur principal */
.chat-container {
  width: 420px;
  height: 100vh; /* ✅ prend toute la hauteur de l'écran */
  background-color: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 🟩 En-tête */
.chat-header {
  background-color: #075e54;
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
}

/* 💬 Zone de conversation */
.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto; /* ✅ scroll interne */
  background-color: #ece5dd;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 🧾 Zone de saisie */
.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 16px;
}

.chat-input button {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
}

/* 💬 Messages */
.user-message, .bot-message {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 70%;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}

.user-message {
  background-color: #dcf8c6;
  align-self: flex-end;
  text-align: left;
}

.bot-message {
  background-color: #ffffff;
  align-self: flex-start;
  text-align: left;
}

/* ⚙️ Pied de page */
.chat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
}

#mode-btn {
  background-color: #075e54;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

#notif {
  font-size: 12px;
  color: #888;
}