/* ===== STYLES SPÉCIFIQUES À LA GALERIE ===== */

.galerie-header {
  text-align: center;
  margin: 3rem 0 2rem;
}

.galerie-header i {
  color: var(--violet-soutenu);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.galerie-header h1 {
  font-size: 2.8rem;
  color: var(--texte-fonce);
  margin-bottom: 0.5rem;
}

.galerie-header p {
  color: var(--texte-moyen);
  font-size: 1.2rem;
}

/* Filtres catégories (identiques à la boutique) */
.categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.category-btn {
  background: var(--gris-fond);
  border: 2px solid transparent;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  color: var(--texte-fonce);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.category-btn:hover {
  background: var(--violet-lavande);
}

.category-btn.active {
  background: var(--violet-soutenu);
  color: white;
  border-color: var(--violet-soutenu);
}

/* Grille façon "mur de photos" (masonry) */
.gallery-grid {
  columns: 4 280px;
  column-gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 1100px) {
  .gallery-grid {
    columns: 3 240px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    columns: 2 180px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--ombre-elegante);
  cursor: pointer;
  background: var(--gris-fond);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px -12px rgba(179,155,200,0.4);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(45, 45, 58, 0.6);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(45,45,58,0.75), transparent);
  color: white;
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.gallery-item-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.gallery-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--texte-moyen);
}

.gallery-empty i {
  font-size: 4rem;
  color: var(--violet-lavande);
  margin-bottom: 1rem;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 18, 26, 0.92);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  width: 90%;
  max-width: 950px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.lightbox-close:hover {
  background: var(--violet-lavande);
  transform: rotate(90deg);
}

.lightbox-image-wrap {
  background: var(--gris-fond);
  border-radius: 30px;
  overflow: hidden;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--texte-fonce);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  z-index: 5;
}

.lightbox-nav:hover {
  background: var(--violet-soutenu);
  color: white;
}

.lightbox-prev {
  left: -1rem;
}

.lightbox-next {
  right: -1rem;
}

@media (max-width: 700px) {
  .lightbox-prev { left: 0.3rem; }
  .lightbox-next { right: 0.3rem; }
}

.lightbox-info {
  color: white;
  text-align: center;
  margin-top: 1.2rem;
  padding: 0 1rem;
}

.lightbox-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.lightbox-info .lightbox-category {
  color: var(--violet-lavande);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.lightbox-info p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-thumb {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: 0.3s;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active {
  border-color: var(--violet-lavande);
  opacity: 1;
  transform: scale(1.05);
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE COMPLÉMENTAIRE ===== */
@media (max-width: 480px) {
  .galerie-header {
    margin: 2rem 0 1.5rem;
  }

  .galerie-header i {
    font-size: 2.2rem;
  }

  .galerie-header h1 {
    font-size: 1.8rem;
  }

  .galerie-header p {
    font-size: 1rem;
  }

  .categories {
    gap: 0.6rem;
  }

  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .lightbox-close {
    top: 0.4rem;
    right: 0.4rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .lightbox-thumb {
    width: 45px;
    height: 45px;
  }

  .lightbox-info h3 {
    font-size: 1.1rem;
  }
}