/* Succès/trophées (15/08/2026) - partagé par toutes les pages de jeu + mes-succes.php. Ne
   s'appuie que sur les 8 variables communes aux 11 feuilles de thème (vérifié au préalable :
   --bg-alt/--surface/--border/--text/--text-muted/--accent/--accent-2/--radius), donc un seul
   fichier suffit pour un rendu cohérent partout plutôt que dupliquer dans chaque styles-*.css. */

.achv-panel {
  margin-top: 2rem;
}

.achv-panel h3 {
  margin-bottom: 0.6rem;
}

.achv-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.achv-progress-bar {
  flex: 1;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.achv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.achv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.achv-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0.6;
}

.achv-item.achv-unlocked {
  opacity: 1;
  border-color: var(--accent);
  background: var(--bg-alt);
}

.achv-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.achv-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.achv-label {
  font-weight: 600;
  color: var(--text);
}

.achv-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.achv-date {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.achv-group {
  margin-bottom: 2rem;
}

.achv-group h3 a {
  color: inherit;
}
