/* === CONTAINER PRINCIPAL === */
#ai-chat-cf7 {
  margin: 20px auto;
  padding: 18px;
  background: transparent;
  border-radius: 12px;
  color: #e6fff7;
  font-family: 'Poppins', sans-serif;
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === STEP WRAPPER === */
.ai-step {
  display: none;             /* caché par défaut */
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
  animation: fadeIn .4s ease forwards;
}
.ai-step.active {
  display: flex;             /* affiché uniquement quand actif */
}

/* === BULLE DU BOT === */
.ai-bot {
  align-self: flex-start;
  background: transparent;
  color: #fafafa;
  padding: 12px 14px;
  border-radius: 10px;
  max-width: 100%;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}

/* curseur qui clignote (effet typing) */
.ai-cursor {
  display: inline-block;
  position: relative;
  top: -6px;
  width: 8px;
  height: 1.5em;
  background: #fafafa;
  margin-left: 8px;
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* === INPUTS AREA === */
.ai-input-area {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-wrap: wrap; /* permet aux boutons de s’organiser sur plusieurs lignes */
  align-items: center;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
}

/* === INPUTS / SELECT / TEXTAREA === */
input.ai-input::placeholder {
  font-family: 'Poppins', sans-serif;
  font-size: 16px !important;
  color: #fafafa !important;
}

input.ai-input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px !important;
  text-align: center !important;
}

select.ai-input option {
  color: #000 !important;
}

textarea.ai-textarea {
  min-width: 350px !important;
  border-radius: 0px !important;
}

.ai-input,
.ai-select,
.ai-textarea {
  flex: 1;
  min-width: 250px;
  padding: 10px 20px;
  border-radius: 5em;
  border: 1px solid #fafafa;
  background: transparent;
  color: #fafafa;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  outline: none;
  transition: all .2s ease;
  text-align: center;
}
.ai-input:focus,
.ai-select:focus,
.ai-textarea:focus {
  box-shadow: 0 0 6px rgba(0,194,168,0.25);
  border-color: #0ae3ed;
}

/* === BOUTONS CONTINUER / CHOIX === */
.ai-btn {
  min-width: 250px;
  padding: 10px 20px;
  border-radius: 5em;
  border: 1px solid #fafafa;
  background: transparent;
  color: #fafafa;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  flex: 1 1 calc(50% - 8px); /* 2 boutons par ligne si possible */
  text-align: center;
  white-space: nowrap;
}
.ai-btn:hover {
  background: #00e0c2 !important;
  border: 1px solid #00e0c2;
  color:  #0a0066;
  /*transform: translateY(-2px);*/
  /*box-shadow: 0 4px 12px rgba(0,194,168,0.3);*/
}
.ai-btn:disabled {
  background: transparent;
  cursor: not-allowed;
}

/* === BOUTONS CHOIX PLEINE LARGEUR SUR MOBILE === */
@media (max-width: 480px) {
  .ai-btn {
    flex: 1 1 100%;
  }
}

/* === SUBMIT CF7 (quand apparait à la fin) === */
.wpcf7-submit.ai-highlight-submit {
  box-shadow: 0 8px 20px rgba(0,194,168,0.35);
  transition: box-shadow .3s ease;
  font-family: 'Poppins', sans-serif;
}

/* === MASQUER LES CHAMPS CF7 CACHÉS === */
.cf7-hidden {
  display: none !important;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}