/* ==========================================================================
   Tunnel de commande partagé — /commande/?offre=escapade|voyage|odyssee
   D'après Figma 52:2 (checkout desktop) et 268:25434 (écran « merci »).
   Prototype : aucun paiement, rien n'est enregistré ni envoyé.
   ========================================================================== */

.co-body { background: var(--c-cream); }
.co-wrap { width: min(1140px, 100% - 2 * var(--gutter-mobile)); margin-inline: auto; }

/* ---------- Bandeau prototype ---------- */
.co-proto { background: var(--c-ink); color: #fff; text-align: center; font-size: 13px; line-height: 1.4; padding: 9px 16px; }
.co-proto strong { color: #ffd66b; font-weight: 600; }

/* ---------- En-tête ---------- */
.co-head { padding-block: 28px 24px; }
.co-head__in { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.co-logo { font-size: 22px; font-weight: 500; color: var(--c-ink-logo); letter-spacing: -0.02em; }
.co-logo span { color: var(--c-green); }
.co-head__label { color: var(--c-grey); font-size: 15px; }
.co-head__proof { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--c-ink); }
.co-head__stars { height: 16px; width: auto; }
.co-head__back { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--c-slate); padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--c-border-card); background: rgba(255,255,255,.6); }
.co-head__back:hover { background: #fff; }

/* ---------- Grille ---------- */
.co { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 446px); grid-template-rows: auto 1fr; column-gap: 40px; justify-content: space-between; align-items: start; }
.co-main { grid-column: 1; grid-row: 1 / span 2; }
.co-sum { grid-column: 2; grid-row: 1; }
.co-pay { grid-column: 2; grid-row: 2; margin-top: 16px; }

