/* Système de points / badges / trophées - Ateliers Numériques */

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sable, #F5EFE6);
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--terracotta, #C1653A);
  white-space: nowrap;
  margin-right: 10px;
}

.badge-reveal {
  background: #fff;
  border: 2px solid var(--ocre, #D9A441);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 24px;
  animation: badge-pop 0.35s ease-out;
}

@keyframes badge-pop {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.badge-reveal-emoji { font-size: 3em; line-height: 1; }

.badge-reveal h2 {
  color: var(--terracotta, #C1653A);
  margin: 10px 0 4px;
}

.badge-reveal p { margin: 2px 0; }

.badge-reveal hr {
  margin: 18px auto;
  border: none;
  border-top: 1px solid #eee;
  width: 80%;
}

.badge-reveal .trophee-label {
  font-weight: 700;
  color: var(--terracotta, #C1653A);
  margin-top: 4px;
}

/* petit trophée affiché sur une carte niveau terminée */
.niveau-trophee {
  font-size: 1.4em;
  float: right;
}

/* emoji devant un module déjà terminé dans la liste d'un niveau */
.module-badge-emoji {
  margin-right: 6px;
}
