/* ============ Reset & base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Logo fixe en haut à gauche, présent sur toutes les pages */
.site-logo {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 100;            /* au-dessus de tout, même de la vidéo et du menu */
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-logo img {
  display: block;
  height: 48px;            /* ajuste selon ton logo */
  width: auto;
}

.site-logo:hover,
.site-logo:focus-visible {
  transform: scale(1.05);
  opacity: 0.9;
  outline: none;
}

@media (max-width: 900px) {
  .site-logo {
    top: 1rem;
    left: 1rem;
  }
  .site-logo img {
    height: 36px;
  }
}
:root {
  --bg: #1c1818;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --radius-img: 14px;
  --max-width: 1280px;
  --gap: 1.5rem;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

/* ============ Navigation ============ */
.main-nav {
  width: 100%;
  padding: 2.5rem 4rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-nav a {
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  opacity: 1;
  outline: none;
}

/* ============ Header ============ */
.gallery-header {
  text-align: center;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.gallery-header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============ Layout général ============ */
.page-photo-diverse {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Image generique dans une figure */
.page-photo-diverse figure {
  overflow: hidden;
  border-radius: var(--radius-img);
  background: rgba(255, 255, 255, 0.03);
}

.page-photo-diverse figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-photo-diverse figure:hover img {
  transform: scale(1.03);
}

/* ============ Rangées ============ */

/* Paire d'images paysage (rangées 1 et 2) */
.row--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.row--pair figure {
  aspect-ratio: 16 / 10;
}

/* Variante : paire de portraits (rangée 4) */
.row--pair.row--portrait figure {
  aspect-ratio: 3 / 4;
}

/* Rangée 3 : image carrée à gauche, titre de section à droite */
.row--image-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
  margin: 1.5rem 0;
}

.row--image-title figure {
  aspect-ratio: 1 / 1;
  max-width: 520px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Rangée 5 : image pleine largeur */
.row--full figure {
  aspect-ratio: 21 / 9;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox__close:hover {
  opacity: 1;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .main-nav {
    padding: 1.5rem;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .main-nav a {
    font-size: 1rem;
  }

  .gallery-header h1 {
    font-size: 2.25rem;
  }

  .row--pair,
  .row--image-title {
    grid-template-columns: 1fr;
  }

  .row--image-title figure {
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
    text-align: center;
  }
}
