/* =========================================================
   RCP EVOLUTION — Pages d'achat
   Souscription coaching · Commande ebook · Confirmations
   ========================================================= */

/* En-tête simplifié des pages d'achat */
.nav--order { background: rgba(10,9,8,.96); border-bottom: 1px solid var(--line); }
.secure-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(123,216,143,.3); background: rgba(123,216,143,.08); color: var(--ok);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.secure-pill svg { width: 16px; height: 16px; }

/* Bandeau titre */
.order-hero { padding: 132px 0 40px; position: relative; overflow: hidden; }
.order-hero h1 { font-size: clamp(48px, 7vw, 92px); margin-bottom: 18px; }
.order-hero .lead { max-width: 64ch; }
.order-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 30px; }
.order-steps li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.order-steps li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  border: 1px solid var(--line-strong); color: var(--text-2); transition: background .3s, color .3s, border-color .3s;
}
.order-steps li.is-done { color: var(--text); }
.order-steps li.is-done span { background: var(--grad); color: var(--on-gold); border-color: transparent; }

/* Grille formulaire + récapitulatif */
.order-body { padding: 0 0 120px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.order-form { display: grid; gap: 20px; }

.o-card {
  margin: 0; padding: clamp(22px, 3vw, 34px); border-radius: 24px; border: 1px solid var(--line);
  background: var(--surface); min-width: 0; scroll-margin-top: 100px;
}
.o-card.has-error { border-color: rgba(255,138,115,.6); }
.o-card__title {
  display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 20px;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); text-transform: uppercase; line-height: 1;
}
.o-num { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(242,185,67,.12); border: 1px solid rgba(242,185,67,.3); color: var(--gold); font-size: 18px; }
.o-card__intro { margin: -6px 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.o-label { margin: 22px 0 10px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.o-err { display: none; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,138,115,.1); color: #ffab99; font-size: 14px; }
.o-card.has-error .o-err { display: block; }

/* Choix sous forme de cartes */
.o-choices { display: grid; gap: 12px; }
.o-choices--3 { grid-template-columns: repeat(3, 1fr); }
.o-choices--2 { grid-template-columns: repeat(2, 1fr); }
.o-choice { position: relative; display: block; cursor: pointer; }
.o-choice input { position: absolute; opacity: 0; pointer-events: none; }
.o-choice__body {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 18px 18px 18px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: rgba(10,9,8,.5); transition: border-color .2s, background .2s, box-shadow .2s;
}
.o-choice:hover .o-choice__body { border-color: rgba(242,185,67,.5); }
.o-choice input:checked + .o-choice__body { border-color: var(--gold); background: rgba(242,185,67,.08); box-shadow: 0 0 0 1px var(--gold) inset; }
.o-choice input:focus-visible + .o-choice__body { outline: 2px solid var(--gold); outline-offset: 3px; }
.o-choice__body::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: transparent; transition: all .2s;
}
.o-choice input:checked + .o-choice__body::after { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #1a150c; }
.o-choice strong { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; padding-right: 28px; }
.o-price { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.1; margin-top: 8px; }
.o-price small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--muted); }
.o-sub { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.o-tag { align-self: flex-start; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--on-gold); font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.o-choice--row strong { font-size: 20px; }

/* Champs */
.o-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.o-field { display: flex; flex-direction: column; gap: 8px; }
.o-field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.o-field .req { color: var(--gold); }
.o-field input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(10,9,8,.6); color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.o-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,185,67,.15); }
.o-field.is-invalid input { border-color: #ff8a73; }
.o-field .o-hint { font-size: 13px; color: var(--muted); }
.o-field .o-field-err { display: none; font-size: 13px; color: #ffab99; }
.o-field.is-invalid .o-field-err { display: block; }

/* Questionnaire de santé */
.o-health { display: grid; gap: 10px; }
.o-hq { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,9,8,.4); }
.o-hq.is-missing { border-color: rgba(255,138,115,.6); }
.o-hq p { margin: 0; font-size: 15px; line-height: 1.45; }
.o-hq p b { color: var(--gold); margin-right: 6px; font-family: var(--f-display); }
.o-yn { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); }
.o-yn label { position: relative; }
.o-yn input { position: absolute; opacity: 0; pointer-events: none; }
.o-yn span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s; }
.o-yn input:checked + span { background: var(--text); color: var(--bg); }
.o-yn input[value="oui"]:checked + span { background: var(--gold); color: var(--on-gold); }
.o-yn input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.o-ack { display: none; margin-top: 6px; padding: 16px; border-radius: 14px; border: 1px solid rgba(242,185,67,.4); background: rgba(242,185,67,.07); }
.o-ack.show { display: block; }

/* Cases à cocher (consentements) */
.o-check { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,9,8,.4); cursor: pointer; font-size: 14.5px; line-height: 1.55; color: var(--text-2); transition: border-color .2s; }
.o-check + .o-check { margin-top: 10px; }
.o-check:hover { border-color: var(--line-strong); }
.o-check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.o-check.is-missing { border-color: rgba(255,138,115,.6); }
.o-check a { color: var(--gold); text-decoration: underline; }
.o-ack .o-check { border: 0; background: none; padding: 0; }

