/* ═══════════════════════════════════════════════════════════════════════════
   HERO SYSTEM — CampusQCM Design System Extension
   Shared tokens, base styles, and variant patterns for all hero sections.
   
   Variants:
   - .cq-hero--split       → Homepage (text left / mockup right)
   - .cq-hero--podium      → Leaderboard (centered + top 3)
   - .cq-hero--catalog     → Subject/QCM pages (centered + stats cards)
   - .cq-hero--minimal     → About, Help, Legal (badge + title only)
   
   @package CampusQCM
   @version 4.0.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── HERO TOKENS ── */
:root {
  --cq-hero-card-bg: rgba(255, 255, 255, 0.10);
  --cq-hero-card-border: rgba(255, 255, 255, 0.18);
  --cq-hero-card-radius: 20px;
  --cq-hero-split-gap: 48px;
  --cq-hero-content-max: 520px;
  --cq-hero-visual-max: 420px;
  --cq-hero-mobile-pt: 32px;
  --cq-hero-mobile-pb: 28px;
  --cq-hero-mobile-px: 20px;
  --cq-hero-glow: 0 0 80px rgba(99, 102, 241, 0.15);
  --cq-hero-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  --cq-hero-float-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════
   FLOATING PRODUCT CARD — QCM Mockup
   CSS-only mockup of a QCM question
   ═══════════════════════════════════════ */
.cq-hero-mockup {
  position: relative;
  width: 100%;
  max-width: var(--cq-hero-visual-max);
  flex-shrink: 0;
}

.cq-hero-mockup__card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--cq-hero-card-radius);
  padding: 28px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    var(--cq-hero-card-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.cq-hero-mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cq-hero-mockup__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.cq-hero-mockup__progress {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cq-hero-mockup__question {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

.cq-hero-mockup__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.cq-hero-mockup__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background var(--cq-transition-fast), border-color var(--cq-transition-fast);
}

/* Interactive states for hero demo buttons */
button.cq-hero-mockup__option {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
button.cq-hero-mockup__option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}
button.cq-hero-mockup__option:disabled {
  cursor: default;
}

.cq-hero-mockup__option--wrong {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.50);
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.12);
}
.cq-hero-mockup__option--wrong .cq-hero-mockup__radio {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}
.cq-hero-mockup__option--wrong .cq-hero-mockup__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.cq-hero-mockup__option--correct {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}

.cq-hero-mockup__option--correct .cq-hero-mockup__radio {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.cq-hero-mockup__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  position: relative;
}

.cq-hero-mockup__option--correct .cq-hero-mockup__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.cq-hero-mockup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cq-hero-mockup__xp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.cq-hero-mockup__xp-icon {
  font-size: 1rem;
}

.cq-hero-mockup__bar {
  flex: 1;
  max-width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-left: 12px;
}

.cq-hero-mockup__bar-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Floating accent card */
.cq-hero-mockup__float {
  position: absolute;
  bottom: -16px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--cq-hero-float-shadow);
  animation: cq-hero-float 3s ease-in-out infinite;
}

@keyframes cq-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cq-hero-mockup__float-icon {
  font-size: 1.125rem;
}

/* ═══════════════════════════════════════
   HERO STATS ROW — Compact inline stats
   ═══════════════════════════════════════ */
.cq-hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: nowrap;
}

.cq-hero-stats--center {
  justify-content: center;
}

.cq-hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--cqh2-fg-soft, #475569);
  font-weight: 500;
}

