/* =========================================================================
   PremierClic — Configurateur d'estimation
   Complète style.css (mêmes tokens, mêmes polices)
   ========================================================================= */

.est-intro { padding-top: 56px; padding-bottom: 0; }
.est-intro h1 { font-size: clamp(30px, 4.4vw, 46px); }
.est-wrap { padding-top: 46px; }

.est-grid { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.est-main { display: grid; gap: 26px; }

/* ---------------------------------------------------------------- Étapes -- */
.est-step { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-lg); padding: 30px; }
.est-step legend {
  font-family: var(--font-head); font-size: 20px; font-weight: 600;
  display: flex; align-items: center; gap: 12px; padding: 0 10px; margin-left: -10px;
}
.est-num {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #05070d; font-size: 15px; font-weight: 700;
}
.est-hint { color: var(--muted-2); font-size: 14.5px; margin: 14px 0 18px; line-height: 1.6; }
.est-hint strong { color: var(--muted); }

/* -------------------------------------------------------------- Choix -- */
.est-choices { display: grid; gap: 14px; margin-top: 20px; }
.est-choice { position: relative; display: block; cursor: pointer; }
.est-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.est-choice-body {
  display: grid; gap: 5px; padding: 18px 20px 18px 52px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02);
  transition: border-color .18s, background .18s;
}
.est-choice-body::before {
  content: ""; position: absolute; left: 20px; top: 21px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.6px solid var(--line-2); transition: border-color .18s, box-shadow .18s;
}
.est-choice:hover .est-choice-body { border-color: var(--line-2); background: rgba(255,255,255,.035); }
.est-choice input:checked + .est-choice-body {
  border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.05);
}
.est-choice input:checked + .est-choice-body::before {
  border-color: var(--cyan); box-shadow: inset 0 0 0 4px var(--cyan);
}
.est-choice input:focus-visible + .est-choice-body { outline: 2px solid var(--cyan); outline-offset: 2px; }
.est-choice-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.est-choice-desc { color: var(--muted-2); font-size: 14px; line-height: 1.55; }
.est-choice-price { color: var(--cyan); font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.est-choices-sm .est-choice-body { padding-top: 15px; padding-bottom: 15px; }
.est-choices-sm .est-choice-body::before { top: 18px; }

/* ------------------------------------------------------------- Options -- */
.est-options { display: grid; gap: 10px; margin-top: 18px; }
.est-opt {
  display: flex; align-items: center; gap: 18px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02);
  transition: border-color .18s, background .18s;
}
.est-opt-on { border-color: rgba(34,211,238,.42); background: rgba(34,211,238,.05); }
.est-opt-info { flex: 1; display: grid; gap: 3px; min-width: 0; }
.est-opt-name { font-size: 15.5px; font-weight: 500; }
.est-opt-help { color: var(--muted-2); font-size: 13px; line-height: 1.5; }
.est-opt-price { color: var(--muted); font-size: 14px; white-space: nowrap; flex: none; }
.est-opt-locked { cursor: default; }
.est-req {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.4); border-radius: 999px;
  padding: 2px 9px; margin-left: 8px; white-space: nowrap;
}

/* Compteur */
.est-qty { display: flex; align-items: center; gap: 4px; flex: none; }
.est-qty-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2);
  color: var(--text); font-size: 18px; line-height: 1; display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.est-qty-btn:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); }
.est-qty-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.est-qty-val { width: 30px; text-align: center; font-family: var(--font-head); font-size: 16px; }

/* Interrupteur */
.est-switch { position: relative; flex: none; width: 46px; height: 27px; cursor: pointer; }
.est-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.est-switch span {
  position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.1);
  border: 1px solid var(--line-2); transition: background .2s, border-color .2s;
}
.est-switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s;
}
.est-switch input:checked + span { background: rgba(34,211,238,.28); border-color: var(--cyan); }
.est-switch input:checked + span::after { transform: translateX(19px); background: var(--cyan); }
.est-switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.est-fixed { margin-top: 18px; }

/* ------------------------------------------------------- Récapitulatif -- */
.est-side { position: sticky; top: 96px; }
.est-card {
  border: 1px solid rgba(34,211,238,.3); border-radius: var(--radius-lg);
  background: var(--card); padding: 28px;
  box-shadow: 0 24px 60px -30px rgba(34,211,238,.4);
}
.est-card h2 { font-size: 20px; margin-bottom: 20px; }
.est-lines { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.est-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); align-items: baseline; }
.est-lines li b { color: var(--text); font-weight: 600; white-space: nowrap; }
.est-line-sep {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px !important; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan) !important;
}
.est-line-month b { color: var(--cyan) !important; }

.est-total { border-top: 1px solid var(--line); padding-top: 20px; }
.est-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.est-total-row span { color: var(--muted); font-size: 15px; }
.est-total-row strong { font-family: var(--font-head); font-size: 26px; }
.est-total-alt { color: var(--muted-2); font-size: 13px; margin-top: 4px; }
.est-total-month { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.est-total-month strong { font-size: 21px; color: var(--cyan); }

.est-devis {
  margin-top: 18px; padding: 13px 15px; border-radius: 11px;
  background: rgba(255,157,92,.09); border: 1px solid rgba(255,157,92,.32);
  color: #ffc9a3; font-size: 13px; line-height: 1.6;
}
.est-legal { margin-top: 18px; color: var(--muted-2); font-size: 12.5px; line-height: 1.65; }
.est-legal strong { color: var(--muted); }
.est-side-cta { margin-top: 20px; width: 100%; justify-content: center; }

.est-submit { width: 100%; justify-content: center; margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------- Responsive --- */
@media (max-width: 1040px) {
  .est-grid { grid-template-columns: 1fr; }
  .est-side { position: static; order: -1; }
  .est-side-cta { display: none; }
}
@media (max-width: 680px) {
  .est-step { padding: 22px 18px; }
  .est-opt { flex-wrap: wrap; gap: 12px; }
  .est-opt-price { order: 3; }
  .est-choice-body { padding-left: 46px; }
  .est-choice-body::before { left: 16px; }
}
