/* ================================
   DEMO PAGE LAYOUT
================================ */

.demo-page {
  padding-top: 100px; /* pour compenser header fixed */
  padding-bottom: 80px;
  background: #f9fcfa;
}


.demo-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  min-height: 75vh;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
  padding: 0px;
}

/* ================================
   LEFT SIDE – FORM
================================ */

.demo-form-area {
  flex: 0 0 55%;
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-form-area h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.step-subtitle {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 35px;
}

/* ================================
   PROGRESS BAR
================================ */

.demo-progress {
  margin-bottom: 40px;
}

.progress-bar {
  height: 6px;
  background: #e5f3ea;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: var(--green-dark);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9aa5a0;
}

.progress-steps .step.active {
  color: var(--green-dark);
  font-weight: 600;
}

/* ================================
   FORM STEPS
================================ */

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ================================
   FIELD GROUPS
================================ */

.field-group {
  margin-bottom: 25px;
}

.field-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ================================
   OPTION BUTTONS (cards style)
================================ */

.option-group {
  display: grid;
  gap: 12px;
}

.option-btn {
  border: 1px solid #e2eae6;
  background: white;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.25s ease;
}

.option-btn:hover {
  border-color: var(--green-light);
  background: #f2faf5;
}

.option-btn.selected {
  border-color: var(--green-dark);
  background: #eaf6ef;
  font-weight: 600;
}

/* ================================
   INPUT FIELDS
================================ */

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2eae6;
  font-size: 0.9rem;
  transition: 0.25s ease;
}

input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(0,95,46,0.08);
}

/* ================================
   STEP ACTIONS
================================ */

.step-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.btn-next,
.btn-prev,
.btn-submit {
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.25s ease;
}

/* Bouton Suivant / Submit */

.btn-next,
.btn-submit {
  background: var(--green-dark);
  color: white;
  box-shadow: 0 8px 20px rgba(0,95,46,0.15);
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* Bouton Retour */

.btn-prev {
  background: #f2f5f3;
  color: #5f6e66;
}

.btn-prev:hover {
  background: #e6ece9;
}

/* ================================
   RIGHT SIDE – ILLUSTRATION
================================ */

.demo-illustration-area {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f5fbf7 70%
  );

  padding: 80px 60px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-content {
  max-width: 520px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* IMAGE PRINCIPALE */

.illustration-content img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-bottom: 35px;

  animation: float 6s ease-in-out infinite;
}

/* TITRE */

.illustration-content h3 {
  font-size: 1.4rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

/* TEXTE */

.illustration-content p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.demo-illustration-area::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--green-light);
  opacity: 0.08;
  filter: blur(120px);
  border-radius: 50%;
  top: 30%;
  right: 20%;
  z-index: 1;
}

/* ANIMATION SUBTILE */

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 992px) {

  .demo-wrapper {
    flex-direction: column;
    border-radius: 0;
  }

  .demo-form-area,
  .demo-illustration-area {
    flex: 100%;
    padding: 40px 25px;
  }

  .demo-illustration-area {
    order: -1;
  }

  .illustration-content img {
    max-width: 200px;
  }

}