/* =========================================================================
   Kiclic — Page publique d'un Rali (kiclic.com/rali)
   Responsive : mobile (vertical) ↔ desktop (paysage). Dark par défaut + light.
   S'appuie sur colors_and_type.css (tokens + Rubik) — PAS sur shell.css.
   ========================================================================= */

@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip;
}

/* ---------- Light theme (explicit toggle / resolved from OS) ---------- */
html[data-theme="light"] {
  --bg: #F4F4F7; --bg-elev-1: #FFFFFF; --bg-elev-2: #F7F7FA;
  --border: #E5E5EA; --border-soft: rgba(0,0,0,0.08);
  --surface-tint: rgba(0,0,0,0.05); --surface-tint-light: rgba(0,0,0,0.03); --surface-tint-strong: rgba(0,0,0,0.07);
  --fg: #0E0E12; --fg-secondary: #4B5563; --fg-muted: #8A93A2;
  --card-shadow: 0 8px 30px rgba(20,20,40,0.08);
}
html { --card-shadow: 0 18px 50px rgba(0,0,0,0.45); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Ambient backdrop ---------- */
.rp-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.rp-bg .blob { position: absolute; border-radius: 50%; }
.rp-bg .b1 { width: 620px; height: 620px; background: radial-gradient(circle, #5B8DEF 0%, transparent 70%); top: -300px; left: 50%; transform: translateX(-60%); opacity: 0.10; }
.rp-bg .b2 { width: 680px; height: 680px; background: radial-gradient(circle, #E94E8B 0%, transparent 70%); top: 30%; left: 50%; transform: translateX(10%); opacity: 0.07; }
.rp-bg .b3 { width: 520px; height: 520px; background: radial-gradient(circle, #B968C7 0%, transparent 70%); bottom: -260px; left: 36%; opacity: 0.06; }
html[data-theme="light"] .rp-bg .blob { opacity: 0.06 !important; }

/* ===================== Top navigation ===================== */
.rp-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-soft);
}
.rp-wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: -0.03em;
  background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.rp-nav-right { display: flex; align-items: center; gap: 10px; }

/* Segmented theme toggle */
.rp-seg { display: inline-flex; gap: 3px; padding: 4px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); border-radius: 9999px; }
.rp-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 9999px; background: transparent; color: var(--fg-muted); font-size: 12.5px; font-weight: 600; transition: color var(--t-fast), background var(--t-fast); }
.rp-seg button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.rp-seg button:hover { color: var(--fg); }
.rp-seg button.on { color: var(--fg); background: var(--bg-elev-2); box-shadow: 0 1px 2px rgba(0,0,0,0.18); }
html[data-theme="light"] .rp-seg button.on { box-shadow: 0 1px 3px rgba(20,20,40,0.10); }

/* "Aperçu : visiteur / connecté" preview switch (demo aid for the product owner) */
.rp-preview { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 9999px; background: var(--bg-elev-1); border: 1px dashed var(--border); }
.rp-preview .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); }
.rp-preview .opts { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9999px; background: var(--bg-elev-2); }
.rp-preview button { border: 0; background: transparent; color: var(--fg-muted); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 9999px; }
.rp-preview button.on { color: #fff; background: var(--k-gradient-h); }

.rp-nav-login { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9999px; border: 1px solid var(--border); background: var(--bg-elev-1); color: var(--fg); font-size: 13.5px; font-weight: 600; transition: border-color var(--t-fast), transform var(--t-fast); }
.rp-nav-login:hover { border-color: rgba(185,104,199,0.4); transform: translateY(-1px); }
.rp-nav-login svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ===================== Shell ===================== */
.rp-shell { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 56px) 140px; }

/* ===================== HERO ===================== */
.rp-hero {
  display: grid;
  grid-template-columns: minmax(330px, 380px) minmax(0, 1fr) minmax(320px, 360px);
  grid-template-areas: "visual main rail";
  gap: clamp(22px, 2.6vw, 44px);
  align-items: start;
}
.rp-hero-visual { grid-area: visual; }
.rp-hero-main { grid-area: main; }
.rp-hero-rail { grid-area: rail; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

/* ---- Left : visual stack ---- */
.rp-hero-visual { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

/* Canonical Rali card (story 4:5) */
.rp-card {
  position: relative; aspect-ratio: 4/5; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(150deg, #241036 0%, #0D0D1A 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
}
.rp-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,0.7); }
.rp-card image-slot::part(frame) {
  background:
    radial-gradient(60% 60% at 30% 24%, rgba(91,141,239,0.40), transparent 70%),
    radial-gradient(60% 60% at 74% 78%, rgba(233,78,139,0.40), transparent 70%),
    linear-gradient(150deg, #241036 0%, #0D0D1A 100%);
}
.rp-card .vig { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 24%, transparent 50%, rgba(0,0,0,0.82) 100%); }
.rp-card .c-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 3; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.rp-card .c-brand { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -0.03em; background: linear-gradient(90deg, #7FA8F5, #CB8FD8, #F083B0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rp-card .c-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: rgba(10,10,12,0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; }
.rp-card .c-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.rp-card .c-status.soon .dot { background: #F5A623; box-shadow: 0 0 8px #F5A623; }
.rp-card .c-bot { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; pointer-events: none; }
.rp-card .c-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.08; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.7); letter-spacing: -0.01em; }
.rp-card .c-meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.9); text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.rp-card .c-meta .d { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.rp-card .c-ticket { position: absolute; right: 16px; bottom: 78px; z-index: 3; text-align: center; padding: 9px 14px; border-radius: 16px; background: rgba(10,10,12,0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18); }
.rp-card .c-ticket .n { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1; background: linear-gradient(135deg, #FFFFFF, #FFCCE1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rp-card .c-ticket .u { font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 3px; }

/* ---- Bridge : ShotCode + QR ---- */
.rp-bridge {
  border-radius: 22px; padding: 2px;
  background: linear-gradient(var(--bg-elev-1), var(--bg-elev-1)) padding-box, linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 4px rgba(185,104,199,0.06), var(--card-shadow);
}
.rp-bridge .inner { background: var(--bg-elev-1); border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.rp-qr { width: 104px; height: 104px; flex: 0 0 auto; border-radius: 14px; background: #fff; padding: 9px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.rp-qr img, .rp-qr canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.rp-qr .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(120,120,140,0.25); border-top-color: var(--k-pink); animation: rpSpin .8s linear infinite; }
@keyframes rpSpin { to { transform: rotate(360deg); } }
.rp-bridge .side { flex: 1 1 auto; min-width: 0; }
.rp-bridge .lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.rp-bridge .code-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.rp-bridge .code { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rp-bridge .copy { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg-secondary); display: inline-flex; align-items: center; justify-content: center; transition: color var(--t-fast), border-color var(--t-fast); }
.rp-bridge .copy:hover { color: var(--fg); border-color: rgba(185,104,199,0.4); }
.rp-bridge .copy svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.rp-bridge .hint { margin-top: 7px; font-size: 11.5px; color: var(--fg-secondary); line-height: 1.35; }
.rp-bridge .hint b { color: var(--fg); font-weight: 600; }

/* ---- Share row ---- */
.rp-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rp-share button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 6px; border-radius: 14px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-size: 11px; font-weight: 600; transition: transform var(--t-fast), border-color var(--t-fast); }
.rp-share button:hover { transform: translateY(-2px); border-color: rgba(185,104,199,0.3); color: var(--fg); }
.rp-share .gi { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; }
.rp-share .gi svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.rp-share .wa .gi { background: #25D366; } .rp-share .ig .gi { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.rp-share .x .gi { background: #0F1419; } .rp-share .cp .gi { background: linear-gradient(135deg, #5B8DEF, #B968C7); }
html[data-theme="light"] .rp-share .x .gi { background: #0F1419; }

/* ---- Right : essentials ---- */
.rp-hero-main { display: flex; flex-direction: column; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 9999px; font-size: 12.5px; font-weight: 700; }
.rp-chip svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.rp-chip.soon { background: rgba(245,166,35,0.14); color: #F5A623; border: 1px solid rgba(245,166,35,0.3); }
.rp-chip.live { background: rgba(16,185,129,0.14); color: #10B981; border: 1px solid rgba(16,185,129,0.32); }
.rp-chip.cat { background: var(--surface-tint-light); color: var(--fg-secondary); border: 1px solid var(--border-soft); }
.rp-chip.geo { background: rgba(185,104,199,0.14); color: var(--k-violet); border: 1px solid rgba(185,104,199,0.3); }
html[data-theme="light"] .rp-chip.geo { color: #8B3FA0; }
.rp-chip.prize { background: rgba(16,185,129,0.14); color: #10B981; border: 1px solid rgba(16,185,129,0.32); max-width: 260px; }
.rp-chip.prize svg { flex: 0 0 auto; }
.rp-chip.prize { overflow: hidden; }
html[data-theme="light"] .rp-chip.prize { color: #0F9D6E; }

.rp-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.03; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }

/* Creator inline */
.rp-creator-inline { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.rp-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B); }
.rp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rp-creator-inline .ci-txt { min-width: 0; }
.rp-creator-inline .ci-by { font-size: 11px; color: var(--fg-muted); font-weight: 600; letter-spacing: 0.02em; }
.rp-creator-inline .ci-name { font-size: 15px; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 6px; }
.rp-creator-inline .ci-name svg { width: 15px; height: 15px; stroke: var(--k-blue); fill: var(--k-blue); }
.rp-follow { margin-left: auto; padding: 8px 18px; border-radius: 9999px; background: var(--bg-elev-1); border: 1.5px solid transparent; background: linear-gradient(var(--bg-elev-1), var(--bg-elev-1)) padding-box, var(--k-gradient-h) border-box; color: var(--fg); font-size: 13px; font-weight: 700; transition: transform var(--t-fast); }
.rp-follow:hover { transform: translateY(-1px); }
.rp-follow.on { color: var(--fg-muted); }

/* Social proof + prize */
.rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.rp-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); }
.rp-stat .si { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.rp-stat .si svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; }
.rp-stat.regs .si { background: rgba(91,141,239,0.14); color: #5B8DEF; }
.rp-stat.prize .si { background: rgba(233,78,139,0.14); color: #E94E8B; }
.rp-stat .sv { min-width: 0; }
.rp-stat .sv .n { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; }
.rp-stat .sv .l { font-size: 11.5px; color: var(--fg-muted); font-weight: 600; margin-top: 4px; }
.rp-avstack { display: flex; align-items: center; margin-top: 12px; gap: 10px; }
.rp-avstack .pile { display: flex; }
.rp-avstack .pile span { width: 30px; height: 30px; border-radius: 50%; margin-left: -9px; border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; overflow: hidden; }
.rp-avstack .pile span:first-child { margin-left: 0; }
.rp-avstack .pile span img { width: 100%; height: 100%; object-fit: cover; }
.rp-avstack .txt { font-size: 13px; color: var(--fg-secondary); }
.rp-avstack .txt b { color: var(--fg); font-weight: 700; }

/* Date row */
.rp-daterow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); }
.rp-daterow .di { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; background: rgba(185,104,199,0.14); color: var(--k-violet); display: flex; align-items: center; justify-content: center; }
.rp-daterow .di svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.rp-daterow .dt { flex: 1 1 auto; min-width: 0; }
.rp-daterow .dt .l { font-size: 11px; color: var(--fg-muted); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rp-daterow .dt .v { font-size: 15.5px; font-weight: 700; color: var(--fg); margin-top: 2px; }
.rp-cal { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: border-color var(--t-fast); }
.rp-cal:hover { border-color: rgba(185,104,199,0.4); }
.rp-cal svg { width: 15px; height: 15px; stroke: var(--k-violet); stroke-width: 2; fill: none; }

/* ---- Countdown ---- */
.rp-count { padding: 18px 18px 16px; border-radius: 20px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); }
.rp-count .ch { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 14px; }
.rp-count .ch svg { width: 14px; height: 14px; stroke: var(--k-pink); stroke-width: 2; fill: none; }
.rp-count .cells { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.rp-cell { flex: 1 1 0; text-align: center; }
.rp-cell .num {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 3.4vw, 40px); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--fg);
}
.rp-cell.sec .num { color: var(--k-pink); }
.rp-cell .u { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-top: 8px; }
.rp-sep { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1; color: var(--border); margin-top: 2px; }
html[data-theme="light"] .rp-sep { color: #C7CBD4; }

/* ---- CTAs ---- */
.rp-cta-row { display: flex; gap: 12px; }
.rp-cta {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px; border-radius: 16px; border: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em;
  background: var(--k-gradient-h); color: #fff; box-shadow: var(--shadow-button);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.rp-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(233,78,139,0.45); }
.rp-cta svg { width: 19px; height: 19px; stroke: #fff; stroke-width: 2.2; fill: none; }
.rp-cta-ghost { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 20px; border-radius: 16px; background: var(--bg-elev-1); border: 1px solid var(--border); color: var(--fg); font-size: 14.5px; font-weight: 700; transition: border-color var(--t-fast), transform var(--t-fast); }
.rp-cta-ghost:hover { border-color: rgba(185,104,199,0.4); transform: translateY(-2px); }
.rp-cta-ghost svg { width: 17px; height: 17px; stroke: var(--fg-secondary); stroke-width: 2; fill: none; }

/* ===================== CONTENT SECTIONS ===================== */
.rp-content { margin-top: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.rp-sect-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rp-sect-head .ic { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; background: rgba(185,104,199,0.14); color: var(--k-violet); display: flex; align-items: center; justify-content: center; }
.rp-sect-head .ic svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; }
.rp-sect-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.02em; }
.rp-sect-head .sub { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }

.rp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-panel { padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); }

/* ---- How it works ---- */
.rp-how { position: relative; overflow: hidden; }
.rp-how .tagline { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9999px; background: var(--surface-tint-light); border: 1px solid var(--border-soft); font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 22px; }
/* Timeline compacte : pastille numérotée reliée par un filet vertical, titre et
   phrase courte à droite. Même langage visuel que « Qu'est-ce qu'un Rali ? » de
   la page d'accueil, et ~2× moins haut que les anciennes cartes empilées. */
.rp-steps { display: grid; gap: 2px; }
.rp-step { position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 13px; padding: 0 0 16px; }
.rp-step:last-child { padding-bottom: 0; }
/* Filet de liaison entre deux pastilles */
.rp-step:not(:last-child)::before {
  content: ''; position: absolute; left: 12px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--border-soft), transparent);
}
.rp-step .sn {
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 13px; line-height: 1; color: #fff;
  background: var(--k-gradient-h); box-shadow: 0 4px 12px rgba(233,78,139,0.28);
}
.rp-step h3 { grid-column: 2; display: flex; align-items: center; gap: 7px; margin: 3px 0 4px; font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.rp-step .si { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rp-step .si svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.rp-step.s1 .si { color: #5B8DEF; }
.rp-step.s2 .si { color: var(--k-violet); }
.rp-step.s3 .si { color: var(--k-pink); }
.rp-step.s4 .si { color: #5B8DEF; }
.rp-step.s5 .si { color: var(--k-pink); }
.rp-step p { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-secondary); text-wrap: pretty; }
.rp-step p b { color: var(--fg); font-weight: 700; }
/* Pied de panneau : l'argument équité, sur une seule ligne */
.rp-how-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; color: var(--fg-muted); }
.rp-how-foot svg { width: 14px; height: 14px; flex: 0 0 auto; stroke: var(--k-pink); stroke-width: 2.2; fill: none; }

/* ---- About ---- */
.rp-about p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--fg-secondary); text-wrap: pretty; }
.rp-about p:last-child { margin-bottom: 0; }
.rp-about p b, .rp-about strong { color: var(--fg); font-weight: 700; }
/* Description rendue en markdown léger (gras, italique, listes, sauts de ligne) */
#aboutText { font-size: 15px; line-height: 1.6; color: var(--fg-secondary); text-wrap: pretty; }
#aboutText strong { color: var(--fg); font-weight: 700; }
#aboutText em { font-style: italic; }
#aboutText ul { margin: 6px 0 10px; padding-left: 20px; }
#aboutText li { margin-bottom: 4px; }

/* ---- Details meta ---- */
.rp-meta-list { display: flex; flex-direction: column; }
.rp-mrow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--border-soft); }
.rp-mrow:last-child { border-bottom: 0; }
.rp-mrow .mi { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; background: var(--surface-tint-light); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; }
.rp-mrow .mi svg { width: 16px; height: 16px; stroke: var(--k-violet); stroke-width: 2; fill: none; }
.rp-mrow .mt { flex: 1 1 auto; min-width: 0; }
.rp-mrow .ml { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); }
.rp-mrow .mv { font-size: 14.5px; font-weight: 600; color: var(--fg); margin-top: 2px; }

/* ---- Location ---- */
.rp-map-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-soft); }
.rp-map { position: relative; height: clamp(240px, 38vw, 340px); background: #0b0c11; }
.rp-map-style { position: absolute; top: 12px; right: 12px; z-index: 700; display: flex; gap: 3px; padding: 3px; background: rgba(10,10,12,0.78); border: 1px solid var(--border-soft); border-radius: 9999px; backdrop-filter: blur(8px); }
.rp-map-style button { border: 0; background: transparent; color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 9999px; }
.rp-map-style button.on { background: var(--k-gradient-h); color: #fff; }
/* hide the creation-flow-only player simulator + hint on the public page */
.rp-map .lm-player, .rp-map .lm-hint, .rp-map .lm-lplayer-wrap { display: none !important; }
.rp-addr { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-elev-2); border-top: 1px solid var(--border-soft); }
.rp-addr .ai { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; background: var(--k-gradient-h); color: #fff; display: flex; align-items: center; justify-content: center; }
.rp-addr .ai svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.rp-addr .av { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-addr .ago { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B); color: #fff; display: flex; align-items: center; justify-content: center; }
.rp-addr .ago svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.2; fill: none; }
.rp-geo-note { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.28); }
.rp-geo-note svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: #F5A623; stroke-width: 2; fill: none; margin-top: 1px; }
.rp-geo-note p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-secondary); }
.rp-geo-note p b { color: var(--fg); font-weight: 700; }

/* ---- Infos requises ---- */
.rp-req-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-req { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; background: var(--bg-elev-2); border: 1px solid transparent; background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, linear-gradient(135deg, rgba(91,141,239,0.5), rgba(233,78,139,0.5)) border-box; border: 1px solid transparent; font-size: 14px; font-weight: 700; color: var(--fg); }
.rp-req svg { width: 17px; height: 17px; stroke: var(--k-violet); stroke-width: 2; fill: none; }
.rp-lock-note { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 13px; color: var(--fg-muted); }
.rp-lock-note svg { width: 15px; height: 15px; stroke: var(--k-pink); stroke-width: 2; fill: none; flex: 0 0 auto; }

/* ---- Friends / registered ---- */
.rp-friends { display: flex; align-items: center; gap: 14px; }
.rp-friends .pile { display: flex; flex: 0 0 auto; }
.rp-friends .pile span { width: 46px; height: 46px; border-radius: 50%; margin-left: -14px; border: 3px solid var(--bg-elev-1); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; overflow: hidden; }
.rp-friends .pile span:first-child { margin-left: 0; }
.rp-friends .pile span img { width: 100%; height: 100%; object-fit: cover; }
.rp-friends .ftxt { flex: 1 1 auto; min-width: 0; }
.rp-friends .ftxt .l1 { font-size: 15px; font-weight: 600; color: var(--fg); }
.rp-friends .ftxt .l1 b { font-weight: 800; }
.rp-friends .ftxt .l2 { font-size: 13px; color: var(--fg-muted); margin-top: 3px; }

/* ===================== Participation (member only) ===================== */
.rp-member { display: none; }
body[data-view="member"] .rp-member { display: flex; }
body[data-view="visitor"] .rp-visitor-only { display: block; }
body[data-view="member"] .rp-visitor-only { display: none; }

.rp-part { flex-direction: column; gap: 18px; }
.rp-part-shot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B) border-box;
  border: 1.5px solid transparent;
}
.rp-part-shot .l { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.rp-part-shot .code { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 5vw, 48px); letter-spacing: 0.03em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-top: 4px; }
.rp-part-shot .ps-sub { font-size: 12.5px; color: var(--fg-secondary); margin-top: 8px; max-width: 380px; line-height: 1.4; }
.rp-part-shot .copy2 { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: 16px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg-secondary); font-size: 11px; font-weight: 700; transition: border-color var(--t-fast); }
.rp-part-shot .copy2:hover { border-color: rgba(185,104,199,0.4); color: var(--fg); }
.rp-part-shot .copy2 svg { width: 22px; height: 22px; stroke: var(--k-violet); stroke-width: 2; fill: none; }

