/* === Othello — surcharge identité jeu === */

/* Hero renforcé */
.hero-othello {
  position: relative;
  padding: 32px 20px 28px;
  margin: -40px -32px 28px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(167,243,208,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(5,150,105,0.1) 0%, transparent 50%),
    rgba(0,0,0,0.2);
  overflow: hidden;
}
.hero-othello::before {
  content: '';
  position: absolute;
  top: -20px; right: -30px;
  width: 180px; height: 180px;
  background-image:
    linear-gradient(rgba(167,243,208,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,243,208,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 20px;
  transform: rotate(15deg);
  opacity: 0.7;
  pointer-events: none;
}
.hero-othello::after {
  content: '';
  position: absolute;
  bottom: -15px; left: -25px;
  width: 140px; height: 140px;
  background-image:
    linear-gradient(rgba(5,150,105,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,150,105,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 16px;
  transform: rotate(-10deg);
  opacity: 0.6;
  pointer-events: none;
}

/* Disques décoratifs flottants */
.hero-disques {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.disque-deco {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900;
  animation: disque-float 3s ease-in-out infinite;
  will-change: transform;
}
.disque-deco:nth-child(2) { animation-delay: -1s; }
.disque-deco:nth-child(3) { animation-delay: -2s; }
.disque-noir {
  background: radial-gradient(circle at 35% 35%, #555, #1a1a1a);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 -2px 4px rgba(255,255,255,0.1);
}
.disque-blanc {
  background: radial-gradient(circle at 35% 35%, #fff, #e2e8f0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(0,0,0,0.1);
}
.disque-flip {
  background: linear-gradient(135deg, #1a1a1a 50%, #fff 50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  animation: disque-float 3s ease-in-out infinite, disque-spin 4s linear infinite;
}
@keyframes disque-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes disque-spin {
  0% { transform: translateY(0) rotateY(0deg); }
  25% { transform: translateY(-6px) rotateY(90deg); }
  50% { transform: translateY(0) rotateY(180deg); }
  75% { transform: translateY(-6px) rotateY(270deg); }
  100% { transform: translateY(0) rotateY(360deg); }
}
.disque-flip {
  animation: disque-flip-combined 4s ease-in-out infinite;
}
@keyframes disque-flip-combined {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  25% { transform: translateY(-6px) rotateY(90deg); }
  50% { transform: translateY(0) rotateY(180deg); }
  75% { transform: translateY(-6px) rotateY(270deg); }
}

/* Titre hero plus impactant */
.hero-othello .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-othello .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}
.hero-othello .subtitle {
  margin-bottom: 20px;
}

/* Bouton CTA hero */
.btn-cta-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 36px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 6px 24px rgba(4,120,87,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.btn-cta-hero::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 2px solid rgba(167,243,208,0.5);
  pointer-events: none;
  animation: cta-ring 2.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.btn-cta-hero:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(4,120,87,0.5);
}
@keyframes cta-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Indicateur joueurs en ligne dans le hero */
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
}
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34,197,94,0.4);
  animation: live-pulse 2s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2.4); opacity: 0; }
}

/* Cartes modes de jeu - plus "game" */
.modes { gap: 14px; margin-bottom: 24px; }
.mode-card {
  position: relative;
  padding: 24px 18px;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-light), var(--color-mid));
  opacity: 0;
  transition: opacity 0.3s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(5,150,105,0.2);
  border-color: rgba(167,243,208,0.3);
}

/* Icônes mode plus grandes et identitaires */
.mode-icon {
  font-size: 2.8rem !important;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}
.mode-card:hover .mode-icon {
  transform: scale(1.15);
}

/* Badge sur les cartes */
.mode-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}
.badge-solo {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.badge-defi {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.2);
}
.badge-action {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}

/* Séparateur "ou choisissez votre mode" */
.modes-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: 14px;
}

/* Slider difficulté plus stylé */
.slider-custom {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(59,130,246,0.3), rgba(239,68,68,0.3));
  outline: none;
}
.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #059669);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5,150,105,0.4);
  transition: transform 0.2s;
}
.slider-custom::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-custom::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #059669);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(5,150,105,0.4);
}

/* Boutons primaires plus punchy */
.btn-primary {
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Section rules - touche visuelle */
.rules {
  position: relative;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.rules::before {
  content: '\26AB';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 2rem;
  opacity: 0.08;
}

/* Responsive hero */
@media (max-width: 480px) {
  .hero-othello { padding: 24px 14px 22px; margin: -28px -18px 22px; }
  .hero-othello .hero-title { font-size: 1.8rem; }
  .hero-othello .hero-h1 { font-size: 0.95rem; }
  .btn-cta-hero { font-size: 1rem; padding: 12px 28px; }
  .disque-deco { width: 30px; height: 30px; font-size: 0.9rem; }
}
