/* ===== Bulles de chat IA ===== */
.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: bubbleIn 0.3s ease-out;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #d4af37, #9c7019);
  color: #0c1738;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-bubble-ai {
  background: linear-gradient(135deg, #162455, #0c1738);
  color: #fdeec3;
  margin-right: auto;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom-left-radius: 4px;
  text-align: right;
  font-family: 'Amiri', serif;
  font-size: 17px;
}

.chat-bubble-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 14px 18px;
}

.chat-bubble-typing .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4af37;
  animation: typingDot 1.4s infinite ease-in-out;
}

.chat-bubble-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 10px;
}
/* Bouton micro en mode enregistrement */
.chat-mic.recording {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  animation: micPulse 1s infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
}
