/* /mobile (myPOS Glass and terminals) and its thank-you page.
   Page-specific rules only; tokens and shared components come from landing.css. */

/* ─────────────── 1. HERO ───────────────
   Shared showcase hero (landing-e.css): the animated phone stands in front of
   the framed lifestyle photo, where product pages put their packshot. */
.pm-hero-trades {
  font-size: 0.85rem;
  color: var(--lime);
  font-weight: 600;
  margin: -12px 0 24px;
}

.pm-hero-instant {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(199,255,140,0.12);
  border: 1px solid rgba(199,255,140,0.35);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 0.95rem;
  color: var(--white);
  margin: -8px 0 22px;
}

.pm-hero-instant strong { color: var(--lime); }

.pm-hero-instant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-deep);
}

.pm-hero-instant-icon svg { width: 15px; height: 15px; }

.hs-device--paiement { height: clamp(400px, 64vh, 560px); }
.hs-device--paiement::before,
.hs-device--paiement .hs-photo { top: 6%; bottom: 10%; left: 14%; right: -4%; }
.hs-device--paiement .hs-photo img { object-position: 50% 50%; }

.hs-device--paiement .pm-phone-stage {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  aspect-ratio: 260 / 400;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.4));
}

@media (max-width: 960px) {
  .hs-device--paiement { height: clamp(300px, 72vw, 460px); }
  .hs-device--paiement::before,
  .hs-device--paiement .hs-photo { left: 18%; right: 0; }
  .hs-device--paiement .pm-phone-stage { width: 32%; }
}

/* ─────────────── 2. LE CHOIX ─────────────── */
.pm-choice {
  padding: 88px 6%;
  background: var(--cream);
}

.pm-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.pm-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(6,84,45,0.1); }

.pm-card--glass {
  border-color: var(--green);
  box-shadow: 0 18px 44px rgba(6,84,45,0.16);
}

/* Device picture at the top of each card (.hardware-media from landing-e.css),
   on a light panel like the product pages' hardware cards. */
.pm-card .pm-card-media {
  height: 190px;
  margin: -6px -8px 22px;
  border-radius: 16px;
  background: radial-gradient(ellipse 60% 70% at 50% 55%, var(--green-light) 0%, var(--cream) 75%);
}

/* The terminal packshots carry their own shadow; the drawn phone gets one. */
.pm-card .pm-card-media img {
  max-height: 172px;
  height: 172px;
  width: auto;
  filter: none;
}

.pm-card-phone {
  height: 152px;
  width: auto;
  filter: drop-shadow(0 16px 28px rgba(6,84,45,0.18));
}

.pm-card-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  margin: 0;
}

.pm-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-deep);
}

.pm-card-title span { display: block; font-weight: 600; color: var(--gray); font-size: 0.9rem; }

.pm-card-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  margin: 14px 0 18px;
  line-height: 1;
}

.pm-card-price small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gray);
  margin-top: 6px;
}

.pm-card-facts { margin-bottom: 22px; flex: 1; }

.pm-card-facts dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 10px;
}

.pm-card-facts dd { font-size: 0.95rem; line-height: 1.5; }

.pm-card-btn {
  display: block;
  text-align: center;
  text-decoration: none;
}

.pm-card-btn--outline {
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: 11px;
  padding: 14px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}

.pm-card-btn--outline:hover { background: var(--green); color: var(--white); }

@media (min-width: 900px) {
  .pm-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────── 3. MOYENS DE PAIEMENT ─────────────── */
.pm-methods {
  background: var(--white);
  padding: 48px 6%;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pm-methods-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 20px;
}

.pm-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
}

/* TWINT, Visa and Mastercard come from the card-scheme strip (which also holds
   Amex, kept hidden until myPOS confirms Amex on Glass). The strip is shown at
   half size, 197.5 x 52.5. */
.pm-logo {
  display: block;
  height: 52px;
  background: url('/img/becash-card-schemes.webp') no-repeat;
  background-size: 197.5px 52.5px;
}

.pm-logo--visa       { width: 52px;  background-position: 0 0; }
.pm-logo--mastercard { width: 46px;  background-position: -58px 0; }
.pm-logo--twint      { width: 40px;  background-position: -157px 0; }

.pm-logo--text {
  background: none;
  height: auto;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

/* ─────────────── AVANTAGES ─────────────── */
.pm-benefits {
  padding: 88px 6%;
  background: var(--cream);
}

.pm-benefits-grid {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.pm-benefit {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
}

.pm-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green-light);
  color: var(--green);
  margin-bottom: 16px;
}

