/* ============================================================
   Spovibe — Design System (thème clair lavande)
   Accent principal : violet (--orange = violet en réalité ; ne pas s'y fier sémantiquement)
   Brand : surcharge --orange en orange réel (identité du logo conservée)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&display=swap');

:root {
  /* Fonds clairs */
  --bg: #F5F3FB;
  --bg-2: #EDEAF8;
  --surface: #FFFFFF;
  --surface-2: #FBFAFE;
  --card: #FFFFFF;
  --border: rgba(15, 14, 26, 0.08);
  --border-strong: rgba(15, 14, 26, 0.16);

  /* Texte sombre */
  --text: #0F0E1A;
  --muted: #6B6A82;
  --muted-2: #9D9BAE;

  /* Accent VIOLET (nommé --orange pour compat ; redéfini en orange réel dans .hero / .brand) */
  --orange: #7C6BF6;
  --orange-2: #9D8FF7;
  --orange-soft: rgba(124, 107, 246, 0.10);
  --orange-line: rgba(124, 107, 246, 0.28);
  --on-orange: #ffffff;

  /* Sémantique */
  --green: #1FB573;
  --green-soft: rgba(31, 181, 115, 0.12);
  --red: #E5484D;
  --red-soft: rgba(229, 72, 77, 0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 30px 70px -28px rgba(60, 40, 140, 0.22);
  --shadow-sm: 0 12px 28px -16px rgba(60, 40, 140, 0.16);
  --glow-orange: 0 0 0 1px var(--orange-line), 0 18px 50px -14px rgba(124, 107, 246, 0.35);
  --ring: 0 0 0 3px rgba(124, 107, 246, 0.25);

  --maxw: 1240px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Anton", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;     /* fallback navigateurs anciens */
  overflow-x: clip;       /* préféré : ne casse pas position: sticky */
}

.bg-ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 440px at 80% -6%, rgba(124, 107, 246, 0.12), transparent 60%),
    radial-gradient(700px 500px at 12% 4%, rgba(157, 143, 247, 0.08), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   Layout / typographie
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 60px 0; }
.center { text-align: center; }
.hairline { height: 1px; background: var(--border); border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--orange); display: inline-block; }
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 { line-height: 1.0; font-weight: 400; letter-spacing: -0.005em; color: var(--text); font-family: var(--font-display); }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.8rem); text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; text-transform: uppercase; letter-spacing: 0.01em; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }

.display {
  font-family: var(--font-display);
  font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92;
  font-size: clamp(3.6rem, 18vw, 14rem);
}
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 600px; font-weight: 500; }
.muted { color: var(--muted); }
.orange-text { color: var(--orange); }

/* ============================================================
   Boutons (pilules)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: var(--on-orange); box-shadow: var(--glow-orange);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 0 0 1px var(--orange-line), 0 22px 60px -12px rgba(124,107,246,0.55); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--orange-line); transform: translateY(-2px); }
.btn-outline-orange { background: transparent; color: var(--orange); border-color: var(--orange-line); }
.btn-outline-orange:hover { background: var(--orange-soft); border-color: var(--orange); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 36px; font-size: 0.88rem; }
.btn-sm { padding: 10px 18px; font-size: 0.72rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Navbar — fond clair par défaut, transparente sur hero homepage
   Le wrapper #nav est transparent au layout (display:contents) pour
   que position:sticky de .nav se calcule contre <body>.
   ============================================================ */
#nav { display: contents; }
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(245, 243, 251, 0.78);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; position: relative; gap: 20px; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.42em; text-transform: uppercase;
}
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.brand-logo { font-family: "Quicksand", var(--font); font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.02em; text-transform: none; color: var(--text); line-height: 1; }
.brand-logo .s { color: var(--orange); }
.brand-lines { height: 1.05rem; width: auto; display: block; flex: none; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 24px;
  position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; white-space: nowrap; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; justify-self: end; }


/* ============================================================
   Cards / grilles
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   HERO éditorial — thème clair lavande (structure inchangée)
   ============================================================ */
