.key-figures {
  border-top-right-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

.theme-jaune .key-figures {
  background-color: var(--yellow);
}

.theme-bleu-fonce .key-figures {
  background-color: var(--darkblue);
}

.num {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
  .num {
    margin-bottom: 0;
  }
}

.num .value {
  font-weight: 800;
  font-size: 3rem;
  white-space: nowrap;
}

.num span:nth-child(2) {
  display: inline-block;
  font-weight: 800;
  font-size: 3rem;
}

.num span:nth-child(3) {
  display: block;
  font-weight: 400;
  font-size: 1.2rem;
}

.theme-jaune .chiffre {
  background-color: var(--yellow);
}

.theme-rouge .chiffre {
  background-color: var(--orange);
}

/*CHIFFRES*/
/* Déclaration de la propriété CSS animable */
@property --num {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.num .value {
  --num: 0;
  counter-reset: num var(--num);
  transition: --num 1s linear;
  position: relative;
  display: inline-block;
}


  /* Masquer le texte initial */
.num .value {
  color: transparent;
  display: inline-block;
}

/* Affichage dynamique avec counter */
.num .value::after {
  content: counter(num);
  color: #FFFFFF;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