.rp-prob { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 20px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); flex-wrap: wrap; }
.rp-gauge { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.rp-gauge::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg-elev-2); }
.rp-gauge .g-val { position: relative; font-family: var(--font-display); font-weight: 900; font-size: 19px; background: var(--k-gradient-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rp-prob .pt { flex: 1 1 180px; min-width: 0; }
.rp-prob .pt h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.rp-prob .pt p { margin: 0; font-size: 13.5px; color: var(--fg-secondary); line-height: 1.45; }
.rp-prob .pmini { display: flex; gap: 22px; margin-left: auto; padding-left: 20px; border-left: 1px solid var(--border-soft); }
.rp-prob .pmini .mv { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.rp-prob .pmini .ml { font-size: 11px; color: var(--fg-muted); font-weight: 600; margin-top: 3px; }

.rp-score { padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(234,179,8,0.10), rgba(245,158,11,0.04)); border: 1px solid rgba(234,179,8,0.24); }
.rp-score .sh { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rp-score .sh .ti { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; background: rgba(234,179,8,0.16); color: #EAB308; display: flex; align-items: center; justify-content: center; }
.rp-score .sh .ti svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 2; fill: none; }
.rp-score .sh h3 { margin: 0; font-size: 17px; font-weight: 800; }
.rp-score .sh .badge { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 9999px; background: rgba(245,158,11,0.18); color: #F59E0B; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; }
.rp-score .srow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid rgba(234,179,8,0.2); }
.rp-score .rank { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 0.9; color: #EAB308; }
.rp-score .rank sup { font-size: 18px; }
.rp-score .rank-sub { font-size: 12.5px; color: var(--fg-muted); margin-top: 4px; }
.rp-score .pts { text-align: right; }
.rp-score .pts .n { font-family: var(--font-display); font-weight: 900; font-size: 32px; font-variant-numeric: tabular-nums; }
.rp-score .pts .u { font-size: 12px; color: var(--fg-muted); font-weight: 600; }
.rp-score .fav { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--fg); }

/* ---- Creator card ---- */
.rp-creator { display: flex; align-items: center; gap: 16px; }
.rp-creator .ca { width: 60px; height: 60px; border-radius: 18px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B); }
.rp-creator .ca img { width: 100%; height: 100%; object-fit: cover; }
.rp-creator .cc { flex: 1 1 auto; min-width: 0; }
.rp-creator .cc .cn { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.rp-creator .cc .cn svg { width: 16px; height: 16px; stroke: var(--k-blue); fill: var(--k-blue); }
.rp-creator .cc .ce { font-size: 13px; color: var(--fg-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================== Sticky app bar ===================== */
.rp-appbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px clamp(16px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--border-soft);
}
.rp-appbar .ab-inner { max-width: 1480px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.rp-appbar .ab-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 14px; border: 0; background: var(--k-gradient-h); color: #fff; font-size: 16px; font-weight: 800; box-shadow: var(--shadow-button); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.rp-appbar .ab-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(233,78,139,0.42); }
.rp-appbar .ab-btn svg { width: 19px; height: 19px; }
.rp-appbar .ab-stores { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.rp-appbar .ab-stores .q { font-size: 12.5px; color: var(--fg-muted); font-weight: 600; }
.rp-appbar .ab-store { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: var(--bg-elev-1); border: 1px solid var(--border-soft); color: var(--fg); font-size: 13px; font-weight: 700; }
.rp-appbar .ab-store svg { width: 16px; height: 16px; fill: currentColor; }

/* ===================== Toast ===================== */
.rp-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(14px); display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--fg); font-size: 14px; font-weight: 700; box-shadow: 0 14px 40px rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity var(--t-base), transform var(--t-base); z-index: 80; }
html[data-theme="light"] .rp-toast { box-shadow: 0 14px 40px rgba(20,20,40,0.16); }
.rp-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.rp-toast svg { width: 17px; height: 17px; stroke: #34D399; stroke-width: 2.4; fill: none; }

/* entrance — transform-only so content is NEVER hidden if the animation can't tick */
@media (prefers-reduced-motion: no-preference) {
  .rp-rise { animation: rpRise .6s var(--ease-out) both; }
  .rp-rise.d1 { animation-delay: .05s; } .rp-rise.d2 { animation-delay: .12s; } .rp-rise.d3 { animation-delay: .2s; }
  @keyframes rpRise { from { transform: translateY(14px); } to { transform: none; } }
}

/* ===================== Responsive ===================== */
/* Small desktop / tablet : visual spans left, main + rail stack on the right */
@media (max-width: 1180px) {
  .rp-hero {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    grid-template-areas: "visual main" "visual rail";
  }
  .rp-hero-rail { position: static; top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
  .rp-count { grid-column: 1 / -1; }
  .rp-cta-row { grid-column: 1 / -1; }
  .rp-appbar .ab-stores { display: none; }
}
@media (max-width: 900px) {
  .rp-preview { display: none; }
}
/* Mobile : full single column */
@media (max-width: 840px) {
  .rp-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "visual" "main" "rail";
    gap: 24px;
  }
  .rp-hero-visual { position: static; top: auto; }
  .rp-card { max-width: 440px; margin: 0 auto; width: 100%; }
  .rp-hero-rail { grid-template-columns: 1fr; }
  .rp-grid-2 { grid-template-columns: 1fr; }
  /* .rp-steps est une timeline en 1 colonne à toutes les tailles : rien à faire ici. */
}
@media (max-width: 560px) {
  .rp-stats { grid-template-columns: 1fr; }
  .rp-cta-row { flex-direction: column; }
  .rp-nav-login .lab { display: none; }
  .rp-prob .pmini { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; padding-top: 14px; border-top: 1px solid var(--border-soft); }
  .rp-part-shot { flex-direction: column; align-items: flex-start; }
  .rp-part-shot .copy2 { flex-direction: row; align-self: stretch; justify-content: center; }
}

/* =========================================================================
   LocMap renderer styles (ported from "Créer un Rali - Étape 9")
   Needed by loc-map.js for the studio (SVG) + carto (Leaflet) renderers.
   The public page hides the draggable player simulator + hint (see .rp-map above).
   ========================================================================= */
.rp-map.lm-host { position: relative; }
.lm-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--t-base); }
.lm-svg .lm-bg { fill: #0b0c11; }
.lm-circle-ring { stroke-width: 2.5; stroke-dasharray: 7 6; opacity: 0.95; }
.lm-circle-pulse { stroke-width: 2; animation: lmPulse 2.6s ease-out infinite; }
@keyframes lmPulse { 0% { transform: scale(0.9); opacity: 0.55; } 80% { transform: scale(1.16); opacity: 0; } 100% { opacity: 0; } }
.lm-pin { cursor: default; }
.lm-player { cursor: grab; }
.lm-player.is-drag { cursor: grabbing; }
.lm-player .lm-player-halo { animation: lmHalo 2s ease-out infinite; transform-origin: center; }
@keyframes lmHalo { 0% { transform: scale(0.8); opacity: 0.5; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }

.lm-leaflet { position: absolute; inset: 0; background: #0b0c11; transition: opacity var(--t-base); }
.lm-leaflet.is-locked { opacity: 0.32; }
.lm-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--fg-muted); font-size: 12.5px; line-height: 1.5; }
.lm-tilewarn { position: absolute; inset: 0; z-index: 690; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px 28px; background: linear-gradient(180deg, rgba(11,12,17,0.86), rgba(11,12,17,0.96)); color: var(--fg-secondary); }
.lm-tilewarn.is-on { display: flex; }
.lm-tilewarn svg { width: 26px; height: 26px; color: #93B4FF; margin-bottom: 2px; }
.lm-tilewarn b { color: var(--fg); font-size: 13px; }
.lm-tilewarn span { font-size: 11.5px; line-height: 1.45; max-width: 280px; }
.leaflet-container { background: #0b0c11; font-family: var(--font-sans); }
.leaflet-control-attribution { background: rgba(10,10,10,0.6) !important; color: var(--fg-muted) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--fg-secondary) !important; }
.lm-lpin-wrap, .lm-lplayer-wrap { background: transparent; border: 0; }
.lm-lpin { width: 34px; height: 34px; }
.lm-lpin::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(45deg); width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, #5B8DEF, #B968C7, #E94E8B); box-shadow: 0 6px 16px rgba(185,104,199,0.6); }
.lm-lpin-core { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #0A0A0A; z-index: 2; }
.lm-radius-chip { position: absolute; left: 10px; bottom: 10px; z-index: 700; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 9999px; background: rgba(10,10,12,0.78); border: 1px solid var(--border-soft); backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 600; color: var(--fg); }
.lm-radius-chip b { font-weight: 800; }
.lm-radius-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #B968C7; }

/* =========================================================================
   Public-page integration (Astro): real <img> in the hero card instead of the
   editor-only <image-slot>, loading / error states, avatar images.
   ========================================================================= */
.rp-card > img.rp-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.rp-avstack .pile span img { width: 100%; height: 100%; object-fit: cover; }

.rp-loading, .rp-error { min-height: 56vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.rp-loading .spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--k-pink); animation: rpSpin .8s linear infinite; margin: 0 auto 14px; }
.rp-loading p, .rp-error p { color: var(--fg-muted); font-size: 14px; }
.rp-error h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0 0 6px; }
.rp-error .ehome { display: inline-flex; margin-top: 16px; padding: 11px 20px; border-radius: 14px; background: var(--k-gradient-h); color: #fff; font-weight: 700; font-size: 14px; }
[hidden] { display: none !important; }

/* Creator card: zone cliquable (avatar + nom) à côté du bouton Suivre (membre). */
.rp-creator-main { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; }

/* =========================================================================
   Écran de déverrouillage — rali privé (mot de passe)
   ========================================================================= */
.rp-lock { min-height: 64vh; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.rp-lock-card {
  width: 100%; max-width: 440px; text-align: center;
  padding: clamp(22px, 4vw, 34px); border-radius: 24px;
  background: var(--bg-elev-1); border: 1px solid var(--border-soft); box-shadow: var(--card-shadow);
}
.rp-lock-visual { position: relative; width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-soft); }
.rp-lock-visual img { width: 100%; height: 100%; object-fit: cover; filter: blur(8px) brightness(0.6); transform: scale(1.1); }
.rp-lock-badge { position: absolute; inset: auto 0 0 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: rgba(10,10,12,0.55); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; }
.rp-lock-badge svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2; fill: none; }
.rp-lock-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3.5vw, 30px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 6px; }
.rp-lock-creator { font-size: 13.5px; color: var(--fg-muted); font-weight: 600; margin: 0 0 16px; }
.rp-lock-hint { font-size: 13.5px; line-height: 1.5; color: var(--fg-secondary); margin: 0 0 20px; }
.rp-lock-form { display: flex; flex-direction: column; gap: 10px; }
.rp-lock-form input {
  width: 100%; padding: 14px 16px; border-radius: 14px; text-align: center;
  background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--fg);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: 0.04em;
  transition: border-color var(--t-fast);
}
.rp-lock-form input::placeholder { color: var(--fg-muted); font-weight: 500; letter-spacing: normal; }
.rp-lock-form input:focus { outline: none; border-color: rgba(185,104,199,0.55); }
.rp-lock-form .rp-cta { width: 100%; }
.rp-lock-form .rp-cta:disabled { opacity: 0.6; cursor: default; transform: none; }
.rp-lock-error { margin-top: 12px; font-size: 13px; font-weight: 700; color: #EF4444; }

/* Section "Votre participation" : flex colonne quand visible (sans .rp-member). */
.rp-part { display: flex; }
