/* ═══ STATS BAR — Minimal inline stats + marquee chips ═══ */

.stats-bar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 0 0;
  background: transparent;
}

/* ── Row: inline stats with separators ── */
.stats-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 var(--border-radius--padding--global--regular);
}

/* ── Separator ── */
.stats-bar__sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Item ── */
.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  text-align: center;
}

/* ── Value ── */
.stats-bar__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--base-color-neutral--white);
  letter-spacing: -1px;
}

.stats-bar__item--muted .stats-bar__value {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Description ── */
.stats-bar__desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* ── Source ── */
.stats-bar__source {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--stat-accent-light);
  letter-spacing: 0.5px;
}

/* ═══ MARQUEE — Chips défilants ═══ */

.stats-bar__marquee {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.stats-bar__track {
  display: flex;
  width: max-content;
}

.stats-bar__track-inner {
  display: flex;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}

.stats-bar__track--row1 { animation: marquee-scroll 35s linear infinite; }
.stats-bar__track--row2 { animation: marquee-scroll 42s linear infinite reverse; }
.stats-bar__track--row3 { animation: marquee-scroll 38s linear infinite; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.stats-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius--small);
  white-space: nowrap;
}

.stats-bar__tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--border-radius--xsmall);
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .stats-bar__value {
    font-size: 28px;
  }

  .stats-bar__desc {
    font-size: 11px;
  }

  .stats-bar__sep {
    height: 28px;
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .stats-bar__value {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .stats-bar__item {
    padding: 6px 24px;
    gap: 10px;
  }

  .stats-bar__sep {
    height: 32px;
  }

  .stats-bar__desc {
    font-size: 12px;
  }

  .stats-bar--bottom .stats-bar__value {
    font-size: 44px;
  }

  .stats-bar--bottom .stats-bar__desc {
    font-size: 15px;
  }

  .stats-bar--bottom .stats-bar__item {
    padding: 12px 32px;
    gap: 8px;
  }

  .stats-bar--bottom .stats-bar__sep {
    height: 48px;
  }
}

/* ── Mobile: stack vertically ── */
@media (max-width: 767px) {
  .stats-bar__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    justify-items: center;
  }

  .stats-bar__sep {
    display: none;
  }

  .stats-bar__item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
  }

  .stats-bar__desc {
    white-space: normal;
    text-align: center;
    font-size: 10px;
  }

  .stats-bar__marquee {
    gap: 8px;
    padding-top: 24px;
  }

  .stats-bar__tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ── Light mode (inside thematiques) ── */
.thematiques .stats-bar {
  background: transparent;
  padding: 0;
}

.thematiques .stats-bar__tag {
  color: var(--base-color-neutral--black);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--base-color-neutral--neutral-light);
}

.thematiques .stats-bar__tag::before {
  background: rgba(0, 0, 0, 0.15);
}

/* ── Bottom standalone stats row ── */
.stats-bar--bottom {
  background: var(--base-color-brand--beige-100);
  padding: var(--section-py) 0;
  width: 100%;
}

.stats-bar--bottom .stats-bar__row {
  width: 100%;
  justify-content: space-evenly;
  padding: 0 var(--border-radius--padding--global--regular);
}

.stats-bar--bottom .stats-bar__value {
  color: var(--base-color-neutral--black);
  font-size: 36px;
}

.stats-bar--bottom .stats-bar__desc {
  color: var(--base-color-neutral--neutral-darker);
  font-size: 14px;
}

.stats-bar--bottom .stats-bar__source {
  color: var(--base-color-neutral--neutral-dark);
}

.stats-bar--bottom .stats-bar__sep {
  background: var(--base-color-neutral--neutral-light);
}

.stats-bar--bottom .stats-bar__item--muted .stats-bar__value {
  color: var(--base-color-neutral--neutral-dark);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .stats-bar__track--row1,
  .stats-bar__track--row2,
  .stats-bar__track--row3 {
    animation: none;
  }
}
