/* ==========================================================================
   FunkyBreslev — page de vente Pass Premium (FR + EN).
   Écrite en mobile-first : le socle décrit le téléphone, les media queries
   `min-width` élargissent ensuite. Réutilise les tokens de home-*.css
   (--bg/--panel/--ink/--muted/--gold/--line) — charger APRÈS home-*.css.

   Le hero réutilise volontairement `.hero-art` et `.mobile-disc-break` de
   home-*.css : le disque se retrouve donc EXACTEMENT au même endroit et à la
   même taille que sur l'accueil (à droite du texte sur grand écran, en pastille
   centrée sous le hero sur téléphone). Rien à redéfinir ici.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.pm-hero { position: relative; overflow: hidden; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.pm-hero:before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 460px at 82% -6%, rgba(232, 169, 59, .17), transparent 68%);
}
.pm-hero .wrap { position: relative; }
/* Même échelle typographique que le H1 de l'accueil : le hero de la page de
   vente n'a aucune raison d'être plus petit que celui de l'accueil. */
.pm-hero h1 { font-size: clamp(38px, 11.5vw, 54px); white-space: normal; margin-top: 14px; }
.pm-hero h1 em { font-style: normal; color: var(--gold); }
.pm-hero .lead { color: var(--muted); font-size: 15px; margin: 16px 0 0; max-width: 46ch; }
/* Badge sur une seule ligne, même sur un écran de 320 px. */
.pm-hero .hero-badge { margin-top: 0; white-space: nowrap; font-size: 10px; letter-spacing: .06em; padding: 6px 12px; }

/* Prix et action regroupés dans une seule barre compacte : sur mobile, ils
   occupent une ligne au lieu de former deux blocs successifs. */
.pm-hero-action {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px;
  margin-top:22px; padding:5px 5px 5px 14px; border:1px solid rgba(232,169,59,.32);
  border-radius:14px; background:rgba(232,169,59,.05);
}
.pm-hero-price {
  display:flex; align-items:center; gap:8px; margin:0; color:var(--muted); font-size:11px; line-height:1.2;
}
.pm-hero-price b { color:var(--ink); font-size:22px; font-weight:800; white-space:nowrap; }
.pm-hero-price span { white-space:nowrap; }

/* Le disque qui tourne (repris de home-*.css) tombe juste sous le hero sur
   téléphone : on lui donne de l'air en haut ET en bas, sinon il colle au bord
   du hero et à la section suivante. */
.mobile-disc-break { margin: 34px 0 10px; }

@media (max-width: 760px) {
  /* Le disque est un pont visuel : on évite de créer une seconde section vide
     avant « Ton espace ». */
  .pm-hero + .mobile-disc-break { margin: 22px 0 0; }
  .pm-preview { padding-top: 30px; }
  .pm-latest-card { gap:14px; padding:14px; }
  .pm-latest-card .latest-release-cover { width:88px; height:88px; flex-basis:88px; }
  .pm-latest-card h2 { font-size:31px; }
}

/* --- Preuve sociale (étoiles + membres) ---------------------------------- */
.pm-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 18px 0 0; font-size: 12.5px; color: var(--muted);
}
.pm-proof .stars { color: var(--gold); font-size: 13px; letter-spacing: 1.5px; }
.pm-proof b { color: var(--ink); font-weight: 700; }
.pm-proof.center { justify-content: center; }
.pm-members { display:inline-flex; align-items:center; gap:12px; }
.members-rating { color:var(--gold); letter-spacing:1px; white-space:nowrap; }
.members-rating b { color:var(--muted); letter-spacing:0; margin-left:3px; }
.pm-hero-cta { min-height:44px; padding:10px 13px; font-size:11px; white-space:nowrap; }
/* Pastille verte « en ce moment » devant le nombre de membres. */
.pm-members .member-count { display:inline-flex; align-items:center; }
.pm-members .member-count:before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%; margin-right:8px;
  background: #52c76a; box-shadow: 0 0 0 3px rgba(82, 199, 106, .18);
}

/* --- Titres de section --------------------------------------------------- */
.section-head { max-width: 640px; margin: 0 0 24px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(30px, 8vw, 42px); }
.section-head p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* --- Aperçu de l'espace membre : carrousel de captures réelles ------------ */
/* Les quatre captures téléphone défilent horizontalement (scroll natif +
   accroche) : chacune montre UNE fonctionnalité, plutôt qu'une pile verticale
   qui allongeait la page sans rien démontrer de plus. */
