*{
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato-Regular", sans-serif;
}

  /*------------------------------------------------------ BANNIERE ---------------------------------------------- */

  html, body {
    overflow-x: hidden;
  }
  

.container {
  text-align: center;
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(../assets/img/plomberie/banniere.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

  
h1 {
  font-weight: 700;
  font-size: 3rem;
  font-family: "Lato-Bold", sans-serif;
}

  /*------------------------------------------------------ BANNIERE ---------------------------------------------- */

  /*------------------------------------------------------ INTRO ---------------------------------------------- */
  
  #logo {
    width: 30%; 
    max-width: 300px; 
    height: auto;
    margin: 0 auto; 
    display: block; 
    
  }
  
  
  #texte {
    padding-right: 5%;
    padding-bottom: 5%;
    padding-top: 4%;
  }
  
  
  #img {
    flex: 1;
  }
  
  #texte {
    flex: 2;
  }
  
  
  div[style*="display: flex;"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; 
    padding: 20px;
  }
  

  /*------------------------------------------------------ INTRO ---------------------------------------------- */

  /*------------------------------------------------------ CARTE ---------------------------------------------- */

.blank,
.other {
width: 100%;
min-height: 20vh;
background-color: #F2F3F2;
}

.second {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
background-image: url(../assets/img/plomberie/background.webp);
background-size: cover;
background-position: center center;
background-attachment: fixed;
min-height: 90vh;
}

.item {
display: flex;
width: 100%;
max-width: 320px;
background-color: #F2F3F2;
flex-direction: column;
align-items: center;
border-radius: 0.5em;
box-shadow: 0px 29px 38px -15px rgba(0, 0, 0, 0.43);
margin: 1.6em auto; 
text-align: center;
}

.img {
width: 90%;
height: 200px;
background-color: lightgrey;
background-size: cover;
background-position: center;
margin-top: 20px;
border-radius: 0.3em;
}

.img-first {
background-image: url(../assets/img/plomberie/installation.webp);
}

.img-second {
background-image: url(../assets/img/plomberie/depannage.webp);
}

.img-third {
background-image: url(../assets/img/plomberie/remplacement.webp);
}

.titreCarte {
  font-weight: 700;
  font-size: 1.6rem;
  padding: 5%;
  text-align: center;
  font-family: "Lato-Bold", sans-serif;
}

.paraCarte {
padding: 5%;
text-align: center;
}






  /*------------------------------------------------------ CARTE ---------------------------------------------- */

  /*------------------------------------------------------ REALISATION ---------------------------------------------- */

#nosreal {
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  padding-bottom: 5%;
  
}

#real {
  background-color: #F2F3F2;
  padding-top: 5%;
  padding-bottom: 5%;
}

#carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#carousel {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

#carousel img {
  width: 40%; 
  height: auto;
  object-fit: cover; 
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 5px;
}



.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
  background-image: url('../assets/img/plomberie/left-arrow.webp');
  background-size: cover;
}

.next {
  right: 10px;
  background-image: url('../assets/img/plomberie/right-arrow.webp');
  background-size: cover;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.8); 
}


.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}


.close {
  position: absolute;
  top: 15px;
  right: 35px;
  width: 30px; 
  cursor: pointer;
}

.close:hover,
.close:focus {
  opacity: 0.7; 
}




  /*------------------------------------------------------ REALISATION ---------------------------------------------- */


  /*------------------------------------------------------ QUESTION ---------------------------------------------- */
  
  #logoimg{
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#quest{
  text-align: center;
  margin: 0;
  font-size: 3vh;
  font-weight: bolder;
  padding-top: 3%;
  
}

#aide{
  text-align: center;
  margin-top: 1%;
  font-weight: lighter;
}
 
.containerBtn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 2%;
  margin-bottom: 2%;
}

.Button {
  padding: 16px 23px;
  background: #242424;
  color: #FFFFFF;
  border-radius: 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.Button:hover {
  background-color: #474747;
  color: #ffffff;
}

.Button2 {
  padding: 16px 23px;
  background: #474747;
  color: #FFFFFF;
  border-radius: 15px;
  font-size: 16px;
  border: none;
}

.Button2:hover {
  box-shadow: 0px 2px 10px #242424;
}


  /*------------------------------------------------------ QUESTION ---------------------------------------------- */

  /*------------------------------------------------------ MEDIA QUERIES ---------------------------------------------- */


@media (min-width: 769px) {
  .second {
    flex-direction: row;
    justify-content: space-around;
    background-attachment: unset;
  }
  
  .item {
    width: 30%;
  }

  }
  
  
@media (max-width: 768px) {
  div[style*="display: flex;"] {
    flex-direction: column; 
    text-align: center; 
}

.container {
  background-attachment: unset !important;
}

#logo {
    padding-left: 0; 
    margin-bottom: 20px; 
    width: 50%; 
}

#texte {
    padding-right: 0; 
    padding-top: 0; 
}
    .arrow {
      width: 35px;
      height: 35px;
    }
  
    .prev {
      left: 5px;
    }
  
    .next {
      right: 5px;
    }
  
    #carousel img {
      width: 80%;
    }
  
    #nosreal {
      font-size: 1.5rem;
    }

  .second {
    flex-direction: column;
    align-items: center;
  }
  
  .item {
    width: 90%;
    max-width: 100%;
  }
  
  .img {
    width: 100%;
    height: 150px;
  }
  
  .titreCarte {
    font-size: 1.4rem;
  }
  
  .paraCarte {
    font-size: 1rem;
  }

  h1 {
    font-weight: 700;
    font-size: 1.7rem;
  }

  #quest{
    padding-top: 5%;
  }
  .containerBtn {
    margin-bottom: 5%;
  }
  p {
    max-width: 52ch;
    line-height: 1.5;
    padding: 1em;
    font-size: 15px;
    color: #242424;
  }
  
  
  }


@media (max-width: 480px) {

  .arrow {
    width: 25px;
    height: 25px;
  }

  .prev {
    left: 2px;
  }

  .next {
    right: 2px;
  }
  
  #carousel img {
    width: 100%;
  }
}