/* ========================================
   CHATBOT STYLES - PALETTE LUXE
   Inspiré de Porsche, Ferrari et Maserati
   ======================================== */

/* Bouton du chatbot */
.chatbot-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #C41E3A, #1A1A1A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
  transition: all 0.3s ease;
  z-index: 10000;
  border: 2px solid #C0C0C0;
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(196, 30, 58, 0.4);
  border-color: #C41E3A;
}

.chatbot-button svg {
  color: #FAFAFA;
}

/* Container du chatbot */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 550px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(196, 30, 58, 0.3);
  display: none;
  flex-direction: column;
  z-index: 10001;
  border: 2px solid rgba(196, 30, 58, 0.4);
  overflow: hidden;
}

.chatbot-container.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

/* Header du chatbot */
.chatbot-header {
  background: linear-gradient(135deg, #1A1A1A, #3A3A3A);
  color: #FAFAFA;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #C41E3A;
}

.chatbot-header h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #FAFAFA;
}

.close-button {
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: rgba(196, 30, 58, 0.2);
  transform: rotate(90deg);
}

/* Messages */
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: rgba(58, 58, 58, 0.1);
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #3A3A3A;
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #C41E3A;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageAppear 0.3s ease;
}

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

.user-message {
  align-self: flex-end;
  background: linear-gradient(135deg, #1A1A1A, #3A3A3A);
  color: #FAFAFA;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}

.bot-message {
  align-self: flex-start;
  background: white;
  color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-bottom-left-radius: 5px;
}

/* Indicateur de saisie */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #C41E3A;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Input */
.chatbot-input {
  display: flex;
  padding: 15px;
  gap: 10px;
  background: white;
  border-top: 2px solid #3A3A3A;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #3A3A3A;
  border-radius: 25px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: all 0.3s ease;
  background: #FAFAFA;
}

.chatbot-input input:focus {
  border-color: #C41E3A;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
  background: white;
}

.send-button {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #1A1A1A, #3A3A3A);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.3);
}

.send-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.5);
  background: linear-gradient(135deg, #C41E3A, #1A1A1A);
}

.send-button svg {
  color: #FAFAFA;
}

/* Badge 100% GRATUIT dans le chatbot */
.chatbot-badge {
  background: linear-gradient(135deg, #C41E3A, #1A1A1A);
  color: #FAFAFA;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin: 10px 20px;
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    width: calc(100vw - 40px);
    height: calc(100vh - 140px);
    bottom: 100px;
    right: 20px;
  }
  
  .chatbot-button {
    bottom: 20px;
    right: 20px;
  }
  
  /* Badge caché sur mobile */
  .chatbot-badge {
    display: none;
  }
}

