/* ── SIMULATOR LAUNCH BUTTONS ── */
.offre-simulator-cta {
  margin-bottom: 24px;
}
.btn-simulator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  background: var(--bg);
}
.btn-simulator--particuliers {
  color: var(--accent-warm);
  border-color: var(--accent-warm);
}
.btn-simulator--particuliers:hover {
  background: var(--accent-warm);
  color: #fff;
}
.btn-simulator--professionnels {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-simulator--professionnels:hover {
  background: var(--accent);
  color: #fff;
}
.btn-simulator svg { transition: transform 0.2s; }
.btn-simulator:hover svg { transform: scale(1.1); }

/* Hide sim scope by default */
.sim-scope { display: none; }

/* ── SIMULATOR OVERLAY ── */
.sim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.sim-overlay.open {
  display: flex;
}

/* Mobile: bottom sheet */
@media (max-width: 700px) {
  .sim-overlay { align-items: flex-end; }
  .sim-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
}

/* Desktop: centered card */
@media (min-width: 701px) {
  .sim-overlay { align-items: center; }
  .sim-modal {
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: var(--shadow-lg);
  }
}

.sim-modal {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.sim-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.sim-header::before {
  content: '';
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 4px;
  border-radius: 0 0 4px 4px;
}
.sim-mode--particuliers .sim-header::before { background: var(--accent-warm); }
.sim-mode--professionnels .sim-header::before { background: var(--accent); }

.sim-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.sim-close:hover { background: var(--text); color: #fff; border-color: var(--text); }

.sim-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  padding-right: 44px;
}
.sim-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Progress dots */
.sim-progress {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.sim-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}
.sim-dot.active { background: var(--accent-warm); transform: scale(1.25); }
.sim-mode--professionnels .sim-dot.active { background: var(--accent); }
.sim-dot.done { background: var(--text-muted); }

/* Body */
.sim-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  scroll-behavior: smooth;
}

/* Step */
.sim-step { display: none; }
.sim-step.active { display: block !important; }

.sim-step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.sim-step-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Radio card grid */
.sim-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 480px) {
  .sim-options.sim-options--2col { grid-template-columns: 1fr 1fr; }
}

.sim-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-card);
}
.sim-option:hover { border-color: var(--text-muted); }
.sim-option.selected { border-color: var(--accent-warm); background: var(--accent-warm-light); }
.sim-mode--professionnels .sim-option.selected { border-color: var(--accent); background: var(--accent-light); }

.sim-option-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s;
}
.sim-option.selected .sim-option-radio {
  border-color: var(--accent-warm);
  background: var(--accent-warm);
}
.sim-mode--professionnels .sim-option.selected .sim-option-radio {
  border-color: var(--accent);
  background: var(--accent);
}
.sim-option.selected .sim-option-radio::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

.sim-option-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.sim-option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.sim-option-hint {
  font-size: 0.75rem;
  color: var(--accent-warm);
  font-weight: 500;
  margin-top: 4px;
}
.sim-mode--professionnels .sim-option-hint { color: var(--accent); }

/* Number input */
.sim-field {
  margin-bottom: 20px;
}
.sim-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.sim-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.2s;
  outline: none;
}
.sim-input:focus { border-color: var(--accent-warm); }
.sim-mode--professionnels .sim-input:focus { border-color: var(--accent); }
.sim-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.sim-input-wrap { position: relative; }
.sim-input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Nav buttons */
.sim-nav {
  display: flex;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.sim-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.sim-btn--back {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.sim-btn--back:hover { border-color: var(--text-muted); color: var(--text); }
.sim-btn--next {
  background: var(--accent-warm);
  color: #fff;
}
.sim-btn--next:hover { background: #b45309; }
.sim-mode--professionnels .sim-btn--next { background: var(--accent); }
.sim-mode--professionnels .sim-btn--next:hover { background: #1d4ed8; }

/* ── RESULT STEP ── */
.sim-result { padding: 4px 0; }

.result-headline {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
  color: var(--text);
}
.result-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Big monthly cost card */
.result-hero {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.result-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-hero-amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.result-hero-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.result-hero-amount-after {
  font-size: 0.95rem;
  color: #166534;
  font-weight: 600;
  margin-top: 8px;
}
.result-hero-amount-after span { font-size: 1.6rem; }

/* Savings badge */
.result-savings {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.result-savings-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.result-savings-text { flex: 1; }
.result-savings-label { font-size: 0.8rem; font-weight: 600; color: #166534; }
.result-savings-val { font-size: 0.95rem; font-weight: 700; color: #15803d; }

/* Recommended plan */
.result-plan {
  background: var(--bg-card);
  border: 2px solid var(--accent-warm-light);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.sim-mode--professionnels .result-plan {
  border-color: var(--accent-light);
}
.result-plan-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-plan-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.result-plan-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-warm);
}
.sim-mode--professionnels .result-plan-price { color: var(--accent); }
.result-plan-reason { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* Time comparison */
.result-time {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.result-time-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.result-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.result-time-row:last-child { border-bottom: none; }
.result-time-row-label { color: var(--text-muted); }
.result-time-row-val { font-weight: 700; color: var(--text); }
.result-time-row-val.highlight { color: var(--accent-warm); font-size: 1rem; }
.sim-mode--professionnels .result-time-row-val.highlight { color: var(--accent); }

/* ROI grid (professionnels) */
.result-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.result-roi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.result-roi-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.result-roi-card-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.result-roi-card-val.positive { color: #15803d; }

/* Comparison table (professionnels) */
.result-compare {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.result-compare table { width: 100%; border-collapse: collapse; }
.result-compare th {
  background: var(--bg);
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.result-compare td {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.result-compare tr:last-child td { border-bottom: none; }
.result-compare .td-label { font-weight: 600; }
.result-compare .td-now { color: var(--text-muted); }
.result-compare .td-after { font-weight: 700; color: #15803d; }

/* CTA in result */
.result-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.result-cta-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.result-cta-btn--primary {
  background: var(--accent-warm);
  color: #fff;
}
.result-cta-btn--primary:hover { background: #b45309; }
.sim-mode--professionnels .result-cta-btn--primary { background: var(--accent); }
.sim-mode--professionnels .result-cta-btn--primary:hover { background: #1d4ed8; }
.result-cta-btn--secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
}
.result-cta-btn--secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* Recalculate link */
.result-recalc {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.result-recalc:hover { color: var(--text); }

/* Mode-specific header colors */
.sim-mode--professionnels .sim-header::before { background: var(--accent); }
.sim-mode--professionnels .sim-dot.active { background: var(--accent); }

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sim-modal { animation: slideUp 0.28s ease-out; }

/* Scrollbar styling */
.sim-body::-webkit-scrollbar { width: 4px; }
.sim-body::-webkit-scrollbar-track { background: transparent; }
.sim-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }