/* Varinus — site (fin de la marketplace). Mobile d'abord, RTL via propriétés logiques. */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --bg: #0B0C0B; --canvas: #050605; --surface: #151715; --surface-2: #1D201D;
  --border: #262A26; --border-strong: #33382F; --disabled: #2A2E28;
  --text: #F2F4EE; --text-soft: #C9CEC4; --muted: #9BA197; --faint: #6E746A;
  --lime: #C8FA3C; --on-lime: #0B0C0B; --danger: #FF6B5E; --danger-text: #FF8A7F; --warn: #FFB547;
  --r-btn: 12px; --r-card: 20px; --r-tile: 14px;
  --f-display: "Anton", "IBM Plex Sans Arabic", sans-serif;
  --f-body: "DM Sans", "IBM Plex Sans Arabic", sans-serif;
  --f-mono: "JetBrains Mono", monospace;
}
[dir="rtl"] { --f-display: "IBM Plex Sans Arabic", sans-serif; --f-body: "IBM Plex Sans Arabic", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: #E2FF8A; text-decoration: underline; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Typo */
.v-display { font-family: var(--f-display); text-transform: uppercase; line-height: 1.02; margin: 0; font-weight: 400; text-wrap: balance; }
[dir="rtl"] .v-display { text-transform: none; font-weight: 700; line-height: 1.3; }
.v-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.v-label--lime { color: var(--lime); }
.v-muted { color: var(--muted); }
.v-soft { color: var(--text-soft); }
.v-small { font-size: 13px; line-height: 1.5; }
.v-mono { font-family: var(--f-mono); }

/* Layout */
.v-page { max-width: 480px; margin: 0 auto; padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 100dvh; }
.v-stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.v-row { display: flex; align-items: center; gap: var(--gap, 12px); }
.v-grow { flex: 1; min-width: 0; }
.v-divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Boutons */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent; font: 700 15px/1.2 var(--f-body); cursor: pointer; text-align: center; text-decoration: none !important; transition: filter .15s, opacity .15s; }
.v-btn--block { width: 100%; }
.v-btn--primary { background: var(--lime); color: var(--on-lime); text-transform: uppercase; letter-spacing: .05em; }
[dir="rtl"] .v-btn--primary { text-transform: none; letter-spacing: 0; }
.v-btn--primary:hover { filter: brightness(1.05); color: var(--on-lime); }
.v-btn--primary:disabled { background: var(--disabled); color: var(--faint); cursor: default; }
.v-btn--outline { background: transparent; color: var(--text); border-color: var(--border-strong); font-size: 14px; }
.v-btn--outline-strong { background: transparent; color: var(--text); border: 1.5px solid var(--text); font-size: 14px; }
.v-btn--lime-outline { background: transparent; color: var(--lime); border: 1.5px solid var(--lime); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.v-btn--social { background: var(--text); color: var(--on-lime); font-size: 14px; }
.v-btn--social:hover { color: var(--on-lime); }
.v-btn--ghost { background: none; color: var(--muted); font-weight: 600; font-size: 14px; min-height: 48px; }
.v-btn--black { background: #000; color: var(--text); border-color: var(--faint); font-size: 16px; }
.v-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Cartes */
.v-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px; }
.v-card--line { background: transparent; }
.v-card--lime { border: 1.5px solid var(--lime); }
.v-card--warn { background: transparent; border-color: var(--warn); }

/* Bandeaux */
.v-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.v-banner--warn { border: 1px solid var(--warn); }
.v-banner--warn::before { content: "!"; color: var(--warn); font-weight: 700; }
.v-banner--error { border: 1px solid var(--danger); color: var(--danger-text); }
.v-banner--error::before { content: "!"; font-weight: 700; }

/* Champs */
.v-field { display: flex; flex-direction: column; gap: 6px; }
.v-field label { font-size: 12px; color: var(--muted); }
.v-input { height: 48px; border-radius: var(--r-btn); background: var(--bg); border: 1px solid var(--border-strong); color: var(--text); padding: 0 14px; font: 14px var(--f-mono); width: 100%; }
.v-input:focus { outline: none; border: 1.5px solid var(--lime); }
.v-input[aria-invalid="true"] { border: 1.5px solid var(--danger); }

/* ─── Page publique coach /c/{nom} ─── */
.cp { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100dvh; }
.cp-main { padding: 20px 20px 120px; display: flex; flex-direction: column; gap: 22px; }
.cp-video { position: relative; aspect-ratio: 390 / 280; background: repeating-linear-gradient(135deg, #151715 0 14px, #121412 14px 28px); display: grid; place-items: center; overflow: hidden; }
.cp-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-video .v-label { position: absolute; bottom: 14px; inset-inline-start: 20px; color: var(--faint); }
.cp-play { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--on-lime); border: 0; display: grid; place-items: center; font-size: 20px; cursor: pointer; z-index: 1; }
.cp-photo-hero { position: relative; aspect-ratio: 390 / 300; background: linear-gradient(180deg, #2A2E28, #1D201D 60%, var(--bg)); }
.cp-photo-hero img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.cp-photo-hero + .cp-main { margin-top: -36px; position: relative; }
.cp-id { display: flex; gap: 14px; align-items: center; }
.cp-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--disabled); border: 2px solid var(--lime); object-fit: cover; flex-shrink: 0; }
.cp-photo-hero + .cp-main .cp-avatar { width: 72px; height: 72px; }
.cp-id-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-name { font-family: var(--f-display); font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0; font-weight: 400; }
[dir="rtl"] .cp-name { text-transform: none; font-weight: 700; line-height: 1.15; }
.cp-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--lime); }
.cp-verified::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; }
.cp-new { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--lime); color: var(--lime); font-size: 12px; font-weight: 700; width: max-content; }
.v-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.v-tile { background: var(--surface); border-radius: var(--r-tile); padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.v-tile b { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.v-tile span { font-size: 11px; color: var(--muted); }
.v-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.v-bar > i { display: block; height: 100%; background: var(--lime); border-radius: 3px; }
.v-bar--full { background: var(--warn); }
.v-full-pill { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-tile); padding: 14px; font-size: 14px; font-weight: 600; }
.v-full-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.cp-sec { display: flex; flex-direction: column; gap: 12px; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--border-strong); font-size: 13px; }
.cp-certs { background: var(--surface); border-radius: 16px; padding: 0 14px; list-style: none; margin: 0; }
.cp-certs li { display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 14px; font-weight: 600; }
.cp-certs li + li { border-top: 1px solid var(--border); }
.cp-certs li::before { content: "✓"; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--lime); color: var(--lime); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.cp-ba { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cp-ba > div { flex: 0 0 100%; scroll-snap-align: start; background: var(--surface); border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cp-ba figure { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.cp-ba img { width: 100%; height: 100%; object-fit: cover; }
.cp-ba figcaption { position: absolute; top: 8px; inset-inline-start: 8px; font: 10px var(--f-mono); letter-spacing: .1em; padding: 3px 6px; border-radius: 5px; background: var(--bg); color: var(--text-soft); }
.cp-ba figure:last-child figcaption { background: var(--lime); color: var(--on-lime); }
.cp-offer { border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cp-offer:first-of-type { border: 1.5px solid var(--lime); }
.cp-offer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cp-offer-price { display: flex; flex-direction: column; align-items: flex-end; }
.cp-offer-price b { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.cp-offer .v-checks li { font-size: 13px; color: var(--text-soft); }
.cp-offer .v-btn { min-height: 46px; font-size: 14px; }
.cp-offer:not(:first-of-type) .v-btn--primary { background: none; color: var(--text); border-color: var(--border-strong); }
.cp-call { background: var(--surface); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cp-pill { height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.cp-pill--lime { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.cp-avg { display: flex; align-items: baseline; gap: 10px; }
.cp-avg b { font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; }
.cp-stars { color: var(--lime); letter-spacing: .1em; }
.cp-review { padding-block: 14px; display: flex; flex-direction: column; gap: 6px; }
.cp-review + .cp-review { border-top: 1px solid var(--surface-2); }
.cp-review p { margin: 0; font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.cp-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--surface-2); }
.v-report { background: none; border: 0; color: var(--faint); font-size: 12px; text-decoration: underline; cursor: pointer; }
.v-powered { font-size: 12px; color: var(--faint); text-align: center; }
.v-powered b { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.v-price { font-family: var(--f-display); font-size: 20px; }
.sk { background: var(--surface-2); border-radius: 8px; animation: sk 1.2s ease-in-out infinite alternate; }
@keyframes sk { to { opacity: .5; } }
.cp-top { display: none; }
@media (min-width: 960px) {
  .cp { max-width: 1280px; }
  .cp-top { display: flex; height: 64px; align-items: center; padding-inline: 48px; border-bottom: 1px solid var(--surface-2); }
  .cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; padding: 40px 48px 56px; align-items: start; }
  .cp-left .cp-video { border-radius: 20px; aspect-ratio: 16 / 9; }
  .cp-left .cp-main { padding: 0; gap: 32px; }
  .cp-right { position: sticky; top: 24px; }
  .cp-name { font-size: 34px; }
  .cp-avatar { width: 72px; height: 72px; }
  .cp-cta { max-width: 360px; }
  .v-sticky { display: none !important; }
}
@media (max-width: 959px) { .cp-right { display: none; } }
@media (min-width: 960px) { .cp-offers-inline { display: none; } }

/* Badges stores */
.v-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-store { min-height: 48px; border-radius: 10px; background: #000; border: 1px solid var(--faint); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); text-decoration: none !important; }
.v-store small { font-size: 9px; color: var(--text-soft); }
.v-store strong { font-size: 15px; }

/* Liste à puces cochées */
.v-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v-checks li { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; }
.v-checks li::before { content: "✓"; color: var(--lime); font-weight: 700; }

.v-badge-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-size: 26px; font-weight: 700; }

/* ─── Desktop : site marketing ─── */
.v-wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.v-nav { height: 72px; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--surface-2); }
.v-logo { font-family: "Anton", sans-serif; font-size: 24px; letter-spacing: .04em; color: var(--text); }
.v-logo em { font-style: normal; color: var(--lime); }
.v-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex: 1; font-size: 14px; }
.v-nav ul a { color: var(--text-soft); }
.v-section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--surface-2); }
.v-h2 { font-size: clamp(36px, 5vw, 48px); }
.v-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.v-split .v-card { padding: clamp(24px, 3vw, 40px); border-radius: 24px; display: flex; flex-direction: column; gap: 20px; }
.v-hero { padding-block: clamp(72px, 10vw, 120px) clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.v-hero h1 { font-size: clamp(56px, 9vw, 112px); line-height: .92; max-width: 1000px; }
.v-steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.v-steps3 > div { border-top: 2px solid var(--lime); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.v-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.v-features > div { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.v-features > .is-lime { background: var(--lime); color: var(--on-lime); }
.v-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.v-pricing > div { border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.v-pricing > .is-pro { border: 1.5px solid var(--lime); }
.v-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.v-faq details { border-bottom: 1px solid var(--border); padding-block: 22px; }
.v-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; cursor: pointer; }
.v-faq summary::after { content: "+"; color: var(--lime); }
.v-faq details[open] summary::after { content: "−"; }
.v-faq details p { color: var(--muted); line-height: 1.55; max-width: 640px; margin: 10px 0 0; }
.v-cta { background: var(--lime); color: var(--on-lime); padding-block: 96px; }
.v-cta .v-store { background: var(--bg); border: 0; min-width: 180px; min-height: 56px; }
.v-footer { padding-block: 32px; border-top: 1px solid var(--surface-2); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 13px; }
.v-footer a { color: var(--muted); }
@media (max-width: 720px) {
  .v-nav ul { display: none; }
  .v-faq { grid-template-columns: 1fr; gap: 16px; }
}
