:root {
  --bg: #0b0f1a;
  --card: #12192b;
  --stroke: rgba(255, 255, 255, 0.1);

  --text: #e7eef9;
  --muted: rgba(231, 238, 249, 0.7);

  --blue: #3aa6ff;
  --orange: #ff9f1a;

  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #070b14, var(--bg));
  color: var(--text);
}

/* Layout */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: auto;
}

/* Header */
.top {
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
}

.back {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

h1 {
  font-family: Oxanium, Inter, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

/* Years */
.year {
  margin: 3rem 0;
}

.year h2 {
  font-family: Oxanium, Inter, sans-serif;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--orange);
}

/* Grid photos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(58, 166, 255, 0.15);
}

/* Footer */
.footer {
  border-top: 1px solid var(--stroke);
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .grid img {
    height: 190px;
  }
}
/* Bouton retour en haut */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 25, 43, 0.9);
  color: var(--text);
  font-family: Oxanium, Inter, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.to-top:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 159, 26, 0.12);
}
/* Galerie albums */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 180px; /* ← ici tu ajustes la taille */
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 600px) {
  .gallery img {
    height: 150px;
  }
}
/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* Boutons */
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox button:hover {
  opacity: 1;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Mobile */
@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 2.2rem;
  }
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.85;
  color: #fff;
}
