/* =========================================================
   SIMULATEUR PREMIUM — SOLIDYS GROUPE
   ========================================================= */

.home-simulateur-section {
  background:
    radial-gradient(circle at top left, rgba(198, 124, 88, 0.10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(1, 73, 142, 0.10), transparent 30%),
    linear-gradient(135deg, #f7f9fc 0%, #eef4fb 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.home-simulateur-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.home-simulateur-head .section-tag {
  margin-bottom: 16px;
}

.home-simulateur-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-simulateur-head p {
  font-size: 16px;
  line-height: 1.8;
  color: #667085;
}

/* Conteneur principal */
.sim-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 232, 245, 0.95);
  border-radius: 28px;
  padding: 32px;
  box-shadow:
    0 25px 70px rgba(1, 73, 142, 0.10),
    0 10px 30px rgba(198, 124, 88, 0.06);
}

/* Header du simulateur */
.sim-header {
  background:
    linear-gradient(135deg, rgba(1, 73, 142, 0.98), rgba(10, 31, 143, 0.95));
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(1, 73, 142, 0.18);
}

.sim-header h1,
.sim-header h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.sim-header h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}
.sim-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* Barre de progression */
.sim-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5edf6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

.sim-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c67c58 0%, #e0a07e 100%);
  box-shadow: 0 4px 16px rgba(198, 124, 88, 0.30);
  transition: width 0.35s ease;
}

/* Écrans */
.sim-screen {
  display: none;
  animation: simFadeUp 0.35s ease;
}

.sim-screen.sim-active {
  display: block;
}

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

/* Titres d'étapes */
.sim-step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 73, 142, 0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sim-question {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  color: #152238;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

/* Grille d’options */
.sim-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.sim-option {
  position: relative;
  background: #fff;
  border: 1.5px solid #d9e7f3;
  border-radius: 18px;
  padding: 20px 18px;
  min-height: 108px;
  cursor: pointer;
  transition: 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.03);
}

.sim-option:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 124, 88, 0.85);
  box-shadow:
    0 18px 35px rgba(1, 73, 142, 0.08),
    0 10px 18px rgba(198, 124, 88, 0.08);
}

.sim-option.sim-selected {
  border-color: #c67c58;
  background: linear-gradient(135deg, rgba(198, 124, 88, 0.08), rgba(255,255,255,1));
  box-shadow:
    0 16px 30px rgba(198, 124, 88, 0.12),
    inset 0 0 0 1px rgba(198, 124, 88, 0.15);
}

.sim-option small {
  display: block;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.sim-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 2px;
}

/* Groupe de boutons */
.sim-btn-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.sim-btn-group-right {
  justify-content: flex-end;
}

.sim-btn,
.sim-btn-submit,
.sim-btn-appel,
.sim-btn-rappel,
.sim-restart {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.28s ease;
}

/* Boutons généraux */
.sim-btn {
  padding: 14px 22px;
  border-radius: 12px;
  background: #eef4fb;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
}

.sim-btn:hover {
  background: #dfeaf7;
}

.sim-btn-primary {
  background: linear-gradient(135deg, #c67c58, #d8926f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(198, 124, 88, 0.20);
}

.sim-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(198, 124, 88, 0.28);
}

.sim-btn:disabled,
.sim-btn-primary:disabled,
.sim-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Bloc appel / estimation / rappel */
.sim-appel-box {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f4;
  border-radius: 22px;
  padding: 34px 24px;
  box-shadow: 0 20px 40px rgba(1, 73, 142, 0.06);
}

.sim-big-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.sim-badge {
  display: inline-block;
  background: rgba(198, 124, 88, 0.12);
  color: #9e5e3d;
  border: 1px solid rgba(198, 124, 88, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sim-appel-box h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #132033;
  margin-bottom: 12px;
  font-weight: 800;
}

.sim-appel-box p {
  color: #667085;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 22px;
}

.sim-btn-appel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 15px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin: 0 8px 12px;
  box-shadow: 0 14px 26px rgba(1, 73, 142, 0.18);
}

