/* ============================================================
   galeries.css — Collège Alphonse Karr v2
   Styles spécifiques à la page Galeries
   ============================================================ */

/* ── En-tête de section ─────────────────────────────────────── */
.galerie-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--grey-light);
}

.galerie-section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.galerie-section-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.galerie-count {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 168, 75, .1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(200, 168, 75, .3);
}

/* ── Grille vidéos ──────────────────────────────────────────── */
.galerie-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 36px;
}

/* ── Carte vidéo ────────────────────────────────────────────── */
.galerie-video-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28, 58, 110, .06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.galerie-video-card:hover {
  box-shadow: 0 8px 28px rgba(28, 58, 110, .13);
  transform: translateY(-4px);
}

/* ── Zone lecteur ───────────────────────────────────────────── */
.galerie-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0f1c;
  overflow: hidden;
}

.galerie-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ── Métadonnées ────────────────────────────────────────────── */
.galerie-video-meta {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.galerie-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}

.galerie-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.galerie-video-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.3;
}

.galerie-video-meta p {
  font-size: .9rem;
  color: var(--grey-mid);
  line-height: 1.7;
  margin: 0;
}

/* ── Séparateur entre sections (pour plus tard) ─────────────── */
.galerie-section + .galerie-section {
  margin-top: 60px;
}

/* ── Dark mode ──────────────────────────────────────────────── */
[data-theme="dark"] .galerie-section-header {
  border-bottom-color: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .galerie-section-header h2 {
  color: var(--text, #e8edf5);
}

[data-theme="dark"] .galerie-count {
  background: rgba(200, 168, 75, .15);
  border-color: rgba(200, 168, 75, .25);
}

[data-theme="dark"] .galerie-video-card {
  background: var(--card-bg, #1a2535);
  border-color: rgba(255, 255, 255, .07);
}

[data-theme="dark"] .galerie-video-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .galerie-video-wrap {
  background: #000;
}

[data-theme="dark"] .galerie-video-meta h3 {
  color: var(--text, #e8edf5);
}

[data-theme="dark"] .galerie-video-meta p {
  color: var(--text-muted, #a0aec0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .galerie-video-grid {
    grid-template-columns: 1fr;
  }

  .galerie-section-header h2 {
    font-size: 1.35rem;
  }

  .galerie-video-meta {
    padding: 18px 20px 22px;
  }

  .galerie-video-meta h3 {
    font-size: 1.05rem;
  }
}