/* Police globale */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #5E5E5E;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* Conteneur général */
#container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}

/* SIDEBAR (colonne sessions) */
#sidebar-toggle {
  width: 24px;
  height: 24px;
  margin: 16px;
  cursor: pointer;
}

#session-list {
  width: 33.33%;
  background-color: #fff;
  border-right: 1px solid #5E5E5E;
  padding: 16px;
  display: none;
}

#session-list.visible {
  display: block;
}

.session-button {
  display: block;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: none;
  background-color: #eee;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  color: #5E5E5E;
}

.session-button:hover {
  background-color: #ddd;
}

/* ZONE CHAT */
#chat-area {
  width: 66.66%;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Boîte Q/R */
#chat-box {
  flex-grow: 1;
}

.chat-question {
  background-color: rgba(234, 247, 255, 0.2);
  border: 1px solid #ccc;
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 8px;
  color: #5E5E5E;
}

.chat-response {
  padding: 12px 0;
  white-space: pre-line;
  color: #5E5E5E;
}

/* Module input + flèche */
#input-wrapper {
  position: relative;
  margin-top: 24px;
}

#user-input {
  width: 100%;
  padding: 14px 48px 14px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 7px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif;
}

#send-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* Compteur */
#question-counter {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #5E5E5E;
}

/* Loader Deelern */
.loader {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #000;
  animation: pulse 1s infinite;
  display: inline-block;
  margin-left: 6px;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  #container {
    flex-direction: column;
  }

  #session-list,
  #chat-area {
    width: 100%;
  }
}
