/* Statistiques (page-321.php) — mobile d'abord */

.statistiques {
  --st-vert: var(--primary, #017804);
  --st-vert-clair: #e8f4e8;
  --st-texte: #2b2b2b;
  --st-texte-doux: #5c5c5c;
  --st-bordure: #dfe3df;
  display: block !important; /* le thème met .section-content en flex */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 24px;
  color: var(--st-texte);
  text-align: left;
}

/* Le thème centre h2 et ul sous 992 px avec !important */
.statistiques h2,
.statistiques ul {
  text-align: left !important;
}

.statistiques ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Introduction */
.st-intro {
  max-width: 52rem;
  margin: 8px 0 32px;
}

.st-intro p {
  line-height: 1.7;
  color: var(--st-texte-doux);
  margin: 0 0 12px;
}

.st-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--st-texte) !important;
}

.st-date .fa {
  color: var(--st-vert);
}

.st-telecharger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--st-vert);
  border-radius: 999px;
  color: var(--st-vert);
  font-weight: 600;
  text-decoration: none;
}

.st-telecharger:hover {
  background: var(--st-vert);
  color: #fff;
  text-decoration: none;
}

.st-telecharger:focus-visible {
  outline: 3px solid rgba(1, 120, 4, 0.4);
  outline-offset: 2px;
}

/* Thèmes */
.st-theme {
  margin-bottom: 36px;
}

.st-theme-titre {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--st-vert-clair);
  color: var(--st-texte);
}

/* Grille régulière de cartes */
.st-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.st-carte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--st-bordure);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Survol : la carte se soulève, la pastille grossit légèrement */
.st-carte:hover {
  transform: translateY(-4px);
  border-color: var(--st-vert);
  box-shadow: 0 10px 24px rgba(1, 120, 4, 0.12);
}

.st-carte:hover .st-icone-fond {
  transform: scale(1.1) rotate(-4deg);
}

@media (prefers-reduced-motion: reduce) {
  .st-carte,
  .st-icone-fond {
    transition: none;
  }

  .st-carte:hover,
  .st-carte:hover .st-icone-fond {
    transform: none;
  }
}

/* Les icônes du thème sont blanches : posées sur une pastille verte */
.st-icone-fond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--st-vert);
  transition: transform 0.25s ease;
}

.st-icone {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.st-valeur {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--st-vert);
  font-variant-numeric: tabular-nums;
}

.st-libelle {
  font-weight: 600;
  line-height: 1.4;
  color: var(--st-texte);
}

.st-periode {
  font-size: 0.85rem;
  color: var(--st-texte-doux);
}
