 

 

  /* -----Boutons next / prev---------*/

  .photos-page .photos-prev,
  .photos-page .photos-next {
      width: 60px;
      height: 60px;
      padding: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 20;
 
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .photos-page .photos-prev {
      left: -10px;
  }

  .photos-page .photos-next {
      right: -10px;
  }

  .photos-page .photos-prev img,
  .photos-page .photos-next img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
  }


  /* ------Bouton pause/play centré------*/
  .photos-page .photos-toggle {
      display: block;
      margin: 20px auto;
      width: 40px;
      height: 40px;
      border: none;
      background: transparent;
      cursor: pointer;
  }

  .photos-page .photos-toggle img {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }



/*contrôle des boutons*/
.control-buttons {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
    width: 100%;
    margin-bottom: 10px;
}


#toggleThumbs img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleThumbs:hover img {
    content: url("/assets/images/thumbs-aqua.png");
    opacity: 0.7;
}


#toggleSpinner img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleSpinner:hover img {
    content: url("/assets/images/start-aqua.png");
    opacity: 0.7;
}


#toggleSpinnerStop img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleSpinnerStop:hover img {
    content: url("/assets/images/close-aqua.png");
    opacity: 0.7;
}


#toggleFullScreen img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleFullScreen:hover img {
    content: url("/assets/images/scale-aqua.png");
    opacity: 0.7;
}

#toggleSmallScreen img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleSmallScreen:hover img {
    content: url("/assets/images/unscale-aqua.png");
    opacity: 0.7;
}



#prevButton img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#prevButton:hover img {
    content: url("/assets/images/prev-aqua.png");
    opacity: 0.7;
}



#nextButton img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#nextButton:hover img {
    content: url("/assets/images/next-aqua.png");
    opacity: 0.7;
}





/*-----Carrousel container------*/
.carousel-container.photos-page {
    position: relative;
    max-width: 800px;
    margin: auto;
    /* On s'assure que le container a une base de hauteur pour le flex */
    display: flex;
    flex-direction: column;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

/* Les slides */
.carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;            /* Prend toute la largeur du slide */
    height: auto;           /* Garde le ratio par défaut */
    max-height: 500px;      /* Limite en mode normal */
    object-fit: contain;
    border-radius: 10px;
    margin-top: 1em;
}

/* ... (Gardez vos styles de boutons Next/Prev et Hover ici) ... */

/* --- AJUSTEMENTS PLEIN ÉCRAN --- */

/* --- AJUSTEMENTS PLEIN ÉCRAN --- */

/* 1. On libère le conteneur principal */
#mycarousel:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none; /* Annule le max-width: 800px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
}

/* 2. On force TOUTE la hiérarchie à prendre 100% de la hauteur */
#mycarousel:fullscreen .carousel-viewport,
#mycarousel:fullscreen .carousel,
#mycarousel:fullscreen .slide {
    height: 100%; 
    width: 100%;
}

/* 3. L'image prend 100% de la hauteur disponible sans dépasser */
#mycarousel:fullscreen .slide img {
    max-height: 100vh; /* Utilise toute la hauteur de l'écran */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Centrage parfait sans déformation */
    margin-top: 0;       /* Supprime la marge du mode normal */
    border-radius: 0;    /* Plus propre en plein écran */
}

/* 4. On replace les contrôles par-dessus l'image */
#mycarousel:fullscreen {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(0, 0, 0, 0.4); /* Fond discret pour voir les icônes */
    padding: 5px 20px;
    border-radius: 30px;
}

/* On ajuste aussi les flèches pour qu'elles soient sur les côtés en plein écran */
#mycarousel:fullscreen .photos-prev { left: 20px; }
#mycarousel:fullscreen .photos-next { right: 20px; }





























.control-buttons {
    position: absolute;
    bottom: 20px;
    z-index: 10;
}





  /*------Responsive mobile------------- */
  @media (max-width: 600px) {

      .photos-page .photos-prev,
      .photos-page .photos-next,
      .photos-page .photos-toggle {
          width: 80px;
          height: 80px;
      }

      .photos-page .photos-prev {
          left: -90px;
      }

      .photos-page .photos-next {
          right: -90px;
      }
  }


  #toggleSpinner {
      margin-top: 1em;
  }