/* chatbot.css */

/* Bouton flottant */
#openChatButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  z-index: 9999;
}

/* Boîte de chat */
#chatbot {
  position: fixed;
  bottom: 80px;
  right: 15px;
  width: 90%;
  max-width: 350px;
  height: calc(100vh - 150px); /* ajustable */
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.chat-header {
  background: #28a745;
  color: white;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbox {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  background: #fff;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.chat-input textarea {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  resize: none;
  max-height: 150px;
  overflow-y: auto;
  outline: none;
  font-family: inherit;
}

.chat-input button {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
}

/* Responsive ajustement */
@media (max-width: 768px) {
  #chatbot {
    width: 95%;
    height: 40vh;
    bottom: 60px;
    right: 2.5%;
  }

  .chat-header {
    font-size: 14px;
    padding: 10px;
  }

  #chatbox {
    font-size: 13px;
  }

  .chat-input input,
  .chat-input button {
    font-size: 13px;
    padding: 10px;
  }
} 
