/* ============================= */
/* BASE PAGE                     */
/* ============================= */

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}

/* ============================= */
/* TITRE                         */
/* ============================= */

.title {
  margin: 30px 0 10px;
  font-size: 1.8rem;
  font-weight: 500;
}

/* ============================= */
/* SLIDESHOW                     */
/* ============================= */

.slideshow-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 20px auto 80px;
  border-radius: 14px;
  overflow: hidden;
}

/* Image */
.slideshow-container img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

/* ============================= */
/* ZONES CLIQUABLES              */
/* ============================= */

.nav-zone {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

/* Zones gauche / droite */
.nav-zone.left { left: 0; }
.nav-zone.right { right: 0; }

/* ============================= */
/* FLÈCHES                       */
/* ============================= */

.nav-zone::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-top: none;
  border-right: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Flèche gauche */
.nav-zone.left::after {
  left: 28px;
  transform: translateY(-50%) rotate(225deg);
}

/* Flèche droite */
.nav-zone.right::after {
  right: 28px;
  transform: translateY(-50%) rotate(45deg);
}

/* Apparition au survol */
.slideshow-container:hover .nav-zone::after {
  opacity: 1;
}

/* ============================= */
/* BOUTON RETOUR                 */
/* ============================= */

.back-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;

  z-index: 20;
  transition: background 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) scale(1.05);
}

/* ============================= */
/* MOBILE                        */
/* ============================= */

@media (max-width: 768px) {
  .title {
    font-size: 1.4rem;
  }

  .back-button {
    bottom: 30px; /* évite la barre système */
  }
}
