:root {
  --main-color: #d7a10d;  /* doré */
  --text-color: #000000;  /* noir */
  --bg-color: #ffffff;    /* blanc */
  --font-size-small: 14.5px;
  --border-radius: 20px;
  --shadow: 0 4px 15px rgba(215, 161, 13, 0.3);
}

.chat-container {
  max-width: 600px;
  width: 100%;
  height: 80vh;
  margin: 1rem auto;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #f0e6a5;
  overflow: hidden;
}

.chat-header {
  background: var(--main-color);
  color: var(--bg-color);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  user-select: none;
  text-align: center;
}

.chat-box {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fefef9;
  border-top: 1px solid #f0e6a5;
  border-bottom: 1px solid #f0e6a5;
  scroll-behavior: smooth;
}

.message {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: var(--font-size-small);
  line-height: 1.4;
  word-wrap: break-word;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.3s ease;
}

.message.bot {
  align-self: flex-start;
  background: #faf8e6;
  color: var(--text-color);
  font-weight: 500;
}

.message.user {
  align-self: flex-end;
  background: var(--main-color);
  color: var(--bg-color);
  font-weight: 700;
  box-shadow: 1px 1px 8px rgba(183, 138, 0, 0.6);
  text-align: right;
}

.chat-options {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  background: var(--bg-color);
  justify-content: flex-start;
  border-top: 1px solid #f0e6a5;
}

.option-button {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 45%;
  background: #faf8e6;
  color: var(--main-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: var(--font-size-small);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(215, 161, 13, 0.25);
  transition: background 0.25s ease;
  user-select: none;
  text-align: center;
}

.option-button:hover {
  background: #f0e1a3;
}

@media (max-width: 480px) {
  .chat-container {
    height: 90vh;
    margin: 0.5rem;
  }
  .option-button {
    max-width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