/* Bouton de validation */
.o-submit { display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 6px; }
.o-submit .btn { width: 100%; min-height: 62px; font-size: 19px; }
.o-submit p { margin: 0; font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.o-submit p svg { width: 16px; height: 16px; color: var(--ok); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Récapitulatif */
.o-summary {
  position: sticky; top: 96px; padding: 28px; border-radius: 26px; background: radial-gradient(120% 70% at 50% 0%, rgba(242,185,67,.14), transparent 60%), var(--surface-2);
  border: 1px solid rgba(242,185,67,.35); box-shadow: 0 30px 80px -30px rgba(242,185,67,.3);
}
.o-summary__label { margin: 0 0 10px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.o-summary__plan { font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: .95; text-transform: uppercase; margin-bottom: 18px; }
.o-summary__line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.o-summary__line b { color: var(--text); font-weight: 600; text-align: right; }
.o-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line-strong); }
.o-summary__total span { font-weight: 600; color: var(--text-2); }
.o-summary__total b { font-family: var(--f-display); font-weight: 900; font-size: 46px; line-height: 1; }
.o-summary__note { margin: 6px 0 20px; font-size: 13.5px; color: var(--muted); text-align: right; }
.o-summary .checks { margin: 0 0 20px; gap: 10px; font-size: 14px; }
.o-summary .checks svg { width: 18px; height: 18px; }
.o-secure { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.o-secure span { display: inline-flex; gap: 8px; align-items: center; }
.o-secure svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.o-product { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.o-product img { width: 76px; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); flex: none; }
.o-product strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.o-product span { font-size: 13px; color: var(--muted); }

/* Barre de paiement mobile */
.o-paybar { display: none; }

/* Pages de confirmation */
.thanks { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; position: relative; overflow: hidden; }
.thanks__box { max-width: 760px; margin: 0 auto; text-align: center; }
.thanks__icon { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(123,216,143,.12); border: 1px solid rgba(123,216,143,.35); color: var(--ok); }
.thanks__icon svg { width: 46px; height: 46px; }
.thanks h1 { font-size: clamp(48px, 7vw, 88px); margin-bottom: 18px; }
.thanks .lead { margin: 0 auto 40px; }
.next-steps { display: grid; gap: 12px; text-align: left; margin: 0 auto 36px; max-width: 620px; list-style: none; padding: 0; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.next-steps li::before { content: counter(n); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-gold); font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.next-steps strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1.05; margin-bottom: 4px; }
.next-steps p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.thanks__help { margin-top: 30px; font-size: 14px; color: var(--muted); }
.thanks__help a { color: var(--gold); text-decoration: underline; }

/* Page 404 */
.nf { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; }
.nf__code { font-family: var(--f-display); font-weight: 900; font-size: clamp(120px, 26vw, 280px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(242,185,67,.55); margin-bottom: 18px; }

/* ---------- Tablette & téléphone ---------- */
@media (max-width: 1100px) {
  .order-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .o-choices--3 { grid-template-columns: 1fr; }
  .o-choice__body { padding: 16px 52px 16px 18px; }
  .o-choice strong { padding-right: 0; }
}
@media (max-width: 860px) {
  .order-grid { grid-template-columns: 1fr; }
  .o-summary { position: static; order: -1; }
  .o-summary .checks, .o-summary .o-secure { display: none; }
}
@media (max-width: 760px) {
  .secure-pill { display: none; }
  .order-hero { padding: 96px 0 28px; }
  .order-hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .order-steps { gap: 8px 14px; margin-bottom: 22px; }
  .order-steps li { font-size: 12px; gap: 6px; }
  .order-steps li span { width: 26px; height: 26px; font-size: 12px; }
  .order-body { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .o-card { padding: 20px 16px; border-radius: 20px; }
  .o-fields, .o-choices--2 { grid-template-columns: 1fr; }
  .o-hq { grid-template-columns: 1fr; gap: 10px; }
  .o-yn { justify-self: start; }
  .o-summary { padding: 20px; border-radius: 20px; }
  .o-summary__plan { font-size: 34px; margin-bottom: 10px; }
  .o-summary__total b { font-size: 36px; }
  .o-submit .btn { display: none; }
  .o-submit { padding-top: 0; }
  .o-paybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #0e0c0a; border-top: 1px solid var(--line-strong);
  }
  .o-paybar__sum { flex: 1; min-width: 0; line-height: 1.15; }
  .o-paybar__sum b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 28px; }
  .o-paybar__sum span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .o-paybar .btn { flex: none; --h: 52px; padding: 0 20px; font-size: 16px; white-space: nowrap; }
  .thanks { padding: 100px 0 60px; }
  .next-steps li { grid-template-columns: 38px 1fr; padding: 16px; gap: 12px; }
  .next-steps li::before { width: 38px; height: 38px; font-size: 17px; }
  .thanks__actions .btn { width: 100%; }
}
