/* ==========================================================================
   UNIV-BELOTE - Hero CSS
   Section Hero avec effet tapis de jeu
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-felt-green) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Texture de tapis */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Motif de fond */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(70px + var(--spacing-3xl)) 0 var(--spacing-3xl);
}

/* Badge */
.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Titre principal */
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: var(--color-accent);
}

/* Sous-titre */
.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xl);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.6;
}

/* Boutons CTA */
.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Cartes flottantes décoratives */
.hero-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  width: 80px;
  height: 110px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.floating-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-md) - 2px);
}

/* Positions et animations des cartes */
.card-1 {
  top: 15%;
  left: 10%;
  transform: rotate(-15deg);
  animation: float1 6s ease-in-out infinite;
}

.card-2 {
  top: 20%;
  right: 12%;
  transform: rotate(12deg);
  animation: float2 8s ease-in-out infinite;
}

.card-3 {
  bottom: 20%;
  left: 15%;
  transform: rotate(8deg);
  animation: float3 7s ease-in-out infinite;
}

.card-4 {
  bottom: 25%;
  right: 10%;
  transform: rotate(-10deg);
  animation: float4 9s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50% { transform: rotate(-15deg) translateY(-20px); }
}

@keyframes float2 {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-15px); }
}

@keyframes float3 {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-25px); }
}

@keyframes float4 {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50% { transform: rotate(-10deg) translateY(-18px); }
}

/* Couleurs des cartes */
.card-hearts { color: #DC2626; }
.card-diamonds { color: #DC2626; }
.card-clubs { color: var(--color-dark); }
.card-spades { color: var(--color-dark); }

/* Stats dans le hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
}

.hero-stat-label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--spacing-xs);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-2xl);
  }

  .hero-content {
    padding: var(--spacing-2xl) 0;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .floating-card {
    width: 60px;
    height: 82px;
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .card-1, .card-3 {
    left: 5%;
  }

  .card-2, .card-4 {
    right: 5%;
  }
}
