/* ============================================================
   histoire.css — Spécifique page histoire de l'IA
   ============================================================ */

.hi-deco-panel {
  flex: 0 0 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hi-timeline-deco {
  width: 280px;
  position: relative;
}

/* ── Terminal ELIZA ── */
.hi-eliza-terminal {
  width: 100%;
  max-width: 480px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
  font-family: "Special Elite", "Courier New", monospace;
  background: #f5f0e8;
  border: 2px solid #8b7355;
}

.hi-eliza-header {
  background: #2c1810;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #8b7355;
}

.hi-eliza-title {
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  color: #c8a96e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hi-eliza-messages {
  padding: 1rem;
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f5f0e8;
}

.hi-eliza-messages::-webkit-scrollbar {
  width: 4px;
}
.hi-eliza-messages::-webkit-scrollbar-thumb {
  background: #8b7355;
  border-radius: 2px;
}

.hi-eliza-msg {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: elizaFadeIn 0.3s ease;
}

@keyframes elizaFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hi-eliza-speaker {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
}

.hi-eliza-msg--eliza .hi-eliza-speaker {
  color: #2c1810;
}
.hi-eliza-msg--user .hi-eliza-speaker {
  color: #5c4a2a;
}

.hi-eliza-msg--eliza span:last-child {
  color: #2c1810;
  font-size: 0.85rem;
  line-height: 1.5;
}

.hi-eliza-msg--user span:last-child {
  color: #5c4a2a;
  font-size: 0.85rem;
  line-height: 1.5;
  font-style: italic;
}

/* Effet machine à écrire */
.hi-eliza-typing::after {
  content: "▌";
  animation: blink 0.7s step-end infinite;
  color: #2c1810;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hi-eliza-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid #c8a96e;
  background: #ede8dc;
}

.hi-eliza-prompt {
  color: #2c1810;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
}

.hi-eliza-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 0.85rem;
  color: #2c1810;
  caret-color: #2c1810;
}

.hi-eliza-input::placeholder {
  color: #a89070;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hi-deco-panel {
    display: none;
  }
  .hi-eliza-terminal {
    max-width: 100%;
  }
}
