/* ==========================================================================
   Parrainage cash — AnkibaMarket (25 novembre 2026)
   Page /parrainage (.vref) et champ « code de parrainage » à l'inscription (.vref-field).
   Logique : inc/referral.php. Arrondis 6 px (cercles exceptés), couleurs du site (variables).
   ========================================================================== */

.vistore-theme .vref {
  --vref-ink: var(--v3-ink, #0f1c17);
  --vref-ink-2: var(--v3-ink-2, #3a4a43);
  --vref-muted: var(--v3-muted, #6b7a72);
  --vref-line: var(--v3-line, #e5ebe7);
  --vref-soft: var(--v3-soft, #f4f7f5);
  --vref-surface: var(--v3-surface, #fff);
  --vref-green: var(--v3-green, var(--vs-primary));
  --vref-deep: var(--v3-green-deep, var(--vs-deep));
  --vref-gold: var(--v3-gold, var(--vs-accent));
  padding-top: 22px;
  padding-bottom: 56px;
  display: grid;
  gap: 18px;
  max-width: 1080px;
  color: var(--vref-ink);
}

/* --- En-tête ------------------------------------------------------------ */
.vistore-theme .vref-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.vistore-theme .vref-hero__text { position: relative; overflow: hidden; padding: 30px 30px 26px; border-radius: 6px; background: var(--vref-deep); color: #fff; }
.vistore-theme .vref-hero__text::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vref-gold) 45%, transparent), transparent 70%); pointer-events: none;
}
.vistore-theme .vref-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 5px 12px 5px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #e9f5ee; font-size: 13px; font-weight: 600; }
.vistore-theme .vref-kicker img { border-radius: 2px; display: block; }
.vistore-theme .vref-hero h1 { margin: 0 0 10px; color: #fff; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.vistore-theme .vref-lead { margin: 0 0 22px; max-width: 560px; color: #cfe3d8; font-size: 15.5px; line-height: 1.55; }
.vistore-theme .vref-hero__cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.vistore-theme .vref-hero__cta .vistore-button--primary { background: var(--vref-gold); border-color: var(--vref-gold); color: var(--vref-deep); }

.vistore-theme .vref-steps { padding: 26px 24px; border: 1px solid var(--vref-line); border-radius: 6px; background: var(--vref-surface); }
.vistore-theme .vref-steps h2 { margin: 0 0 16px; font-size: 18px; color: var(--vref-ink); }
.vistore-theme .vref-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.vistore-theme .vref-steps li { display: flex; gap: 12px; align-items: flex-start; }
.vistore-theme .vref-steps b { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--vs-primary-rgb), .1); color: var(--vref-green); font-size: 14px; }
.vistore-theme .vref-steps strong { display: block; font-size: 14.5px; color: var(--vref-ink); }
.vistore-theme .vref-steps small { display: block; color: var(--vref-muted); font-size: 13px; line-height: 1.45; }

.vistore-theme .vref-closed { margin: 0; padding: 16px 18px; border-radius: 6px; background: var(--vref-soft); color: var(--vref-ink-2); }

/* --- Lien à partager ---------------------------------------------------- */
.vistore-theme .vref-share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: stretch; padding: 20px 22px; border: 1px solid var(--vref-line); border-radius: 6px; background: var(--vref-surface); }
.vistore-theme .vref-share__code { display: grid; align-content: center; gap: 4px; min-width: 170px; padding: 14px 18px; border: 2px dashed color-mix(in srgb, var(--vref-green) 45%, transparent); border-radius: 6px; background: var(--vref-soft); text-align: center; }
.vistore-theme .vref-share__code span { color: var(--vref-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.vistore-theme .vref-share__code strong { color: var(--vref-deep); font-size: 26px; letter-spacing: .08em; font-family: "Space Grotesk", var(--vs-font, system-ui), sans-serif; }
.vistore-theme .vref-share__link { display: grid; gap: 10px; align-content: center; }
.vistore-theme .vref-share__link label { font-weight: 700; font-size: 14px; }
.vistore-theme .vref-share__row { display: flex; gap: 8px; }
.vistore-theme .vref-share__row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--vref-line); border-radius: 6px; background: var(--vref-soft); color: var(--vref-ink); font-size: 14px; }
.vistore-theme .vref-share__row .vistore-button { border-radius: 6px; }
.vistore-theme .vref-share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.vistore-theme .vref-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--vref-line); border-radius: 6px; background: var(--vref-surface); color: var(--vref-ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.vistore-theme .vref-btn:hover { border-color: var(--vref-green); color: var(--vref-ink); }
.vistore-theme .vref-btn svg { width: 18px; height: 18px; }
.vistore-theme .vref-btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.vistore-theme .vref-btn--wa:hover { color: #fff; filter: brightness(.95); }
.vistore-theme .vref-btn--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.vistore-theme .vref-btn--fb:hover { color: #fff; filter: brightness(.95); }

/* --- Chiffres ----------------------------------------------------------- */
.vistore-theme .vref-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.vistore-theme .vref-stats div { padding: 14px 16px; border: 1px solid var(--vref-line); border-radius: 6px; background: var(--vref-surface); }
.vistore-theme .vref-stats b { display: block; font-size: 24px; line-height: 1.15; color: var(--vref-ink); font-family: "Space Grotesk", var(--vs-font, system-ui), sans-serif; }
.vistore-theme .vref-stats small { color: var(--vref-muted); font-size: 13px; }
.vistore-theme .vref-stats .is-money { background: var(--vref-deep); border-color: var(--vref-deep); }
.vistore-theme .vref-stats .is-money b { color: var(--vref-gold); }
.vistore-theme .vref-stats .is-money small { color: #cfe3d8; }
.vistore-theme .vref-badge { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; color: var(--vref-green); font-weight: 700; }
.vistore-theme .vref-badge svg { width: 18px; height: 18px; }
.vistore-theme .vref-badge small { color: var(--vref-muted); font-weight: 500; }

/* --- Cartes ------------------------------------------------------------- */
.vistore-theme .vref-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.vistore-theme .vref-card { padding: 22px 24px; border: 1px solid var(--vref-line); border-radius: 6px; background: var(--vref-surface); }
.vistore-theme .vref-card h2 { margin: 0 0 8px; font-size: 19px; color: var(--vref-ink); }
.vistore-theme .vref-muted { margin: 0 0 12px; color: var(--vref-muted); font-size: 14px; line-height: 1.5; }

.vistore-theme .vref-wallet__amount { margin: 0 0 4px; font-size: 34px; font-weight: 700; color: var(--vref-deep); font-family: "Space Grotesk", var(--vs-font, system-ui), sans-serif; }
.vistore-theme .vref-form { display: grid; gap: 12px; margin-top: 6px; }
.vistore-theme .vref-form > label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--vref-ink-2); }
.vistore-theme .vref-form input[type=tel],
.vistore-theme .vref-form input[type=text] { min-height: 44px; padding: 0 12px; border: 1px solid var(--vref-line); border-radius: 6px; font-size: 15px; }
.vistore-theme .vref-methods { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.vistore-theme .vref-methods legend { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--vref-ink-2); }
.vistore-theme .vref-methods label { flex: 1; }
.vistore-theme .vref-methods input { position: absolute; opacity: 0; pointer-events: none; }
.vistore-theme .vref-methods span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--vref-line); border-radius: 6px; font-weight: 700; cursor: pointer; }
.vistore-theme .vref-methods input:checked + span { border-color: var(--vref-green); box-shadow: inset 0 0 0 1px var(--vref-green); background: rgba(var(--vs-primary-rgb), .06); color: var(--vref-deep); }
.vistore-theme .vref-methods input:focus-visible + span { outline: 2px solid var(--vref-green); outline-offset: 2px; }
.vistore-theme .vref-payouts { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--vref-line); display: grid; gap: 8px; font-size: 14px; }
.vistore-theme .vref-payouts li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.vistore-theme .vref-payouts span { color: var(--vref-muted); }
.vistore-theme .vref-payouts em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--vref-soft); }
.vistore-theme .vref-payouts .is-paid em { background: #e3f4ea; color: #05603a; }
.vistore-theme .vref-payouts .is-refused em { background: #fee4e2; color: #912018; }

.vistore-theme .vref-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vistore-theme .vref-people li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.vistore-theme .vref-people__avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--vref-soft); color: var(--vref-deep); font-weight: 700; }
.vistore-theme .vref-people strong { display: block; font-size: 14.5px; }
.vistore-theme .vref-people small { color: var(--vref-muted); font-size: 12.5px; }
.vistore-theme .vref-people b { color: var(--vref-green); font-size: 14px; white-space: nowrap; }
.vistore-theme .vref-people .is-validated .vref-people__avatar { background: rgba(var(--vs-primary-rgb), .14); }
.vistore-theme .vref-people .is-refused { opacity: .6; }

