/* Pryve hub : ambiance 1win (bleu nuit, dégradés bleus, cartes lumineuses) + animations d'ouverture */
:root {
  --bg: #0b1530; --bg2: #0f1f45; --panel: #142a5c; --panel-2: #10224d; --border: #22407a; --border-light: #3b63b3;
  --text: #fff; --muted: #9db0d9; --blue: #1e63ff; --blue-2: #3d8bff; --green: #22c55e; --red: #ff3d6b;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(120% 70% at 50% -10%, #1a3a8a 0%, var(--bg) 50%, #070d1f 100%); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* fond animé */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 50; background: radial-gradient(60% 60% at 50% 50%, #142a5c, #070d1f); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; animation: introOut .7s ease-in 2.1s forwards; }
.intro.done { display: none; }
.intro-glow { position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%; background: radial-gradient(circle, rgba(229,5,57,.35), rgba(30,99,255,.15) 50%, transparent 70%); animation: pulse 1.6s ease-in-out infinite; }
.intro-logo { width: min(60vw, 420px); position: relative; animation: logoIn 1.1s cubic-bezier(.2,.9,.3,1.3) both; filter: drop-shadow(0 10px 40px rgba(229,5,57,.5)); }
.intro-bar { width: min(50vw, 260px); height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; position: relative; }
.intro-bar i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #e50539, #ff7a1a, #3d8bff); animation: load 1.9s ease-out .2s forwards; }
@keyframes logoIn { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes load { to { width: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.hub { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 10px 16px 40px; min-height: 100vh; display: flex; flex-direction: column; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: rgba(16,34,77,.75); border: 1px solid var(--border); border-radius: 14px; backdrop-filter: blur(10px); position: sticky; top: 8px; z-index: 10; animation: slideDown .7s ease-out 2.2s both; }
.nav-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav-logo { height: 38px; width: auto; filter: drop-shadow(0 2px 12px rgba(229,5,57,.45)); }
.burger { display: none; font-size: 20px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); font-size: 13px; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { background: rgba(61,139,255,.15); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding: 4px 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.nav-balance .lbl { font-size: 10px; color: var(--muted); font-weight: 600; }
.nav-balance b { font-size: 14px; color: #fff; }
.nav-balance small { color: var(--muted); font-weight: 600; }
.nav-deposit { background: linear-gradient(180deg, #2ee37a, #16a34a); color: #042b16; font-weight: 800; font-size: 12px; padding: 9px 14px; border-radius: 10px; box-shadow: 0 6px 18px rgba(34,197,94,.3); }
.nav-deposit:hover { filter: brightness(1.08); }
.nav-profile { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 13px; }
.nav-profile img { width: 28px; height: 28px; border-radius: 50%; }
.nav-profile:hover { border-color: var(--border-light); }
.lang-group { display: flex; gap: 4px; }
.lang-group button { padding: 5px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); }
.lang-group button.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; margin: 26px 0 10px; padding: 28px 30px; border-radius: 20px; background: linear-gradient(120deg, rgba(30,99,255,.35), rgba(229,5,57,.18) 60%, rgba(16,34,77,.6)); border: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 80% 50%, rgba(61,139,255,.35), transparent 70%); pointer-events: none; }
.hero-text { position: relative; z-index: 1; }
.hero-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #9fd0ff; background: rgba(61,139,255,.15); border: 1px solid rgba(61,139,255,.4); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.hero h1 { font-size: 36px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -.5px; }
.hero p { color: var(--muted); margin: 0 0 18px; font-size: 15px; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(180deg, #4d95ff, var(--blue)); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 12px; box-shadow: 0 8px 24px rgba(30,99,255,.4); transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30,99,255,.55); }
.btn-ghost { background: rgba(255,255,255,.08); border: 1px solid var(--border-light); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 12px; }
.hero-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.hero-svg { width: 260px; height: 260px; animation: float 4s ease-in-out infinite; }
.orbit { position: absolute; inset: 0; }
.orbit .chip { position: absolute; background: #0b1530; border: 1px solid var(--border-light); border-radius: 16px; padding: 4px 12px; font-weight: 800; font-size: 13px; animation: float 3.4s ease-in-out infinite; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.orbit .c1 { left: 6%; top: 18%; color: #3d8bff; }
.orbit .c2 { right: 8%; top: 12%; color: #e040fb; animation-delay: .6s; }
.orbit .c3 { left: 12%; bottom: 14%; color: #3d8bff; animation-delay: 1.2s; }
.orbit .c4 { right: 10%; bottom: 20%; color: #ff3d6b; animation-delay: 1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* sections */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.section-head h2 { font-size: 20px; margin: 0; }
.section-tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.section-tabs span { padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: default; }
.section-tabs span.active { background: var(--blue); color: #fff; }

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.games.small { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: linear-gradient(180deg, #142a5c, #0f1f45); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, rgba(61,139,255,.6), transparent 40%, transparent 60%, rgba(229,5,57,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; pointer-events: none; }
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(61,139,255,.25); }
.card:hover::before { opacity: 1; }
.card-art { aspect-ratio: 16 / 10; background: #000; position: relative; overflow: hidden; }
.card-art svg { width: 100%; height: 100%; display: block; transition: transform .4s; }
.card:hover .card-art svg { transform: scale(1.06); }
.badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 900; letter-spacing: .5px; padding: 3px 8px; border-radius: 8px; color: #fff; }
.badge.hot { background: linear-gradient(90deg, #ff3d6b, #ff7a1a); }
.badge.new { background: linear-gradient(90deg, #22c55e, #16a34a); }
.badge.top { background: linear-gradient(90deg, #3d8bff, #1e63ff); }
.card-body { padding: 12px 14px 8px; flex: 1; }
.card-title { font-size: 17px; font-weight: 800; }
.card-prov { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.card-sub { color: var(--muted); font-size: 12px; line-height: 1.4; }
.card-cta { margin: 0 14px 14px; background: linear-gradient(180deg, #4d95ff, var(--blue)); color: #fff; text-align: center; font-weight: 800; padding: 10px; border-radius: 10px; letter-spacing: .5px; text-transform: uppercase; font-size: 12px; box-shadow: 0 6px 18px rgba(30,99,255,.35); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.how-item { background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.how-item .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(61,139,255,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.how-item b { font-size: 14px; }
.how-item span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.hub-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.hub-foot img { height: 24px; opacity: .8; }

/* révélation progressive */
.reveal { opacity: 0; transform: translateY(24px); animation: reveal .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(2.3s + var(--i, 0) * .08s); }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.no-intro .intro { display: none; }
.no-intro .reveal { animation-delay: calc(var(--i, 0) * .06s); }
.no-intro .nav { animation-delay: 0s; }

@media (max-width: 980px) {
  .games, .games.small { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero-art { min-height: 180px; }
  .hero-svg { width: 180px; height: 180px; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hub { padding: 8px 10px 30px; }
  .nav { padding: 6px 10px; top: 6px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-logo { height: 30px; }
  .nav-balance .lbl { display: none; }
  .nav-deposit { padding: 8px 10px; font-size: 11px; }
  .nav-profile span { display: none; }
  .nav-profile { padding: 3px; }
  .lang-group { display: none; }
  .hero h1 { font-size: 26px; }
  .games, .games.small { grid-template-columns: 1fr; }
  .section-tabs { display: none; }
}
