/* ---- CSS LIGHTBOX ---- */

::selection                   {background-color: none;color: black;}/* Firefox */
::-moz-selection              {background-color: white;color: black;}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding: 0;
  left:400px;
  top: 0;
  width: calc(100% - 400px);
  height: 100%;
  overflow: hidden; /* ✅ important pour masquer le hors champ */
  background-color: white/*rgba(255,255,255,1);box-shadow: inset 10px 0 80px -8px rgba(0, 0, 0, 0.05)*/;
}

.modal-content {
  position: absolute;
  background-color: none;
  text-align: center;
  padding: 0%;
  width: 100%;
  max-width: 1920px;
  max-height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden; /* ✅ masque les slides hors zone */

}

/* Close button */
.close {
  color: black;
  position: absolute;
  top: 3%;
  right: 2%;
  
  z-index: 1001;
}
.close::before{content: "Fermer x";text-decoration: underline;}
.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
}

/* ---- AJOUT POUR SLIDER ---- */
.slides-container {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.mySlides {
  flex: 0 0 100%; /* chaque slide prend toute la largeur */
  flex-shrink: 0;
  text-align: center;
}
.mySlides img,
.mySlides video {
  max-height: 80vh;
  max-width: 90%;
  object-fit: cover;
}

.cursor-right { cursor: url('../images/slider/suiv.svg') 16 16, auto; }
.cursor-left  { cursor: url('../images/slider/back.svg') 16 16, auto; }

#lightbox-counter {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  color: black;
  font-size: 1em;
  z-index: 1000;
}

/* ---- Responsive tablette ---- */
@media only all and (min-width: 700px) and (max-width: 1200px) {
  .modal {
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
  }
  .modal-content {
    width: 90%;
    max-width: 1920px;
  }
}



/* ---- FIN CSS LIGHTBOX ---- */

/* ---- CSS SLIDER ---- */




.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: auto;
}

.slider ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.slider li {
  flex: 0 0 auto;
  list-style: none;
}

.slider img {
  display: block;
  width: 100%;
  height: auto;
}




/* Zones clic gauche/droite */
.slider::before,
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
}


.slider-counter {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  color: black;
  font-size: 1em;
  z-index: 10;
}

/* Curseur flèche droite */
.cursor-right {
  cursor: url('../images/slider/suiv.svg') 16 16, auto;
}

/* Curseur flèche gauche */
.cursor-left {
  cursor: url('../images/slider/back.svg') 16 16, auto;
}


/* ---- FIN CSS SLIDER ---- */

/* ---- CSS BEFORE/AFTER ---- */


/* -------------------------------- 

Primary style

-------------------------------- */

img {
  max-width: 100%;
}

/* -------------------------------- 

Main components 

-------------------------------- */


.cd-image-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0em auto;

}
.cd-image-container img {
  display: block;  padding-bottom:8px;
}


.cd-resize-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
}
.cd-resize-img img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.cd-resize-img .cd-image-label {
  right: auto;
  left: 0;
}
.is-visible .cd-resize-img {
  width: 50%;
  }
.cd-handle {
  position: absolute;
  height: 52px;
  width: 52px;
  /* center the element */
  left: 50%;
  top: 50%;
  margin-left: -26px;
  margin-top: -16px;
  border-radius: 80%;
  background:  url("../images/slider/slide-black.svg") no-repeat center center;
  cursor: pointer;
}
.cd-handle.draggable {
  /* change background color when element is active */
  background:  url("../images/slider/slide-white-01.svg") no-repeat center center;
}



/* ---- FIN CSS BEFORE/AFTER ---- */


/* ---- CSS MENUMOBILE ---- */



#menumobile {display:none;}

@media only all and (min-width : 100px) and (max-width : 600px){  
/* Barre en bas */

#menumobile {display:block;}

#menuToggle {z-index: 1010;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2001;
  cursor: pointer;
  display: none; /* caché par défaut, apparaît après 100px de scroll */
  cursor: pointer;
}

/* Icône */
#menuIcon {
  transition: transform 0.4s ease; /* animation de rotation */
}

/* Classe appliquée quand menu ouvert */
#menuIcon.rotate {
  transform: rotate(45deg);
}


/* Overlay du menu */
.overlay {
  position: fixed;
  bottom: -100%; /* caché */
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: bottom 0.4s ease;
  z-index: 901;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

/* Contenu du menu */
.overlay-content {
  position: relative;
  top: 20%;
}

.overlay-content a {
  font-size: 2rem;
  display: block;
  padding: 15px;
  
}

.overlay-content a:hover {
  text-decoration: line-through;
}

}