/* ═══════════════════════════════════════════════════════════════════
   WalletLab - abonnement : pricing → checkout (style Stripe)
   reprend les tokens de crm.css
   ═══════════════════════════════════════════════════════════════════ */
.bill {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(14,157,92,.06), transparent 60%),
    var(--bg);
}

/* ── Topbar ────────────────────────────────────────────────────────── */
.bill-top {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 40px;
  max-width: 1080px; width: 100%; margin: 0 auto;
}
.bt-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.bt-brand .m { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg, var(--green-bright), var(--green)); display: grid; place-items: center; color: var(--green-deep); box-shadow: 0 4px 12px rgba(47,212,106,.3); }
.bt-steps { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bt-step { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }
.bt-step.on { color: var(--ink); }
.bt-step.done { color: var(--green); }
.bts-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1.5px solid var(--line-2); color: var(--muted-2); }
.bt-step.on .bts-num { border-color: var(--green); color: var(--green); }
.bt-step.done .bts-num { background: var(--green); border-color: var(--green); color: #fff; }
.bt-sep { width: 26px; height: 1.5px; background: var(--line-2); }

.bill-body { flex: 1; display: flex; flex-direction: column; padding: 20px 40px 64px; }
.bill-stage { max-width: 1080px; width: 100%; margin: 0 auto; }

/* ── Étape 1 : pricing ─────────────────────────────────────────────── */
.pr-head { text-align: center; max-width: 600px; margin: 18px auto 30px; }
.pr-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.pr-title { font-size: 38px; font-weight: 800; letter-spacing: -0.035em; margin: 12px 0 10px; text-wrap: balance; }
.pr-sub { font-size: 15.5px; color: var(--muted); line-height: 1.5; }

.pr-toggle { display: flex; justify-content: center; margin-bottom: 28px; }
.prt-wrap { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px; }
.prt-wrap button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .16s; }
.prt-wrap button.on { background: var(--green-deep); color: #fff; }
.prt-save { font-family: var(--mono); font-size: 10.5px; font-weight: 600; background: var(--green-bright); color: var(--green-deep); padding: 2px 7px; border-radius: 99px; }

/* carte plan unique */
.plan {
  display: grid; grid-template-columns: 1fr 1.15fr;
  max-width: 860px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(6,39,27,.45);
}
.plan-left { padding: 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan-badge { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; background: var(--green-soft); color: var(--green); padding: 5px 11px; border-radius: 99px; }
.plan-name { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 6px; }
.plan-tag { font-size: 14px; color: var(--muted); line-height: 1.45; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 26px; }
.plan-price .cur { font-size: 26px; font-weight: 700; }
.plan-price .amt { font-size: 60px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.plan-price .per { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan-billed { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 18px; }
.plan-billed b { color: var(--ink-2); font-weight: 600; }
.plan-spacer { flex: 1; }
.plan-cta { width: 100%; height: 52px; justify-content: center; font-size: 15px; margin-top: 28px; }
.plan-reassure { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.plan-reassure .r { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.plan-reassure .r .ic { color: var(--green); flex-shrink: 0; }

.plan-right { padding: 36px; background: var(--surface-2); }
.pr-feat-head { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.feat-list { display: flex; flex-direction: column; gap: 14px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-ic { width: 22px; height: 22px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.feat-txt { font-size: 14px; line-height: 1.4; }
.feat-txt b { font-weight: 600; }
.feat-txt span { color: var(--muted); }

/* ── Étape 2 : checkout ────────────────────────────────────────────── */
.co-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.co-back:hover { color: var(--ink); }
.checkout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; max-width: 940px; margin: 0 auto; }

/* récap */
.summary { position: sticky; top: 24px; }
.sum-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.sum-plan { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sum-logo { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(150deg, #0d4a33, #06271B); display: grid; place-items: center; color: var(--green-bright); flex-shrink: 0; }
.sum-nm { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.sum-cycle { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sum-edit { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--green); }
.sum-edit:hover { text-decoration: underline; }
.sum-lines { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sum-line { display: flex; justify-content: space-between; font-size: 14px; }
.sum-line .l { color: var(--muted); }
.sum-line .v { font-weight: 600; }
.sum-line.disc .v { color: var(--green); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; }
.sum-total .l { font-size: 15px; font-weight: 600; }
.sum-total .v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.sum-total .v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.sum-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 13px 14px; background: var(--green-soft); border-radius: 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.sum-note .ic { color: var(--green); flex-shrink: 0; margin-top: 1px; }

/* formulaire paiement */
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: 0 30px 70px -50px rgba(6,39,27,.4); }
.pay-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
.pay-group { display: flex; flex-direction: column; gap: 17px; }
.pay-field { display: flex; flex-direction: column; gap: 7px; }
.pay-field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pay-in {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .16s, box-shadow .16s;
}
.pay-in:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.pay-in .ic { color: var(--muted-2); flex-shrink: 0; }
.pay-in input, .pay-in select { flex: 1; border: 0; outline: 0; background: none; font-family: inherit; font-size: 14.5px; color: var(--ink); width: 100%; }
.pay-in input::placeholder { color: var(--muted-2); }
.pay-in select { cursor: pointer; appearance: none; }
.pay-brands { display: flex; gap: 5px; align-items: center; }
.brand-chip { width: 30px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-family: var(--mono); font-size: 7.5px; font-weight: 600; color: #fff; letter-spacing: .02em; }

/* champ carte groupé style Stripe */
.card-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .16s, box-shadow .16s; background: var(--surface); }
.card-group:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.cg-row { display: flex; align-items: center; height: 48px; padding: 0 14px; gap: 10px; }
.cg-row + .cg-split { border-top: 1px solid var(--line); }
.cg-split { display: flex; }
.cg-split .cg-half { flex: 1; display: flex; align-items: center; height: 48px; padding: 0 14px; }
.cg-split .cg-half + .cg-half { border-left: 1px solid var(--line); }
.card-group input { border: 0; outline: 0; background: none; font-family: inherit; font-size: 14.5px; color: var(--ink); width: 100%; }
.card-group input::placeholder { color: var(--muted-2); }
.card-group .ic { color: var(--muted-2); flex-shrink: 0; }

.pay-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-submit { width: 100%; height: 54px; justify-content: center; font-size: 16px; margin-top: 26px; }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.pay-secure .ic { color: var(--green); }

.bill-foot { text-align: center; font-size: 12px; color: var(--muted-2); padding: 24px; }

@media (max-width: 880px) {
  .plan, .checkout { grid-template-columns: 1fr; }
  .plan-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary { position: static; }
  .bt-steps .bt-step span:last-child { display: none; }
  .bill-top, .bill-body { padding-left: 22px; padding-right: 22px; }
}
