/* ---- CSS LIGHTBOX ---- */

::selection                   {background-color: none;color: black;}
::-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: 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%;
  border: none;
  z-index: 1001;
}
.close::before{content: "Fermer x";text-decoration: underline;}
.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
  border: none;
}

#backToSheet {
  position: absolute;
  top: 3%;
  left: 2%;
  border: none;
  transition: opacity 0.2s ease;
  text-decoration: underline;
  cursor: pointer;
}

#backToSheet.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- 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;
}

.contact-sheet {
  position: absolute;
  inset: 0;
  display: grid;

  gap: 10px;
  padding: 10%;

  /* grille auto-adaptative */
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));



  align-content: start;
  grid-auto-rows: minmax(0, 210px);


  box-sizing: border-box;
}



.contact-sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: 0.2s ease;
}

.contact-sheet img:hover {
  opacity: 0.7;
}






/* ---------- Routing ---------- */

#form-routing h3 {
  margin: 0 0 2rem 0;
}

.routing-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#autre-container {
  animation: fade .35s ease forwards;
}

/* ---------- Etapes ---------- */

.step{

    display:none;
    opacity:0;

    animation:fade .35s ease forwards;

    min-height:320px;      /* évite que le formulaire change de hauteur */

}

.step.active{

    display:block;

}

@keyframes fade{

    from{
        opacity:0;
        transform:translateY(12px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ---------- Titres ---------- */

.step h4{

    margin:0 0 2rem 0;

}

/* ---------- Navigation ---------- */

.form-navigation{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:3rem;

}

/* Les boutons gardent leur place */

#prevBtn,
#nextBtn,
#submitBtn{

    min-width:140px;

}

/* Masqués par défaut */

#prevBtn,
#submitBtn{

    display:none;

}

/* ---------- Message de confirmation ---------- */

.message-box{

    animation:fade .5s ease;

}








/* Espacement titres */
.contact-form  {
  max-width: 800px;
}

/* Espacement titres */
.contact-form h4 {
  padding: 5% 0;
}


/* Champs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid silver;
  background: transparent;
  font: inherit;
  outline: none;
}

/* Espacement entre champs */
.contact-form input + input,
.contact-form input + textarea,
.contact-form textarea {
  margin-top: 16px;
  resize: vertical;
}

.contact-form textarea {
  transform: translateY(-15px);
  border-bottom: 1px solid silver;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  font-style: italic;
  color: #888;
  opacity: 1;
}

/* Options (radio) */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.options input {
  display: none;
}

.options label {
  border: 1px solid grey;
  padding: 8px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.2s;
}

.options label:hover,
.options label:has(input:checked) {
  background-color: #f2efeb;
  border-color: #f2efeb;
}

.options input:checked + span {
  font-weight: 500;
}

/* Bouton */
.contact-form button {
  max-width: 200px;
  margin: 10% 0;
}





/* ---- Responsive tablette ---- */
@media only all and (min-width: 700px) and (max-width: 1200px) {


  .modal {
    left: 0;
    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%;
  max-width: 1920px;
  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: 1920px;
  margin: 0em auto;
   -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE/Edge ancien */
  user-select: none;

}
.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;
}



}