


body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(217, 70, 239, 0.03) 0px,
      rgba(217, 70, 239, 0.03) 2px,
      transparent 2px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(162, 28, 175, 0.02) 0px,
      rgba(162, 28, 175, 0.02) 2px,
      transparent 2px,
      transparent 20px
    );
  pointer-events: none;
  z-index: 0;
}


.hero-jeu {
  --hero-marge: -40px -32px 32px;
  --hero-marge-mobile: -28px -18px 24px;
  --hero-radius: 24px 24px 0 0;
  background: radial-gradient(ellipse at center, rgba(162, 28, 175, 0.15), transparent 70%);
}


.hero-jeu .hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--color-light), var(--color-mid), var(--color-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-jeu .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}


.pion-carte1, .pion-carte2, .pion-carte3 { font-size: 2rem; font-weight: 400; opacity: 0.25; }
.pion-carte2 { font-size: 1.8rem; }
.pion-carte3 { color: #fbbf24; }


.btn-cta-hero {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: #a21caf;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-cta-hero:hover {
  transform: translateY(-3px) scale(1.03);
}


.hero-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.live-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
}


.mode-card:hover {
  border-color: rgba(217, 70, 239, 0.4);
}

.mode-card:hover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f0abfc, #d946ef);
  border-radius: 20px 20px 0 0;
}

.mode-card h2 { color: #f0abfc; }


.mode-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

.badge-solo { background: rgba(96, 165, 250, 0.2); color: #93c5fd; }
.badge-action { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.badge-quotidien { background: rgba(167, 139, 250, 0.2); color: #c4b5fd; }
.badge-entrainement { background: rgba(251, 191, 36, 0.18); color: #fde68a; }


.section-panel h3 { color: #f0abfc; }
.opt-btn.active { background: rgba(162, 28, 175, 0.3); border-color: rgba(217, 70, 239, 0.6); color: #f0abfc; }


.slider-custom::-webkit-slider-thumb { background: linear-gradient(135deg, #a21caf, #d946ef); }
.slider-custom::-webkit-slider-runnable-track { background: linear-gradient(90deg, rgba(162, 28, 175, 0.3), rgba(217, 70, 239, 0.3)); }


.rules h2 { color: #f0abfc; }
.rules li::before { color: #d946ef; }
.rules { --rules-symbole: '🃏'; }


.blog-section h2 { color: #f0abfc; }
.blog-card:hover { border-color: rgba(217, 70, 239, 0.4); }
.blog-card h3 a { color: #f0abfc; }
.read-more { color: #d946ef; }
.btn-all-articles { background: #a21caf; }


.form-label { color: #f0abfc; }
.input-field:focus { border-color: rgba(217, 70, 239, 0.5); }


@media (max-width: 480px) {
  .hero-jeu .hero-title { font-size: 1.8rem; }
  .hero-jeu .hero-h1 { font-size: 0.95rem; }
  .pion-carte1, .pion-carte2, .pion-carte3 { font-size: 1.5rem; }
  .btn-cta-hero { padding: 12px 28px; font-size: 1rem; }
}


.panel-groupe { margin-bottom: 16px; }
.panel-groupe-serre { margin-bottom: 12px; }
.panel-groupe .form-label { display: block; }
.panel-options { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.opt-btn { min-height: 44px; }
.section-panel .btn { min-height: 46px; }
.btn-jouer-panel { margin-top: 12px; min-width: 160px; }
.input-code { text-transform: uppercase; letter-spacing: 4px; text-align: center; }
.mode-card:focus-visible, .opt-btn:focus-visible, .btn:focus-visible, .lien-classement-accueil:focus-visible {
  outline: 3px solid #fbbf24; outline-offset: 3px;
}


.lien-classement-accueil {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin: 8px auto 28px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--texte-doux);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.lien-classement-accueil:hover {
  color: var(--color-light);
  border-color: var(--color-mid);
}

#parties-publiques { margin-top: 16px; }
.publiques-vide { font-size: 0.82rem; color: #64748b; font-style: italic; }
.partie-publique {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: none; border-radius: 10px; padding: 10px; margin: 6px 0;
  cursor: pointer; color: inherit; font: inherit; text-align: left; min-height: 44px;
}
.partie-publique strong { color: #f0abfc; }
.partie-publique-places { font-size: 0.78rem; color: #94a3b8; }