.cq-hero-stat__value {
  font-weight: 800;
  color: var(--cqh2-fg, #0f172a);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cq-hero-stat__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cqh2-fg, #0f172a) 22%, transparent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   PODIUM — Leaderboard top 3
   ═══════════════════════════════════════ */
.cq-hero-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.cq-hero-podium__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  min-width: 100px;
  transition: transform var(--cq-transition-base), box-shadow var(--cq-transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cq-hero-podium__slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cq-hero-podium__slot--gold {
  padding: 20px 24px 18px;
  min-width: 120px;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.30);
  order: 2;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.12);
}

.cq-hero-podium__slot--silver {
  order: 1;
}

.cq-hero-podium__slot--bronze {
  order: 3;
}

.cq-hero-podium__medal {
  font-size: 1.5rem;
  line-height: 1;
}

.cq-hero-podium__slot--gold .cq-hero-podium__medal {
  font-size: 1.75rem;
}

.cq-hero-podium__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.cq-hero-podium__xp {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.cq-hero-podium__slot--gold .cq-hero-podium__xp {
  color: #f59e0b;
}

/* ═══════════════════════════════════════
   CATALOG STATS CARDS — Subject pages
   ═══════════════════════════════════════ */
.cq-hero-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cq-hero-meta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  min-width: 90px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cq-hero-meta__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.cq-hero-meta__value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.cq-hero-meta__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════ */
@media (max-width: 1023px) {
  .cq-hero-mockup {
    display: none;
  }
  
  .cq-hero-podium__slot {
    padding: 12px 16px 10px;
    min-width: 85px;
  }
  
  .cq-hero-podium__slot--gold {
    padding: 16px 20px 14px;
    min-width: 100px;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════ */
@media (max-width: 767px) {
  .cq-hero-stats {
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
  }
  
  .cq-hero-stat {
    font-size: 0.75rem;
  }
  
  .cq-hero-stat__value {
    font-size: 0.8125rem;
  }
  
  .cq-hero-podium {
    gap: 10px;
    margin-top: 20px;
  }
  
  .cq-hero-podium__slot {
    padding: 10px 12px 8px;
    min-width: 72px;
    border-radius: 12px;
  }
  
  .cq-hero-podium__slot--gold {
    padding: 12px 16px 10px;
    min-width: 88px;
  }
  
  .cq-hero-podium__medal {
    font-size: 1.25rem;
  }
  
  .cq-hero-podium__slot--gold .cq-hero-podium__medal {
    font-size: 1.375rem;
  }
  
  .cq-hero-podium__name {
    font-size: 0.75rem;
    max-width: 70px;
  }
  
  .cq-hero-podium__xp {
    font-size: 0.6875rem;
  }
  
  .cq-hero-meta {
    gap: 8px;
    margin-top: 16px;
  }
  
  .cq-hero-meta__card {
    padding: 10px 14px;
    min-width: 75px;
    border-radius: 10px;
  }
  
  .cq-hero-meta__value {
    font-size: 1rem;
  }
  
  .cq-hero-meta__label {
    font-size: 0.625rem;
  }
}

/* ═══════════════════════════════════════
   PREMIUM HERO UNIFIER — Global pass
   Upgrades all non-home hero variants with
   a consistent premium style + shared motion.
   ═══════════════════════════════════════ */

.cq-hero-unified {
  --cq-hero-unified-bg: var(--cq-hero-gradient, linear-gradient(135deg, #4338ca 0%, #6366f1 44%, #2563eb 100%));
  --cq-hero-unified-badge-bg: rgba(255, 255, 255, 0.12);
  --cq-hero-unified-badge-border: rgba(255, 255, 255, 0.24);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(18px, 2.2vw, 28px);
  padding: clamp(34px, 5vw, 72px) clamp(20px, 4.2vw, 48px) clamp(30px, 4.2vw, 56px);
  margin: 0 auto clamp(24px, 4vw, 48px);
  color: #ffffff;
  background: var(--cq-hero-unified-bg);
  background-size: 160% 160%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 56px rgba(37, 99, 235, 0.24),
    0 10px 22px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: cq-premium-hero-gradient-shift 16s ease-in-out infinite;
}

.cq-hero-unified::before,
.cq-hero-unified::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cq-hero-unified::before {
  inset: -38% auto auto -12%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.04) 48%, transparent 70%);
  filter: blur(1px);
  animation: cq-premium-hero-orb-a 18s ease-in-out infinite;
}

.cq-hero-unified::after {
  inset: auto -10% -42% auto;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, rgba(56, 189, 248, 0.07) 52%, transparent 72%);
  animation: cq-premium-hero-orb-b 20s ease-in-out infinite;
}

.cq-hero-unified > * {
  position: relative;
  z-index: 1;
}

.cq-hero-unified :is(
  .qcm-hub-hero__badge,
  .qcm-seo-hero__badge,
  .blog-hero-badge,
  .catalog-hero-badge,
  .dashboard-hero-badge,
  .scores-hero-badge,
  .generator-hero-badge,
  .cq-lb__hero-badge,
  .cq-culture-hero__badge,
  .cq-hero-unified__badge
) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.56rem 1rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--cq-hero-unified-badge-border);
  background: var(--cq-hero-unified-badge-bg);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.cq-hero-unified :is(
  h1,
  .page-h1,
  .qcm-hub-hero__title,
  .qcm-seo-hero__title,
  .blog-hero-content h1,
  .catalog-hero-content h1,
  .dashboard-hero-content h1,
  .scores-hero-content h1,
  .generator-hero-content h1,
  .contact-hero h1,
  .aide-hero h1,
  .cq-lb__hero-title,
  .cq-culture-hero__title,
  .profile-hero-name,
  .teacher-hero h1,
  .cq-hero-unified__title
) {
  margin: 0 0 0.9rem;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.8vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(2, 6, 23, 0.22);
}

.cq-hero-unified :is(
  .qcm-hub-hero__subtitle,
  .qcm-seo-hero__subtitle,
  .blog-hero-subtitle,
  .catalog-hero-subtitle,
  .dashboard-hero-subtitle,
  .scores-hero-subtitle,
  .generator-hero-subtitle,
  .contact-hero-subtitle,
  .aide-hero-subtitle,
  .cq-lb__hero-subtitle,
  .cq-culture-hero__subtitle,
  .teacher-hero__subtitle,
  .qcm-hub-hero p,
  .qcm-seo-hero p,
  .cq-hero-unified__subtitle
) {
  max-width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  line-height: 1.62 !important;
}

.cq-hero-unified > * {
  opacity: 0;
  transform: translateY(12px);
  animation: cq-premium-hero-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cq-hero-unified > *:nth-child(1) { animation-delay: 0.04s; }
.cq-hero-unified > *:nth-child(2) { animation-delay: 0.12s; }
.cq-hero-unified > *:nth-child(3) { animation-delay: 0.2s; }
.cq-hero-unified > *:nth-child(4) { animation-delay: 0.28s; }
.cq-hero-unified > *:nth-child(5) { animation-delay: 0.36s; }

/* Auto-generated hero (fallback for templates without dedicated hero) */
.cq-auto-hero {
  text-align: center;
}

.cq-auto-hero .cq-hero-unified__subtitle {
  max-width: 700px;
}

@keyframes cq-premium-hero-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes cq-premium-hero-orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, 14px) scale(1.08); }
}

