/* -------------------------------------------------- */
/* STRUCTURE GLOBALE */
/* -------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #f4f4f4;
  position: relative;
}

/* Fond + overlay */
.bg-image,
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-image {
  background-size: cover;
  background-position: center top 35%;
  background-repeat: no-repeat;
}

.overlay {
  background: rgba(0, 0, 0, 0.1);
}


/* BOUTONS ANNÉES */

.album-years {
  display: flex;
  justify-content: center; /* ✅ centre horizontalement */
  align-items: center;      /* ✅ centre verticalement si nécessaire */
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.year-btn {
  padding: 14px 28px;           /* 🔹 Plus de surface cliquable */
  font-size: 1.1em;             /* 🔹 Texte plus grand */
  background: #2b6cb0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.year-btn:hover {
  background: #1e4f80;
}

.year-btn.active {
  background: #2f855a;
}

/* ✅ Responsive : encore plus lisible sur petits écrans */
@media (max-width: 768px) {
  .year-btn {
    padding: 16px 32px;
    font-size: 1.2em;
    width: 100%;
    text-align: center;
  }

  .album-years {
    flex-direction: column;
    align-items: center;
  }
}

/* -------------------------------------------------- */
/* CARROUSEL */
/* -------------------------------------------------- */

.carousel-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  height: 80vh;
  overflow: hidden;
}

/* Grande image */
.main-image-container {
  flex: 3; /* 🔥 donne plus d’espace à la grande image */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* 🔥 indispensable */
}


.main-image-container img,
#fixedImage {
  width: auto;          /* 🔥 laisse l’image respirer */
  height: 100%;         /* 🔥 prend toute la hauteur disponible */
  max-height: 100%;     /* 🔥 empêche le dépassement */
  object-fit: contain;  /* 🔥 garde les proportions */
  border-radius: 8px;
  transition: opacity 0.4s ease;
}



/* Miniatures */
.side-thumbnails {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.thumbnail-carousel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-height: 500px;
  overflow-y: auto;
}

.thumbnail,
.thumbnail-carousel img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail:hover,
.thumbnail-carousel img:hover {
  transform: scale(1.05);
}

.thumbnail.active {
  border: 2px solid #4CAF50;
}

/* Navigation miniatures */
.carousel-nav {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.nav-btn:hover {
  background-color: #388e3c;
}

/* -------------------------------------------------- */
/* MODAL */
/* -------------------------------------------------- */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.modal-img {
  width: 100%;
  border-radius: 8px;
}

.modal-description {
  margin-top: 1rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}