.sim-btn-appel:hover {
  transform: translateY(-2px);
}

.sim-btn-rappel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 15px 22px;
  border-radius: 12px;
  background: #eef4fb;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 15px;
  margin: 0 8px 12px;
}

.sim-btn-rappel:hover {
  background: #dde9f7;
}

.sim-restart {
  margin-top: 20px;
  background: transparent;
  color: #7b8797;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 0;
}

.sim-restart:hover {
  color: var(--primary);
}

/* Formulaires */
.sim-form-group {
  margin-bottom: 18px;
}

.sim-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #243247;
}

.sim-form-group input,
.sim-form-group textarea,
.sim-form-group select {
  width: 100%;
  border: 1.5px solid #d8e5f1;
  background: #fff;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 15px;
  color: #142033;
  outline: none;
  transition: 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.sim-form-group input::placeholder,
.sim-form-group textarea::placeholder {
  color: #98a2b3;
}

.sim-form-group input:focus,
.sim-form-group textarea:focus,
.sim-form-group select:focus {
  border-color: #c67c58;
  box-shadow:
    0 0 0 4px rgba(198, 124, 88, 0.10),
    inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.sim-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Bouton submit */
.sim-btn-submit {
  width: 100%;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c67c58, #d8926f);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(198, 124, 88, 0.22);
}

.sim-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(198, 124, 88, 0.28);
}

/* Divider */
.sim-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #d8e5f1, transparent);
  margin: 26px 0;
}

/* Cartes de recommandation */
.sim-reco-header {
  margin-bottom: 18px;
}

.sim-reco-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #132033;
  margin-bottom: 10px;
  font-weight: 800;
}

.sim-reco-header p {
  color: #667085;
  line-height: 1.8;
}

#sim-renov-cards,
#sim-deco-cards {
  display: grid;
  gap: 16px;
}

.sim-reco-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dce8f5;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 24px rgba(1, 73, 142, 0.05);
}

.sim-reco-card h3 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 800;
}

.sim-reco-card p {
  color: #667085;
  line-height: 1.8;
  margin-bottom: 16px;
}

.sim-tag {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(1, 73, 142, 0.08);
  color: var(--primary);
  border: 1px solid rgba(1, 73, 142, 0.10);
}

/* Placeholder si besoin */
.sim-placeholder {
  background: #fff;
  border: 1px dashed #c6d6e7;
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  color: #667085;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .home-simulateur-section {
    padding: 80px 0;
  }

  .sim-wrap {
    padding: 24px;
    border-radius: 22px;
  }

  .sim-options {
    grid-template-columns: 1fr;
  }

  .sim-question {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .home-simulateur-section {
    padding: 68px 0;
  }

  .home-simulateur-head {
    margin-bottom: 34px;
  }

  .home-simulateur-head h2 {
    font-size: 30px;
  }

  .home-simulateur-head p {
    font-size: 15px;
  }

  .sim-wrap {
    padding: 18px;
    border-radius: 18px;
  }

  .sim-header {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .sim-header h1,
  .sim-header h2 {
    font-size: 20px;
  }

  .sim-question {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .sim-option {
    min-height: auto;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .sim-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .sim-btn,
  .sim-btn-primary,
  .sim-btn-submit,
  .sim-btn-appel,
  .sim-btn-rappel {
    width: 100%;
  }

  .sim-btn-appel,
  .sim-btn-rappel {
    margin-left: 0;
    margin-right: 0;
  }

  .sim-appel-box {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .sim-big-icon {
    font-size: 42px;
  }

  .sim-form-group input,
  .sim-form-group textarea,
  .sim-form-group select {
    padding: 14px 14px;
    font-size: 14px;
  }

  .sim-reco-card {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .sim-wrap {
    padding: 16px;
  }

  .sim-header h1,
  .sim-header h2 {
    font-size: 18px;
  }

  .sim-question {
    font-size: 20px;
  }

  .sim-step-label {
    font-size: 11px;
    padding: 7px 12px;
  }
}