.hero {
  padding: 58px 0 0;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(820px 440px at 80% -6%, rgba(124, 107, 246, 0.16), transparent 60%),
    radial-gradient(700px 500px at 12% 4%, rgba(157, 143, 247, 0.10), transparent 55%);
}
.hero > * { position: relative; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hero-stage { position: relative; text-align: center; }
.hero-word {
  font-family: "Archivo", "Arial Black", sans-serif;
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9;
  font-size: clamp(3.6rem, 18vw, 14rem); position: relative; z-index: 1;
  background: linear-gradient(180deg, #1A1830, #5E4FD1 70%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  margin-top: 2px; }
.orb-wrap { position: relative; z-index: 2; margin-top: clamp(-90px, -8vw, -40px); display: flex;
  flex-direction: column; align-items: center; }

/* Ballon de football — panneaux sombres + glow violet, sur fond clair */
.ball { position: relative; width: clamp(190px, 27vw, 330px); height: clamp(190px, 27vw, 330px);
  animation: vbFloat 5.5s ease-in-out infinite; will-change: transform; }
.ball-svg { width: 100%; height: 100%; display: block; overflow: visible;
  filter: drop-shadow(0 30px 50px rgba(60,40,140,0.35)); }
.ball-glow { position: absolute; inset: -8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 62% 66%, rgba(124,107,246,0.65), transparent 60%);
  filter: blur(36px); animation: vbPulse 3.4s ease-in-out infinite; }
.orb-base { width: clamp(150px, 20vw, 240px); height: 36px; margin-top: -8px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, rgba(60,40,140,0.32), transparent 70%); filter: blur(6px);
  animation: vbBase 5.5s ease-in-out infinite; }
@keyframes vbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes vbPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes vbBase { 0%, 100% { transform: scaleX(1); opacity: 0.9; } 50% { transform: scaleX(0.85); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .ball, .ball-glow, .orb-base { animation: none; } }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -14px;
  padding-bottom: 16px; gap: 20px; flex-wrap: wrap; }
.hero-foot .pitch { max-width: 320px; color: var(--muted); font-size: 0.92rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--muted); transition: all 0.18s; }
.socials a:hover { color: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.scroll-chip { width: 46px; height: 30px; border-radius: 999px; border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--muted); margin: 6px auto 0; }

/* Espaceur (page Arena) : reproduit la hauteur occupée par le ballon de l'accueil */
.hero-spacer { height: clamp(80px, 10vw, 165px); }

/* ============================================================
   Espace membre (back-office) — thème clair
   ============================================================ */
.bo { display: grid; grid-template-columns: 250px 1fr; align-items: start; background: var(--bg); }
.bo-side { position: sticky; top: 78px; align-self: start; padding: 26px 16px; border-right: 1px solid var(--border);
  height: calc(100vh - 78px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; background: var(--surface-2);
  scrollbar-width: thin; scrollbar-color: rgba(15,14,26,0.18) transparent; }
.bo-side::-webkit-scrollbar { width: 6px; }
.bo-side::-webkit-scrollbar-thumb { background: rgba(15,14,26,0.18); border-radius: 3px; }
.bo-side::-webkit-scrollbar-track { background: transparent; }
.bo-who { padding: 4px 10px 18px; }
.bo-who .nm { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.bo-who .em { color: var(--muted); font-size: 0.8rem; word-break: break-all; margin-top: 2px; }
.bo-nav { display: flex; flex-direction: column; gap: 3px; }
.bo-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 0.92rem; cursor: pointer; border: 0; background: none; font-family: inherit; text-align: left; width: 100%; }
.bo-link:hover { background: rgba(15,14,26,0.05); color: var(--text); }
.bo-link.active { background: var(--orange-soft); color: var(--orange); }
.bo-link svg { width: 18px; height: 18px; flex: none; }
.bo-main { padding: 34px 38px 72px; min-width: 0; }
.bo-main > h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 4px; }
.bo-sub { color: var(--muted); margin-bottom: 26px; }
.bo input[type=checkbox] { accent-color: var(--orange); width: 18px; height: 18px; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 440px; overflow-y: auto; padding-right: 6px; }
.msg { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 11px 15px; }
.msg .a { font-weight: 700; font-size: 0.86rem; color: var(--orange); }
.msg .x { font-size: 0.72rem; color: var(--muted-2); margin-left: 8px; }
.msg p { margin-top: 3px; font-size: 0.95rem; }
.lock-box { text-align: center; padding: 40px 24px; }
.code-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-2);
  border: 1px dashed var(--border-strong); border-radius: 10px; padding: 8px 14px; font-weight: 700; letter-spacing: 0.04em; }

/* ============================================================
   Dashboard style Fintrixity (espace membre) — version claire
   ============================================================ */
.dash-h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.dash-h h1 { font-size: 1.6rem; margin-bottom: 3px; }
.dash-h .sub { color: var(--muted); font-size: 0.9rem; }
.dash-h .actions { display: flex; gap: 10px; }
.pill-sel { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 9px 16px; color: var(--text); font-family: inherit; font-size: 0.86rem; cursor: pointer; }
.pill-sel:hover { border-color: var(--orange-line); color: var(--orange); }
.pill-sel.ghost { color: var(--muted); }

.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.sc { position: relative; overflow: hidden; border-radius: 18px; padding: 22px; min-height: 178px;
  background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); }
.sc.featured { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%); color: #fff;
  border-color: transparent; box-shadow: var(--glow-orange); }
