/* ═══════════════════════════════════════════════════════════════
   .h-chiffres — « Hoppi en chiffres » : un chiffre à la fois
   Markup statique dans index.html, piloté par js/h-chiffres.js.
   État initial = carrousel (1er chiffre actif) → zéro décalage de mise en page.
   Sans JS (@media scripting:none) : les 6 chiffres s'affichent en liste.
   ═══════════════════════════════════════════════════════════════ */

.h-chiffres__list {
  display: grid;
  align-content: center;
  min-height: 320px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-chiffres__item {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  row-gap: 8px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.h-chiffres__item.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.h-chiffres__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
  border-radius: 24px;
  background: var(--h-white);
  font-size: 44px;
  line-height: 1;
}

.h-chiffres__value {
  margin: 0;
  font-size: clamp(48px, 8vw, 120px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.h-chiffres__label {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.h-chiffres__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.h-chiffres__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.h-chiffres__dot {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.h-chiffres__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--h-air-light);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.h-chiffres__dot[aria-current="true"]::before {
  width: 28px;
  border-radius: 5px;
  background: var(--h-charcoal);
}

.h-chiffres__dot:focus-visible {
  outline: 2px solid var(--h-charcoal);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 479px) {
  .h-chiffres__list { min-height: 260px; }
  .h-chiffres__icon { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; }
  .h-chiffres__label { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-chiffres__item { transition: none; transform: none; }
  .h-chiffres__dot::before { transition: none; }
}

/* Sans JavaScript : pas de carrousel, toute la liste est lisible. */
@media (scripting: none) {
  .h-chiffres__list { display: flex; flex-direction: column; gap: 24px; min-height: 0; }
  .h-chiffres__item { opacity: 1; visibility: visible; transform: none; }
  .h-chiffres__dots { display: none; }
}