.pm-benefit-icon svg { width: 22px; height: 22px; }

.pm-benefit h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.pm-benefit p { font-size: 0.93rem; line-height: 1.55; color: var(--gray); }

@media (min-width: 640px) {
  .pm-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .pm-benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────── COMMENT ÇA MARCHE ─────────────── */
.pm-steps-section {
  padding: 88px 6%;
  background: var(--white);
}

.pm-steps {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.pm-step { position: relative; text-align: center; }

.pm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.pm-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.pm-step p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--gray);
  max-width: 240px;
  margin: 0 auto;
}

/* becash onboarding: the human part of the journey, under the app steps. */
.pm-onboarding {
  max-width: 1100px;
  margin: 56px auto 0;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 30px 26px;
  text-align: center;
}

.pm-onboarding-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 18px;
}

.pm-onboarding-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.pm-onboarding-list strong { color: var(--green); }

.pm-onboarding-cta { display: inline-block; }

@media (min-width: 900px) {
  .pm-steps { grid-template-columns: repeat(4, 1fr); }

  /* Dotted line linking the four numbers. */
  .pm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 34px);
    width: calc(100% - 68px + 28px);
    border-top: 2px dashed var(--border);
  }

  .pm-onboarding-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ─────────────── ARGENT ET TARIFS ─────────────── */
.pm-money {
  padding: 88px 6%;
  color: var(--white);
  background:
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(199,255,140,0.14) 0%, rgba(199,255,140,0) 70%),
    linear-gradient(135deg, #0d1c15 0%, var(--green-deep) 45%, var(--green) 100%);
  scroll-margin-top: 70px;
}

.pm-money-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

.pm-money .section-label { color: var(--lime); }

.pm-money h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--white);
  margin: 10px 0 16px;
}

.pm-money h2 em { color: var(--lime); font-style: normal; }

.pm-money-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.pm-money .hero-trust-item { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.pm-rates {
  background: var(--white);
  color: var(--gray-dark);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}

.pm-rates-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.pm-rates-title span { font-weight: 600; color: var(--gray); font-size: 0.9rem; }

.pm-rates-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.pm-rates-list dt { font-size: 0.93rem; color: var(--gray); }

.pm-rates-list dd {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--green);
  white-space: nowrap;
}

.pm-rates-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray);
  margin: 14px 0 20px;
}

@media (min-width: 900px) {
  .pm-money-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .pm-rates { padding: 36px 34px; }
}

/* ─────────────── 4. FAQ ─────────────── */
.pm-faq { padding: 88px 6%; }

/* ─────────────── 5. FORMULAIRE ───────────────
   Shared two-column .form-section (landing-e.css); the card holds more
   fields than the demo form, so it gets a little more room. */
.pm-form-card { padding: 30px 24px; }

.pm-solutions {
  border: 0;
  padding: 0;
  min-width: 0;
}

.pm-solutions legend {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pm-solutions legend .req,
.pm-consent .req { color: var(--green); font-weight: 900; }

.pm-solution {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pm-solution:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
}

.pm-solution input { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }

.pm-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray);
  cursor: pointer;
}

.pm-consent-label input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.pm-consent-label a { color: var(--green); }

/* landing.css styles every label and input of a form card as a text field:
   undo that for the radio rows and the consent checkbox. */
.pm-form-card .form-group label.pm-solution,
.pm-form-card .form-group label.pm-consent-label {
  display: flex;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--gray-dark);
}

.pm-form-card .form-group label.pm-solution { font-size: 0.9rem; margin-bottom: 8px; }
.pm-form-card .form-group label.pm-consent-label { font-size: 0.8rem; color: var(--gray); }

.pm-form-card .form-group .pm-solution input,
.pm-form-card .form-group .pm-consent-label input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
}

