
@media (prefers-color-scheme: dark) {
  :root {
    --gplay-bg: #18181b;
    --gplay-bg-soft: #232946;
    --gplay-bg-card: #232946;
    --gplay-bg-accent: #232946;
    --gplay-surface: #232946;
    --gplay-border: #2d3748;
    --gplay-border-strong: #4a5568;
    --gplay-text: #fff;
    --gplay-text-secondary: #22d3ee;
    --gplay-text-muted: #b8c2cc;
  }
}

/* Score de test ultra-attractif */
.category-gplay .test-score {
  background: var(--gplay-gradient-primary);
  /*color: #fff;*/
  padding: 20px 32px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 24px 0;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
  transition: var(--gplay-transition);
  font-family: 'JetBrains Mono', monospace;
}

.category-gplay .test-score::before {
  content: "🎮";
  font-size: 1.5em;
  animation: gplayBlink 2s ease-in-out infinite;
}

.category-gplay .test-score::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.category-gplay .test-score:hover::after {
  left: 100%;
}

/* Barres de benchmark gaming */
.category-gplay .benchmark-container {
  background: var(--gplay-bg-soft);
  padding: 20px;
  border-radius: 16px;
  margin: 24px 0;
  border: 1px solid var(--gplay-border);
}

.category-gplay .benchmark-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gplay-primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', Arial, sans-serif;
}

.category-gplay .benchmark-bar {
  background: var(--gplay-bg-accent);
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gplay-border);
}

.category-gplay .benchmark-fill {
  height: 100%;
  background: var(--gplay-gradient-accent);
  border-radius: 8px;
  position: relative;
  width: 0%; /* Commence à 0 pour l'animation */
  animation: benchmarkFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.category-gplay .benchmark-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: benchmarkShine 2s ease-in-out infinite;
}

/* Version statique pour debug */
.category-gplay .benchmark-fill-static {
  height: 100%;
  background: var(--gplay-gradient-accent);
  border-radius: 8px;
  position: relative;
  width: var(--fill-width, 75%);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

/* KEYFRAMES ESSENTIELLES */
@keyframes benchmarkFill {
  from { 
    width: 0%; 
  }
  to { 
    width: var(--fill-width, 75%); 
  }
}

@keyframes benchmarkShine {
  0% { 
    transform: translateX(-100%); 
  }
  100% { 
    transform: translateX(100%); 
  }
}

@keyframes gplayBlink {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.7; 
  }
}

.btn_casque {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn_casque::before {
    content: "🎧";
    margin-right: 8px;
    font-size: 18px;
}

.btn_casque:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn_casque:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Animation subtile au survol */
.btn_casque::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn_casque:hover::after {
    width: 300px;
    height: 300px;
}