.sc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; flex: none; }
.sc.featured .sc-ic { background: rgba(255,255,255,0.22); color: #fff; }
.sc-tt { flex: 1; min-width: 0; }
.sc-ttl { font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.sc-sub { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.sc.featured .sc-sub { color: rgba(255,255,255,0.78); }
.sc-more { color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0 6px; cursor: pointer; }
.sc.featured .sc-more { color: rgba(255,255,255,0.7); }
.sc-amt { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; margin-top: 14px; line-height: 1; color: var(--text); }
.sc.featured .sc-amt { color: #fff; }
.sc-amt small { font-size: 0.72rem; font-weight: 800; color: var(--green); margin-left: 8px; vertical-align: middle;
  background: var(--green-soft); padding: 3px 8px; border-radius: 99px; }
.sc.featured .sc-amt small { color: #fff; background: rgba(255,255,255,0.22); }
.sc-link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border);
  margin-top: auto; padding-top: 12px; font-size: 0.84rem; color: var(--muted); cursor: pointer; }
.sc.featured .sc-link { border-top-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.85); }

.wc-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-bottom: 18px; }
.wc-grid > .card { border-radius: 18px; padding: 22px; }
.wallet-h { display: flex; justify-content: space-between; align-items: center; }
.wallet-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wm { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 13px; }
.wm-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wm-l { display: flex; align-items: center; gap: 8px; }
.wm-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.62rem; font-weight: 800;
  background: var(--orange-soft); color: var(--orange); flex: none; }
.wm-n { font-weight: 700; font-size: 0.84rem; color: var(--text); }
.wm-d { color: var(--muted-2); font-size: 0.9rem; padding: 0 4px; cursor: pointer; }
.wm-amt { font-size: 1.05rem; font-weight: 800; margin-top: 8px; letter-spacing: -0.01em; color: var(--text); }
.wm-lim { font-size: 0.7rem; color: var(--muted-2); }
.wm-s { font-size: 0.72rem; font-weight: 700; color: var(--orange); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.wm-s.off { color: var(--muted-2); }

.cf-amt { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin: 4px 0 14px; line-height: 1; color: var(--text); }
.cf-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 99px; padding: 3px; gap: 3px; }
.cf-toggle button { padding: 6px 14px; font-size: 0.78rem; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 99px; font-family: inherit; }
.cf-toggle button.active { background: var(--orange); color: var(--on-orange); font-weight: 700; }

.bars { display: grid; grid-template-columns: 30px repeat(7, 1fr); gap: 6px; align-items: end; height: 200px; margin-top: 16px; }
.bars .ys { display: flex; flex-direction: column; justify-content: space-between; padding: 0; color: var(--muted-2); font-size: 0.68rem; text-align: right; height: 100%; }
.bars .b-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 56px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, rgba(15,14,26,0.06), rgba(15,14,26,0.02)); border: 1px solid var(--border); }
.bars .bar.hi { background: linear-gradient(180deg, var(--orange-2), var(--orange)); border-color: transparent; box-shadow: 0 -18px 40px -10px rgba(124,107,246,0.45); }
.bars .x { font-size: 0.72rem; color: var(--muted); }

.bo-search { position: relative; margin: 0 0 14px; }
.bo-search input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px 9px 34px; color: var(--text); font-family: inherit; font-size: 0.86rem; }
.bo-search input:focus { outline: none; border-color: var(--orange); }
.bo-search input::placeholder { color: var(--muted-2); }
.bo-search .si { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bo-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.66rem; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; font-family: inherit; }
.bo-sect { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2);
  padding: 16px 12px 4px; font-weight: 700; }
.bo-up { margin-top: auto; background: linear-gradient(180deg, var(--orange-soft), var(--surface-2));
  border: 1px solid var(--orange-line); border-radius: 14px; padding: 14px; text-align: left; }
.bo-up h4 { font-weight: 800; font-size: 0.92rem; margin-bottom: 3px; color: var(--text); }
.bo-up p { color: var(--muted); font-size: 0.76rem; margin-bottom: 12px; line-height: 1.5; }
.bo-up .btn-sm { padding: 7px 12px; font-size: 0.7rem; }

.act-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.act-h h3 { font-size: 1.05rem; }
.act-h .right { display: flex; gap: 10px; }

@media (max-width: 1200px) { .stat3 { grid-template-columns: 1fr 1fr; } .stat3 .sc:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .wc-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .stat3 { grid-template-columns: 1fr; } .stat3 .sc:nth-child(3) { grid-column: auto; } .wallet-mini { grid-template-columns: 1fr; } }

