/* ================================
   STATISTICS BAR – RESPONSIVE
   ================================ */

/* Conteneur principal */
.stat-bar {
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 10px 20px;
  border-radius: 4px;

  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop : 3 colonnes */
  gap: 15px;

  align-items: stretch;
  justify-items: stretch;
  box-sizing: border-box;
}

/* Carte statistique */
.stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  background-color: #ffffff;
  padding: 15px 20px;
  gap: 20px;

  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(11, 11, 11, 0.7);

  width: 100%;
  box-sizing: border-box;
}

/* Icône */
.stat-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Libellé */
.stat-item .label {
  flex: 1;
  font-size: 22px;
  font-weight: bold;
  color: rgb(69, 69, 69);
  text-align: left;
}

/* Compteur */
.stat-item .count {
  font-size: 28px;
  font-weight: bold;
  color: #007bff;
  white-space: nowrap;
}

/* ================================
   TABLETTE / ÉCRANS MOYENS
   ================================ */
@media (max-width: 992px) {
  .stat-bar {
    grid-template-columns: repeat(2, 1fr); /* 3 lignes × 2 colonnes */
  }

  .stat-item .label {
    font-size: 20px;
  }

  .stat-item .count {
    font-size: 26px;
  }
}

/* ================================
   MOBILE
   ================================ */
@media (max-width: 576px) {
  .stat-bar {
    grid-template-columns: 1fr; /* 6 lignes × 1 colonne */
    gap: 12px;
    padding: 10px;
  }

  .stat-item {
    padding: 12px 15px;
    gap: 15px;
  }

  .stat-item img {
    width: 38px;
    height: 38px;
  }

  .stat-item .label {
    font-size: 18px;
  }

  .stat-item .count {
    font-size: 22px;
  }
}