.co-card { background: #fff; border: 1px solid var(--c-border-soft); border-radius: 20px; padding: 22px 16px 18px; }
.co-card--sum, .co-card--pay { padding: 20px 18px; }

/* ---------- Paiement express ---------- */
.co-express { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-xpay { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: var(--r-pill); font-size: 16px; font-weight: 500; transition: transform .2s var(--ease), box-shadow .2s; }
.co-xpay:hover { transform: translateY(-1px); box-shadow: var(--sh-hover-neutral); }
.co-xpay--apple { background: #000; color: #fff; font-size: 18px; }
.co-xpay--google { background: #fff; border: 1px solid var(--c-border); color: var(--c-ink); }
.co-xpay--google b { font-weight: 600; }
.co-express__note { margin-top: 10px; font-size: 13px; color: var(--c-slate); background: var(--c-cream-2); border-radius: 10px; padding: 8px 12px; }
.co-or { display: flex; align-items: center; gap: 12px; color: var(--c-grey); font-size: 13px; margin: 16px 0 6px; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--c-border-soft); }

/* ---------- Étapes du formulaire ---------- */
.co-step { margin-top: 22px; }
.co-step__t { font-size: 17px; font-weight: 500; margin-bottom: 14px; color: var(--c-ink); }
.co-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-field + .co-field, .co-row + .co-field, .co-field + .co-row, .co-row + .co-row { margin-top: 14px; }
.co-field label { font-size: 13px; font-weight: 500; color: var(--c-ink); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field input, .co-field select { width: 100%; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-cream-2); padding: 0 16px; font: 400 15px/1 var(--font-sans); color: var(--c-ink); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.co-field input::placeholder { color: #8c9499; }
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--c-green-dark); background: #fff; box-shadow: 0 0 0 3px var(--c-green-tint-12); }
.co-field input:disabled { cursor: not-allowed; background: repeating-linear-gradient(-45deg, #f4f1ea 0 8px, #efebe3 8px 16px); color: var(--c-grey); }
.co-field.is-invalid input { border-color: var(--c-red); background: var(--c-red-pale); }
.co-field.is-valid input { border-color: var(--c-green); }
.co-err { font-size: 12.5px; color: #c23d1b; font-weight: 500; }
.co-help { font-size: 12.5px; line-height: 1.45; color: var(--c-grey); }
.co-help--wa { margin-top: 12px; }
.co-demo-note { font-size: 12.5px; color: var(--c-slate); background: #fff7e0; border: 1px dashed #e6c76a; border-radius: 10px; padding: 7px 12px; margin-bottom: 14px; }
.co-input-ico { position: relative; }
.co-input-ico input { padding-right: 120px; }
.co-cards { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 5px; align-items: center; }
.co-cards img { height: 18px; width: auto; }
.co-visa, .co-cb { display: inline-flex; align-items: center; justify-content: center; font: 800 italic 10px/1 var(--font-sans); color: #fff; background: var(--c-visa); border-radius: var(--r-4); height: 18px; padding: 0 6px; }
.co-cb { background: var(--c-cb); font-style: normal; }
.co-secure { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--c-green-dark); }
.co-select { position: relative; }
.co-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.co-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--c-slate); border-bottom: 1.6px solid var(--c-slate); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---------- Récapitulatif ---------- */
.co-sum__toggle { display: none; }
.co-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--c-border-soft); }
.co-item__thumb { width: 44px; height: 44px; border: 1.5px dashed #c9c2b3; border-radius: 10px; display: grid; place-items: center; font: 600 13px/1 var(--font-sans); color: var(--c-slate); position: relative; background: var(--c-cream-2); }
.co-item__thumb i { position: absolute; right: 4px; bottom: 3px; font-style: normal; font-size: 9px; color: #e0507a; }
.co-item__name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-item__sub { font-size: 13px; color: var(--c-grey); margin-top: 2px; }
.co-item__price { font-size: 17px; font-weight: 600; white-space: nowrap; }
.co-badge { font-size: 11.5px; font-weight: 600; color: #fff; background: #e6534a; border-radius: var(--r-pill); padding: 2px 8px; }

.co-checks { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--c-border-soft); }
.co-checks li { position: relative; padding-left: 24px; font-size: 14px; color: var(--c-ink); }
.co-checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--c-green-dark); border-bottom: 2px solid var(--c-green-dark); transform: rotate(-45deg); }

.co-reserve { border: 0; margin: 0; padding: 14px 0 4px; display: grid; gap: 8px; min-width: 0; }
.co-reserve legend { font-size: 13px; font-weight: 600; color: var(--c-ink); padding: 0; margin-bottom: 8px; }
.co-reserve legend span { font-weight: 400; color: var(--c-grey); }
.co-opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border: 1.5px solid var(--c-border-card); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; position: relative; }
.co-opt:hover { border-color: var(--c-green-soft); }
.co-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-opt__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #b5bcc0; background: #fff; display: grid; place-items: center; }
.co-opt:has(input:checked) { border-color: var(--c-green); background: var(--c-green-pale); }
.co-opt:has(input:checked) .co-opt__radio { border-color: var(--c-green-dark); }
.co-opt:has(input:checked) .co-opt__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green-dark); }
.co-opt:has(input:focus-visible) { outline: 3px solid var(--c-green-dark); outline-offset: 2px; }
.co-opt__txt { display: flex; flex-direction: column; min-width: 0; }
.co-opt__name { font-size: 14.5px; font-weight: 600; }
.co-opt__count { font-weight: 400; color: var(--c-slate); }
.co-opt__reco { display: inline-block; font-size: 9.5px; letter-spacing: .04em; font-weight: 700; color: var(--c-green-dark); background: #fff; border: 1px solid var(--c-green-soft); border-radius: var(--r-pill); padding: 1px 7px; vertical-align: 2px; }
.co-opt__unit { font-size: 12.5px; color: var(--c-grey); }
.co-opt__disc { color: var(--c-green-dark); font-weight: 600; }
.co-opt__price { font-size: 15px; font-weight: 600; white-space: nowrap; }

.co-upsell { margin-top: 10px; background: var(--c-green-hector); border: 1px solid #d6efc9; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.co-upsell[hidden] { display: none; }
.co-upsell__t { font-size: 13.5px; font-weight: 600; }
.co-upsell__s { font-size: 12.5px; color: var(--c-slate); grid-column: 1; }
.co-upsell__btn { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; font-weight: 600; color: var(--c-green-dark); border: 1.5px solid var(--c-green); background: #fff; border-radius: var(--r-pill); padding: 7px 12px; white-space: nowrap; }
.co-upsell__btn:hover { background: var(--c-green-pale); }

.co-totals { padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--c-border-soft); }
.co-totals__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--c-slate); }
.co-totals__row s { color: var(--c-grey); margin-left: 4px; }
.co-totals__disc { color: #d9473e; font-weight: 600; margin-left: 4px; }
.co-totals__note { font-size: 11.5px; color: var(--c-grey); margin-top: 4px; }
.co-totals__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 16px; font-weight: 600; }
.co-totals__total strong { font-size: 20px; }

/* ---------- Bloc paiement ---------- */
.co-date { background: var(--c-green-pale); color: #18803f; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.co-perso { margin-top: 10px; border: 1.5px dashed #cfd6d0; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--c-ink); }
.co-legal { margin-top: 14px; font-size: 12px; color: var(--c-grey); line-height: 1.5; }
.co-legal a { color: var(--c-slate); text-decoration: underline; text-underline-offset: 2px; }
.co-form-err { margin-top: 12px; font-size: 13.5px; font-weight: 500; color: #b33717; background: var(--c-red-pale); border-radius: 10px; padding: 9px 12px; }
.co-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 14px; padding: 12px 18px; border-radius: 999px; background: var(--c-green); color: var(--c-ink); font-size: 17px; font-weight: 600; line-height: 1.25; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.co-cta:hover { transform: translateY(-2px); box-shadow: var(--sh-button-hover); }
.co-cta:active { transform: scale(.98); }
.co-cta__sub { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--c-grey); }
.co-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.co-logos li { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 40px; padding: 0 7px; border-radius: var(--r-4); border: 1px solid var(--c-border-soft); background: #fff; font-size: 10.5px; font-weight: 600; color: var(--c-ink); }
.co-logos li.co-visa { background: var(--c-visa); color: #fff; border: 0; height: 22px; }
.co-logos li.co-cb { background: var(--c-cb); color: #fff; border: 0; height: 22px; }
.co-logos img { height: 16px; width: auto; }

.co-review { margin-top: 16px; background: #fff; border: 1px solid var(--c-border-soft); border-radius: 20px; padding: 16px 18px; }
.co-review__star { display: none; }
.co-review::before { content: "★★★★★"; display: block; color: var(--c-green); font-size: 13px; letter-spacing: 2px; margin-bottom: 6px; }
.co-review blockquote { font-size: 14px; line-height: 1.5; color: var(--c-slate); }
.co-review figcaption { font-size: 12.5px; color: var(--c-grey); margin-top: 6px; }

.co-assure { display: grid; gap: 10px; margin-top: 16px; }
.co-assure li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--c-grey); }
.co-assure img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.co-assure strong { display: block; font-size: 14px; color: var(--c-ink); font-weight: 600; }

/* ---------- FAQ « Avant de payer » ---------- */
.co-faq { max-width: 640px; margin: 72px auto 0; padding-bottom: 72px; }
.co-faq h2 { text-align: center; font-size: 22px; font-weight: 500; margin-bottom: 18px; }
.co-faq details { border-bottom: 1px solid var(--c-border-faq); padding: 16px 0; }
.co-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 16px; font-weight: 500; }
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--c-slate); line-height: 1; }
.co-faq details[open] summary::after { content: "–"; }
.co-faq details p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--c-grey); }
.co-faq__back { text-align: center; margin-top: 28px; font-size: 14px; color: var(--c-slate); }
.co-faq__back a:hover { text-decoration: underline; }

