/* Banc de mesure : calculateur de ROI */
.calc {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .calc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.calc-in,
.calc-out {
  background: var(--color-paper);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  padding: 1.75rem;
  color: var(--color-ink);
}

.calc-out {
  background: var(--color-metal-soft);
  color: var(--color-paper);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  margin-bottom: 1.75rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.field-head label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field-head output {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-leather-dark);
  white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: grab;
  display: block;
}

input[type="range"]:active {
  cursor: grabbing;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--color-line);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--color-leather);
  border: 2px solid var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-leather-dark), 0 3px 8px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--color-line);
  border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-leather);
  border: 2px solid var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-leather-dark);
  cursor: grab;
}

.scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-concrete);
  margin-top: 0.25rem;
}

.seg {
  display: flex;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  overflow: hidden;
}

.seg button {
  flex: 1;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--color-line);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.seg button:last-child {
  border-right: 0;
}

.seg button:hover {
  background: var(--color-paper-dark);
}

.seg button[aria-pressed="true"] {
  background: var(--color-leather);
  color: #fff;
}

.out-hero .k {
  display: block;
  font-size: 0.85rem;
  color: rgba(241, 230, 210, 0.65);
  margin-bottom: 0.5rem;
}

.out-hero .v {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--neon-red);
  line-height: 1;
}

.out-hero .v small {
  font-size: 0.4em;
  font-weight: 600;
  color: rgba(241, 230, 210, 0.65);
}

.out-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(241, 230, 210, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.out-rows > div {
  background: rgba(22, 19, 15, 0.35);
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.out-rows .k {
  font-size: 0.85rem;
  color: rgba(241, 230, 210, 0.75);
}

.out-rows .v {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.payback {
  background: rgba(185, 121, 60, 0.14);
  border: 1px solid rgba(185, 121, 60, 0.35);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.payback b {
  color: var(--color-wood);
}

.calc-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(241, 230, 210, 0.5);
  margin: 0;
}
