/* ===== PAGE ===== */
.thema-page {
  background: linear-gradient(180deg, #ffffff 0%, #f3f5ff 40%, #f8f3f3 100%);
  min-height: 100vh;
  padding-top: 80px;
}

/* ===== GRILLE ===== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  margin-top: 3rem;
}

/* ===== CARTES GÉNÉRALES ===== */
.activity-card {
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: all 0.35s ease;
  width: 100%;
  max-width: 340px;
  text-align: center;
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
  opacity: 0;
  transform: translateY(35px);
  animation: fadeUp 0.5s forwards ease-out;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* 🔵 Bleu */
.card-blue {
  background-color: #e8f0ff;
  transition: all 0.3s ease;
}
.card-blue .activity-img {
  filter: brightness(0.9) contrast(1.3) drop-shadow(0 4px 6px rgba(0, 85, 255, 0.18));
}
.card-blue:hover {
  background-color: #d6e4ff;
  box-shadow: 0 12px 28px rgba(0, 85, 255, 0.25);
}
.card-blue:hover .activity-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.4) drop-shadow(0 6px 10px rgba(0, 85, 255, 0.25));
}

/* ⚪ Blanc */
.card-white {
  background-color: #fafafa;
  transition: all 0.3s ease;
}
.card-white .activity-img {
  filter: brightness(0.85) contrast(1.25) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}
.card-white:hover {
  background-color: #f0f0f0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.card-white:hover .activity-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.4) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

/* 🔴 Rouge */
.card-red {
  background-color: #fdebea;
  transition: all 0.3s ease;
}
.card-red .activity-img {
  filter: brightness(0.9) contrast(1.3) drop-shadow(0 4px 6px rgba(255, 60, 60, 0.18));
}
.card-red:hover {
  background-color: #ffd9d7;
  box-shadow: 0 12px 28px rgba(255, 60, 60, 0.25);
}
.card-red:hover .activity-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.4) drop-shadow(0 6px 10px rgba(255, 60, 60, 0.25));
}

/* ===== IMAGE ===== */
.activity-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85) contrast(1.25); /* ✅ améliore le contraste des images N&B */
}

.activity-card:hover .activity-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.35); /* ✅ effet de survol plus dynamique */
}

/* ===== TEXTE ===== */
.activity-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}
.activity-card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.55;
  margin: 0;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.activity-card:nth-child(1) { animation-delay: 0s; }
.activity-card:nth-child(2) { animation-delay: 0.15s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .activity-img { height: 130px; }
  .activity-card { padding: 20px 15px; }
}