.vistore-theme .vref-rules ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--vref-ink-2); font-size: 14px; line-height: 1.5; }

/* --- Inscription -------------------------------------------------------- */
.vistore-theme .vref-field input { text-transform: uppercase; letter-spacing: .06em; }
.vistore-theme .vref-field input::placeholder { text-transform: none; letter-spacing: 0; }
.vistore-theme .vref-field small { color: var(--vs-muted, #6b7a72); font-weight: 500; }

/* --- Téléphone ---------------------------------------------------------- */
@media (max-width: 860px) {
  .vistore-theme .vref-hero,
  .vistore-theme .vref-cols { grid-template-columns: 1fr; }
  .vistore-theme .vref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vistore-theme .vref-stats .is-money { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vistore-theme .vref { padding-top: 12px; gap: 12px; }
  .vistore-theme .vref-hero__text { padding: 22px 18px 20px; }
  .vistore-theme .vref-hero__cta .vistore-button { flex: 1 1 100%; justify-content: center; }
  .vistore-theme .vref-steps,
  .vistore-theme .vref-card { padding: 18px 16px; }
  .vistore-theme .vref-share { grid-template-columns: 1fr; padding: 16px; }
  .vistore-theme .vref-share__buttons .vref-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
}

/* --- Mode sombre -------------------------------------------------------- */
html.vistore-dark .vistore-theme .vref {
  --vref-ink: #e8efe9; --vref-ink-2: #c3d0c7; --vref-muted: #93a39a; --vref-line: #26332c; --vref-soft: #141c18; --vref-surface: #0f1512;
}
