/* =========================================================
   SIMULATEUR DE RENTABILITÉ — CSS DÉDIÉ COMPLET
   ========================================================= */

.simulator-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.simulator-shell .section-heading {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 34px;
}

.simulator-shell .section-heading h2 {
  margin: 0 0 10px;
}

.simulator-shell .section-heading p {
  margin: 0;
  color: #607286;
  line-height: 1.7;
}

.hero.hero-simulator {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #19385a 0%, #0a1f36 100%);
  color: #ffffff;
  padding: 88px 0 108px;
}

.hero.hero-simulator::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 213, 155, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(7, 18, 30, 0.14) 0%, rgba(7, 18, 30, 0.30) 100%);
  pointer-events: none;
}

.hero.hero-simulator > .container {
  position: relative;
  z-index: 1;
}

.hero.hero-simulator .hero-kicker {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  display: block;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero.hero-simulator h1 {
  color: #ffffff;
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero.hero-simulator .hero-text {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero.hero-simulator .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero.hero-simulator .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero.hero-simulator .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.simulator-box {
  margin-top: 34px;
  padding: 38px 40px 42px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  box-shadow: 0 22px 45px rgba(9, 27, 49, 0.08);
}

.simulator-topbar {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.simulator-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f3ede4;
  border: 1px solid rgba(23, 40, 58, 0.08);
  margin: 0 auto;
}

.simulator-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #0f2743;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: 0.22s ease;
  box-shadow: none;
}

.simulator-tab:hover {
  background: rgba(201, 154, 85, 0.08);
}

.simulator-tab.is-active,
.simulator-tab.active,
.simulator-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #dfb775 0%, #c99954 100%);
  color: #14283b;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(201, 154, 85, 0.22);
}

.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.simulator-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simulator-form .form-field label {
  font-weight: 700;
  color: #17283a;
  font-size: 0.95rem;
}

.simulator-form .form-field small {
  color: #6b7480;
  font-size: 0.82rem;
  line-height: 1.45;
}

.simulator-form select,
.simulator-form input,
.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 40, 58, 0.12);
  background: #ffffff;
  color: #17283a;
  font-size: 15px;
  line-height: 1.2;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form textarea {
  min-height: 140px;
  padding: 16px;
  resize: vertical;
}

.simulator-form select:focus,
.simulator-form input:focus,
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(47, 95, 143, 0.36);
  box-shadow: 0 0 0 4px rgba(47, 95, 143, 0.08);
}

.field-short-term.is-hidden,
.field-long-term.is-hidden,
.section-lead-form.is-hidden {
  display: none !important;
}

.simulator-reading {
  margin-top: 10px;
}

.simulator-reading-head {
  margin-bottom: 22px;
}

.simulator-reading-head h3 {
  margin: 0 0 8px;
  color: #0f2743;
  font-size: 1.42rem;
  line-height: 1.1;
}

.simulator-reading-head p {
  margin: 0;
  color: #6b7480;
  line-height: 1.65;
}

.simulator-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-card {
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(23, 40, 58, 0.04);
}

.result-label {
  display: block;
  color: #6b7480;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.result-value {
  display: block;
  color: #0f2743;
  font-size: 2rem;
  line-height: 1.06;
  margin-bottom: 8px;
  font-weight: 800;
}

.result-detail {
  color: #6b7480;
  font-size: 0.84rem;
  line-height: 1.5;
}

.coherence-score-card {
  position: relative;
  margin-top: 26px;
  padding: 28px 28px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #eef4fb 0%, #e4edf8 100%);
  border: 1px solid rgba(47, 95, 143, 0.14);
  box-shadow: 0 16px 34px rgba(23, 40, 58, 0.06);
  overflow: hidden;
}

.coherence-score-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #dfb775 0%, #2f5f8f 100%);
  opacity: 0.95;
}

.coherence-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.coherence-score-kicker {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 40, 59, 0.62);
  line-height: 1.2;
}

.coherence-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(23, 40, 58, 0.10);
}

.coherence-score-text {
  margin: 0;
  color: #14283b;
  font-size: 1rem;
  line-height: 1.8;
}

