/* --- WIZARD ÉTAPES PAR ÉTAPES - ENQUÊTE CLIENT NOURIVOIRE --- */

.survey-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: 
    radial-gradient(circle at 15% 15%, rgba(243, 112, 35, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(227, 43, 29, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 199, 9, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #FDFBF7 0%, #FAF3EA 50%, #F5ECE0 100%);
  position: relative;
  overflow-x: hidden;
}

.survey-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(227, 43, 29, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

/* Sphères Lumineuses Décoratives d'Arrière-Plan */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #E32B1D 0%, #F37023 100%);
  top: -80px;
  left: -80px;
  animation-duration: 14s;
}

.bg-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #F37023 0%, #FFC709 100%);
  bottom: -100px;
  right: -100px;
  animation-duration: 18s;
}

.bg-orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(227, 43, 29, 0.35) 0%, rgba(61, 14, 11, 0.45) 100%);
  top: 45%;
  left: 55%;
  animation-duration: 16s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 45px) scale(1.08); }
  100% { transform: translate(-25px, 25px) scale(0.95); }
}

/* Filigranes Marque Produit Attiéké Choco Visibles sur l'Arrière-Plan */
.bg-watermark-left,
.bg-watermark-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  max-width: 25vw;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 15px 30px rgba(227, 43, 29, 0.2));
  user-select: none;
  animation: floatWatermark 12s ease-in-out infinite alternate;
}

.bg-watermark-left {
  left: 2.5%;
}

.bg-watermark-right {
  right: 2.5%;
  animation-delay: -6s;
}

@keyframes floatWatermark {
  0% { transform: translateY(-54%) rotate(-2deg); }
  50% { transform: translateY(-46%) rotate(2deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

@media (max-width: 1200px) {
  .bg-watermark-left,
  .bg-watermark-right {
    opacity: 0.20;
    width: 220px;
  }
}

/* Animations de transition entre étapes */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes popBounce {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.45) rotate(10deg); }
  100% { transform: scale(1.2) rotate(0deg); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(227, 43, 29, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(227, 43, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 43, 29, 0); }
}

.survey-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Indicateur d'étapes (Pills en haut) */
.wizard-steps-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-dot {
  width: 38px;
  height: 8px;
  border-radius: 10px;
  background: rgba(226, 215, 205, 0.8);
  transition: all 0.4s ease;
}

.step-dot.active {
  width: 60px;
  background: linear-gradient(90deg, #E32B1D 0%, #F37023 100%);
  box-shadow: 0 2px 8px rgba(227, 43, 29, 0.3);
}

.step-dot.completed {
  background: #10B981;
}

/* Carte principale du Wizard */
.wizard-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem 3.25rem 2.75rem;
  box-shadow: 
    0 25px 60px -15px rgba(61, 14, 11, 0.12),
    0 10px 20px -5px rgba(227, 43, 29, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #E32B1D 0%, #F37023 50%, #FFC709 100%);
}

/* Chaque étape masquée par défaut */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: slideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active-back {
  display: block;
  animation: slideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ÉTAPE 0 : Page de Bienvenue */
.welcome-step {
  text-align: center;
  padding: 1rem 0;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF3EB 0%, #FEF3C7 100%);
  color: #D97706;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(243, 112, 35, 0.2);
}

.welcome-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.25rem;
}

.welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E32B1D 0%, #F37023 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.welcome-desc {
  color: #6E5350;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-time-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8ECE7;
  color: #E32B1D;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* ÉTAPES QUESTIONS (1, 2, 3) */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step-badge {
  font-size: 0.825rem;
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

.step-icon-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.step-big-icon {
  font-size: 3rem;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: #FFF5ED;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(243, 112, 35, 0.12);
  animation: popBounce 0.5s ease;
}

.step-question-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2B1513;
  margin-bottom: 0.35rem;
}

.step-question-sub {
  font-size: 0.95rem;
  color: #6E5350;
  max-width: 620px;
}

/* Etoiles et Badges dans le Wizard */
.wizard-rating-box {
  background: #FAF6F0;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid #F3EBE3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.wizard-rating-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #E32B1D;
  background: #FFFFFF;
  padding: 0.45rem 1.25rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid rgba(227, 43, 29, 0.2);
  min-width: 180px;
  text-align: center;
}

.stars-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.85rem;
}

.stars-rating input[type="radio"] {
  display: none;
}

.stars-rating label {
  font-size: 2.85rem;
  color: #E2D7CD;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, text-shadow 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.stars-rating label:hover,
.stars-rating label:hover ~ label,
.stars-rating input[type="radio"]:checked ~ label {
  color: #FFB800;
  transform: scale(1.22);
  text-shadow: 0 4px 14px rgba(255, 184, 0, 0.5);
}

.stars-rating label:active {
  animation: starPop 0.3s ease;
}

/* Zone Commentaire Wizard */
.comment-box {
  background: #FAF6F0;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid #F3EBE3;
}

.comment-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #2B1513;
  margin-bottom: 0.6rem;
}

.char-counter {
  font-size: 0.775rem;
  font-weight: 700;
  color: #6E5350;
  background: #FFFFFF;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #E2D7CD;
}

.comment-textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 2px solid #E2D7CD;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: #2B1513;
  resize: vertical;
  min-height: 100px;
  background: #FFFFFF;
  transition: all 0.25s ease;
}

.comment-textarea:focus {
  outline: none;
  border-color: #F37023;
  box-shadow: 0 0 0 4px rgba(243, 112, 35, 0.18);
}

.smart-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.smart-chip {
  background: #FFFFFF;
  border: 1px solid #E2D7CD;
  color: #2B1513;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.smart-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Boutons de Navigation Wizard */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.btn-wizard-next {
  flex: 1;
  padding: 1.1rem;
  background: linear-gradient(135deg, #E32B1D 0%, #F37023 50%, #FFC709 100%);
  background-size: 200% auto;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(227, 43, 29, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.btn-start-wizard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 440px;
  width: 100%;
  padding: 1.15rem 2rem;
  background: linear-gradient(135deg, #E32B1D 0%, #F37023 50%, #FFC709 100%);
  background-size: 200% auto;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(227, 43, 29, 0.35);
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.btn-wizard-next:hover:not(:disabled), .btn-start-wizard:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(227, 43, 29, 0.4);
}

.btn-wizard-prev {
  padding: 1.1rem 1.5rem;
  background: #F8ECE7;
  color: #6E5350;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-wizard-prev:hover {
  background: #EFE4DC;
  color: #2B1513;
}

.btn-wizard-next:disabled {
  background: #D5C7BD;
  cursor: not-allowed;
  box-shadow: none;
}

/* ÉTAPE MERCI / CÉLÉBRATION FINALE */
.thankyou-step {
  text-align: center;
  padding: 1.5rem 0;
}

.thankyou-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: popBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thankyou-title {
  font-size: 2rem;
  font-weight: 800;
  color: #10B981;
  margin-bottom: 0.75rem;
}

.thankyou-desc {
  color: #6E5350;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.survey-footer {
  text-align: center;
  margin-top: 1.75rem;
  color: #6E5350;
  font-size: 0.825rem;
  font-weight: 500;
}

/* Responsive Mobile & Tablet */
@media (max-width: 768px) {
  .survey-wrapper {
    padding: 1.5rem 0.75rem;
  }
  
  .wizard-card {
    padding: 1.75rem 1.35rem 1.5rem;
    border-radius: 20px;
  }

  .step-dot {
    width: 26px;
    height: 6px;
  }

  .step-dot.active {
    width: 42px;
  }

  .welcome-title {
    font-size: 1.45rem;
  }

  .step-question-title {
    font-size: 1.2rem;
  }

  .step-question-sub {
    font-size: 0.875rem;
  }

  .wizard-rating-box {
    padding: 1.25rem 0.75rem;
    border-radius: 14px;
    gap: 0.85rem;
  }

  .stars-rating {
    gap: 0.4rem;
  }

  .stars-rating label {
    font-size: 2.25rem;
  }

  .wizard-rating-badge {
    font-size: 0.85rem;
    min-width: 150px;
    padding: 0.35rem 1rem;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn-wizard-prev, .btn-wizard-next, .btn-start-wizard {
    width: 100%;
    padding: 0.95rem;
    font-size: 1rem;
  }

  .bg-watermark-left,
  .bg-watermark-right {
    display: none;
  }
}

@media (max-width: 400px) {
  .survey-wrapper {
    padding: 1rem 0.5rem;
  }

  .wizard-card {
    padding: 1.35rem 1rem 1.25rem;
    border-radius: 16px;
  }

  .stars-rating label {
    font-size: 1.95rem;
  }

  .stars-rating {
    gap: 0.25rem;
  }

  .step-big-icon {
    width: 62px;
    height: 62px;
    font-size: 2.4rem;
    border-radius: 16px;
  }

  .smart-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
}

