/* ===================================
   GALERIE - Styles dédiés
   =================================== */

/* Filtres de la galerie */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: #f8faf8;
  border-radius: 1rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid #e2e8e2;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  border-color: #0f3f0f;
  color: #0f3f0f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 63, 15, 0.15);
}

.filter-btn.active {
  background: #0f3f0f;
  border-color: #0f3f0f;
  color: white;
  box-shadow: 0 4px 12px rgba(15, 63, 15, 0.3);
}

.filter-btn svg {
  width: 18px;
  height: 18px;
}

/* Grille de la galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Carte de la galerie */
.gallery-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  animation: fadeIn 0.5s ease forwards;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(15, 63, 15, 0.15);
}

.gallery-item.hidden {
  display: none;
}

/* Container de l'image */
.gallery-item .image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .image-container img {
  transform: scale(1.1);
}

/* Badge de catégorie */
.gallery-item .category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #0f3f0f;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contenu de la carte */
.gallery-item .content {
  padding: 1.25rem;
}

.gallery-item .content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.gallery-item .content .description {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
  margin: 0;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive - Tablette */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .gallery-filters {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    justify-content: center;
    padding: 0.75rem;
  }

  .gallery-item .content {
    padding: 1rem;
  }

  .gallery-item .content h4 {
    font-size: 1rem;
  }
}

