/* ==========================================================================
   Page de parrainage : tunnel de vente (rp-*) — 3 modèles x 8 couleurs + éditeur
   Mobile d'abord. Les mises en page utilisent des requêtes de conteneur :
   l'aperçu téléphone de l'éditeur s'affiche exactement comme sur un mobile.
   ========================================================================== */
.rp-c-blue { --rp1: #0038a0; --rp2: #1f6fe8; --rp-ink: #0047bb; }
.rp-c-orange { --rp1: #8f3406; --rp2: #e26a1d; --rp-ink: #b4480a; }
.rp-c-teal { --rp1: #0b4a45; --rp2: #0d9488; --rp-ink: #0f766e; }
.rp-c-violet { --rp1: #33166e; --rp2: #7c3aed; --rp-ink: #6d28d9; }
.rp-c-rose { --rp1: #721130; --rp2: #e11d48; --rp-ink: #be123c; }
.rp-c-green { --rp1: #113b21; --rp2: #16a34a; --rp-ink: #15803d; }
.rp-c-gold { --rp1: #652c09; --rp2: #d97706; --rp-ink: #b45309; }
.rp-c-night { --rp1: #0b1324; --rp2: #34466d; --rp-ink: #334155; }
.rp { --rp-accent: var(--rp-ink); --rp-soft: color-mix(in srgb, var(--rp2) 9%, var(--surface)); --rp-line: color-mix(in srgb, var(--rp2) 24%, var(--border)); container-type: inline-size; background: var(--bg); overflow-x: clip; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rp { --rp-accent: color-mix(in srgb, var(--rp2) 55%, #ffffff); } }
:root[data-theme="dark"] .rp { --rp-accent: color-mix(in srgb, var(--rp2) 55%, #ffffff); }
.swatch { background: linear-gradient(135deg, var(--rp1, #0038a0), var(--rp2, #1f6fe8)); }
.rp .container { padding-left: 16px; padding-right: 16px; }
@container (min-width: 700px) { .rp .container { padding-left: 32px; padding-right: 32px; } }

/* Boutons aux couleurs du parrain */
.rp .btn-primary, .rp-cta { --btn-bg: var(--rp2); --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 10px 24px -12px var(--rp2); }
.rp .btn-primary:hover, .rp-cta:hover { --btn-bg: var(--rp1); color: #fff; border-color: transparent; }
.rp-cta .icon { transition: transform var(--dur) var(--ease); }
.rp-cta:hover .icon { transform: translateX(3px); }
.rp-btn-wa { --btn-bg: #1faa53; --btn-fg: #fff; --btn-bd: transparent; }
.rp-btn-wa:hover { --btn-bg: #178a43; color: #fff; border-color: transparent; }
.rp-center { display: flex; justify-content: center; margin-top: 24px; }
.rp-center .btn, .rp-final .rp-cta { max-width: 100%; white-space: normal; text-align: center; }

/* ---------- Barre d'invitation ---------- */
.rp-invite { background: var(--rp1); color: #fff; font-size: 13.5px; }
.rp-invite-inner { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.rp-invite-inner > .grow { min-width: 0; line-height: 1.35; }
.rp-invite-logo { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--rp1); display: grid; place-items: center; overflow: hidden; flex: none; font: 800 11px/1 var(--font-head); }
.rp-invite-logo img { width: 100%; height: 100%; object-fit: cover; }
.rp-invite-code { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-weight: 700; letter-spacing: .06em; font-size: 12.5px; flex: none; }

/* ---------- En-tête : promesse et preuve ---------- */
.rp-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.rp-hero-bg { position: absolute; inset: 0; z-index: -1; background-color: var(--rp1); background-image: linear-gradient(135deg, var(--rp1), var(--rp2)); background-size: cover; background-position: center; }
.rp-l-gradient .rp-hero-bg { background-image: radial-gradient(520px 320px at 92% 0%, rgba(255, 255, 255, .2), transparent 62%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 26px), linear-gradient(135deg, var(--rp1), var(--rp2)) !important; }
.rp-l-photo.has-cover .rp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--rp1) 94%, transparent) 0%, color-mix(in srgb, var(--rp1) 80%, transparent) 55%, color-mix(in srgb, var(--rp1) 40%, transparent) 100%); }
.rp-hero-inner { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 36px; }
@container (min-width: 960px) { .rp-hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; } }

.rp-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.rp-title { font-size: clamp(29px, 7.6cqi, 56px); font-weight: 800; letter-spacing: -.022em; line-height: 1.06; margin-top: 10px; text-wrap: balance; overflow-wrap: anywhere; }
@container (min-width: 960px) { .rp-title { font-size: clamp(40px, 4.6cqi, 58px); } }
.rp-desc { margin-top: 14px; max-width: 58ch; opacity: .92; white-space: pre-line; font-size: 16.5px; }
.rp-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rp-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.rp-points .icon { color: #9ff0c0; margin-top: 1px; flex: none; }
.rp-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 20px; }
.rp-price { font: 800 clamp(28px, 6cqi, 38px)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-price-note { font-size: 14px; opacity: .88; }
.rp-actions { display: grid; gap: 10px; margin-top: 18px; }
.rp-actions .btn { width: 100%; }
@container (min-width: 560px) { .rp-actions { display: flex; flex-wrap: wrap; } .rp-actions .btn { width: auto; } }
.rp .rp-cta-main { --btn-bg: #fff; --btn-fg: var(--rp1); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); font-size: 16.5px; min-height: 56px; }
.rp .rp-cta-main:hover { --btn-bg: #eef3ff; color: var(--rp1); }
.rp-micro { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; opacity: .88; }
.rp-micro .icon { margin-top: 1px; flex: none; }
.rp-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 20px; font-size: 14px; }
.rp-proof strong { font-weight: 800; }
.rp-faces { display: inline-flex; }
.rp-faces:empty { display: none; }
.rp-faces .avatar { box-shadow: 0 0 0 2px var(--rp1); }
.rp-faces .avatar + .avatar { margin-left: -6px; }

/* Carte d'offre du parrain */
.rp-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; min-width: 0; }
.rp-card-top { display: flex; align-items: center; gap: 12px; }
/* Tablette : la carte passe sur deux colonnes pour ne pas s'étirer */
@container (min-width: 620px) and (max-width: 959px) {
  .rp-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top top" "list price" "list cta" "list social"; column-gap: 28px; align-items: start; }
  .rp-card-top { grid-area: top; } .rp-card-list { grid-area: list; } .rp-card-price { grid-area: price; } .rp-cta-card { grid-area: cta; } .rp-social { grid-area: social; }
}
.rp-logo { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--rp1), var(--rp2)); color: #fff; display: grid; place-items: center; overflow: hidden; flex: none; font: 800 22px/1 var(--font-head); }
.rp-logo img, .rp-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.rp-brand { display: block; font: 700 18px/1.25 var(--font-head); overflow-wrap: anywhere; }
.rp-sponsor { display: block; font-size: 13px; color: var(--text-3); }
.rp-card-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rp-card-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 14.5px; }
.rp-card-list li:first-child { border-top: 0; }
.rp-card-list strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-accent { color: var(--rp-accent); }
.rp-card-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--rp-soft); font-weight: 600; }
.rp-card-price strong { font: 800 26px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.rp-social { display: flex; gap: 8px; justify-content: center; }
.rp-social:not(:has(a:not([hidden]))) { display: none; }
.rp-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.rp-social a:hover { color: var(--rp-accent); }

/* Modèle « clair » */
.rp-l-split .rp-hero { color: var(--text); border-bottom: 1px solid var(--border); }
.rp-l-split .rp-hero-bg { background: var(--surface) !important; }
.rp-l-split.has-cover .rp-hero::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 48%; background: var(--rp-cover) center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); opacity: .85; }
@container (max-width: 959px) { .rp-l-split.has-cover .rp-hero::after { width: 100%; height: 180px; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent); mask-image: linear-gradient(180deg, #000 10%, transparent); opacity: .22; } }
.rp-l-split .rp-eyebrow { color: var(--rp-accent); opacity: 1; }
.rp-l-split .rp-desc, .rp-l-split .rp-price-note, .rp-l-split .rp-micro { color: var(--text-2); opacity: 1; }
.rp-l-split .rp-points .icon { color: var(--rp-accent); }
.rp.rp-l-split .rp-hero .rp-cta-main { --btn-bg: var(--rp2); --btn-fg: #fff; box-shadow: 0 14px 30px -14px var(--rp2); }
.rp.rp-l-split .rp-hero .rp-cta-main:hover { --btn-bg: var(--rp1); color: #fff; }
.rp-l-split .rp-faces .avatar { box-shadow: 0 0 0 2px var(--surface); }
.rp-l-split .rp-card { box-shadow: var(--shadow); background: var(--surface-2); }

/* ---------- Moyens de paiement ---------- */
.rp-pay { background: var(--surface); border-bottom: 1px solid var(--border); }
.rp-pay-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 14px; padding-bottom: 14px; }
.rp-pay-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.rp-pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-pay-list span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--border); }
.rp-pay-list i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 8.5px/1 var(--font-head); font-style: normal; }

/* ---------- Sections ---------- */
.rp-section { margin-top: 56px; scroll-margin-top: 16px; }
@container (min-width: 700px) { .rp-section { margin-top: 84px; } }
.rp-head { max-width: 680px; margin-bottom: 24px; }
.rp-head h2 { font-size: clamp(24px, 5.2cqi, 36px); font-weight: 800; letter-spacing: -.018em; line-height: 1.15; text-wrap: balance; }
@container (min-width: 960px) { .rp-head h2 { font-size: 38px; } }
.rp-head p:not(.rp-kicker) { color: var(--text-2); margin-top: 10px; font-size: 16px; }
.rp-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-accent); margin-bottom: 8px; }
.rp-kicker-light { color: #fff; opacity: .85; }

/* Problème / solution */
.rp-duo { display: grid; gap: 14px; }
@container (min-width: 760px) { .rp-duo { grid-template-columns: 1fr 1fr; gap: 20px; } }
.rp-before, .rp-after { border-radius: 20px; padding: 20px; border: 1px solid var(--border); background: var(--surface); }
@container (min-width: 760px) { .rp-before, .rp-after { padding: 28px; } }
.rp-after { background: var(--rp-soft); border-color: var(--rp-line); }
.rp-duo h3 { font-size: 17px; margin-bottom: 14px; }
.rp-duo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rp-duo li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.rp-duo li .icon { margin-top: 1px; flex: none; }
.rp-before .icon { color: var(--danger); }
.rp-after .icon { color: var(--rp-accent); }

/* Contenu de l'offre */
.rp-stack { display: grid; gap: 12px; }
@container (min-width: 700px) { .rp-stack { grid-template-columns: 1fr 1fr; } }
@container (min-width: 1040px) { .rp-stack { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.rp-stack-item { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.rp-stack-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--rp-soft); color: var(--rp-accent); }
.rp-stack-item strong { display: block; font-size: 15.5px; }
.rp-stack-item p { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.rp-stack-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; margin-top: 20px; padding: 18px; border-radius: 18px; border: 2px dashed var(--rp-line); text-align: center; }
.rp-stack-total > span:first-child { font-weight: 600; color: var(--text-2); }
.rp-stack-total strong { font: 800 32px/1 var(--font-head); color: var(--rp-accent); font-variant-numeric: tabular-nums; }
.rp-stack-daily { flex-basis: 100%; font-size: 13.5px; color: var(--text-3); }

/* Catalogue */
.rp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rp-cat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.rp-cat em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rp-cat-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.rp-cat-ic .icon { width: 13px; height: 13px; stroke: #fff; }
.rp-courses { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 620px) { .rp-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 980px) { .rp-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.rp-course { display: flex; min-width: 0; }
.rp-course > * { width: 100%; }
.rp-courses:not(.is-open) .rp-more { display: none; }
/* Sur téléphone : 3 formations avant « voir tout », catégories défilantes sur une ligne */
@container (max-width: 619px) {
  .rp-courses:not(.is-open) .rp-course:nth-child(n+4) { display: none; }
  .rp-cats { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .rp-cats::-webkit-scrollbar { display: none; }
  .rp-cat { flex: none; scroll-snap-align: start; }
}

/* Rentabilité */
.rp-roi { display: grid; gap: 24px; padding: 26px 20px; border-radius: 26px; color: #fff; background: radial-gradient(420px 240px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--rp1), var(--rp2)); }
@container (min-width: 860px) { .rp-roi { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 44px; gap: 40px; } }
.rp-roi h2 { font-size: clamp(24px, 5.2cqi, 36px); font-weight: 800; letter-spacing: -.018em; line-height: 1.15; text-wrap: balance; }
.rp-roi > div > p:not(.rp-kicker) { margin-top: 12px; opacity: .92; font-size: 16px; }
.rp-calc { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; padding: 20px; display: grid; gap: 10px; }
.rp-calc-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.rp-calc .range { accent-color: #fff; width: 100%; }
.rp-calc-out { display: grid; gap: 2px; }
.rp-calc-out span { font-size: 14px; opacity: .9; }
.rp-calc-out strong { font: 800 clamp(30px, 6cqi, 42px)/1.05 var(--font-head); letter-spacing: -.02em; }
.rp-calc-note { font-size: 12.5px; opacity: .8; }

/* Mot du parrain */
.rp-message figure { margin: 0; padding: 26px 20px 20px; border-radius: 22px; position: relative; background: var(--rp-soft); border: 1px solid var(--rp-line); }
@container (min-width: 700px) { .rp-message figure { padding: 34px 36px 26px; } }
.rp-quote-mark { display: block; height: 34px; font: 800 72px/1 var(--font-head); color: var(--rp-accent); opacity: .45; }
.rp-message blockquote { margin: 0; font: 600 clamp(17px, 3.4cqi, 22px)/1.5 var(--font-head); white-space: pre-line; color: var(--text); }
.rp-message figcaption { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
@container (min-width: 700px) { .rp-quote-mark { position: absolute; left: 26px; top: 30px; } .rp-message blockquote, .rp-message figcaption { margin-left: 44px; } }
.rp-mini-logo { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--rp1), var(--rp2)); color: #fff; display: grid; place-items: center; overflow: hidden; font: 700 15px/1 var(--font-head); flex: none; }
.rp-role { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; }

/* Témoignages */
.rp-testis { display: grid; gap: 14px; }
@container (min-width: 760px) { .rp-testis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.rp-testi { margin: 0; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 12px; align-content: start; }
.rp-testi blockquote { margin: 0; font-size: 15px; }
.rp-testi figcaption { display: flex; gap: 10px; align-items: center; }

/* Étapes */
.rp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@container (min-width: 760px) { .rp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.rp-steps li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.rp-steps p { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.rp-step-n { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--rp1), var(--rp2)); color: #fff; font: 700 15px/1 var(--font-head); }

/* Levée du risque */
.rp-risk { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
@container (min-width: 760px) { .rp-risk { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 28px 32px; gap: 24px; } }
.rp-risk-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.rp-risk-ic .icon { width: 28px; height: 28px; }
.rp-risk h2 { font-size: 20px; }
.rp-risk p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.rp-risk .btn { white-space: normal; text-align: center; }

/* FAQ */
.rp-faq { max-width: 860px; }
.rp-faq summary { font-size: 16px; }

/* Appel final */
.rp-final { margin-bottom: 40px; }
.rp-final-card { border-radius: 26px; padding: 28px 20px; display: grid; gap: 20px; align-items: center; color: #fff; background: radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--rp1), var(--rp2)); }
@container (min-width: 760px) { .rp-final-card { grid-template-columns: minmax(0, 1fr) auto; padding: 44px; } }
.rp-final-card h2 { font-size: clamp(24px, 5cqi, 34px); font-weight: 800; letter-spacing: -.018em; line-height: 1.15; text-wrap: balance; }
.rp-final-card p { opacity: .92; margin-top: 8px; }

/* Barre d'action collante (mobile et tablette) */
.rp-sticky { position: sticky; bottom: 0; z-index: 30; margin-top: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--border); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.rp-sticky.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.rp-sticky-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.rp-sticky-price { display: block; font: 800 18px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.rp-sticky-note { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-cta-sticky { min-height: 48px; padding: 10px 18px; white-space: nowrap; }
@container (min-width: 960px) { .rp-sticky { display: none; } }

/* Notifications d'activité réelle */
.rp-pop { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 360px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 42px 12px 12px; border-radius: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.4; animation: rp-pop-in .35s var(--ease); }
@media (min-width: 960px) { .rp-pop { left: 24px; right: auto; bottom: 24px; margin: 0; } }
.rp-pop.out { animation: rp-pop-out .25s ease-in forwards; }
.rp-pop-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--success-soft); color: var(--success); }
.rp-pop strong { font-weight: 700; }
.rp-pop small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.rp-pop-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); cursor: pointer; }
.rp-pop-x:hover { background: var(--surface-2); color: var(--text); }
@keyframes rp-pop-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rp-pop-out { to { opacity: 0; transform: translateY(8px); } }

/* Pied de page de la page publique : langue, thème, connexion */
.rp-foot { display: grid; justify-items: center; gap: 8px; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.rp-foot-prefs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }

/* Aperçu dans le cadre téléphone */
.pv-frame.is-mobile .rp-hero-inner { padding-top: 26px; padding-bottom: 30px; }

/* ---------- Éditeur de la page ---------- */
.ed-group { margin: 0; min-width: 0; display: grid; gap: 14px; }
.ed-legend { float: left; width: 100%; padding: 0; font: 700 17px/1.3 var(--font-head); }
.ed-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ed-layout { display: grid; gap: 3px; padding: 10px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 14px; }
.ed-layout.is-checked { border-color: var(--primary); background: var(--primary-soft); }
.ed-thumb { display: block; height: 58px; border-radius: 9px; position: relative; overflow: hidden; margin-bottom: 6px; }
.ed-thumb i, .ed-thumb b { position: absolute; left: 9px; border-radius: 4px; background: rgba(255, 255, 255, .92); }
.ed-thumb i { top: 11px; width: 42%; height: 8px; }
.ed-thumb b { top: 26px; width: 30%; height: 5px; opacity: .7; }
.ed-thumb b + b { top: 36px; width: 20%; }
.ed-thumb-gradient { background: linear-gradient(135deg, #0038a0, #1f6fe8); }
.ed-thumb-photo { background: linear-gradient(100deg, rgba(0, 56, 160, .95), rgba(0, 56, 160, .35)), repeating-linear-gradient(45deg, #93a9c9 0 7px, #7890b6 7px 14px); }
.ed-thumb-split { background: linear-gradient(90deg, var(--surface-2) 0 58%, #1f6fe8 58%); border: 1px solid var(--border); }
.ed-thumb-split i, .ed-thumb-split b { background: var(--text-3); }
.ed-cover { width: 128px; height: 72px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--text-3); background: var(--surface-3) center / cover no-repeat; border: 1px solid var(--border); }
.ed-save { position: sticky; bottom: calc(var(--bottomnav-h) + 12px); z-index: 5; padding: 12px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--border); }
@media (min-width: 1024px) { .ed-save { bottom: 16px; } }
@media (max-width: 520px) { .ed-layouts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rp-pop, .rp-pop.out { animation: none; } .rp-sticky, .rp-cta .icon { transition: none; } }
@container (min-width: 620px) { .rp-mobile-only { display: none; } }

/* ---------- Tunnel de campagne (lancement) ---------- */
.cp-bar { background: linear-gradient(90deg, #b4480a, #e26a1d); color: #fff; font-size: 14px; }
.cp-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; min-height: 48px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.cp-bar-inner .icon { vertical-align: -2px; }
.cp-bar-timer { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.countdown-sm { gap: 4px; }
.countdown-sm div { min-width: 38px; padding: 3px 5px; border-radius: 8px; }
.countdown-sm b { font-size: 15px; line-height: 1.1; }
.countdown-sm span { font-size: 9px; }
.cp-logo { display: inline-flex; align-items: center; padding: 8px 14px; margin-bottom: 18px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.cp-logo img { height: 34px; width: auto; }
.cp-old { font: 700 clamp(18px, 4cqi, 24px)/1 var(--font-head); opacity: .7; text-decoration: line-through; text-decoration-thickness: 2px; }
.cp-old-sm { font-weight: 600; opacity: .6; text-decoration: line-through; margin-right: 6px; font-size: .8em; }
.cp-save { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: #fff; color: #b4480a; font-size: 13px; font-weight: 800; }
.cp-seats { margin-top: 16px; max-width: 440px; display: grid; gap: 8px; }
.cp-seats-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.cp-seats-top span { opacity: .85; }
.cp-seats-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.cp-seats-bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #fff, #ffd7b8); }
.cp-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .18); }
.cp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-card-logo { background: #fff; }
.cp-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.rp-final-card .countdown { flex-wrap: wrap; }
