/* ── /questions : offre anniversaire, fenêtre de paiement des questions (packs 1 / 3 / 5, Apple Pay / Google Pay,
   PayPal, carte) — tokens app.css, thème clair de public-brand.css. Préfixes .qpay- / .qanniv- (isolés).
   Les règles du thème clair (.ec-public …) passent après cette feuille : les nôtres les précisent sous .qpay. */

.qpay {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: flex-end; justify-content: center;
}
.qpay.open { display: flex; }
@media (min-width: 640px) { .qpay { align-items: center; } }
html.qpay-lock, html.qpay-lock body { overflow: hidden; }

.qpay__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 12, .72); backdrop-filter: blur(6px);
}

.qpay__dialog {
  position: relative; width: 100%; max-width: 500px;
  max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 28px) calc(18px + env(safe-area-inset-bottom, 0px));
  animation: qpay-in .28s var(--ease, ease) both;
}
.qpay .qpay__dialog:focus, .qpay .qpay__dialog:focus-visible { outline: none; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .qpay__dialog { border-radius: var(--r-lg); } }
@keyframes qpay-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.qpay__close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text-dim); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.qpay__close:hover { color: var(--cream); border-color: var(--gold); }

.qpay__kicker {
  display: flex; align-items: center; gap: 8px; margin: 0 40px 8px 0;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ec-brass, #a67d42);
}
.qpay__off, .qanniv__off {
  display: inline-block; padding: 3px 8px; border-radius: 4px; letter-spacing: .02em;
  color: #fff; background: var(--ec-cta, #d10c79); font-size: .78rem; font-weight: 800;
}
.qpay__title {
  font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem); line-height: 1.22; color: var(--cream);
  margin: 0 30px 6px 0;
}
.qpay__lead { color: var(--text-dim); font-size: .9rem; margin: 0 0 16px; line-height: 1.5; }