.pm-carousel { position: relative; margin-inline: -18px; }
.pm-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 18px;
  padding: 4px 18px 6px; margin: 0;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;       /* inertie iOS */
  touch-action: pan-x pan-y;               /* le geste horizontal reste au carrousel, le vertical à la page */
}
.pm-track::-webkit-scrollbar { display: none; }
/* Accroche sur le BORD GAUCHE (et non au centre) : la première et la dernière
   diapo ne peuvent jamais se centrer, ce qui décalait l'indicateur de points.
   `scroll-snap-stop: always` : un coup de pouce au doigt avance d'exactement une
   capture, il devient impossible d'en sauter deux ou de s'arrêter entre deux. */
.pm-shot {
  flex: 0 0 auto; width: min(260px, 78vw); margin: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.pm-shot figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; }
.pm-shot figcaption b {
  display: block; color: var(--ink); font-family: 'DINCond', Impact, sans-serif;
  font-size: 19px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px;
}

/* Commandes du carrousel : points sur téléphone, flèches en plus au clavier /
   à la souris. Masquées par le JS quand tout tient sans défilement. */
.pm-carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 18px; padding-inline: 18px;
}
.pm-carousel-nav[hidden] { display: none; }
.pm-dots { display: flex; gap: 7px; }
.pm-dots button {
  position:relative; width: 28px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent;
}
.pm-dots button:before { content:""; position:absolute; width:7px; height:7px; left:50%; top:50%; border-radius:50%; transform:translate(-50%,-50%); background:rgba(245,243,238,.22); transition:background .2s var(--ease-out),transform .2s var(--ease-out); }
.pm-dots button[aria-current="true"]:before { background: var(--gold); transform:translate(-50%,-50%) scale(1.35); }
.pm-dots button:focus-visible { outline:2px solid var(--gold); outline-offset:1px; }
.pm-arrow {
  display: none; width: 44px; height: 44px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink);
  align-items: center; justify-content: center;
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.pm-arrow svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-arrow:hover { border-color: var(--gold); color: var(--gold); }
.pm-arrow[disabled] { opacity: .3; cursor: default; }
.pm-arrow[disabled]:hover { border-color: var(--line); color: var(--ink); }
.pm-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 18px; }

/* Cadre téléphone : bordure sombre + reflet, l'image garde ses coins arrondis. */
.phone-frame {
  position: relative; width: 100%; margin: 0 auto;
  padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #2a2a31, #0c0c0f 55%);
  box-shadow: 0 0 0 1px rgba(245, 243, 238, .1), 0 26px 60px rgba(0, 0, 0, .6);
}
.phone-frame img { width: 100%; height: auto; border-radius: 32px; display: block; }
/* Encoche */
.phone-frame:after {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 5px; border-radius: 99px; background: rgba(0, 0, 0, .55);
}

/* Capture ordinateur : hors carrousel (format trop différent), en pleine
   largeur sous les téléphones. */
