/* === Fusion Animaux — surcharge identite jeu (accueil) === */

.bandeau-joueur-actif {
  margin-bottom: 16px;
  padding: 9px 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: #f5f5f4;
  overflow: hidden;
  animation: bandeau-apparition 0.8s ease both;
}
.bandeau-joueur-actif strong { color: #fbbf24; 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; }
}

/* Hero */
.hero-fusion-animaux {
  position: relative;
  padding: 32px 20px 28px;
  margin: -40px -32px 28px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(253, 230, 138, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(251, 191, 36, 0.12) 0%, transparent 50%),
    rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.hero-fusion-animaux::before {
  content: '';
  position: absolute;
  top: -20px; right: -30px;
  width: 180px; height: 180px;
  background-image: radial-gradient(circle, rgba(251, 191, 36, 0.12) 30%, transparent 31%);
  background-size: 36px 36px;
  border-radius: 20px;
  transform: rotate(15deg);
  opacity: 0.7;
  pointer-events: none;
}
.hero-fusion-animaux::after {
  content: '';
  position: absolute;
  bottom: -15px; left: -25px;
  width: 140px; height: 140px;
  background-image: radial-gradient(circle, rgba(253, 230, 138, 0.1) 30%, transparent 31%);
  background-size: 28px 28px;
  border-radius: 16px;
  transform: rotate(-10deg);
  opacity: 0.6;
  pointer-events: none;
}

/* Animaux decoratifs flottants */
.hero-animaux-deco {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1.7rem;
}
.hero-animal-deco {
  display: inline-block;
  animation: animal-float 3s ease-in-out infinite;
  will-change: transform;
}
.hero-animal-deco:nth-child(2) { animation-delay: -1s; }
.hero-animal-deco:nth-child(3) { animation-delay: -2s; }
.hero-animal-deco:nth-child(4) { animation-delay: -0.5s; }
@keyframes animal-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

.hero-fusion-animaux .hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.1;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-fusion-animaux .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}
.hero-fusion-animaux .subtitle { margin-bottom: 20px; }

.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: #1f1408;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 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(251, 191, 36, 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(245, 158, 11, 0.5);
}
@keyframes cta-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
}

.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 regles + visuel doux */
.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: '\1F423';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 2rem;
  opacity: 0.18;
}

/* Apercu de quelques animaux dans une bande */
.fa-apercu-chaine {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin: 16px 0 8px;
  font-size: 1.6rem;
}
.fa-apercu-chaine span {
  display: inline-block;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  padding: 4px 8px;
}
.fa-apercu-chaine span::after {
  content: '→';
  margin-left: 6px;
  color: #fbbf24;
  font-size: 1rem;
}
.fa-apercu-chaine span:last-child::after { content: ''; }

@media (max-width: 480px) {
  .hero-fusion-animaux { padding: 24px 14px 22px; margin: -28px -18px 22px; }
  .hero-fusion-animaux .hero-title { font-size: 1.8rem; }
  .hero-fusion-animaux .hero-h1 { font-size: 0.95rem; }
  .btn-cta-hero { font-size: 1rem; padding: 12px 28px; }
  .hero-animaux-deco { font-size: 1.4rem; }
}
