/* === Fond décoratif === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(249, 115, 22, 0.5) 18px,
      rgba(249, 115, 22, 0.5) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 38px,
      rgba(251, 191, 36, 0.5) 38px,
      rgba(251, 191, 36, 0.5) 40px
    );
}

/* === Hero === */
.hero-casse-brique {
  background: radial-gradient(ellipse at 50% 40%, rgba(249, 115, 22, 0.15), transparent 70%);
  border-radius: 18px;
  padding: 36px 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero-casse-brique::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 100px; height: 100px;
  background: repeating-linear-gradient(
    45deg,
    rgba(251, 191, 36, 0.08),
    rgba(251, 191, 36, 0.08) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: 18px;
  transform: rotate(15deg);
}
.hero-casse-brique::after {
  content: '';
  position: absolute;
  bottom: -15px; right: -15px;
  width: 90px; height: 90px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(239, 68, 68, 0.08),
    rgba(239, 68, 68, 0.08) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: 18px;
  transform: rotate(-10deg);
}

/* Titre hero */
.hero-casse-brique .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-casse-brique .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .hero-casse-brique .hero-title { font-size: 1.8rem; }
  .hero-casse-brique .hero-h1 { font-size: 0.95rem; }
}

/* === Briques flottantes === */
.hero-briques {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brique-float {
  position: absolute;
  border-radius: 4px;
  animation: brique-float 3s ease-in-out infinite;
  will-change: transform;
}
.brique-float-1 {
  width: 40px; height: 16px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  top: 18%; left: 8%;
  animation-delay: 0s;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.brique-float-2 {
  width: 36px; height: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  top: 30%; right: 10%;
  animation-delay: -1s;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}
.brique-float-3 {
  width: 32px; height: 14px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  bottom: 25%; left: 12%;
  animation-delay: -2s;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3);
}
/* Balle décorative */
.balle-float {
  position: absolute;
  width: 12px; height: 12px;
  background: radial-gradient(circle at 35% 35%, #fff, #e5e7eb);
  border-radius: 50%;
  top: 50%; right: 15%;
  animation: brique-float 2.5s ease-in-out infinite;
  animation-delay: -0.5s;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
  will-change: transform;
}

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

/* === 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, #f97316, #ea580c);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-cta-hero::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 2px solid rgba(249, 115, 22, 0.5);
  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 30px rgba(249, 115, 22, 0.5);
}
@keyframes cta-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* === 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: #4ade80;
  border-radius: 50%;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(74, 222, 128, 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, #f97316, #fbbf24);
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}
.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(96, 165, 250, 0.2);
  color: #93c5fd;
}
.badge-action {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

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

/* === Responsive === */
@media (max-width: 480px) {
  .hero-casse-brique { padding: 24px 16px 20px; }
  .brique-float-1 { width: 30px; height: 12px; }
  .brique-float-2 { width: 28px; height: 11px; }
  .brique-float-3 { width: 24px; height: 11px; }
  .balle-float { width: 10px; height: 10px; }
  .btn-cta-hero { padding: 12px 28px; font-size: 1rem; }
}