.pm-shot-desktop { margin: 30px 0 0; }
.pm-shot-desktop figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; }
.pm-shot-desktop figcaption b {
  display: block; color: var(--ink); font-family: 'DINCond', Impact, sans-serif;
  font-size: 19px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px;
}
.mac-frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #0c0c0f; box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}
.mac-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #17171c; border-bottom: 1px solid var(--line); }
.mac-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.mac-bar span { margin-left: 8px; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.mac-frame img { width: 100%; height: auto; display: block; }

/* --- Email « nouvelle sortie » ------------------------------------------- */
/* Section volontairement portée par l'image : la page enchaînait trop de blocs
   de texte. L'image est une VRAIE capture du template du Worker (voir
   tests/captures-email.mjs) ; l'en-tête « boîte mail » est dessiné ici, pas
   dans l'image, pour rester net et lisible à toutes les tailles. */
.pm-mail-shot { margin: 0 0 26px; max-width: 420px; }
.mail-frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #0c0c0f; box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}
.mail-bar { display: grid; gap: 3px; padding: 12px 16px; background: #17171c; border-bottom: 1px solid var(--line); }
.mail-from { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.mail-from span { color: var(--muted); font-weight: 500; }
.mail-subj { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-frame img { width: 100%; height: auto; display: block; }

.pm-mail-copy .eyebrow { display: block; margin-bottom: 10px; }
.pm-mail-copy h2 { font-size: clamp(30px, 8vw, 42px); }
.pm-mail-copy p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.pm-latest-section { padding:24px 0 34px; }
.pm-latest-card { display:flex; align-items:center; gap:18px; max-width:620px; margin:auto; padding:18px; border:1px solid rgba(232,169,59,.62); border-radius:20px; background:linear-gradient(115deg,rgba(232,169,59,.18),#121216 62%); box-shadow:0 18px 48px rgba(0,0,0,.28); }
.pm-latest-card .latest-release-cover { position:relative; width:108px; height:108px; flex:0 0 108px; }
.pm-latest-card img { width:100%; height:100%; object-fit:cover; border-radius:14px; }
.pm-latest-card h2 { margin:4px 0 0; font-size:clamp(31px,8vw,42px); }
.pm-latest-card [data-latest-date] { margin:3px 0 0; color:var(--ink); font-size:13px; font-weight:650; }
.pm-latest-card p:last-child { margin:4px 0 0; color:#dedbd2; font-size:13px; }
.pm-latest-card .latest-play { inset:10px; border-radius:12px; }
.pm-mail-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pm-mail-list li { position: relative; padding-left: 26px; color: #dfdbd0; font-size: 14px; }
.pm-mail-list li:before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* --- Bénéfices en cartes ------------------------------------------------- */
.pm-grid { display: grid; gap: 12px; }
.pm-card {
  padding: 20px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
}
.pm-card .ico { width: 28px; height: 28px; color: var(--gold); }
.pm-card .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pm-card h3 { font-family: 'DINCond', Impact, sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 12px 0 5px; }
.pm-card p { color: var(--muted); font-size: 14px; margin: 0; }
/* Carte « exclusivités » : le seul avantage qu'aucune autre offre ne donne,
   donc traitée en accent ambré (et en pleine largeur sur grand écran). */
.pm-card.accent {
  background: linear-gradient(150deg, #1c1608, #121216 62%);
  border-color: rgba(232, 169, 59, .38);
}
.pm-card.accent h3 { color: var(--gold); }

/* --- Carte de prix (unique, dans le CTA final) --------------------------- */
.pm-offer {
  text-align: left;
  padding: 22px 18px 18px;
  background: linear-gradient(158deg, #1e1809, #0e0e12 64%);
  border: 1px solid rgba(232, 169, 59, .42); border-radius: 22px;
}
.pm-offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.pm-offer-price .big { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.pm-offer-price .per { font-size: 14px; color: var(--muted); font-weight: 500; }
.pm-offer-then { margin: 10px 0 0; color: var(--gold); font-weight: 700; font-size: 14px; }
.pm-offer-then span { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 3px; }
.pm-offer .btn { width: 100%; margin-top: 18px; font-size: 15px; min-height: 56px; }
.pm-offer-trust { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.pm-offer-trust b { color: #cfcabd; font-weight: 600; }

/* Rappels courts sous la carte, en pastilles. Volontairement DIFFÉRENTS des
   arguments déjà listés plus haut : ici on ne vend plus, on lève les
   dernières objections (délai, engagement, appareils). */
.pm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pm-tags li {
  font-size: 11.5px; color: #d7d3c8; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .02);
}
.pm-tags li:before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 6px; }

/* --- Étapes -------------------------------------------------------------- */
.steps { display: grid; gap: 12px; }
.step { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.step-num { font-family: 'DINCond', Impact, sans-serif; font-size: 34px; color: var(--gold); line-height: .8; }
.step h3 { font-family: 'DINCond', Impact, sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 5px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 2px 18px; }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary:after { content: "–"; }
.faq details p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.faq details p a { color: var(--gold); }

/* --- Avis ---------------------------------------------------------------- */
.pm-reviews { border-top: 1px solid var(--line); }

/* --- CTA final = LE seul endroit où l'on peut acheter --------------------- */
/* Décision produit : un seul bouton de paiement sur toute la page, tout en bas
   (plus de bouton dans le hero, plus de barre collante). La page démontre,
   elle ne harcèle pas ; qui veut acheter descend. */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(32px, 9vw, 50px); }
.final-cta > .wrap > p { color: var(--muted); margin: 12px auto 0; max-width: 480px; font-size: 15px; }
/* Respiration nette entre la preuve sociale (étoiles + membres) et la carte de
   prix : le bouton d'achat ne doit pas sembler collé aux avis. Sélecteur calé sur
   `.final-cta > .wrap > p` (home-*.css) pour le battre en spécificité — sinon son
   `margin: 12px auto 0` reprend le dessus et la carte remonte contre la preuve. */
.final-cta > .wrap > .pm-proof { margin: 18px auto 40px; }
.final-cta .btn { width: 100%; min-height: 56px; font-size: 15px; }
.final-cta .note { margin: 18px auto 0; max-width: 420px; font-size: 12.5px; }
.pm-eligibility { display:grid; gap:3px; max-width:420px; margin:18px auto 0; padding:14px 16px; border:1px solid rgba(232,169,59,.42); border-radius:14px; background:rgba(232,169,59,.07); color:var(--ink); text-decoration:none; text-align:left; }
.pm-eligibility span { color:var(--muted); font-size:11.5px; }
.pm-eligibility strong { color:var(--gold); font-size:13px; }
.pm-eligibility b { font-size:16px; margin-left:3px; }

/* --- Page « tarif préférentiel » (premium-eligibilite.html) -------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.elig { padding: 48px 0 72px; }
.elig-box {
  max-width: 480px; margin: 0 auto; text-align: center;
  padding: 30px 22px 26px;
  background: linear-gradient(158deg, #1e1809, #0e0e12 64%);
  border: 1px solid rgba(232, 169, 59, .42); border-radius: 22px;
}
.elig-box .eyebrow { display: block; margin-bottom: 12px; }
.elig-box h1 { font-size: clamp(34px, 10vw, 46px); }
.elig-intro { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.elig-intro b { color: var(--ink); font-weight: 700; }
.elig-form { display: grid; gap: 10px; margin: 24px 0 0; }
.elig-form input[type="email"] {
  width: 100%; padding: 14px 18px; font: inherit;
  color: var(--ink); background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line); border-radius: 12px;
}
.elig-form input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.elig-form .btn { width: 100%; min-height: 54px; }
.elig-msg { min-height: 20px; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.elig-msg.ok { color: #52c76a; }
.elig-msg.err { color: #e8794b; }
.elig-note { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.elig-box .note { margin: 14px 0 0; }

/* ==========================================================================
   Tablette et plus
   ========================================================================== */
@media (min-width: 761px) {
  .pm-hero { padding: 48px 0 52px; }
  /* Mêmes proportions que le hero de l'accueil (1fr / 280px, centré). */
  .pm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; }
  .pm-hero-copy { min-width: 0; }
  .pm-hero h1 { font-size: clamp(40px, 5vw, 56px); max-width: 20ch; margin-top: 20px; }
  .pm-hero .lead { font-size: 16px; }
  .pm-hero .hero-badge { font-size: 11px; letter-spacing: .2em; padding: 7px 13px; }
  .pm-hero-action { width:max-content; min-width:360px; margin-top:26px; }
  .pm-hero-price { font-size:12px; }

  .section-head { margin: 0 auto 30px; text-align: center; }
  .section-head h2 { font-size: clamp(34px, 4vw, 48px); }

  .pm-carousel { margin-inline: 0; }
  .pm-track { gap: 24px; padding-inline: 0; scroll-padding-inline: 0; }
  .pm-shot { width: 254px; }
  .pm-arrow { display: inline-flex; }
  .pm-shot figcaption, .pm-shot-desktop figcaption { text-align: center; }
  .pm-shot-desktop { margin-top: 48px; }

  /* Image à gauche, texte à droite : le hero pose déjà texte-à-gauche /
     visuel-à-droite, et l'aperçu de l'espace est centré — on alterne. */
  .pm-mail-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 52px; align-items: center; }
  .pm-mail-shot { margin: 0; max-width: none; }

  .pm-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  /* La carte « exclusivités » barre toute la largeur et passe à l'horizontale :
     elle clôt la liste comme une bannière au lieu de laisser un vide à droite. */
  .pm-card.accent {
    grid-column: 1 / -1; padding: 22px 28px;
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; align-items: center;
  }
  .pm-card.accent .ico { grid-row: 1 / span 2; width: 32px; height: 32px; }
  .pm-card.accent h3 { grid-column: 2; margin: 0 0 4px; }
  .pm-card.accent p { grid-column: 2; }

  .pm-offer { max-width: 680px; margin-inline: auto; padding: 26px 30px; }
  /* Deux colonnes plutôt qu'un flex qui repliait le bouton sur une 2e ligne :
     le tarif à gauche, la décision à droite, quelle que soit la longueur du
     libellé (le FR et l'EN n'ont pas la même). */
  .pm-offer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
  .pm-offer-main { grid-column: 1; }
  .pm-offer-then { grid-column: 1; margin: 8px 0 0; }
  .pm-offer-cta { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
  .pm-offer-cta .btn { width: auto; margin-top: 0; white-space: nowrap; }
  .pm-offer-trust { text-align: center; max-width: 240px; }
  .pm-tags { margin-top: 20px; justify-content: center; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { padding: 26px; }
  .step-num { font-size: 40px; }

  .faq { max-width: 760px; margin: 0 auto; gap: 12px; }
  .faq summary { padding: 16px 0; }
  .final-cta .btn { width: auto; }
}

@media (min-width: 1000px) {
  .pm-grid { grid-template-columns: repeat(3, 1fr); }
  /* 4 × 262 + 3 × 24 = 1120 : les quatre captures tiennent pile dans .wrap,
     le carrousel se fige alors en simple rangée (le JS masque les commandes). */
  .pm-shot { width: 262px; }
}
