/* Communauté : animations légères, structure inchangée */

.community-page .page-hero--photo img {
  animation: communityKenBurns 18s ease-in-out infinite alternate;
}

.community-page .domain-hub,
.community-page .community-card,
.community-page .event-item,
.community-page .profile-type,
.community-page .community-stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-page .domain-hub:hover,
.community-page .community-card:hover,
.community-page .event-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 92, 56, 0.12);
}

.community-page .media-slot img,
.community-page .two-col__image img {
  transition: transform 0.6s ease;
}

.community-page .media-slot:hover img,
.community-page .two-col__image:hover img {
  transform: scale(1.04);
}

.community-page .section-label {
  animation: communityFadeUp 0.7s ease both;
}

.community-page .community-stat strong {
  display: inline-block;
  animation: communityPulse 2.8s ease-in-out infinite;
}

.community-page .community-stat:nth-child(2) strong { animation-delay: 0.35s; }
.community-page .community-stat:nth-child(3) strong { animation-delay: 0.7s; }
.community-page .community-stat:nth-child(4) strong { animation-delay: 1.05s; }

@keyframes communityKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes communityFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes communityPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .community-page .page-hero--photo img,
  .community-page .section-label,
  .community-page .community-stat strong {
    animation: none !important;
  }
}