/* Hub gamifié (espace membre — vue d'ensemble) */
.bo-greet { margin-bottom: 18px; }
.bo-greet .hi { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.bo-greet .hi span { background: linear-gradient(120deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.bo-greet .sub { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }

.hub-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .hub-grid { grid-template-columns: 1fr; } }

.hero-bo { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #fff;
  box-shadow: var(--glow-orange); padding: 28px; display: flex; align-items: center; gap: 26px; }
.hero-bo::before { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%); pointer-events: none; }
.hero-bo > * { position: relative; }
.hero-bo .h-tag { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 700; }
.hero-bo h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 6px 0 8px; line-height: 1.1; color: #fff; }
.hero-bo .h-amt { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em; color: #fff; }
.hero-bo .h-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 12px; border-radius: 99px; font-size: 0.78rem; margin-top: 12px; color: rgba(255,255,255,0.85); }
.hero-bo .h-pill b { color: #fff; }
.hero-bo .h-side { flex: 0 0 140px; }
@media (max-width: 600px) { .hero-bo { flex-direction: column-reverse; align-items: stretch; text-align: left; } .hero-bo .h-side { align-self: center; } }

.ring-wrap { position: relative; display: grid; place-items: center; width: 140px; height: 140px; }
.ring { width: 140px; height: 140px; display: block; }
.ring-c { position: absolute; text-align: center; pointer-events: none; }
.ring-c .v { font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.ring-c .l { font-size: 0.66rem; color: rgba(255,255,255,0.78); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.q-card { position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 18px; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; box-shadow: var(--shadow-sm); }
.q-card:hover { transform: translateY(-3px); border-color: var(--orange-line); box-shadow: 0 18px 40px -16px rgba(124,107,246,0.30); }
.q-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,107,246,0.12), transparent 70%); pointer-events: none; }
.q-card > * { position: relative; }
.q-card .q-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-line); margin-bottom: 12px; }
.q-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 3px; color: var(--text); }
.q-card p { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
@media (max-width: 700px) { .q-grid { grid-template-columns: 1fr; } }

.act-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.act-row:last-child { border-bottom: 0; }
.act-row .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); flex: none; }
.act-row .ic.win { background: var(--green-soft); color: var(--green); }
.act-row .ic.lose { background: var(--red-soft); color: var(--red); }
.act-row .lbl { flex: 1; min-width: 0; }
.act-row .lbl b { display: block; font-weight: 700; color: var(--text); }
.act-row .lbl span { font-size: 0.78rem; color: var(--muted); }
.act-row .amt { font-weight: 800; white-space: nowrap; color: var(--text); }

.rank-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--orange-soft); color: var(--orange);
  font-size: 0.7rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--orange-line); margin-top: 10px; }

.av-stack { display: flex; margin: 6px 0 12px; }
.av-mini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--on-orange); font-weight: 800; font-size: 0.78rem; border: 2px solid var(--card); margin-left: -8px; }
.av-mini:first-child { margin-left: 0; }
.av-mini.more { background: var(--bg-2); color: var(--muted); }

/* Univers Arena — ladder de progression + badges */
.lp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lp-step { background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 8px; text-align: center; transition: transform 0.18s; box-shadow: var(--shadow-sm); }
.lp-step .lp-n { font-weight: 800; font-size: 0.92rem; letter-spacing: -0.01em; color: var(--text); }
.lp-step .lp-r { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.lp-step.active { background: var(--orange-soft); border-color: var(--orange-line); color: var(--orange); box-shadow: var(--glow-orange); }
.lp-step.active .lp-n { color: var(--orange); }
.lp-step.elite { border-style: dashed; }

.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 12px; text-align: center; opacity: 0.55; transition: transform 0.18s; }
.badge-tile.on { opacity: 1; border-color: var(--orange-line); background: linear-gradient(180deg, var(--orange-soft), var(--surface)); }
.badge-tile.on:hover { transform: translateY(-2px); }
.badge-tile .b-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 8px; background: var(--bg-2); color: var(--muted); }
.badge-tile.on .b-ic { background: var(--orange); color: var(--on-orange); }
.badge-tile .b-n { font-weight: 800; font-size: 0.86rem; letter-spacing: -0.01em; color: var(--text); }
.badge-tile .b-d { font-size: 0.74rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }

.tn-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tn-card.live { border-color: var(--orange-line); }
.tn-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); background: var(--orange-soft); padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 10px; }
.tn-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tn-card p { color: var(--muted); font-size: 0.9rem; flex: 1; margin-bottom: 14px; }
.duel-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.duel-row:last-child { border-bottom: 0; }
.duel-row .vs { flex: 1; }
.duel-row .vs b { display: block; font-size: 0.96rem; color: var(--text); }
.duel-row .vs .x { font-size: 0.8rem; color: var(--muted); }
.duel-row .scores { display: flex; gap: 14px; align-items: center; font-size: 0.92rem; font-weight: 700; }
@media (max-width: 600px) { .lp { grid-template-columns: repeat(5, 1fr); } .lp-step .lp-n { font-size: 0.76rem; } .lp-step { padding: 10px 4px; } }

/* Marchés prédictifs (Polymarket-style) */
.pm-cats { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.pm-cat { background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 99px;
  font-size: 0.82rem; color: var(--muted); cursor: pointer; white-space: nowrap; font-family: inherit; }
.pm-cat:hover { color: var(--text); border-color: var(--border-strong); }
.pm-cat.active { background: var(--orange-soft); border-color: var(--orange-line); color: var(--orange); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pm-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.pm-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.pm-card.sel { border-color: var(--orange-line); box-shadow: var(--glow-orange); }
.pm-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pm-img { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center;
  color: var(--orange); font-weight: 800; font-size: 0.85rem; flex: none; overflow: hidden; }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-meta { font-size: 0.74rem; color: var(--muted); }
.pm-card h4 { font-size: 0.96rem; font-weight: 700; line-height: 1.3; margin-bottom: 14px; flex: 1; min-height: 2.5em; color: var(--text); }
.pm-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.pm-yes, .pm-no { padding: 9px; border-radius: 10px; font-family: inherit; font-weight: 800; cursor: pointer;
  border: 1px solid; background: transparent; font-size: 0.86rem; transition: background 0.15s; }
.pm-yes { color: var(--green); border-color: rgba(31,181,115,0.35); }
.pm-yes:hover { background: var(--green-soft); }
.pm-no { color: var(--red); border-color: rgba(229,72,77,0.35); }
.pm-no:hover { background: var(--red-soft); }
.pm-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--muted); }
.pm-loading { text-align: center; padding: 50px 20px; color: var(--muted); }
.pm-warn { background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 10px; padding: 10px 14px;
  font-size: 0.86rem; color: var(--orange); margin-bottom: 14px; }
