/* === Vol Panique — surcharge identité jeu === */

/* Bandeau joueur le plus actif */
.bandeau-joueur-actif {
  margin-bottom: 16px;
  padding: 9px 18px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: #cbd5e1;
  overflow: hidden;
  animation: bandeau-apparition 0.8s ease both;
}
.bandeau-joueur-actif strong { color: #0ea5e9; font-weight: 700; }
.bandeau-carousel { position: relative; height: 1.4em; }
.bandeau-msg {
  position: absolute; inset: 0;
  text-align: center; line-height: 1.4em;
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bandeau-msg-visible { opacity: 1; transform: translateY(0); }
.bandeau-msg-sortie { opacity: 0; transform: translateY(-100%); }
.bandeau-msg-entree { opacity: 0; transform: translateY(100%); }
@keyframes bandeau-apparition {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .bandeau-joueur-actif { font-size: 0.78rem; padding: 8px 12px; }
  .bandeau-carousel { height: 3.6em; }
  .bandeau-cta { display: block; }
}

/* Hero renforcé : ciel */
.hero-vol-panique {
  position: relative;
  padding: 32px 20px 28px;
  margin: -40px -32px 28px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(125,211,252,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(251,191,36,0.10) 0%, transparent 50%),
    rgba(0,0,0,0.2);
  overflow: hidden;
}
.hero-vol-panique::before {
  content: '';
  position: absolute;
  top: -30px; right: -40px;
  width: 200px; height: 90px;
  background:
    radial-gradient(circle at 25% 60%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-vol-panique::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -30px;
  width: 160px; height: 70px;
  background: radial-gradient(circle at 40% 50%, rgba(125,211,252,0.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Nuages décoratifs centrés en haut du hero */
.hero-nuages {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 12px;
  height: 26px;
}
.nuage-hero {
  width: 48px; height: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 3px 8px rgba(14,165,233,0.22);
  position: relative;
  animation: nuage-float 4s ease-in-out infinite;
  will-change: transform;
}
.nuage-hero::before,
.nuage-hero::after {
  content: '';
  position: absolute;
  top: -8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}
.nuage-hero::before { left: 8px;  width: 16px; height: 16px; }
.nuage-hero::after  { right: 10px; width: 12px; height: 12px; }
.nuage-hero:nth-child(2) { animation-delay: -1.3s; opacity: 0.85; }
.nuage-hero:nth-child(3) { animation-delay: -2.6s; opacity: 0.7; }
@keyframes nuage-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Titre hero */
.hero-vol-panique .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, #7dd3fc, #0ea5e9, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-vol-panique .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}
.hero-vol-panique .subtitle {
  margin-bottom: 20px;
}

/* Groupe des 3 boutons d'action : 1 joueur / 2 joueurs / Classement */
.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 540px;
  margin: 4px auto 0;
}
/* Mobile : 2 boutons par ligne, le 3e prend toute la largeur en dessous */
@media (max-width: 600px) {
  .hero-actions { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
  .hero-actions > .hero-action:nth-child(3) { grid-column: 1 / -1; }
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-action:hover { transform: translateY(-2px); }

/* 1 joueur — bouton primaire, palette orange/sunset */
.hero-action-primary {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  box-shadow: 0 4px 18px rgba(249,115,22,0.35);
  border-color: transparent;
}
.hero-action-primary:hover {
  box-shadow: 0 6px 24px rgba(249,115,22,0.5);
}

/* 2 joueurs — palette ciel (rappel du 2e oiseau bleu cyan) */
.hero-action-multi {
  color: #e0f2fe;
  background: rgba(14,165,233,0.12);
  border-color: rgba(125,211,252,0.45);
}
.hero-action-multi:hover {
  background: rgba(14,165,233,0.22);
  border-color: rgba(125,211,252,0.7);
}

/* Classement — palette dorée (trophée) */
.hero-action-classement {
  color: #fde68a;
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.40);
}
.hero-action-classement:hover {
  background: rgba(251,191,36,0.20);
  border-color: rgba(251,191,36,0.7);
}

/* Indicateur live */
.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; }
}

/* Section rules */
.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: '\1F426'; /* oiseau */
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.8rem;
  opacity: 0.16;
}

/* Bouton primaire (mode card btn) */
.btn-primary {
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(14,165,233,0.35);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.45);
}
.btn-primary:active { transform: translateY(0); }

/* Responsive hero */
@media (max-width: 480px) {
  .hero-vol-panique { padding: 24px 14px 22px; margin: -28px -18px 22px; }
  .hero-vol-panique .hero-title { font-size: 1.8rem; }
  .hero-vol-panique .hero-h1 { font-size: 0.95rem; }
  .btn-cta-hero { font-size: 1rem; padding: 12px 28px; }
  .nuage-hero { width: 38px; height: 16px; }
  .hero-nuages { gap: 18px; }
}
