/* ================================================
   AIRSTEP - Chatbot Minimaliste Épuré
   Design blanc, propre, sans fioritures
   ================================================ */

/* Modal overlay épuré */
.airstep-modal-overlay-minimal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

.airstep-modal-overlay-minimal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal blanc épuré */
.airstep-chat-modal-minimal {
  background: white;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: flex;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  position: relative;
}

/* Bouton fermeture discret */
.airstep-chat-close-minimal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  color: #666;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.airstep-chat-close-minimal:hover {
  background: #e5e5e5;
  transform: rotate(90deg);
}

/* Partie gauche - Contenu */
.airstep-chat-content-minimal {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Partie droite - Image */
.airstep-chat-image-minimal {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.airstep-chat-image-minimal img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
}

/* Question */
.airstep-question-minimal {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 30px 0;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* Input wrapper */
.airstep-input-wrapper-minimal {
  margin-bottom: 16px;
}

/* Input épuré */
.airstep-input-minimal {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  background: #fafafa;
  color: #1a1a1a;
}

.airstep-input-minimal:focus {
  border-color: #d0d0d0;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.airstep-input-minimal::placeholder {
  color: #999;
}

/* Exemple discret */
.airstep-example-minimal {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.6;
  margin: 0;
}

.airstep-example-minimal strong {
  color: #666;
  font-weight: 500;
}

/* Zone de conversation (remplace l'exemple) */
.airstep-conversation-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Message simple (texte brut) */
.airstep-message-simple {
  margin: 0;
  animation: fadeInMsg 0.3s ease;
}

.airstep-message-simple.user {
  color: #1a1a1a;
  font-weight: 500;
}

.airstep-message-simple.ai {
  color: #666;
}

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

/* Typing avec barre de progression animée */
.airstep-typing-simple {
  color: #999;
  font-style: italic;
  margin: 0;
  position: relative;
  padding-bottom: 12px;
}

.airstep-typing-simple::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3CA7FF 0%, #667eea 100%);
  border-radius: 2px;
  animation: progressBar 1.5s ease-in-out infinite;
}

@keyframes progressBar {
  0% {
    width: 0%;
    opacity: 0.5;
  }
  50% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 0%;
    opacity: 0.5;
  }
}

/* Carte résultat simple */
.airstep-result-simple {
  background: #fafafa;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.airstep-result-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.airstep-result-stats-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.airstep-result-stats-simple > div {
  text-align: center;
}

.airstep-result-stats-simple .label {
  display: block;
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.airstep-result-stats-simple .value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Bouton submit discret */
.airstep-submit-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.airstep-submit-minimal:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.airstep-submit-minimal:disabled {
  background: #e5e5e5;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .airstep-chat-modal-minimal {
    flex-direction: column-reverse;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .airstep-chat-image-minimal {
    width: 100%;
    padding: 30px 20px 20px;
  }
  
  .airstep-chat-image-minimal img {
    max-width: 200px;
  }
  
  .airstep-chat-content-minimal {
    padding: 30px 24px 40px;
  }
  
  .airstep-question-minimal {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
  
  .airstep-input-minimal {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  
  .airstep-example-minimal {
    font-size: 0.8rem;
  }
  
  .airstep-submit-minimal {
    width: 100%;
    justify-content: center;
  }
}

/* Animation entrée */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* État de chargement */
.airstep-loading-minimal {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
  margin-top: 16px;
}

.airstep-loading-minimal.active {
  display: flex;
}

.airstep-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: loadingBounce 1.4s infinite;
}

.airstep-loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.airstep-loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Message d'erreur discret */
.airstep-error-minimal {
  display: none;
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #fee;
  border-radius: 8px;
  color: #c53030;
  font-size: 0.875rem;
  margin-top: 16px;
}

.airstep-error-minimal.active {
  display: block;
}