.pm-slip { background: var(--surface); border: 1px solid var(--orange-line);
  box-shadow: var(--glow-orange); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.pm-slip .pm-slip-q { font-size: 0.86rem; color: var(--muted); }
.pm-slip .pm-slip-t { font-weight: 700; margin: 4px 0 14px; color: var(--text); }
.pm-slip .pm-slip-side { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 14px; }
.pm-slip .pm-slip-side.yes { color: var(--green); }
.pm-slip .pm-slip-side.no { color: var(--red); }

/* ============================================================
   Certificats : grille de cartes (Mes certificats) + modal
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-card-thumb { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
.cert-card-thumb::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%); pointer-events: none; }
.cert-card-body { padding: 16px; }
@media (max-width: 640px) { .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cert-card-body { padding: 12px; } .cert-card-body h4 { font-size: 0.92rem; } }


.cert-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15, 14, 26, 0.65);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.cert-modal-inner { background: var(--surface); border-radius: 18px; padding: 22px; max-width: 1240px;
  width: 100%; box-shadow: 0 50px 100px -30px rgba(0,0,0,0.6); }
.cert-modal-inner .cert-preview { width: 100%; aspect-ratio: 1200/630; background: var(--bg-2); border-radius: 10px;
  overflow: hidden; margin-bottom: 16px; }
.cert-modal-inner .cert-preview svg { width: 100%; height: 100%; display: block; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-actions .btn-sm { padding: 10px 18px; }
.cert-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 8px;
  font-family: inherit; font-size: 0.86rem; }
.cert-close:hover { color: var(--text); }
.cert-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.cert-head h3 { font-size: 1.15rem; font-weight: 800; }
.cert-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 0.78rem;
  border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: inherit; cursor: pointer; font-weight: 700; }
.cert-btn:hover { border-color: var(--orange-line); color: var(--orange); }
.cert-btn.primary { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.cert-btn.primary:hover { color: var(--on-orange); filter: brightness(1.05); }
.cert-link-row { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--orange-soft);
  color: var(--orange); border-radius: 8px; font-size: 0.78rem; font-weight: 700; cursor: pointer; border: 0;
  font-family: inherit; }
.cert-link-row:hover { background: var(--orange); color: var(--on-orange); }
@media (max-width: 640px) {
  .cert-modal { padding: 10px; }
  .cert-modal-inner { padding: 14px; }
  .cert-actions { gap: 6px; }
}

/* Sportsbook — grille des catégories de sport */
.sport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.sport-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  border: 1px solid transparent; border-radius: 18px; padding: 20px 22px;
  color: #fff; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.sport-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -18px rgba(124,107,246,0.40); }
.sport-card.soon { background: linear-gradient(135deg, #B8B6CC 0%, #D6D3E3 100%); cursor: not-allowed; }
.sport-card.soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.sport-card h3 { color: #fff; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.sport-card .sport-desc { color: rgba(255,255,255,0.85); font-size: 0.78rem; margin-top: 6px; line-height: 1.4; }
.sport-card .sport-svg { position: absolute; right: -14px; bottom: -10px; width: 130px; height: 130px;
  opacity: 0.85; color: rgba(255,255,255,0.35); pointer-events: none; }
.sport-card .sport-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; background: rgba(0,0,0,0.28); color: #fff;
  padding: 8px 14px; border-radius: 99px; align-self: flex-start; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15); }
.sport-card .sport-cta svg { width: 12px; height: 12px; }
.sport-card .sport-count { position: absolute; top: 14px; right: 16px; font-size: 0.74rem; font-weight: 700;
  background: rgba(0,0,0,0.28); color: #fff; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.18); }
.sport-card.soon .sport-cta { background: rgba(255,255,255,0.30); color: rgba(255,255,255,0.95); }
.sport-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted);
  font-family: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; padding: 6px 0; margin-bottom: 8px; }
.sport-back:hover { color: var(--orange); }
@media (max-width: 960px) { .sport-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sport-grid { grid-template-columns: 1fr; } .sport-card { min-height: 130px; } .sport-card h3 { font-size: 1.35rem; } }

/* Sportsbook (paris sportifs) — liste des matchs */
.sport-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange); font-weight: 700; margin: 22px 0 4px; }
.fixture { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.fixture:last-child { border-bottom: 0; }
.fixture .meta { font-size: 0.76rem; color: var(--muted); }
.fixture .teams { font-weight: 700; margin-top: 3px; color: var(--text); }
.odds { display: flex; gap: 8px; flex-wrap: wrap; }
.odds-btn { min-width: 62px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 7px 10px; cursor: pointer; color: var(--text); font-family: inherit; text-align: center; transition: all 0.15s; }
.odds-btn .lbl { display: block; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.02em; }
.odds-btn .val { font-weight: 800; font-size: 0.95rem; }
.odds-btn:hover { border-color: var(--orange); }
.odds-btn.sel { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.odds-btn.sel .lbl { color: var(--on-orange); }
.slip { background: var(--surface); border: 1px solid var(--orange-line); box-shadow: var(--glow-orange); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.pending-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.pending-row:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  /* Containment : minmax(0, 1fr) empêche la cellule grid de s'élargir avec son contenu */
  .bo { grid-template-columns: minmax(0, 1fr); }
  /* Sidebar passe en barre horizontale fine en haut, pas en colonne pleine hauteur */
  .bo-side { position: static; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border);
    padding: 10px 14px; flex-direction: row; align-items: center; gap: 10px;
    overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; }
  .bo-side::-webkit-scrollbar { display: none; }
  .bo-who { display: none; }
  .bo-search { display: none; }                       /* recherche pas pertinente sur barre mobile */
  .bo-sect { display: none; }                         /* divider FEATURES inutile en mode rangée */
  .bo-up { display: none; }                           /* carte "Booster" trop encombrante sur mobile */
  .bo-nav { display: flex; flex-direction: row; gap: 4px; flex: 1; min-width: 0; }
  /* Override du width:100% du desktop pour que chaque lien fasse sa taille naturelle */
  .bo-link { width: auto; white-space: nowrap; padding: 9px 14px; font-size: 0.84rem; flex-shrink: 0; }
  .bo-link svg { width: 16px; height: 16px; }
  .bo-link span { display: inline; }
  .bo-main { padding: 22px 16px 56px; min-width: 0; }
}
@media (max-width: 640px) {
  /* Tout passe en 1 colonne et on resserre */
  .bo-main { padding: 18px 14px 50px; }
  .stat3 { grid-template-columns: 1fr; gap: 12px; }
  .wc-grid { grid-template-columns: 1fr; gap: 14px; }
  .wallet-mini { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wm { padding: 11px; }
  .wm-amt { font-size: 0.95rem; }
  .q-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .hero-bo { flex-direction: column-reverse; padding: 22px; gap: 16px; }
  .hero-bo .h-side { align-self: center; flex: 0 0 auto; }
  .hero-bo h2 { font-size: 1.4rem; }
  .hero-bo .h-amt { font-size: 1.8rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 1.2rem; }
  .dash-h h1 { font-size: 1.3rem; }
  .dash-h { gap: 8px; }
  .pm-grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(5, 1fr) !important; gap: 4px; }
  .lp-step { padding: 8px 2px; }
  .lp-step .lp-n { font-size: 0.7rem; }
  .lp-step .lp-r { display: none; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .badge-tile { padding: 12px 8px; }
  /* Tables : scroll horizontal interne */
  .card > div[style*="overflow-x"] table { font-size: 0.84rem; }
  .table th, .table td { padding: 10px 10px; font-size: 0.86rem; }
  .history th, .history td { padding: 10px 8px; font-size: 0.82rem; }
  /* Sous-titres dash-h sub */
  .dash-h .sub { font-size: 0.84rem; }
  .dash-h .actions { gap: 6px; }
  .pill-sel { padding: 7px 12px; font-size: 0.78rem; }
}

/* Listes de règlement */
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.doc-list li { position: relative; padding-left: 24px; color: var(--text); font-size: 0.97rem; line-height: 1.55; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.doc-list li b { color: var(--text); }
.doc-num { counter-reset: dl; }
.doc-num li::before { counter-increment: dl; content: counter(dl); top: 0; width: auto; height: auto; border-radius: 0; background: none; color: var(--orange); font-weight: 800; font-size: 0.9rem; }

/* ============================================================
   Stat bar
   ============================================================ */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.statbar > div { background: var(--surface); padding: 30px 24px; text-align: center; }
.statbar .v { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
.statbar .v.orange { color: var(--orange); }
.statbar .k { color: var(--muted); font-size: 0.74rem; margin-top: 4px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ============================================================
   À propos
   ============================================================ */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 920px; margin: 40px auto 0; }
.about-cols p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   Showcase (panneaux clairs)
   ============================================================ */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); transition: transform 0.2s; box-shadow: var(--shadow-sm); }
.panel:hover { transform: translateY(-4px); }
.panel::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(124,107,246,0.18), transparent 55%); }
.panel .big { position: relative; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
.panel .lbl { position: relative; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }

/* Arguments de vente — cartes épurées (icône + titre + phrase) */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usp-item { position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; box-shadow: var(--shadow-sm); }
.usp-item:hover { transform: translateY(-4px); border-color: var(--orange-line); box-shadow: 0 24px 50px -22px rgba(124,107,246,0.30); }
.usp-item::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 0%, rgba(124,107,246,0.10), transparent 55%); }
.usp-ic { position: relative; color: var(--orange); height: 30px; margin-bottom: 18px; }
.usp-ic svg { width: 30px; height: 30px; }
.usp-item h3 { position: relative; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.usp-item p { position: relative; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 640px) { .usp { grid-template-columns: 1fr; gap: 16px; } }

/* Steps */
.step .num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 400; color: var(--orange); letter-spacing: 0; line-height: 1; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Carrousel de challenges (façon "collection")
   ============================================================ */
.collection { position: relative; }
.collection-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.collection-head .display { font-size: clamp(2.4rem, 7vw, 5rem); }

.carousel { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 22px; align-items: center; }
.carousel .side { opacity: 0.4; transform: scale(0.92); transition: all 0.3s; cursor: pointer; }
.carousel .side:hover { opacity: 0.7; }

/* Grille de paliers (page challenges) */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.tier {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; min-height: 100%;
  box-shadow: var(--shadow-sm);
}
.tier:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tier.center-card, .tier.featured { border-color: var(--orange-line); box-shadow: var(--glow-orange); }
.tier .tag { align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange); padding: 5px 0; margin-bottom: 12px; }
.tier .cap { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.2rem); font-weight: 400; letter-spacing: 0; line-height: 1; color: var(--text); }
.tier .fee { color: var(--muted); margin: 8px 0 20px; font-size: 0.92rem; }
.tier .fee b { color: var(--text); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 4px 0 26px; }
.tier li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.tier li svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.tier .btn { margin-top: auto; }
.tier .mini { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.tier .mini b { display: block; color: var(--text); font-size: 1.6rem; letter-spacing: -0.02em; margin-top: 6px; text-transform: none; }

.carousel-ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.arrows { display: flex; gap: 12px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: all 0.18s; }
.arrow:hover { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.pagination { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 0.85rem; color: var(--muted-2); letter-spacing: 0.1em; }
.pagination .cur { color: var(--text); }
.pagination .dash { width: 60px; height: 1px; background: var(--border-strong); }
.pagination .pg { cursor: pointer; transition: color 0.15s; }
.pagination .pg.active { color: var(--orange); }
.pagination .pg:hover { color: var(--text); }

/* ============================================================
   Features / règles
   ============================================================ */
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 6px 0; }
.feat .ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-line); }
.feat h3 { font-size: 1.06rem; margin-bottom: 5px; }
.feat p { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   Table
   ============================================================ */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.table td { font-size: 0.98rem; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table .pos { color: var(--green); font-weight: 700; }
.table .neg { color: var(--red); font-weight: 700; }

/* ============================================================
   Témoignages
   ============================================================ */
.quote { display: flex; flex-direction: column; gap: 16px; }
.quote .stars { color: var(--orange); letter-spacing: 3px; }
.quote p { font-size: 1rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--on-orange); font-weight: 800; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: 0; color: var(--text); font-family: inherit;
  font-size: 1.06rem; font-weight: 700; padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; text-align: left; gap: 16px; }
.faq-q .chev { transition: transform 0.2s; color: var(--orange); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; color: var(--muted); }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { padding-bottom: 24px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 70px 40px;
  text-align: center; position: relative; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.cta-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(124,107,246,0.16), transparent 60%); }