@keyframes cq-premium-hero-orb-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, -8px) scale(1.06); }
}

@keyframes cq-premium-hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .cq-hero-unified {
    padding: clamp(28px, 6vw, 48px) clamp(18px, 4vw, 30px) clamp(24px, 5vw, 38px);
    border-radius: clamp(14px, 2vw, 22px);
  }
}

@media (max-width: 767px) {
  .cq-hero-unified {
    margin-bottom: 22px;
    border-radius: 16px;
    box-shadow:
      0 14px 36px rgba(37, 99, 235, 0.22),
      0 6px 14px rgba(2, 6, 23, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .cq-hero-unified :is(
    h1,
    .page-h1,
    .qcm-hub-hero__title,
    .qcm-seo-hero__title,
    .cq-lb__hero-title,
    .profile-hero-name,
    .cq-culture-hero__title,
    .cq-hero-unified__title
  ) {
    font-size: clamp(1.45rem, 7vw, 2.05rem) !important;
  }

  .cq-hero-unified :is(
    .qcm-hub-hero__subtitle,
    .qcm-seo-hero__subtitle,
    .blog-hero-subtitle,
    .dashboard-hero-subtitle,
    .scores-hero-subtitle,
    .generator-hero-subtitle,
    .contact-hero-subtitle,
    .aide-hero-subtitle,
    .cq-lb__hero-subtitle,
    .cq-culture-hero__subtitle,
    .cq-hero-unified__subtitle
  ) {
    font-size: 0.98rem !important;
    line-height: 1.58 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cq-hero-unified {
    animation: none;
  }

  .cq-hero-unified::before,
  .cq-hero-unified::after {
    animation: none;
  }

  .cq-hero-unified > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ═══════════════════════════════════════
   HERO PODIUM v2 — modernisation + lisibilité multi-palettes
   ═══════════════════════════════════════ */
.cq-hero-podium{
  gap: 14px;
  margin-top: 32px;
  perspective: 1200px;
}

.cq-hero-podium__slot{
  position: relative;
  padding: 18px 22px 16px;
  min-width: 108px;
  border-radius: 18px;
  /* Glass sombre pour garantir lisibilité sur palettes claires (amber/jaune) */
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.18) 100%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  animation: heroPodiumIn .6s cubic-bezier(.22,1,.36,1) both;
}
.cq-hero-podium__slot--silver{ animation-delay: .05s; }
.cq-hero-podium__slot--gold{ animation-delay: .15s; }
.cq-hero-podium__slot--bronze{ animation-delay: .25s; }

.cq-hero-podium__slot:hover{
  transform: translateY(-5px) rotateX(2deg);
  box-shadow:
    0 18px 40px -12px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

/* GOLD : élevé, badge couronne, glow doré indépendant de la palette */
.cq-hero-podium__slot--gold{
  padding: 26px 28px 22px;
  min-width: 132px;
  transform: translateY(-12px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.28) 100%),
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.22) 0%, transparent 70%);
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 18px 50px -12px rgba(251, 191, 36, 0.45),
    0 6px 18px -6px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
  animation: heroPodiumIn .6s cubic-bezier(.22,1,.36,1) .15s both, heroPodiumGoldFloat 4s ease-in-out 1s infinite;
}

.cq-hero-podium__slot--gold::before{
  content: "";
  position: absolute;
  top: -22px; left: 50%;
  width: 36px; height: 28px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'><defs><linearGradient id='g' x1='0' x2='0' y1='0' y2='1'><stop offset='0' stop-color='%23fde68a'/><stop offset='1' stop-color='%23f59e0b'/></linearGradient></defs><path fill='url(%23g)' stroke='%23b45309' stroke-width='2' stroke-linejoin='round' d='M4 14 L18 28 L32 6 L46 28 L60 14 L56 42 L8 42 Z'/><circle cx='32' cy='6' r='4' fill='%23fff7d6' stroke='%23b45309' stroke-width='2'/><circle cx='4' cy='14' r='3.5' fill='%23fff7d6' stroke='%23b45309' stroke-width='2'/><circle cx='60' cy='14' r='3.5' fill='%23fff7d6' stroke='%23b45309' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  animation: heroPodiumCrown 2.6s ease-in-out infinite;
  z-index: 2;
}

/* SILVER / BRONZE : tints subtiles bordure */
.cq-hero-podium__slot--silver{
  border-color: rgba(203, 213, 225, 0.45);
  box-shadow: 0 12px 32px -12px rgba(148, 163, 184, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}
.cq-hero-podium__slot--bronze{
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 12px 32px -12px rgba(180, 83, 9, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Médailles emoji */
.cq-hero-podium__medal{
  font-size: 1.65rem;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}
.cq-hero-podium__slot--gold .cq-hero-podium__medal{
  font-size: 2rem;
}

/* Texte : forcer blanc avec ombre pour lisibilité partout */
.cq-hero-podium__name{
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  max-width: 100px;
}
.cq-hero-podium__slot--gold .cq-hero-podium__name{
  font-size: 0.95rem;
  max-width: 120px;
}

.cq-hero-podium__xp{
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-top: 2px;
}
.cq-hero-podium__slot--gold .cq-hero-podium__xp{
  color: #fff7d6 !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.25));
  border-color: rgba(253, 224, 138, 0.6);
  box-shadow: 0 4px 12px -2px rgba(251, 191, 36, 0.4);
}

/* Badge rang ("1", "2", "3") en bottom */
.cq-hero-podium__slot::after{
  content: attr(data-rank);
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.6);
}
.cq-hero-podium__slot--gold::after{
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
  color: #78350f;
  width: 26px; height: 26px;
  font-size: .8rem;
}
.cq-hero-podium__slot--silver::after{
  background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 100%);
  color: #1e293b;
}
.cq-hero-podium__slot--bronze::after{
  background: linear-gradient(180deg, #fed7aa 0%, #c2410c 100%);
  color: #fff7ed;
}

/* Animations */
@keyframes heroPodiumIn{
  from{ opacity:0; transform: translateY(20px) scale(.92); }
  to  { opacity:1; transform: translateY(0) scale(1); }
}
.cq-hero-podium__slot--gold{
  /* Override "to" pour conserver l'élévation */
}
@keyframes heroPodiumGoldFloat{
  0%,100%{ transform: translateY(-12px); }
  50%   { transform: translateY(-16px); }
}
@keyframes heroPodiumCrown{
  0%,100%{ transform: translateX(-50%) translateY(0) rotate(-3deg); }
  50%   { transform: translateX(-50%) translateY(-3px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce){
  .cq-hero-podium__slot,
  .cq-hero-podium__slot--gold,
  .cq-hero-podium__slot--gold::before{
    animation: none !important;
  }
  .cq-hero-podium__slot--gold{ transform: translateY(-12px); }
}

/* Responsive mobile : couronne + élévation réduites */
@media (max-width: 767px){
  .cq-hero-podium{ gap: 8px; }
  .cq-hero-podium__slot{ padding: 12px 14px 10px; min-width: 78px; border-radius: 14px; }
  .cq-hero-podium__slot--gold{
    padding: 16px 18px 14px; min-width: 96px;
    transform: translateY(-8px);
  }
  .cq-hero-podium__slot--gold::before{ width: 28px; height: 22px; top: -16px; }
  .cq-hero-podium__name{ font-size: .78rem; max-width: 78px; }
  .cq-hero-podium__slot--gold .cq-hero-podium__name{ font-size: .85rem; max-width: 92px; }
  .cq-hero-podium__xp{ font-size: .68rem; padding: 2px 7px; }
  @keyframes heroPodiumGoldFloat{
    0%,100%{ transform: translateY(-8px); }
    50%   { transform: translateY(-11px); }
  }
}