/* ---------- Merci / activation ---------- */
.co-thanks { padding-block: 24px 80px; }
.co-thanks:focus { outline: none; }
.co-thanks__in { max-width: 560px; margin-inline: auto; }
.co-thanks__proto { display: inline-block; font-size: 12.5px; color: var(--c-slate); background: #fff7e0; border: 1px dashed #e6c76a; border-radius: var(--r-pill); padding: 4px 12px; }
.co-thanks__h { margin-top: 18px; font-size: clamp(34px, 1.6rem + 2vw, 48px); line-height: 1.1; letter-spacing: -1px; font-weight: 600; color: var(--c-ink-2); }
.co-thanks__lead { margin-top: 10px; font-size: 18px; color: var(--c-grey); }
.co-act { display: grid; gap: 16px; margin-top: 22px; counter-reset: none; }
.co-act li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--c-grey); }
.co-act strong { color: var(--c-ink); font-weight: 600; }
.co-act__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-sans); background: var(--c-green-pale); color: var(--c-green-dark); margin-top: 1px; }
.co-act li.is-done .co-act__n { background: var(--c-green-dark); color: #fff; font-size: 14px; }
.co-thanks__img { width: min(100%, 380px); height: auto; margin: 30px auto 0; border-radius: 20px; box-shadow: var(--sh-photo); transform: rotate(-1.5deg); }
.co-thanks__recap { margin-top: 22px; text-align: center; font-size: 14px; color: var(--c-slate); }
.co-thanks__bar { margin-top: 6px; }
.co-cta--link { text-decoration: none; }

/* ---------- Barre collante mobile ---------- */
.co-sticky { display: none; }

/* ======================= Mobile ======================= */
@media (max-width: 900px) {
  .co { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .co-main, .co-sum, .co-pay { grid-column: 1; grid-row: auto; }
  .co-sum { order: -1; margin-bottom: 18px; }
  .co-pay { margin-top: 24px; }
  .co-faq { margin-top: 48px; padding-bottom: 140px; }
}
@media (max-width: 600px) {
  .co-proto { font-size: 12px; padding: 8px 14px; }
  .co-head { padding-block: 16px 14px; }
  .co-head__in { gap: 6px 12px; }
  .co-head__proof { order: 3; width: 100%; font-size: 12px; }
  .co-head__stars { height: 14px; }
  .co-head__back { font-size: 13px; padding: 6px 10px; }

  .co-sum__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--c-border-soft); border-radius: 16px; padding: 12px 14px; text-align: left; }
  .co-sum__toggle-l { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--c-green-dark); }
  .co-sum__toggle-l small { display: block; font-size: 12.5px; font-weight: 400; color: var(--c-grey); }
  .co-sum__toggle-icon { font-size: 18px; }
  .co-sum__toggle-r { display: flex; align-items: center; gap: 10px; font-size: 17px; }
  .co-sum__toggle-r svg { transition: transform .2s; color: var(--c-slate); }
  .co-sum__toggle[aria-expanded="true"] { border-radius: 16px 16px 0 0; border-bottom-color: transparent; }
  .co-sum__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .co-sum__body { display: none; }
  .co-sum.is-open .co-sum__body { display: block; }
  .co-sum.is-open .co-card--sum { border-radius: 0 0 16px 16px; border-top: 0; padding-top: 4px; }

  .co-express { gap: 8px; }
  .co-xpay { font-size: 14.5px; }
  .co-row { grid-template-columns: 1fr; gap: 14px; }
  .co-row--keep { grid-template-columns: 1fr 1fr; }
  .co-card { padding: 18px 14px 16px; }
  .co-cta { font-size: 15.5px; min-height: 52px; }

  .co-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-cream) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--c-border-soft); box-shadow: 0 -8px 24px rgba(0,0,0,.06); transition: transform .25s var(--ease); }
  .co-sticky .co-cta { margin-top: 0; }
  .co-sticky .co-cta__sub { margin-top: 6px; font-size: 11.5px; }
  .co-sticky.is-hidden { transform: translateY(110%); }

  .co-thanks { padding-bottom: 150px; }
  .co-thanks__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-cream) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--c-border-soft); }
  .co-thanks__bar .co-cta { margin-top: 0; }
  .co-thanks__bar .co-cta__sub { margin-top: 6px; }
  .co-act li { font-size: 16px; }
}
.co-sticky[hidden] { display: none !important; }

/* corrections */
.co-row > .co-field { margin-top: 0; }
.co-cta { display: block; }
.co-upsell { grid-template-columns: 1fr; gap: 2px; }
.co-upsell__btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
.co-card--pay .co-cta { font-size: 16px; padding-inline: 14px; }
@media (max-width: 600px) { .co-card--pay .co-cta, .co-sticky .co-cta { font-size: 15px; } }
.co-sum__toggle-r svg { flex: none; width: 12px; height: 8px; }
