body {
  margin: 0;
  height: 100vh;
  background: #f4f7f9;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chat-wrapper {
  width: 90%;
  max-width: 900px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.chat-header {
  padding: 15px 20px;
  font-size: 1.2em;
  background: #007bff;
  color: white;
  font-weight: bold;
  text-align: center;
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* important pour bien contenir */
}

.chatbox {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #fafafa;
  box-sizing: border-box;
}

.user-msg, .bot-msg {
  max-width: 70%;
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 20px;
  word-wrap: break-word;
  clear: both;
}

.user-msg {
  background: #007bff;
  color: white;
  float: right;
  border-bottom-right-radius: 0;
  clear: both;
}

.bot-msg {
  background: #e5e5ea;
  color: black;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

form {
  flex-shrink: 0;
  display: flex;
  padding: 15px;
  border-top: 1px solid #ddd;
  background: #fff;
  box-sizing: border-box;
}

input[type=text] {
  flex: 1;
  padding: 12px 15px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
}

button {
  background: #007bff;
  border: none;
  color: white;
  padding: 0 25px;
  margin-left: 10px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

button:hover {
  background: #0056b3;
}

.suggestions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.suggestions button {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9em;
}

.suggestions button:hover {
  background: #ddd;
}
