/* Dernière étape SMS : la carte et son destinataire, puis un paiement sans distraction. */
.pay-page { max-width: 1040px; }
.pay-heading { margin-bottom: 1.2rem; }
.pay-heading h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
.pay-heading h1 span { color: #16738d; }
.pay-page .send-steps { padding-bottom: 1.1rem; margin-bottom: 1.5rem; }
.pay-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: start; }
.pay-summary { min-width: 0; overflow: hidden; border: 1px solid #e7dfd4; border-radius: 20px; background: white; }
.pay-card-stage { background: #faf3e9; padding: 1.2rem 1.5rem; text-align: center; }
.pay-ready { display: inline-flex; align-items: center; gap: .4rem; color: #38684f; font-size: .85rem; font-weight: 700; margin: 0 0 1rem; }
.pay-ready > span { display: inline-grid; place-items: center; background: #e1eddf; width: 1.4rem; height: 1.4rem; border-radius: 50%; }
/* L'aperçu du message (composant .phone-preview de site.css), à la place de la vignette penchée d'avant. */
.pay-card-stage .phone-preview { margin: 0 auto 1.1rem; }
.pay-card-stage .phone-preview--large { zoom: 1.35; }
.pay-card-stage h2 { margin-top: 0; }
.pay-card-stage h2 { font-size: 1.5rem; overflow-wrap: anywhere; }
.pay-card-stage > p:last-child { font-size: .9rem; margin: .4rem 0 0; color: #665846; }
.pay-summary-body { padding: 1.3rem 1.5rem; }
.pay-details { margin: 0; }
.pay-details > div + div { margin-top: 1rem; }
.pay-details dt { color: var(--ink-soft); font-size: .8rem; margin-bottom: .25rem; }
.pay-details dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.pay-details ul { list-style: none; margin: 0; padding: 0; }
.pay-details li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .75rem; }
.pay-details li + li { margin-top: .6rem; }
.pay-details li span { color: var(--ink-soft); }
.pay-delivery-note { border-top: 1px solid #e9e5df; padding-top: 1rem; margin: 1rem 0 .6rem; color: var(--ink-soft); font-size: .85rem; }
.pay-edit { display: inline-block; padding: .5rem 0; text-underline-offset: 4px; font-size: .9rem; }
.pay-page .pay-block { border-radius: 20px; padding: 1.5rem; margin: 0; box-shadow: 0 8px 28px #173b4909; }
.pay-payment-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.pay-lock { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex-shrink: 0; background: #edf6f5; color: #287263; border-radius: 50%; }
.pay-page .pay-title { margin: 0; font-size: 1.6rem; }
.pay-payment-heading p { margin: .25rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.pay-price { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; background: #edf6f9; border-radius: 12px; }
.pay-price small { display: block; color: var(--ink-soft); font-size: .75rem; margin-top: .2rem; }
.pay-price > div:first-child > span { font-weight: 700; }
.pay-total { text-align: right; flex-shrink: 0; }
.pay-page .pay-total strong { font-size: 1.75rem; line-height: 1.2; color: #116b84; white-space: nowrap; }
.pay-once { margin: .55rem 0 1.4rem; text-align: center; color: var(--ink-soft); font-size: .8rem; }
.pay-loading { font-size: .9rem; color: var(--ink-soft); }
.pay-page #payment-submit { margin-top: .2rem; min-height: 56px; font-size: 1rem; padding: .9rem .7rem; }
.pay-page #payment-submit span { margin-left: .35rem; }
.pay-privacy { margin: .9rem 0 0; text-align: center; color: var(--ink-soft); font-size: .75rem; line-height: 1.6; }
.pay-page .send-error { color: #a12e35; background: #fff1f0; border-radius: 8px; padding: .8rem; font-size: .9rem; }
@media (max-width: 760px) {
  .pay-layout { grid-template-columns: 1fr; gap: 1rem; }
  .pay-card-stage { display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: 1rem; text-align: left; padding: 1rem; align-items: center; }
  .pay-card-stage img { grid-column: 1; grid-row: 1 / 4; width: 100px; margin: 0; border-width: 4px; }
  .pay-card-stage .pay-ready { grid-column: 2; margin: 0 0 .35rem; font-size: .75rem; }
  .pay-card-stage h2 { grid-column: 2; font-size: 1.35rem; }
  .pay-card-stage > p:last-child { grid-column: 2; font-size: .8rem; }
  .pay-summary-body { padding: 1rem; }
  .pay-details { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
  .pay-details > div + div { margin: 0; }
  .pay-details li { display: block; }
  .pay-details li span { display: block; }
  .pay-delivery-note { margin-top: .75rem; padding-top: .75rem; }
  .pay-page .pay-block { padding: 1.15rem; }
}
@media (max-width: 380px) {
  .pay-details { grid-template-columns: 1fr; }
  .pay-card-stage { column-gap: .65rem; grid-template-columns: 80px minmax(0, 1fr); }
  .pay-page .pay-block { padding: .9rem; }
  .pay-price { padding: .75rem; }
  .pay-page .pay-total strong { font-size: 1.5rem; }
}
/* PayPlug : champs de carte hébergés par PayPlug (cadres transparents) dans nos conteneurs. */
.pp-form { display: grid; gap: .9rem; }
.pp-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pp-label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; }
.pp-input { padding: 0 .8rem; border: 1px solid #cfd6dc; border-radius: 9px; background: white; }
/* PayPlug pose sur son cadre `height: inherit; width: inherit` (style en ligne) : sans hauteur sur le conteneur, le
   cadre retombe à 150 px. On fixe sa taille, `!important` étant le seul moyen de passer devant un style en ligne. */
.pp-input iframe { display: block; height: 46px !important; width: 100% !important; }
.pp-input.integrated_payment_error { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.pay-failed { margin: 0 0 1rem; }
@media (max-width: 420px) { .pp-row { grid-template-columns: 1fr; } }
/* PayPal via Stripe sous les champs PayPlug. */
.pay-or { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--ink-soft); font-size: .8rem; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px solid #e3e6ea; }
.pay-page .pay-paypal { width: 100%; min-height: 52px; background: #ffc439; color: #111; border: 0; font-size: 1rem; }
.pay-page .pay-paypal:hover, .pay-page .pay-paypal:focus-visible { background: #f2ba36; }
.pay-page .pay-paypal[disabled] { opacity: .6; }
/* Le Pass Dromadaire (lot 3a) : deux formules sur la page de paiement, fenêtre « En savoir plus », détail pour un abonné. */
.pay-options { display: grid; gap: .75rem; margin: 0 0 1.1rem; }
/* `.pay-block` devant : la règle générale `.send-block label { display: block; margin-bottom }` ne doit pas empiler le bouton radio au-dessus du texte. */
.pay-block .pay-option { display: flex; gap: .85rem; align-items: flex-start; margin: 0; padding: 1rem 1.1rem; border: 2px solid #d9e1e5; border-radius: 14px; background: white; font-size: inherit; font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-block .pay-option--pass { position: relative; }
.pay-block .pay-option__label { display: flex; gap: .85rem; align-items: flex-start; margin: 0; font-size: inherit; font-weight: 400; cursor: pointer; min-width: 0; flex: 1; }
/* « En savoir plus » : au bout de la dernière ligne, à droite, sans voler de place au texte. */
.pay-option--pass .pay-option__sub { padding-right: 7.5rem; }
.pay-option--pass .pay-more { position: absolute; right: 1.1rem; bottom: 1rem; font-size: 14px; line-height: 1.45; }
.pay-option:hover { border-color: #9fcbd6; }
.pay-block .pay-option input { flex: none; width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: #176c82; cursor: pointer; }
.pay-option__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.pay-option__title { font-weight: 700; font-size: 17px; line-height: 1.3; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pay-option__price { color: #116b84; white-space: nowrap; }
.pay-option__lead { font-size: 15px; }
.pay-option__sub { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.pay-option--pass.is-selected, .pay-option:has(input[value="pass"]:checked) { border-color: #176c82; background: #eef7f9; box-shadow: 0 0 0 4px #176c8214; }
.pay-option:has(input:focus-visible) { outline: 2px solid #176c82; outline-offset: 2px; }
.pay-badge { display: inline-block; vertical-align: .1em; margin-right: .35rem; padding: .1rem .55rem; border-radius: 999px; background: #ffe7a6; color: #7a4d00; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.pay-more { font-weight: 700; }
.pay-choice__submit { margin: 0 0 1.1rem; text-align: right; }
.js .pay-choice__submit { display: none; }
.pay-account { padding: 14px 16px; border-radius: 12px; background: #f6f7f8; border: 1px solid #e1e5e8; font-size: 14px; line-height: 1.5; margin: 0 0 1.1rem; }
.pay-account p { margin: 0; }
.pay-account--existing { background: #fff8e6; border-color: #f1dd9a; }
.pay-account--existing p:first-child { margin-bottom: .7rem; }
.pay-account .pay-input { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #aebfc5; border-radius: 9px; min-height: 46px; margin: .3rem 0 .5rem; }
/* Erreur sous un champ : un bloc sous le champ, jamais en ligne (un span en ligne avec du remplissage chevauchait le champ, 8 novembre 2026). */
.pay-account .pay-field { display: block; }
.pay-account .send-error { display: block; margin: -.1rem 0 .7rem; }
.pay-account__help { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.pay-pass-line { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #eef7f9; border: 1px solid #cde4ea; margin: 0 0 14px; font-size: 15px; }
.pay-pass-line small { color: var(--ink-soft); font-size: 13px; }
.pay-detail { display: grid; gap: .5rem; padding: 1rem; background: #edf6f9; border-radius: 12px; }
.pay-detail > div { display: flex; justify-content: space-between; gap: .75rem; font-size: 15px; }
.pay-detail > div > span:last-child { white-space: nowrap; }
.pay-detail small { color: var(--ink-soft); }
.pay-detail__total { border-top: 1px solid #cfe1e8; padding-top: .6rem; align-items: baseline; }
.pay-page .pay-detail__total strong { font-size: 1.75rem; color: #116b84; }
.pay-detail__total small { margin-left: .3rem; font-size: .75rem; }
/* Fenêtre « En savoir plus » */
.pass-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; background: #1f243099; overflow: auto; }
.pass-modal[hidden] { display: none; }
.pass-modal__box { width: min(620px, 100%); background: white; border-radius: 22px; box-shadow: 0 24px 70px #0006; overflow: hidden; font-size: 14.5px; line-height: 1.5; }
.pass-modal__head { position: relative; padding: 22px 32px 18px; background: linear-gradient(135deg, #eef7f9, #fff8e6); border-bottom: 1px solid #e3ecef; }
.pass-modal__head .send-eyebrow { margin-bottom: 6px; }
.pass-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: white; color: var(--ink-soft); font-size: 22px; cursor: pointer; }
.pass-modal__head h2 { font-family: Dosis, sans-serif; font-size: 34px; line-height: 1.1; margin: 0; }
.pass-modal__head p { margin: 10px 0 0; font-size: 17px; }
.pass-args { display: grid; gap: 14px; padding: 18px 32px 4px; margin: 0; list-style: none; }
.pass-args li { display: flex; gap: 14px; align-items: flex-start; }
.pass-args__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #eef7f9; color: #176c82; }
.pass-args strong { font-size: 16px; }
.pass-args p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.pass-modal__count { margin: 16px 32px 0; padding: 14px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f1dd9a; font-size: 14.5px; }
.pass-modal__actions { display: grid; gap: 10px; padding: 20px 32px 26px; }
.pass-modal__actions .button--primary { min-height: 56px; font-size: 16px; }
.pass-modal__no { min-height: 46px; border: 0; background: none; color: #176c82; font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pass-modal__actions small { text-align: center; color: var(--ink-soft); font-size: 12px; }
@media (max-width: 480px) { .pay-option--pass .pay-option__sub { padding-right: 0; padding-bottom: 1.6rem; } .pass-modal { padding: 0; } .pass-modal__box { border-radius: 0; min-height: 100%; } .pass-modal__head, .pass-args, .pass-modal__actions { padding-left: 1.1rem; padding-right: 1.1rem; } .pass-modal__count { margin-left: 1.1rem; margin-right: 1.1rem; } }

/* « Je prends le Pass » sans carte (maquettes 9-11, 6 novembre 2026) */
.pass-subscribe__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pass-subscribe__offer { border: 2px solid var(--turquoise-dark, #176c82); border-radius: 14px; padding: 1rem 1.1rem; background: #f4fafb; margin: 0 0 1rem; }
.pass-subscribe__offer p { margin: .35rem 0 0; font-size: 15px; }
.pass-subscribe__title { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; font-size: 17px; font-weight: 700; }
.pass-subscribe__price { color: #116b84; white-space: nowrap; }
.pass-subscribe__sub { color: var(--ink-soft); font-size: 13.6px; }
.pass-subscribe__who .pay-account { margin-bottom: 1rem; }
.pass-subscribe__who .pp-row { gap: .9rem; }
.pass-subscribe__identity { margin: 0 0 1rem; }
.pass-subscribe__aside { display: grid; gap: 1rem; }
.pass-subscribe__card .pay-title { font-size: 1.25rem; margin-bottom: .6rem; }
.pass-subscribe__card .pass-modal__count { margin-top: .8rem; }
.pass-subscribed__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; padding: 1.1rem 0; border-top: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; }
.pass-subscribed__facts dt { color: var(--ink-soft); font-size: .85rem; }
.pass-subscribed__facts dd { margin: .25rem 0 0; }
.pass-subscribed__go { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 1rem 0; }
.pass-subscribed__go .button { width: auto; display: inline-flex; }
.pass-subscribed__go p { margin: 0; color: var(--ink-soft); }
.pass-subscribed__note { color: var(--ink-soft); font-size: .9rem; margin: 1rem 0 0; }
@media (max-width: 760px) { .pass-subscribe__layout { grid-template-columns: 1fr; } .pass-subscribed__facts { grid-template-columns: 1fr; } }
.pass-subscribed { text-align: left; }
.send-done__head { display: flex; align-items: center; gap: 1rem; }
.send-done__ok { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #d7eee1; color: #26764f; font-size: 1.5rem; flex: none; }
.send-done__head h1 { margin: 0; font-size: 2rem; }
.send-done__head p { margin: .3rem 0 0; color: var(--ink-soft); }
/* Opération en cours sur la ligne de paiement (changement de formule ou paiement, classe posée par pass-choice.js et
   payment-payplug.js) : formules et boutons gelés ensemble, jamais deux opérations à la fois. */
.pay-block.is-busy .pay-choice { opacity: .55; pointer-events: none; }
.pay-block.is-busy #payment-submit, .pay-block.is-busy #paypal-button { pointer-events: none; }
.pay-choice.is-busy { opacity: .55; pointer-events: none; }
/* Club Dromadaire (8 novembre 2026) : les arguments « exclusives » et « des mots qui restent » portent le doré du Club. */
.pass-args__icon--club { background: #fbf3e0; color: #a9761c; }

/* Adhésion : le paiement dans une fenêtre par-dessus la page (8 novembre 2026), pour se concentrer dessus. Compacte : tout
   tient sans défilement sur un écran courant, et le bouton reste visible (collé en bas) si l'écran est petit. */
body.pay-modal-open { overflow: hidden; }
.pay-modal { align-items: center; padding: 2vh 1rem; }
.pay-modal .pass-modal__box { width: min(560px, 100%); max-height: 96vh; display: flex; flex-direction: column; }
.pay-modal .pass-modal__head { padding: 14px 24px 12px; }
.pay-modal .pass-modal__head h2 { font-size: 26px; }
.pay-modal .pass-modal__head p { margin-top: 4px; font-size: 14.5px; }
.pay-modal .pass-modal__close { top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; text-decoration: none; line-height: 1; }
.pay-modal .pass-modal__body { padding: 12px 24px 0; overflow: auto; display: flex; flex-direction: column; }
.pay-modal .pass-subscribe__identity { margin: 0 0 .5rem; font-size: 13px; }
.pay-modal .pp-field { margin-bottom: .55rem; }
.pay-modal .pp-label { font-size: .8rem; margin-bottom: .2rem; }
.pay-modal .pp-input iframe { height: 42px !important; }
.pay-modal .pay-price { padding: .6rem .8rem; margin-top: .2rem; }
.pay-modal .pay-once { display: none; }
.pay-modal .pay-loading { margin: .4rem 0 0; }
.pay-modal #payment-submit { position: sticky; bottom: 0; margin-top: .7rem; box-shadow: 0 -10px 16px #fff, 0 2px 6px rgba(20, 30, 50, .12); }
.pay-modal .pay-privacy { margin: .6rem 0 0; padding-bottom: 14px; font-size: .72rem; line-height: 1.45; }
.pass-subscribe__paying { padding: 1rem 1.1rem; border: 1px dashed #aebfc5; border-radius: 12px; color: var(--ink-soft); }
.pass-subscribe__paying p { margin: 0; }
.pass-subscribe__paying p + p { margin-top: .4rem; }
@media (max-width: 640px) { .pay-modal .pass-modal__body, .pay-modal .pass-modal__head { padding-left: 16px; padding-right: 16px; } }