/* Error states for the fieldset and the checkbox (landing.css covers inputs). */
.pm-form-card .form-group.has-error .form-error { display: flex; }
.pm-solutions.has-error .pm-solution { border-color: #d94545; }

/* Popin (#pm-modal, shared .lead-modal look from landing-e.css): the form
   card moves into it while open; the close button only shows there. */
.pm-form-card .pm-modal-close { display: none; }
.pm-modal .pm-form-card .pm-modal-close { display: block; }

/* Multi-step form. Progress, step titles and step buttons only exist for
   the stepped version (.is-multistep, set by paiement.js). */
.pm-fprogress, .pm-fstep-title, .pm-fnext, .pm-fback, .pm-fnav { display: none; }

.is-multistep .pm-fprogress { display: block; margin-bottom: 18px; }

.pm-fprogress-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.pm-fprogress-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.pm-fprogress-bar span {
  display: block;
  height: 100%;
  width: var(--pm-progress, 33%);
  background: var(--green);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.is-multistep .pm-fstep-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 14px;
}

/* The step title asks the question: keep the legend for screen readers only. */
.is-multistep .pm-solutions legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.is-multistep .pm-fnext { display: block; width: 100%; }
.is-multistep .pm-fnav { display: flex; align-items: center; gap: 12px; }
.is-multistep .pm-fnav .pm-fnext { flex: 1; }

.is-multistep .pm-fback {
  display: inline-block;
  background: none;
  border: 0;
  padding: 10px 4px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
}

.is-multistep .pm-fback:hover { color: var(--green); }
.is-multistep .pm-fsubmit + .pm-fback { display: block; margin: 6px auto 0; }

.pm-fstep[hidden] { display: none; }

.pm-reassurance {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
}

@media (min-width: 768px) {
  .pm-form-card { padding: 36px 36px; }
}

/* ─────────────── THANK-YOU PAGE ─────────────── */
.pm-thanks {
  background: var(--green-deep);
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 5%;
}

.pm-thanks-card {
  max-width: 520px;
  text-align: center;
}

.pm-thanks-card .hfc-success-icon { margin: 0 auto 18px; }

.pm-thanks-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.pm-thanks-text { color: var(--gray); line-height: 1.6; margin-bottom: 22px; }

.pm-thanks-back { color: var(--green); font-weight: 700; }

/* ─────────────── HERO ANIMATION ───────────────
   One 7 s loop on the inline SVG: amount → card tap → accepted → amount →
   TWINT QR scanned → accepted → amount. */
.pm-phone-stage svg { display: block; width: 100%; height: 100%; overflow: visible; }

.pm-a-amount, .pm-a-qr, .pm-a-ok, .pm-a-card, .pm-a-scanner {
  animation-duration: 7s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.pm-a-amount   { animation-name: pm-amount; }
.pm-a-ok-card  { animation-name: pm-ok-card; }
.pm-a-qr       { animation-name: pm-qr; }
.pm-a-ok-twint { animation-name: pm-ok-twint; }
.pm-a-card     { animation-name: pm-card; }
.pm-a-scanner  { animation-name: pm-scanner; }

@keyframes pm-amount {
  0%, 35%   { opacity: 1; }
  38%, 50%  { opacity: 0; }
  52%, 62%  { opacity: 1; }
  64%, 90%  { opacity: 0; }
  93%, 100% { opacity: 1; }
}

@keyframes pm-ok-card {
  0%, 36%   { opacity: 0; }
  39%, 49%  { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes pm-qr {
  0%, 62%   { opacity: 0; }
  65%, 76%  { opacity: 1; }
  78%, 100% { opacity: 0; }
}

@keyframes pm-ok-twint {
  0%, 76%   { opacity: 0; }
  79%, 88%  { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes pm-card {
  0%, 26%   { opacity: 0; transform: translate(90px, 30px); }
  33%, 42%  { opacity: 1; transform: translate(0, 0); }
  48%, 100% { opacity: 0; transform: translate(90px, 30px); }
}

@keyframes pm-scanner {
  0%, 64%   { opacity: 0; transform: translate(-70px, 0); }
  70%, 79%  { opacity: 1; transform: translate(0, 0); }
  85%, 100% { opacity: 0; transform: translate(-70px, 0); }
}

/* Static fallback: the TWINT payment, accepted. */
@media (prefers-reduced-motion: reduce) {
  .pm-a-amount, .pm-a-qr, .pm-a-ok, .pm-a-card, .pm-a-scanner { animation: none; }
  .pm-a-amount, .pm-a-qr, .pm-a-ok-card, .pm-a-card { opacity: 0; }
  .pm-a-ok-twint, .pm-a-scanner { opacity: 1; }
}

/* The form is taller than its copy: keep the copy in view beside it. */
@media (min-width: 901px) {
  .pm-form-section .form-section-copy { align-self: start; position: sticky; top: 110px; }
}
