.xlib-module-mask_chiffres_cles{
  display: flex;
  gap: var(--space-elements);
  flex-wrap: wrap;
}
/* registre une propriété css animable (supporté par chrome, edge, safari, firefox récents) */
@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.score {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: var(--padding);
  box-shadow: var(--shadow);
  border-radius: 30px;
  width: calc(50% - var(--space-elements));
  flex-direction: column;
}

.dark .score{
  background: rgba(255,255,255,.1);
}

/* cercle principal */
.score-bar {
  --size: 140px;                 /* diamètre du cercle */
  --thickness: 14px;             /* épaisseur de l’anneau */
  --track: #5c91401a;              /* couleur de fond (piste) */
  --fill: var(--vert);               /* couleur de progression */
  --bg: #fff;                    /* couleur du centre */
  --p: 0;                        /* pourcentage courant, animé */

  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: var(--padding) 0;

  /* anneau via conic-gradient contrôlé par --p */
  background: conic-gradient(var(--fill) calc(var(--p) * 1%), var(--track) 0);

  /* transition fluide de la progression */
  transition: --p 1.2s ease-in-out;
}

.dark .score-bar{
  --bg: #000000;
}

/* creuse le centre pour obtenir un anneau propre */
.score-bar::before {
  content: "";
  position: absolute;
  inset: var(--thickness);
  border-radius: 50%;
  background: var(--bg);
}

.score-data{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* textes au centre */
.score-bar .score-general {
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  line-height: 1;
  z-index: 1;
}

.score-bar .score-general-label {
  font-size: .8rem;
  opacity: .7;
  margin-top: .25rem;
  z-index: 1;
}

/* label du bloc */
.score label {
  font-weight: bold;
  display: block;
  text-align: center;
}

/* comparaison (optionnel, style simple) */
.score-comparaison {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: var(--margin);
}

.score-comp {
  text-align: center;
}

.score-comp-desc {
  display: block;
  font-size: .8rem;
  opacity: .7;
}

.score-comp-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