.coherence-score-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.coherence-score-signal {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 40, 59, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.coherence-score-signal::before {
  content: "";
  display: block;
  width: 40px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.coherence-score-signal.signal-net::before {
  background: linear-gradient(90deg, #5d8cba 0%, #2f5f8f 100%);
}

.coherence-score-signal.signal-costs::before {
  background: linear-gradient(90deg, #e0ba6c 0%, #d3a24d 100%);
}

.coherence-score-signal.signal-assumptions::before {
  background: linear-gradient(90deg, #67a57f 0%, #3e7f58 100%);
}

.coherence-score-signal .signal-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(20, 40, 59, 0.56);
}

.coherence-score-signal strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #14283b;
}

.coherence-score-card.is-waiting {
  background: linear-gradient(180deg, #f4f6f8 0%, #eef2f6 100%);
  border-color: rgba(20, 40, 59, 0.08);
}

.coherence-score-card.is-waiting .coherence-score-badge {
  background: rgba(20, 40, 59, 0.08);
  color: #14283b;
}

.coherence-score-card.is-fragile {
  background: linear-gradient(180deg, #fbefec 0%, #f7e3de 100%);
  border-color: rgba(164, 68, 43, 0.14);
}

.coherence-score-card.is-fragile .coherence-score-badge {
  background: #c76d58;
  color: #ffffff;
}

.coherence-score-card.is-watch {
  background: linear-gradient(180deg, #fbf4e6 0%, #f6ebd8 100%);
  border-color: rgba(184, 136, 53, 0.16);
}

.coherence-score-card.is-watch .coherence-score-badge {
  background: #d3a24d;
  color: #14283b;
}

.coherence-score-card.is-coherent {
  background: linear-gradient(180deg, #e8f1fb 0%, #dde9f7 100%);
  border-color: rgba(47, 95, 143, 0.16);
}

.coherence-score-card.is-coherent .coherence-score-badge {
  background: #2f5f8f;
  color: #ffffff;
}

.coherence-score-card.is-strong {
  background: linear-gradient(180deg, #edf7f1 0%, #e2f0e8 100%);
  border-color: rgba(54, 115, 78, 0.14);
}

.coherence-score-card.is-strong .coherence-score-badge {
  background: #3e7f58;
  color: #ffffff;
}

.simulator-insights {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 18px;
  margin-top: 22px;
}

.insight-card {
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(23, 40, 58, 0.04);
}

.insight-card h4 {
  margin: 0 0 12px;
  color: #0f2743;
  font-size: 1.08rem;
  line-height: 1.2;
}

.insight-card p,
.insight-card li {
  color: #425263;
  line-height: 1.72;
}

.insight-card ul {
  margin: 0;
  padding-left: 18px;
}

.simulator-summary-text {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef4fb 0%, #e6eef8 100%);
  border: 1px solid rgba(20, 40, 59, 0.10);
  box-shadow: 0 10px 24px rgba(23, 40, 58, 0.05);
}

.simulator-summary-text p {
  margin: 0;
  color: #14283b;
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 500;
}

.lead-intro-box,
.lead-box {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 36px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  box-shadow: 0 18px 38px rgba(23, 40, 58, 0.06);
}

.lead-intro-box h2,
.lead-box h2 {
  margin: 0 0 12px;
  color: #0f2743;
}

.lead-intro-box p,
.lead-box p {
  color: #425263;
  line-height: 1.75;
}

.lead-summary {
  margin: 24px 0 26px;
  padding: 20px 22px;
  border-radius: 20px;
  background: #f7f9fc;
  border: 1px solid rgba(20, 40, 59, 0.08);
}

.lead-summary p {
  margin: 0 0 10px;
}

.lead-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lead-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 40, 59, 0.06);
}

.lead-summary li:last-child {
  border-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-error,
.lead-success {
  padding: 14px 16px;
  border-radius: 14px;
  margin: 0 0 18px;
  font-weight: 600;
}

.lead-error {
  background: #fdeceb;
  color: #9a3c2d;
  border: 1px solid rgba(154, 60, 45, 0.15);
}

.lead-success {
  background: #edf8f1;
  color: #2f6a46;
  border: 1px solid rgba(47, 106, 70, 0.15);
}

.lead-step-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.lead-step-actions-dual {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  min-width: 340px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(20, 40, 59, 0.14);
  background: #ffffff;
  color: #14283b;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 40, 58, 0.05);
  transition: 0.22s ease;
}

.btn-secondary-outline:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .simulator-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .simulator-insights,
  .coherence-score-signals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero.hero-simulator {
    padding: 76px 0 86px;
  }

  .hero.hero-simulator h1 {
    font-size: 2.9rem;
  }

  .simulator-box,
  .lead-intro-box,
  .lead-box {
    padding: 24px;
  }

  .simulator-results-grid,
  .simulator-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .simulator-topbar {
    justify-content: flex-start;
  }

  .simulator-tabs {
    flex-wrap: wrap;
  }

  .lead-step-actions-dual .btn,
  .lead-step-actions-dual .btn-secondary-outline,
  .lead-step-actions .btn {
    min-width: 100%;
    width: 100%;
  }

  .coherence-score-head {
    flex-direction: column;
    align-items: flex-start;
  }
}