.cta-band > * { position: relative; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; color: var(--muted); background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text); margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer a { color: var(--muted); font-size: 0.92rem; }
.footer a:hover { color: var(--orange); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.disclaimer { font-size: 0.78rem; color: var(--muted-2); max-width: 780px; margin-top: 16px; line-height: 1.6; }

/* ============================================================
   Formulaires / Auth
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input, select.input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
.input::placeholder { color: var(--muted-2); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.6; }
.form-note { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 18px; }
.form-note a { color: var(--orange); font-weight: 700; }
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.error { background: var(--red-soft); border: 1px solid rgba(229,72,77,0.35); color: #B33036; }
.alert.ok { background: var(--green-soft); border: 1px solid rgba(31,181,115,0.35); color: #137A49; }

/* ============================================================
   Dashboard (page dashboard.html legacy)
   ============================================================ */
.dash { padding: 40px 0 90px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.dash-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.dash-head .muted { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.74rem; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.1em; }
.badge.eval { background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-line); }
.badge.funded { background: var(--green-soft); color: var(--green); border: 1px solid rgba(31,181,115,0.35); }
.badge.failed { background: var(--red-soft); color: var(--red); border: 1px solid rgba(229,72,77,0.35); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.kpi .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.kpi .v { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em; margin-top: 8px; color: var(--text); }
.kpi .sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.v.pos { color: var(--green); } .v.neg { color: var(--red); }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }

.gauge-track { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.gauge-fill { height: 100%; border-radius: 99px; transition: width 0.5s ease; }
.gauge-fill.green { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.gauge-fill.red { background: linear-gradient(90deg, #FF7A3C, var(--red)); }
.gauge-fill.gold { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }

.rule-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.rule-row:last-child { border-bottom: 0; }
.rule-row .ok { color: var(--green); font-weight: 700; }
.rule-row .bad { color: var(--red); font-weight: 700; }

.bet-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bet-form .full { grid-column: 1 / -1; }

.history { width: 100%; border-collapse: collapse; }
.history th, .history td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.history th { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.history td { color: var(--text); }
.history .pos { color: var(--green); font-weight: 700; }
.history .neg { color: var(--red); font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.banner { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.banner.win { background: var(--green-soft); border: 1px solid rgba(31,181,115,0.35); color: #137A49; }
.banner.lose { background: var(--red-soft); border: 1px solid rgba(229,72,77,0.35); color: #B33036; }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 99px; padding: 4px; gap: 4px; }
.seg button { background: none; border: 0; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 0.82rem; padding: 9px 18px; border-radius: 99px; cursor: pointer; transition: all 0.15s; letter-spacing: 0.04em; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button.win.active { background: var(--green-soft); color: var(--green); }
.seg button.lose.active { background: var(--red-soft); color: var(--red); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .grid-3, .grid-4, .statbar, .kpi-grid, .showcase, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 28px; }
  .carousel { grid-template-columns: 1fr; }
  .carousel .side { display: none; }
}

/* Auth dans le burger (cachée en desktop, visible en mobile) */
.nav-mobile-auth { display: none; }

/* Bascule de la navigation (menu compact) */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: flex-start; }
  .nav-actions { margin-left: auto; margin-right: 12px; }
  .nav-links.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; transform: none;
    flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 28px; gap: 18px; box-shadow: var(--shadow); }
  .nav-links.open .nav-mobile-auth { display: flex; flex-direction: column; gap: 10px;
    width: 100%; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .statbar, .kpi-grid, .showcase, .bet-form, .price-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .carousel-ctrl { flex-direction: column; gap: 18px; align-items: flex-start; }
}

/* ============================================================
   Arena (tournois)
   ============================================================ */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.division { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; background: var(--surface); box-shadow: var(--shadow-sm); }
.division .rk { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.division h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.division p { color: var(--muted); font-size: 0.9rem; }
.division.elite { border-color: var(--orange-line); box-shadow: var(--glow-orange); }
.division .pill { display: inline-block; margin-top: 16px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); }
.division.elite .pill { background: var(--orange); color: var(--on-orange); }

.lb-rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-weight: 800; font-size: 0.82rem; background: var(--bg-2); color: var(--text); }
.lb-rank.g1 { background: linear-gradient(135deg, #F5C36E, #E5A632); color: #4A2D00; }
.lb-rank.g2 { background: linear-gradient(135deg, #DDE0E5, #B6B9C2); color: #2A2D33; }
.lb-rank.g3 { background: linear-gradient(135deg, #C99172, #9A6841); color: #fff; }

.cal-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.cal-row:last-child { border-bottom: 0; }
.cal-row .wk { flex: 0 0 150px; font-weight: 800; color: var(--orange); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.8rem; }
.cal-row .ev { color: var(--text); font-size: 0.95rem; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); }
.path.pay { border-color: var(--orange-line); box-shadow: var(--glow-orange); }
.path h3 { font-size: 1.25rem; margin-bottom: 8px; }
.path p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }

@media (max-width: 960px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .ladder, .paths { grid-template-columns: 1fr; }
  .cal-row { flex-direction: column; gap: 4px; }
  .cal-row .wk { flex: none; }
}

/* ============================================================
   Hero mobile : tagline plus petite, SPOVIBE légèrement remonté,
   ballon laissé exactement à sa position (compensation via margin-top
   sur orb-wrap). Et fix de l'overflow horizontal (nav + H2 + CTA + table).
   ============================================================ */
@media (max-width: 640px) {
  /* Compromis : on remonte de ~24 px (entre l'original 58 et la v3 22) */
  .hero { padding-top: 34px; }
  .hero-tagline { font-size: 0.62rem; letter-spacing: 0.18em; line-height: 1.3; }
  .hero-stage > div:first-child { margin-bottom: 4px; }
  .hero-word { line-height: 0.9; }
  /* Ball position : on a remonté de 24 px, on compense de 24 px (orig -40 → -16) */
  .orb-wrap { margin-top: -16px; }

  /* Fix overflow horizontal */
  h2 { font-size: 1.55rem; }                      /* trop gros sur mobile, débordait */
  .nav-actions .btn-ghost { display: none; }      /* on garde uniquement le CTA principal + burger */
  .nav-actions .btn { padding: 9px 14px; font-size: 0.7rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { white-space: normal; padding: 14px 18px; font-size: 0.78rem; line-height: 1.2; }

  /* Table de partage des gains : scroll horizontal interne au card */
  #payouts .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th, .table td { padding: 11px 12px; font-size: 0.86rem; }

  /* Arena teaser : padding interne réduit sur mobile */
  #arena-teaser .grid > div { padding: 26px !important; }
}
