/* ============================================================
   Promo — landing, page promo /v/<jeton>, formulaire partenaire (poste promo)
   Jetons --ide-* uniquement (aucun hex). Tout est lisible au repos et sans JS ;
   animations CSS seules, coupées par prefers-reduced-motion.
   ============================================================ */

/* ---------- Sections ---------- */
.promo-section { margin-top: var(--ide-space-8); }
.promo-section__title { display: flex; align-items: center; gap: var(--ide-space-2); font-size: var(--ide-fs-h2); margin: 0 0 var(--ide-space-3); }
/* Pastille abricot devant les titres sans pictogramme (accent décoratif, direction C) */
.promo-section__title:not(:has(.ide-icon))::before {
  content: ""; flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ide-accent);
}
.promo-section__title > .ide-icon { flex: none; width: 2.25rem; height: 2.25rem; padding: .4rem; border-radius: 50%; color: var(--ide-primary); background: var(--ide-accent-soft); }
.promo-section__lead { margin: 0 0 var(--ide-space-4); max-width: 60ch; }
.promo-section__after { margin: var(--ide-space-4) 0 0; }
.promo-cta { display: flex; flex-wrap: wrap; gap: var(--ide-space-3); margin-top: var(--ide-space-5); }
.promo-cta--center { justify-content: center; }
.promo-links { display: flex; flex-wrap: wrap; gap: var(--ide-space-2) var(--ide-space-5); margin: 0; }

/* ---------- Héros ---------- */
.promo-hero {
  display: grid; gap: var(--ide-space-6); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .promo-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.promo-hero__title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height: var(--ide-lh-tight); margin: 0 0 var(--ide-space-3); overflow-wrap: break-word; }
.promo-hero__lead { font-size: var(--ide-fs-lg); color: var(--ide-muted); margin: 0; }
.promo-hero__visual { margin: 0; text-align: center; }
.promo-hero__caption { margin: var(--ide-space-4) auto 0; color: var(--ide-muted); font-size: 1rem; max-width: 36ch; }

/* Carte d'exemple (landing et /v/) */
.promo-card { position: relative; }
.promo-card .ide-card__band svg { width: 6cqw; height: 6cqw; min-width: 1rem; min-height: 1rem; }

/* Reflet : bande claire qui traverse la carte (couche découpée aux coins de la carte) */
.promo-shine {
  position: absolute; inset: 0; border-radius: var(--ide-radius-card); overflow: hidden; pointer-events: none;
}
.promo-shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--ide-surface) 55%, transparent), transparent);
  transform: translateX(0) skewX(-12deg);
  animation: promo-shine 7s var(--ide-ease) 1.6s infinite;
}

/* Page /v/ : la carte se pose sur le comptoir (une fois), puis flotte doucement */
.promo-arrive { animation: promo-arrive 700ms var(--ide-ease) both; }
.promo-float { animation: promo-counter-float 5s ease-in-out 900ms infinite alternate; }
.promo-float .ide-card { rotate: -2deg; }

/* ---------- Héros « Au comptoir » : la carte flotte, un reflet passe, puis ① ② et le résultat ----------
   Tout est en place et lisible au repos : seules des transformations (couche GPU) bougent ;
   les gestes apparaissent une fois, en CSS seul (aucune attente de JS). Hauteur fixe : aucun saut de mise en page. */
.promo-counter { position: relative; isolation: isolate; display: grid; gap: var(--ide-space-6); padding: var(--ide-space-4) 0 var(--ide-space-2); }
/* Illustration arrondie derrière la carte : grand disque abricot doux (le comptoir).
   Décor seulement (aucun texte posé dessus), contenu dans la scène : aucun défilement horizontal. */
