/* Simulateur de crédit — version simplifiée */

.calc {
  border: 1px solid var(--rule);
  background: var(--paper);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.calc-left {
  padding: 40px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calc-right {
  padding: 40px;
  background: var(--night);
  color: var(--stone);
  display: flex;
  flex-direction: column;
}

.calc-cap {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}
.calc-cap.on-night { color: #C9A777; }

/* Question principale */
.calc-question {
  font-family: var(--display);
  font-weight: 380;
  font-size: 28px;
  letter-spacing: -0.014em;
  color: var(--night);
  line-height: 1.15;
  margin: 0 0 4px;
}

/* Slider unique */
.calc-slider-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-slider-readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--display);
  font-weight: 380;
}
.calc-slider-num {
  font-size: 64px;
  color: var(--night);
  letter-spacing: -0.025em;
  line-height: 1;
}
.calc-slider-unit {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--grey);
  letter-spacing: 0.005em;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--rule);
  outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); cursor: pointer; border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--moss);
  transition: transform 120ms ease;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); cursor: pointer; border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--moss);
}
.calc-range-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey-2);
}

/* Plan recommandé */
.calc-plan {
  border: 1px solid var(--rule);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--stone);
}
.calc-plan-tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}
.calc-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 4px;
}
.calc-plan-name {
  font-family: var(--display);
  font-weight: 380;
  font-size: 24px;
  letter-spacing: -0.014em;
  color: var(--night);
}
.calc-plan-price {
  font-family: var(--display);
  font-weight: 380;
  font-size: 22px;
  color: var(--night);
  letter-spacing: -0.012em;
}
.calc-plan-price small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 0.02em;
}
.calc-plan-target {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
}

/* Bloc résultat — crédit */
.calc-result-num {
  font-family: var(--display);
  font-weight: 360;
  font-size: 88px;
  line-height: 1;
  color: var(--stone);
  letter-spacing: -0.025em;
  margin-top: 10px;
}
.calc-result-num small {
  font-size: 0.42em;
  color: #C9A777;
  vertical-align: top;
  margin-left: 6px;
  font-weight: 380;
}
.calc-result-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(242, 237, 228, 0.7);
  margin-top: 10px;
  letter-spacing: 0.005em;
  line-height: 1.45;
}

/* Volumes typiques — liste compacte */
.calc-volumes {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 237, 228, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-volume-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(242, 237, 228, 0.85);
}
.calc-volume-num {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(242, 237, 228, 0.6);
}

/* Bar mois offerts */
.calc-bar-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 237, 228, 0.16);
}
.calc-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.calc-bar-label {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(242, 237, 228, 0.85);
}
.calc-bar-val {
  font-family: var(--display);
  font-weight: 360;
  font-size: 32px;
  color: var(--stone);
  letter-spacing: -0.018em;
  line-height: 1;
}
.calc-bar {
  height: 4px;
  background: rgba(242, 237, 228, 0.16);
  position: relative;
}
.calc-bar span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--moss-2);
  transition: width 240ms ease;
}
.calc-bar-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(242, 237, 228, 0.55);
  margin-top: 8px;
}

.calc-note {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(242, 237, 228, 0.55);
  line-height: 1.55;
}

/* État Découverte / Enterprise */
.calc-info {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(242, 237, 228, 0.78);
  line-height: 1.55;
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 28px; }
  .calc-right { padding: 28px; }
  .calc-slider-num { font-size: 52px; }
  .calc-result-num { font-size: 64px; }
}

/* ── Credit example table (conservé) ────────────────────── */
.credit-example {
  border: 1px solid var(--rule);
  background: var(--paper);
}
.credit-example-head {
  padding: 24px 28px; background: var(--stone); border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.credit-example-title {
  font-family: var(--display); font-weight: 380; font-size: 22px; letter-spacing: -0.012em; color: var(--night); margin: 0;
}
.credit-example-cap {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
}
.credit-row {
  display: grid; grid-template-columns: 1fr 1fr 160px;
  padding: 14px 28px; border-bottom: 1px solid var(--rule-faint);
  font-family: var(--sans); font-size: 13px;
}
.credit-row:last-child { border-bottom: none; }
.credit-row.is-total {
  background: var(--night); color: var(--stone); font-weight: 600;
  border-bottom: none;
}
.credit-cell-num { font-family: var(--mono); text-align: right; }
.credit-cell-credit { font-family: var(--mono); text-align: right; color: var(--moss); font-weight: 500; }
.credit-row.is-total .credit-cell-credit { color: #C9A777; }
