/* Galerie — styles autonomes (n'utilise pas Tailwind, qui n'est pas chargé en prod) */

.ix-gallery-section {
  position: relative;
  padding: 64px 0;
  background: linear-gradient(180deg, #1b263b 0%, #0d1b2a 55%, #000000 100%);
  color: #fff;
  overflow: hidden;
}

.ix-gallery-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ix-gallery-header { text-align: center; margin-bottom: 48px; }
.ix-gallery-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
@media (min-width: 768px) { .ix-gallery-title { font-size: 3rem; } }
.ix-gallery-subtitle {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 42rem;
  margin: 0 auto;
}

.ix-gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
}
.ix-gallery-back:hover { color: #fff; }

.ix-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.ix-filter-pill {
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.ix-filter-pill:hover { background: rgba(255,255,255,0.18); color: #fff; }
.ix-filter-pill.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}

.ix-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .ix-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ix-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.ix-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: #111827;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ix-gallery-item:hover { transform: scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.ix-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.ix-gallery-item:hover img { transform: scale(1.1); }

.ix-gallery-video-thumb {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex; align-items: center; justify-content: center;
}
.ix-gallery-play-btn {
  width: 64px; height: 64px; margin: 0 auto 8px;
  border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.ix-gallery-item:hover .ix-gallery-play-btn { transform: scale(1.1); }
.ix-gallery-video-label { color: rgba(255,255,255,0.8); font-size: 14px; text-align: center; }

.ix-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
  display: flex; align-items: flex-end;
  padding: 16px;
}
.ix-gallery-item:hover .ix-gallery-overlay { opacity: 1; }
.ix-gallery-overlay-title { color: #fff; font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.ix-gallery-edition-badge {
  display: inline-block; margin-top: 2px;
  padding: 2px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(139,92,246,0.85); color: #fff;
}

.ix-gallery-featured-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #eab308, #f97316); color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ix-gallery-cta {
  text-align: center; margin-top: 40px;
}
.ix-gallery-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; text-decoration: none;
  transition: background 0.25s ease;
}
.ix-gallery-cta-btn:hover { background: rgba(255,255,255,0.18); }

.ix-gallery-empty { text-align: center; color: #9ca3af; padding: 60px 0; grid-column: 1 / -1; }

.ix-gallery-pagination {
  display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 48px;
}
.ix-gallery-pagination a {
  padding: 8px 20px; border-radius: 999px; font-size: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #e5e7eb; text-decoration: none; transition: background 0.2s ease;
}
.ix-gallery-pagination a:hover { background: rgba(255,255,255,0.18); }
.ix-gallery-pagination span { color: #9ca3af; font-size: 14px; }

/* Lightbox */
.ix-lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(6px);
  display: none;
}
.ix-lightbox.is-open { display: block; }
.ix-lightbox-close, .ix-lightbox-prev, .ix-lightbox-next {
  position: absolute; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.2s ease;
}
.ix-lightbox-close:hover, .ix-lightbox-prev:hover, .ix-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.ix-lightbox-close { top: 16px; right: 16px; }
.ix-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ix-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.ix-lightbox-body {
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0 72px;
}
.ix-lightbox-content { max-width: 960px; max-height: 80vh; width: 100%; }
.ix-lightbox-content img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.ix-lightbox-content iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: none; }
.ix-lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 14px;
}

/* Bandeau d'annonce du site (piloté depuis l'admin) */
.ix-site-announcement {
  width: 100%; text-align: center; font-size: 14px; padding: 10px 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); color: #fff;
}