.promo-counter::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; left: 50%; translate: -50% 0; width: min(78%, 20rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--ide-accent-soft);
}
.promo-counter__float {
  position: relative; width: min(84%, 22rem); margin: 0 auto var(--ide-space-5);
  animation: promo-counter-float 5s ease-in-out infinite alternate;
}
.promo-counter__float .ide-card { rotate: -4deg; }
/* QR posé sur le coin de la carte (noir sur blanc, zone de silence intacte) */
.promo-counter__qr {
  position: absolute; right: -9%; bottom: -16%; width: 31%; max-width: none; padding: .3rem;
  rotate: 5deg; box-shadow: var(--ide-shadow);
}
.promo-counter__flow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ide-space-2);
  width: min(100%, 26.25rem); margin: 0 auto;
}
.promo-counter__steps { display: contents; list-style: none; counter-reset: promo-step; }
.promo-counter__step, .promo-counter__result {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--ide-space-1);
  margin: 0; padding: var(--ide-space-4) var(--ide-space-1) var(--ide-space-3);
  border-radius: var(--ide-radius-lg); font-size: 1rem; font-weight: 600; line-height: var(--ide-lh-tight);
  text-align: center; overflow-wrap: anywhere;
  box-shadow: var(--ide-shadow-sm);
  animation: promo-pop 450ms var(--ide-ease-pop) both;
}
.promo-counter__step { counter-increment: promo-step; background: var(--ide-surface); border: 1px solid var(--ide-line); color: var(--ide-ink); }
/* Numéro ① ② en pastille abricot, texte encre (7,3:1), comme les gestes de la page */
.promo-counter__step::before {
  content: counter(promo-step); position: absolute; top: -.875rem; left: 50%; translate: -50% 0;
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--ide-accent); color: var(--ide-ink); box-shadow: 0 0 0 3px var(--ide-bg);
  font-family: var(--ide-font-num); font-size: .9375rem; font-weight: 800;
}
.promo-counter__step .ide-icon { width: 2.5rem; height: 2.5rem; padding: .45rem; border-radius: 50%; color: var(--ide-primary); background: var(--ide-primary-soft); }
/* Résultat : état VALIDE (couleur + pictogramme + mot), texte valid-ink sur fond doux (6,6:1) */
.promo-counter__result {
  background: var(--ide-valid-soft); border: 2px solid var(--ide-valid); color: var(--ide-valid-ink);
  font-family: var(--ide-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.promo-counter__result .ide-icon { width: 2.5rem; height: 2.5rem; padding: .35rem; border-radius: 50%; background: var(--ide-valid); color: var(--ide-on-status); stroke-width: 3; }
/* Ordre d'apparition (pas de style inline : classes .is-1 / .is-2 / .is-3) */
.promo-counter .is-1 { animation-delay: 500ms; }
.promo-counter .is-2 { animation-delay: 900ms; }
.promo-counter .is-3 { animation-delay: 1300ms; }

/* ---------- Confiance, FAQ ---------- */
.promo-gestures { max-width: 44rem; }
.promo-trust {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ide-space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.promo-trust li {
  display: flex; align-items: center; gap: var(--ide-space-3);
  padding: var(--ide-space-4); background: var(--ide-surface);
  border: 1px solid var(--ide-line); border-radius: var(--ide-radius-lg); box-shadow: var(--ide-shadow-sm);
}
.promo-trust .ide-icon { flex: none; width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 50%; color: var(--ide-primary); background: var(--ide-primary-soft); }
.promo-faq { display: grid; gap: var(--ide-space-2); max-width: 50rem; }
.promo-faq__item { background: var(--ide-surface); border: 1px solid var(--ide-line); border-radius: var(--ide-radius-lg); box-shadow: var(--ide-shadow-sm); }
.promo-faq__item summary {
  display: flex; align-items: center; gap: var(--ide-space-3); min-height: var(--ide-touch); padding: var(--ide-space-3) var(--ide-space-4);
  font-weight: 600; cursor: pointer; list-style: none;
}
.promo-faq__item summary::-webkit-details-marker { display: none; }
/* « + » / « − » dans une pastille ronde (sapin sur fond doux, 8,1:1) */
.promo-faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; margin-left: auto;
  border-radius: 50%; background: var(--ide-primary-soft); color: var(--ide-primary);
  font-family: var(--ide-font-num); font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.promo-faq__item[open] summary::after { content: "−"; }
.promo-faq__item p { margin: 0; padding: 0 var(--ide-space-4) var(--ide-space-4); }
.promo-final {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center; padding: var(--ide-space-7) var(--ide-space-4); background: var(--ide-primary-soft); border-radius: var(--ide-radius-xl);
}
/* Formes rondes de la marque, dans les coins (décor, jamais sous le texte : marges intérieures généreuses) */
.promo-final::before, .promo-final::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.promo-final::before { right: -3.5rem; bottom: -3.5rem; width: 8rem; height: 8rem; background: var(--ide-accent-soft); }
.promo-final::after { left: -2rem; top: -2rem; width: 5rem; height: 5rem; background: var(--ide-surface); opacity: .6; }
.promo-final .promo-section__title { justify-content: center; }
.promo-final .promo-section__lead { margin-inline: auto; }

/* ---------- Landing « one-page » : bandes pleine largeur, une nuance par section ----------
   Hero (blanc cassé + halo abricot) → Comment (brume) → Pour qui (blanc cassé) → Confiance (sapin)
   → FAQ (blanc cassé) → Appel final (abricot doux). En-têtes centrés, même rythme vertical partout. */
.promo-landing .ide-main { padding-block: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.promo-band { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); scroll-margin-top: var(--ide-space-4); }
.promo-band.promo-section { margin-top: 0; }
.promo-band--hero {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(48rem 28rem at 82% 35%, color-mix(in srgb, var(--ide-accent-soft) 75%, transparent), transparent 70%),
    var(--ide-bg);
}
.promo-band--brume { background: var(--ide-brume); }
.promo-band--plain { background: var(--ide-bg); }
.promo-band--sapin { background: var(--ide-primary); color: var(--ide-on-primary); }
.promo-band--abricot { background: var(--ide-accent-soft); }

/* En-tête de section : titre + accroche centrés, largeur de lecture confortable */
.promo-head { max-width: 44rem; margin: 0 auto var(--ide-space-6); text-align: center; }
.promo-head .promo-section__title { justify-content: center; margin: 0 0 var(--ide-space-2); }
.promo-head .promo-section__lead { margin: 0 auto; color: var(--ide-muted); }
.promo-band .promo-section__after { text-align: center; margin: var(--ide-space-5) auto 0; max-width: 44rem; }

/* Comment ça marche : 2 gestes centrés, reliés par une flèche sur grand écran */
.promo-band .promo-gestures { position: relative; max-width: 46rem; margin-inline: auto; }
.promo-band--brume .ide-gestures li { background: var(--ide-surface); }
@media (min-width: 48rem) {
  .promo-band .promo-gestures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ide-space-7); }
  .promo-band .promo-gestures::after {
    content: "→"; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    font-family: var(--ide-font-display); font-size: 1.75rem; font-weight: 800; color: var(--ide-primary); pointer-events: none;
  }
}

/* Pour qui : 3 portes de même largeur, centrées */
.promo-doors { max-width: 66rem; margin-inline: auto; }
@media (min-width: 62rem) { .promo-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Confiance : 4 points en 2 × 2 sur le fond sapin, cartes translucides, texte clair */
.promo-band--sapin .promo-section__title { color: var(--ide-on-primary); }
.promo-band--sapin .promo-section__title:not(:has(.ide-icon))::before { background: var(--ide-accent); }
.promo-band--sapin .promo-trust { max-width: 56rem; margin-inline: auto; }
@media (min-width: 48rem) { .promo-band--sapin .promo-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promo-band--sapin .promo-trust li {
  background: color-mix(in srgb, var(--ide-on-primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--ide-on-primary) 22%, transparent);
  color: var(--ide-on-primary); box-shadow: none;
}
.promo-band--sapin .promo-trust .ide-icon { color: var(--ide-ink); background: var(--ide-accent); }
.promo-band--sapin .ide-link { color: var(--ide-on-primary); }
.promo-band--sapin :focus-visible { outline-color: var(--ide-focus-on-dark); }

/* FAQ : colonne centrée */
.promo-band .promo-faq { margin-inline: auto; max-width: 46rem; }

/* Appel final : la bande abricot remplace le cadre arrondi ; formes rondes conservées dans les coins */
.promo-band.promo-final { border-radius: 0; padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; background: var(--ide-accent-soft); }
.promo-band.promo-final::after { background: var(--ide-bg); opacity: .7; }
.promo-band.promo-final::before { background: color-mix(in srgb, var(--ide-accent) 35%, var(--ide-accent-soft)); }

/* ---------- Page promo /v/<jeton> ---------- */
.promo-v { max-width: 52rem; text-align: center; }
.promo-v__card { position: relative; isolation: isolate; padding: var(--ide-space-4) 0 var(--ide-space-5); }
/* Disque doux derrière la carte d'exemple (décor, comme la scène de la landing) */
.promo-v__card::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%; translate: -50% 0;
  /* Diamètre = hauteur de la scène (jamais sous le h1, qui est peint avant ce contexte isolé) */
  height: min(100%, 22rem); width: auto; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--ide-accent-soft); pointer-events: none;
}
.promo-v__title { margin: var(--ide-space-4) 0 var(--ide-space-3); }
.promo-v__note { max-width: 36rem; margin-inline: auto; font-size: var(--ide-fs-lg); }
.promo-v .promo-section { margin-top: var(--ide-space-6); }
.promo-v .promo-section__title { justify-content: center; }
.promo-v__owner p { max-width: 40ch; margin-inline: auto; }
.promo-v__owner .promo-links { justify-content: center; margin-top: var(--ide-space-3); }
/* Lignes floutées (aucune donnée) sous le nom de la carte d'exemple */
.promo-card__lines { display: grid; gap: 1.5cqw; }
.promo-card__lines span { display: block; height: 2.6cqw; background: var(--ide-surface-2); border-radius: var(--ide-radius-pill); }
.promo-card__lines span + span { width: 60%; }
.ide-card.is-sample .promo-card__lines { filter: blur(6px); }

/* ---------- Formulaire partenaire ---------- */
.promo-form { max-width: 40rem; }
.promo-form__lead { margin: 0 0 var(--ide-space-5); }
.promo-form__privacy { display: flex; align-items: flex-start; gap: var(--ide-space-2); margin: 0 0 var(--ide-space-4); }
.promo-form__privacy .ide-icon { flex: none; color: var(--ide-primary); }

/* ---------- Révélation au défilement (JS) : part d'un état lisible, seul un léger décalage ---------- */
.promo-reveal-pending { transform: translateY(1rem); }
[data-reveal] { transition: transform var(--ide-dur-slow) var(--ide-ease); }

/* ---------- Images clés ---------- */
@keyframes promo-arrive { from { transform: translateY(1.25rem) scale(.96); } to { transform: none; } }
@keyframes promo-shine { 0% { transform: translateX(0) skewX(-12deg); } 30%, 100% { transform: translateX(450%) skewX(-12deg); } }
@keyframes promo-counter-float { from { transform: translateY(0); } to { transform: translateY(-.6rem); } }
@keyframes promo-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Mouvement réduit : tout est affiché tout de suite, immobile (état final). */
@media (prefers-reduced-motion: reduce) {
  .promo-arrive, .promo-float, .promo-shine::before,
  .promo-counter__float, .promo-counter__step, .promo-counter__result { animation: none !important; }
  .promo-shine { display: none; }
  .promo-reveal-pending { transform: none; }
  [data-reveal] { transition: none; }
}
@media (prefers-contrast: more) {
  .promo-counter::before, .promo-final::before, .promo-final::after, .promo-v__card::before { opacity: .35; }
}
@media (forced-colors: active) {
  .promo-counter__step, .promo-counter__result { border: 2px solid CanvasText; }
  .promo-shine, .promo-counter::before, .promo-final::before, .promo-final::after, .promo-v__card::before { display: none; }
}
@media print {
  .promo-arrive, .promo-float, .promo-counter__float, .promo-counter__step, .promo-counter__result { animation: none !important; }
  .promo-shine, .promo-counter, .promo-cta { display: none; }
}

/* ---------- Mobile : plus d'air (retour de Vincent sur iPhone, 02.10.2026) ---------- */
@media (max-width: 36rem) {
  .promo-band > .container-xl { padding-inline: 1.5rem; }
  .promo-band { padding-block: 3.5rem; }
  .promo-band--hero { padding-block: 2.5rem 3.5rem; }
  .promo-hero { gap: 3rem; }
  .promo-hero__title { font-size: 1.75rem; line-height: 1.2; margin-bottom: 1rem; }
  .promo-hero__lead { font-size: 1.0625rem; line-height: 1.55; }
  .promo-cta { flex-direction: column; gap: .875rem; margin-top: 2rem; }
  .promo-cta .ide-bigbtn { width: 100%; justify-content: center; }
  .promo-counter { gap: 2.25rem; padding-top: 1.5rem; }
  .promo-counter__float { width: min(78%, 20rem); margin-bottom: 1.5rem; }
  .promo-counter__flow { gap: .75rem; width: 100%; }
  .promo-hero__caption { margin-top: 1.5rem; }
  .promo-head { margin-bottom: 2.25rem; }
  .promo-band .promo-gestures, .promo-doors, .promo-band--sapin .promo-trust { gap: 1rem; }
  .promo-band .promo-section__after { margin-top: 2rem; }
}
@media (max-width: 36rem) {
  .promo-landing .ide-header__inner, .promo-landing .ide-footer > .container-xl { padding-inline: 1.5rem; }
}

/* Gratuit pour les commerces : 3 engagements « Aucun … » en cartes blanches sur la brume */
.promo-free {
  list-style: none; margin: 0 auto; padding: 0; max-width: 62rem;
  display: grid; gap: var(--ide-space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.promo-free li {
  display: flex; flex-direction: column; align-items: center; gap: var(--ide-space-2); text-align: center;
  padding: var(--ide-space-5) var(--ide-space-4); background: var(--ide-surface);
  border: 1px solid var(--ide-line); border-radius: var(--ide-radius-lg); box-shadow: var(--ide-shadow-sm);
}
.promo-free .ide-icon { width: 3rem; height: 3rem; padding: .65rem; border-radius: 50%; color: var(--ide-valid-ink); background: var(--ide-valid-soft); }
.promo-free strong { font-family: var(--ide-font-display); font-size: var(--ide-fs-lg); line-height: 1.2; }
.promo-free span { color: var(--ide-muted); }
@media (forced-colors: active) { .promo-free li { border: 2px solid CanvasText; } }
/* Titre centré sur plusieurs lignes (mobile) : la pastille suit le texte au lieu de rester au bord */
.promo-head .promo-section__title { display: block; text-wrap: balance; }
.promo-head .promo-section__title:not(:has(.ide-icon))::before { display: inline-block; margin-right: var(--ide-space-2); vertical-align: .15em; }
