/* ── Estimation ─────────────────────────────────────────────── */

.estimation-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Stepper */
.stepper {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  counter-reset: step;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-border);
  color: var(--clr-text-muted);
  font-weight: 700;
  font-size: .875rem;
  z-index: 1;
  transition: var(--transition);
}
.step.active::before { background: var(--clr-primary); color: white; }
.step.done::before { background: var(--clr-success); color: white; content: '✓'; }
.step::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--clr-border);
}
.step:last-child::after { display: none; }
.step-label { font-size: .75rem; color: var(--clr-text-muted); margin-top: .5rem; }
.step.active .step-label { color: var(--clr-primary); font-weight: 600; }

/* Formulaire estimation */
.estimation-form {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
}
.estimation-form h2 { margin-bottom: .5rem; }
.estimation-form .lead { color: var(--clr-text-muted); margin-bottom: 2rem; }

.type-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background: var(--clr-bg);
  cursor: pointer;
  transition: var(--transition);
  font-size: .875rem;
  font-weight: 500;
}
.type-btn span:first-child { font-size: 1.75rem; }
.type-btn:hover { border-color: var(--clr-primary); background: var(--clr-white); }
.type-btn.selected { border-color: var(--clr-primary); background: rgba(26,60,94,.06); color: var(--clr-primary); }

.range-group { margin-bottom: 1.5rem; }
.range-display {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  margin-bottom: .5rem;
  font-weight: 500;
}
.range-val { color: var(--clr-primary); font-weight: 700; }
input[type="range"] {
  width: 100%;
  accent-color: var(--clr-primary);
  height: 6px;
  cursor: pointer;
}

/* Sidebar estimation */
.estimation-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.why-estimate {
  background: linear-gradient(135deg, var(--clr-primary), #0f2644);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.why-estimate h3 { color: white; margin-bottom: 1.25rem; }
.why-item { display: flex; gap: .75rem; margin-bottom: 1rem; }
.why-item:last-child { margin-bottom: 0; }
.why-icon { font-size: 1.25rem; flex-shrink: 0; }
.why-text strong { display: block; font-size: .875rem; margin-bottom: .2rem; }
.why-text p { font-size: .8rem; opacity: .75; margin: 0; }

.advisor-box {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--clr-border);
  text-align: center;
}
.advisor-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--clr-bg); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1rem; border: 3px solid var(--clr-accent); }
.advisor-box h4 { margin-bottom: .25rem; }
.advisor-box .role { font-size: .8rem; color: var(--clr-text-muted); margin-bottom: 1rem; }

@media (max-width: 900px) {
  .estimation-layout { grid-template-columns: 1fr; }
  .type-buttons { grid-template-columns: repeat(2, 1fr); }
}
