/* ============================================
   VARIABLES & RESET
============================================ */
/*:root {
  --bg: #0c0614;
  --bg-alt: #150c22;
  --purple: #8b2fd6;
  --purple-light: #b565f0;
  --pink: #ff5fa2;
  --gold: #ffcf6b;
  --text: #f2eefa;
  --text-muted: #b6a8cc;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
}*/

:root {
  --bg: #0c0614;
  --bg-alt: #150c22;
  --purple: #583C9E;
  --purple-light: #825DD0;
  --pink: #9F7BD0;
  --gold: #F8D59F;
  --text: #f2eefa;
  --text-muted: #b6a8cc;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
}
/*
nuit : #241C28
bleu: #583C9E
creme : #ECCCA5
gold : #F8D59F
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(ellipse at top, #1a0e2b 0%, var(--bg) 60%);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { line-height: 1.2; }

.accent { color: var(--pink); }

/* ============================================
   HEADER
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 6, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-logo { height: 32px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--pink); }

.texte-degrade {
  display: inline-block; /* évite que le dégradé s'étende sur toute la ligne */

  background-image: linear-gradient(
    to right,
    var(--purple-light) 0%,
    var(--pink) 50%,
    var(--gold) 100%
  );

  background-clip: text;
  -webkit-background-clip: text; /* compatibilité WebKit / Safari */

  color: transparent;
  -webkit-text-fill-color: transparent; /* Safari */
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-live, .btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 95, 162, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--purple-light); }

/* ============================================
   HERO
============================================ */
.hero {
  padding: 70px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1 1 420px; }

.badge-live {
  display: inline-block;
  background: rgba(255, 95, 162, 0.15);
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tagline {
  font-size: 1.3rem;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-avatar {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.hero-avatar img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 60px rgba(139, 47, 214, 0.5);
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat { text-align: center; }

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ============================================
   SECTIONS COMMUNES
============================================ */
.section {
  padding: 80px 0;
  text-align: center;
}

.section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle, .section-text {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ============================================
   ABOUT
============================================ */
.about .section-text { margin-bottom: 24px; }

.tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--purple-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   SETUP
============================================ */
.setup-image {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(139, 47, 214, 0.25);
}

.setup-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   PARTENAIRES
============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.partner-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
}

.partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.partner-logo {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
}

.partner-name-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
}

.btn-code {
  background: rgba(255, 207, 107, 0.1);
  border: 1px dashed var(--gold);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-code:hover { background: rgba(255, 207, 107, 0.2); }

.copy-hint {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.75rem;
}

.partners-cta p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-socials a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--pink); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 2.1rem; }
  .hero-actions { justify-content: center; }
  .hero-avatar img { width: 200px; height: 200px; }
  .stats-bar { gap: 32px; }
}

.games-group {
  margin-top: 40px;
}

.games-group > h3 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-light);
}

.game-card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin: 0 auto;
}

.game-card-content {
  padding: 16px;
}

.game-card h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 8px;
}

.game-card p,
.game-achievements {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.game-achievements {
  margin-top: 4px;
}

.games-more {
  color: var(--text-muted);
  margin-top: 32px;
  font-style: italic;
}
