/* === Fond décoratif spatial === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, rgba(94,234,212,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 47% 33%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 63% 88%, rgba(255,255,255,0.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 78% 41%, rgba(245,158,11,0.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 91% 14%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(2px 2px at 35% 55%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(2px 2px at 82% 65%, rgba(94,234,212,0.3) 50%, transparent 100%);
  background-size: 100% 100%;
}

/* === Hero === */
.hero-cosmodrift {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(20, 184, 166, 0.18), transparent 65%),
    radial-gradient(ellipse at 75% 70%, rgba(245, 158, 11, 0.12), transparent 60%);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 18px;
  padding: 36px 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-cosmodrift::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle at 65% 65%, rgba(20, 184, 166, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-cosmodrift::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle at 35% 35%, rgba(245, 158, 11, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* === Étoiles flottantes === */
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: star-twinkle 3s ease-in-out infinite;
  will-change: opacity, transform;
}
.star-1 { top: 14%; left: 18%; animation-delay: 0s; }
.star-2 { top: 28%; right: 22%; animation-delay: -0.5s; background: #5eead4; }
.star-3 { bottom: 32%; left: 12%; animation-delay: -1s; background: #f59e0b; }
.star-4 { bottom: 20%; right: 28%; animation-delay: -1.5s; }
.star-5 { top: 55%; left: 38%; width: 3px; height: 3px; animation-delay: -2s; background: #5eead4; }
.star-6 { top: 70%; right: 14%; width: 3px; height: 3px; animation-delay: -2.5s; }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* === Visuel emoji temporaire (à remplacer par l'image WebP du vaisseau) === */
.hero-visual-emoji {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(20,184,166,0.25), rgba(6,7,15,0.6) 70%);
  border: 1px solid rgba(94, 234, 212, 0.25);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.3), 0 4px 18px rgba(0, 0, 0, 0.4);
}
@media (max-width: 600px) {
  .hero-visual-emoji { width: 150px; height: 150px; font-size: 4.4rem; }
}

/* === Texte hero === */
.hero-text { position: relative; z-index: 1; }
.hero-cosmodrift .hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.1;
  background: linear-gradient(90deg, #5eead4 0%, #2dd4bf 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cosmodrift .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .hero-cosmodrift .hero-title { font-size: 1.9rem; }
  .hero-cosmodrift .hero-h1 { font-size: 0.95rem; }
}

/* === CTA === */
.btn-cta-hero {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  padding: 14px 36px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(20, 184, 166, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-cta-hero::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 2px solid rgba(245, 158, 11, 0.6);
  pointer-events: none;
  animation: cta-ring 2.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.btn-cta-hero:hover {
  transform: scale(1.06);
  box-shadow: 0 0 32px rgba(20, 184, 166, 0.55);
}
@keyframes cta-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* === Indicateur live === */
.hero-live {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.live-dot { position: relative; width: 8px; height: 8px; background: #5eead4; border-radius: 50%; }
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.5);
  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; }
}

/* === Mode cards === */
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #f59e0b);
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.18);
}
.mode-card:hover .mode-icon {
  transform: scale(1.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mode-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-solo { background: rgba(94, 234, 212, 0.2); color: #5eead4; }
.badge-action { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* === Rules === */
.rules::before {
  content: '🚀';
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.6rem;
  opacity: 0.12;
}

/* === Responsive === */
@media (max-width: 480px) {
  .hero-cosmodrift { padding: 24px 16px 20px; }
  .star-1, .star-2, .star-3, .star-4 { width: 3px; height: 3px; }
  .star-5, .star-6 { width: 2px; height: 2px; }
  .btn-cta-hero { padding: 12px 28px; font-size: 1rem; }
}
