/* ======================================
   SIMULATEUR ÉTUDE GRATUITE
   Styles isolés, premium, sobre
   Refinement UX — fluide, pro
   ====================================== */

/* Transitions entre étapes */
.etude-sim__step-content,
.sim-step-body {
  animation: etude-step-enter 0.3s ease-out forwards;
}

/* ======================================
   STRUCTURE SIM-* (configurateur)
   ====================================== */
.sim-step-ui {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-step-header {
  margin-bottom: 0;
}

.sim-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sg-gold, #C39847);
  margin: 0 0 8px;
  line-height: 1.2;
}

.sim-step-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.sim-step-body {
  flex: 1;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.sim-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-input:focus {
  outline: none;
  border-color: var(--sg-gold, #C39847);
  box-shadow: 0 0 0 1px rgba(195, 152, 71, 0.2);
}

.sim-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sim-input.sim-input--error {
  border-color: rgba(255, 120, 80, 0.5);
}

.sim-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 8px 0;
  accent-color: var(--sg-gold, #C39847);
}

.sim-slider-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sg-gold, #C39847);
  text-align: center;
}

.sim-choice-grid {
  display: grid;
  gap: 10px;
}

.sim-choice-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.sim-choice-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 480px) {
  .sim-choice-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sim-choice-btn {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(195, 152, 71, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.sim-choice-btn:hover {
  background: rgba(195, 152, 71, 0.12);
  border-color: rgba(195, 152, 71, 0.5);
}

.sim-choice-btn:focus {
  outline: none;
  border-color: var(--sg-gold, #C39847);
}

.sim-autocomplete-wrap {
  position: relative;
}

.sim-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181818;
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sim-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
}

.sim-suggestion:last-child {
  border-bottom: none;
}

.sim-suggestion:hover {
  background: rgba(195, 152, 71, 0.15);
}

.sim-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--sg-gold, #C39847);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.sim-gps-btn:hover {
  color: #D7B26A;
}

.sim-gps-btn svg {
  width: 16px;
  height: 16px;
}

.sim-gps-msg {
  font-size: 0.8125rem;
  margin-top: 6px;
}

.sim-gps-msg--error {
  color: rgba(255, 180, 160, 0.9);
}

.sim-gps-msg--success {
  color: #81c784;
}

.sim-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

@media (max-width: 480px) {
  .sim-form-grid {
    grid-template-columns: 1fr;
  }
}

.sim-form-error {
  font-size: 0.8125rem;
  color: rgba(255, 180, 160, 0.9);
  min-height: 1.2em;
}

@keyframes etude-step-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout principal */
.etude-sim {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.etude-sim__intro {
  text-align: center;
  margin-bottom: 48px;
}

.etude-sim__intro h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sg-white, #fff);
  margin: 0 0 12px;
}

.etude-sim__intro p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ======================================
   SIMULATOR CARD (composant unique)
   ====================================== */
.simulator-card {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(195, 152, 71, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.simulator-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
}

@media (max-width: 768px) {
  .simulator-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

.simulator-media {
  position: sticky;
  top: 120px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .simulator-media {
    position: relative;
    top: 0;
    order: -1;
  }
}

.simulator-media video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  transition: opacity 0.25s ease-out;
}

.simulator-media .etude-sim__media-fallback {
  width: 100%;
  height: 280px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.simulator-step {
  min-height: 300px;
}

.simulator-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
}

.simulator-bottom[hidden] {
  display: none;
}

/* Barre de progression */
.etude-sim__progress-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.etude-sim__progress-step {
  font-size: 0.9375rem;
  color: var(--sg-gold, #C39847);
  font-weight: 600;
  margin-bottom: 10px;
}

.etude-sim__progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.etude-sim__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sg-gold, #C39847), #D7B26A);
  border-radius: 4px;
  transition: width 0.35s ease-out;
}

.etude-sim__reassurance {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 24px;
}

/* Contenu des étapes */
.etude-sim__step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sg-gold, #C39847);
  margin: 0 0 28px;
  line-height: 1.2;
}

.etude-sim__step-content {
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.etude-sim__step-content label {
  display: block;
  margin-bottom: 24px;
}

.etude-sim__step-content label:last-child {
  margin-bottom: 0;
}

.etude-sim__step-content .etude-sim__label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  display: block;
  line-height: 1.4;
}

/* Champs */
.etude-sim__input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.etude-sim__input:focus {
  outline: none;
  border-color: var(--sg-gold, #C39847);
  box-shadow: 0 0 0 1px rgba(195, 152, 71, 0.2);
}

.etude-sim__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.etude-sim__input.etude-sim__input--error {
  border-color: rgba(255, 255, 255, 0.3);
}

.etude-sim__error-msg {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Slider */
.etude-sim__slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 16px 0;
}

.etude-sim__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--sg-gold, #C39847);
  border-radius: 50%;
  cursor: pointer;
}

.etude-sim__slider-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sg-gold, #C39847);
  text-align: center;
  margin: 12px 0;
}

/* Boutons de choix */
.etude-sim__choice-btn {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(195, 152, 71, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.etude-sim__choice-btn:hover {
  background: rgba(195, 152, 71, 0.12);
  border-color: rgba(195, 152, 71, 0.5);
}

.etude-sim__choice-btn:focus {
  outline: none;
  border-color: var(--sg-gold, #C39847);
}

.etude-sim__choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

/* Autocomplete */
.etude-sim__autocomplete-wrap {
  position: relative;
}

.etude-sim__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181818;
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.etude-sim__suggestion {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
}

.etude-sim__suggestion:last-child {
  border-bottom: none;
}

.etude-sim__suggestion:hover,
.etude-sim__suggestion.active {
  background: rgba(195, 152, 71, 0.15);
}

/* GPS */
.etude-sim__gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--sg-gold, #C39847);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.etude-sim__gps-btn:hover {
  color: #D7B26A;
}

.etude-sim__gps-msg {
  font-size: 0.8125rem;
  margin-top: 6px;
}

.etude-sim__gps-msg--error {
  color: rgba(255, 255, 255, 0.6);
}

.etude-sim__gps-msg--success {
  color: #81c784;
}

/* Boutons navigation */
.etude-sim__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.etude-sim__btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.etude-sim__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.etude-sim__btn--prev {
  background: transparent;
  border: 1px solid rgba(195, 152, 71, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.etude-sim__btn--prev:hover:not(:disabled) {
  background: rgba(195, 152, 71, 0.1);
  border-color: rgba(195, 152, 71, 0.5);
}

.etude-sim__btn--next {
  background: var(--sg-gold, #C39847);
  border: none;
  color: #000;
  min-width: 140px;
}

.etude-sim__btn--next:hover:not(:disabled) {
  background: #D7B26A;
}

/* Formulaire final */
.etude-sim__form {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(195, 152, 71, 0.2);
  border-radius: 12px;
}

.etude-sim__form input[type="text"],
.etude-sim__form input[type="email"],
.etude-sim__form input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(195, 152, 71, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
}

.etude-sim__form .etude-sim__submit {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: var(--sg-gold, #C39847);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.etude-sim__form .etude-sim__submit:hover {
  background: #D7B26A;
}

.etude-sim__hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Accent gold pour range */
input[type="range"].etude-sim__slider {
  accent-color: var(--sg-gold, #C39847);
}

/* ======================================
   ÉCRAN RÉSULTAT PREMIUM
   ====================================== */
.sim-result {
  animation: etude-step-enter 0.35s ease-out forwards;
}

.sim-result__header {
  text-align: center;
  margin-bottom: 32px;
}

.sim-result__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sg-gold, #C39847);
  margin: 0 0 12px;
}

.sim-result__subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

.sim-result__hook {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.4;
}

.sim-result__hook strong {
  color: var(--sg-gold, #C39847);
}

.sim-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .sim-result__grid {
    grid-template-columns: 1fr;
  }
}

.sim-result__summary,
.sim-result__projection {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(195, 152, 71, 0.15);
  border-radius: 10px;
  padding: 20px;
}

.sim-result__card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.sim-result__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sim-result__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
}

.sim-result__list li:last-child {
  border-bottom: none;
}

.sim-result__label {
  color: rgba(255, 255, 255, 0.6);
}

.sim-result__value {
  color: #fff;
  font-weight: 500;
}

.sim-result__stat {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.sim-result__stat:last-child {
  border-bottom: none;
}

.sim-result__stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sim-result__stat-unit {
  font-size: 0.875rem;
  color: var(--sg-gold, #C39847);
  font-weight: 600;
}

.sim-result__stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.sim-result__stat-sublabel {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.sim-result__stat--highlight .sim-result__stat-value {
  color: var(--sg-gold, #C39847);
}

.sim-result__stat--highlight .sim-result__stat-unit {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-top: 2px;
}

.sim-result__projection-future {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(195, 152, 71, 0.08);
  border: 1px solid rgba(195, 152, 71, 0.2);
  border-radius: 8px;
}

.sim-result__projection-future p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-align: center;
}

.sim-result__benefits {
  margin-bottom: 28px;
}

.sim-result__benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

@media (max-width: 640px) {
  .sim-result__benefits-list {
    grid-template-columns: 1fr;
  }
}

.sim-result__benefits-list li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 20px;
  position: relative;
}

.sim-result__benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--sg-gold, #C39847);
  border-radius: 50%;
}

.sim-result__cta {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(195, 152, 71, 0.2);
  border-radius: 10px;
  padding: 28px 24px;
}

/* A. INTRO */
.sim-result__form-intro {
  text-align: center;
  margin-bottom: 28px;
}

.sim-result__form-intro-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.sim-result__form-intro-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 8px;
}

.sim-result__form-intro-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* B. FORMULAIRE */
.sim-result__form {
  max-width: 100%;
}

.sim-result__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .sim-result__form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sim-result__form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-result__form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.sim-result__form .sim-result__input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-result__form .sim-result__input:focus {
  outline: none;
  border-color: rgba(195, 152, 71, 0.6);
  box-shadow: 0 0 0 1px rgba(195, 152, 71, 0.15);
}

.sim-result__form .sim-result__input.etude-sim__input--error {
  border-color: rgba(255, 120, 80, 0.5);
}

.sim-result__form .sim-result__input.etude-sim__input--error:focus {
  box-shadow: 0 0 0 1px rgba(255, 120, 80, 0.15);
}

.sim-result__form-error {
  font-size: 0.8125rem;
  color: rgba(255, 180, 160, 0.9);
  min-height: 1.2em;
}

/* Rassurance sous les champs */
.sim-result__form-reassurance {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
}

.sim-result__form-reassurance li {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 20px;
  position: relative;
}

.sim-result__form-reassurance li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--sg-gold, #C39847);
  font-size: 0.75rem;
}

/* C. RGPD */
.sim-result__form-rgpd {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0 0 24px;
  text-align: center;
}

.sim-result__form-rgpd-link {
  color: var(--sg-gold, #C39847);
  text-decoration: underline;
}

.sim-result__form-rgpd-link:hover {
  color: #D7B26A;
}

/* CTA */
.sim-result__submit-wrap {
  text-align: center;
}

.sim-result__submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--sg-gold, #C39847);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.sim-result__submit:hover:not(:disabled) {
  background: #D7B26A;
}

.sim-result__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sim-result__submit--loading .sim-result__submit-text {
  visibility: hidden;
}

.sim-result__submit--loading .sim-result__submit-loader {
  display: block;
}

.sim-result__submit-loader {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: sim-result-spin 0.6s linear infinite;
}

@keyframes sim-result-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sim-result__submit-hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 12px 0 0;
}