/* ── Packs : une carte par pack, le nombre de questions écrit en grand et dessiné (1, 3 ou 5 cartes) ── */
.qpay__packs { display: grid; gap: 12px; margin: 0 0 16px; }
.ec-public .qpay .qpay-pack,
.qpay .qpay-pack {
  position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 22px; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 14px 12px 14px 12px; min-height: 76px;
  border: 1.5px solid #dccbe4; border-radius: 12px; background: #fff; color: var(--text);
  cursor: pointer; font: inherit; box-shadow: 0 6px 16px -14px rgb(47 18 76 / 45%);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
}
.ec-public .qpay .qpay-pack:hover, .qpay .qpay-pack:hover { border-color: #b98fcc; }
.ec-public .qpay .qpay-pack.is-sel, .qpay .qpay-pack.is-sel {
  border-color: var(--ec-plum, #5b146f); background: #faf3fd;
  box-shadow: 0 0 0 1px var(--ec-plum, #5b146f), 0 12px 26px -18px rgb(91 20 111 / 55%);
}
.qpay .qpay-pack:active { transform: scale(.99); }
.qpay .qpay-pack:disabled { cursor: default; opacity: .75; }
.qpay .qpay-pack--badge { margin-top: 6px; }

.qpay-pack__badge {
  position: absolute; top: -10px; right: 14px; padding: 3px 9px; border-radius: 999px;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
  color: #fff; background: var(--ec-cta, #d10c79); box-shadow: 0 4px 10px -6px rgb(209 12 121 / 70%);
}
.qpay-pack[data-qty="5"] .qpay-pack__badge { background: var(--ec-sage, #18815c); box-shadow: 0 4px 10px -6px rgb(24 129 92 / 70%); }

/* Les cartes du pack : une petite carte de tarot par question, en éventail. */
.qpay-pack__cards { position: relative; width: 58px; height: 48px; }
.qpay-pack__cards i {
  position: absolute; left: 50%; bottom: 2px; width: 22px; height: 33px; margin-left: -11px;
  border-radius: 4px; border: 1.5px solid #fff;
  background: linear-gradient(160deg, #7a2a94 0%, #4b0f5f 70%);
  box-shadow: 0 3px 7px -3px rgb(47 18 76 / 55%);
  transform-origin: 50% 100%;
}
.qpay-pack__cards i::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 13px/1 var(--serif); color: #f3d79e;
}
.qpay-pack__cards--3 i:nth-child(1) { transform: translateX(-10px) rotate(-12deg); }
.qpay-pack__cards--3 i:nth-child(3) { transform: translateX(10px) rotate(12deg); }
.qpay-pack__cards--5 i { width: 19px; height: 29px; margin-left: -9.5px; }
.qpay-pack__cards--5 i::after { font-size: 11px; }
.qpay-pack__cards--5 i:nth-child(1) { transform: translateX(-13px) rotate(-18deg); }
.qpay-pack__cards--5 i:nth-child(2) { transform: translateX(-6.5px) rotate(-9deg); }
.qpay-pack__cards--5 i:nth-child(4) { transform: translateX(6.5px) rotate(9deg); }
.qpay-pack__cards--5 i:nth-child(5) { transform: translateX(13px) rotate(18deg); }
.qpay-pack.is-sel .qpay-pack__cards i { background: linear-gradient(160deg, #d10c79 0%, #5b146f 75%); }

.qpay-pack__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qpay-pack__name { color: var(--ec-ink, #2f124c); font-size: 1.04rem; font-weight: 700; line-height: 1.15; }
.qpay-pack__name b { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: var(--ec-plum, #5b146f); margin-right: 1px; }
.qpay-pack__per { color: var(--text-mute); font-size: .78rem; line-height: 1.3; }
.qpay-pack__per em { display: block; font-style: normal; font-weight: 800; color: var(--ec-sage, #18815c); white-space: nowrap; }
.qpay-pack__price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.qpay-pack__price s { color: var(--text-mute); font-size: .78rem; }
.qpay-pack__price b { color: var(--ec-ink, #2f124c); font-size: 1.12rem; font-weight: 800; }
.qpay-pack__check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cdb6d8; display: grid; place-items: center; background: #fff;
}
.qpay-pack__check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.qpay-pack.is-sel .qpay-pack__check { background: var(--ec-plum, #5b146f); border-color: var(--ec-plum, #5b146f); }
.qpay-pack.is-sel .qpay-pack__check svg { opacity: 1; }
@media (max-width: 360px) {
  .ec-public .qpay .qpay-pack, .qpay .qpay-pack { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 9px; }
  .qpay-pack__check { display: none; }
  .qpay-pack__cards { width: 46px; }
}

/* E-mail de la réponse : une ligne quand il est connu, un champ sinon. */
.qpay__to {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px;
  border-radius: 8px; background: #f8f2fb; color: var(--text);
}
.qpay__to > svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--ec-plum, #5b146f); stroke-width: 1.6; }
.qpay__to-text { display: flex; flex-direction: column; min-width: 0; font-size: .86rem; line-height: 1.3; }
.qpay__to-text small { color: var(--text-mute); font-size: .74rem; }
.qpay__to-text b { color: var(--ec-ink, #2f124c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qpay__to-edit { margin-left: auto; border: 0; background: none; color: var(--ec-plum, #5b146f); font: inherit; font-size: .84rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.qpay__field { margin: 0 0 14px; }
.qpay__field label { display: block; font-size: .82rem; color: var(--text-dim); margin: 0 0 6px; }
.qpay__field-note { color: var(--text-mute); font-weight: 400; }
.qpay__field input {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  background: var(--ink-deep, #080b18); color: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--r);
}
.qpay__field input:focus { outline: none; border-color: var(--gold-bright); }
.qpay__field input[readonly] { opacity: .72; }

/* Paiement : Apple Pay / Google Pay et PayPal d'abord, puis la carte (dépliée d'un geste). */
.qpay__pay { display: grid; gap: 10px; }
.qpay__pay.is-busy { opacity: .7; pointer-events: none; }
.qpay__wallet { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qpay__wallet.is-on { max-height: 140px; }
.qpay__paypal { min-height: 48px; }
.qpay__paypal:empty { min-height: 0; }
.qpay__pp-note { margin: -4px 0 0; text-align: center; font-size: .78rem; color: var(--text-mute); }
.ec-public .qpay .qpay__bycard, .qpay .qpay__bycard {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px;
  border: 1.5px solid #cdb6d8; border-radius: 10px; background: #fff; color: var(--ec-ink, #2f124c);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: border-color .18s, background .18s;
}
.qpay .qpay__bycard:hover { border-color: var(--ec-plum, #5b146f); background: #fbf7fd; }
.qpay .qpay__bycard svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.qpay__card { display: grid; gap: 12px; }
.qpay__card[hidden] { display: none; }
#qpayElement { min-height: 44px; }

.qpay__error { color: var(--err, #e0567a); font-size: .86rem; margin: 0; min-height: 0; }
.qpay__error.is-on { margin: 2px 0 0; }
.qpay__secure {
  display: flex; align-items: center; gap: 7px; justify-content: center; text-align: center;
  color: var(--text-mute); font-size: .74rem; margin: 14px 0 0; line-height: 1.4;
}
.qpay__secure svg { flex: 0 0 auto; }

/* Spinner de la vue « paiement confirmé, question en cours » */
.qpay-spin {
  display: inline-block; width: 42px; height: 42px;
  border: 3px solid var(--line); border-top-color: var(--gold-bright);
  border-radius: 50%; animation: qpay-spin 0.9s linear infinite;
}
@keyframes qpay-spin { to { transform: rotate(360deg); } }

/* ── Offre anniversaire, en haut de la page : la « surprise » annoncée à la fin de la vidéo ── */
.qanniv {
  margin: 0 0 18px; padding: clamp(16px, 3.4vw, 24px);
  border: 1px solid #e9cfe0; border-radius: 12px;
  background: linear-gradient(135deg, #fff3f9 0%, #f6ecfb 100%);
  box-shadow: 0 14px 30px -26px rgb(91 20 111 / 55%);
}
.qanniv__kicker {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-brass, #a67d42);
}
.qanniv__title { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.3rem, 1.12rem + .9vw, 1.65rem); line-height: 1.2; color: var(--ec-ink, #2f124c); }
.qanniv__lead { margin: 0 0 14px; font-size: .92rem; line-height: 1.55; color: var(--text); }
.qanniv__packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qanniv__pack {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px;
  border-radius: 10px; background: #fff; border: 1px solid #ead9f0; text-align: center;
}
.qanniv__pack.is-pop { border-color: var(--ec-cta, #d10c79); box-shadow: 0 0 0 1px var(--ec-cta, #d10c79); }
.qanniv__qty { font-size: .82rem; font-weight: 700; color: var(--ec-ink, #2f124c); }
.qanniv__qty b { font-family: var(--serif); font-size: 1.15rem; color: var(--ec-plum, #5b146f); }
.qanniv__price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; font-size: .8rem; }
.qanniv__price s { color: var(--text-mute); }
.qanniv__price strong { color: var(--ec-cta, #d10c79); font-size: 1.02rem; font-weight: 800; }

/* Profil énergétique sous la question quand il est déjà connu. */
.ecard--after { margin-top: 22px; }

/* ── Question offerte (lien ?gift=1 de fin de vidéo) ─────────────────────── */
.qgift {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3.4vw, 28px);
  border: 1px solid var(--line-3); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(205,162,95,.16), rgba(205,162,95,.04));
  box-shadow: var(--glow);
}
.qgift__ic {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: rgba(205,162,95,.16); color: var(--gold-bright);
}
.qgift__ic svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.qgift__body { flex: 1; min-width: 0; }
.qgift__badge {
  display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink, #0b0f1c); background: var(--gold-bright);
}
.qgift__title {
  margin: 0; font-family: var(--serif); color: var(--cream);
  font-size: clamp(1.1rem, 1rem + .7vw, 1.4rem); line-height: 1.3;
}
.qgift__lead { margin: .3rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--text-dim); }
@media (max-width: 520px) { .qgift { flex-direction: column; text-align: center; gap: 10px; } }

.qgift__email { margin: 0 0 18px; }

/* Offre −50 % du mail J+7 : compte à rebours du bandeau. */
.qgift__count { font-variant-numeric: tabular-nums; color: var(--gold-bright); }
