* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Nunito", sans-serif;
}


#fade-in-section {

  opacity: 0;
  transition: opacity 1s ease-in-out;
}




.nav-bar {
  padding: 25px;
  background-color: rgb(251, 251, 251);
  box-shadow: 3px 3px 3px rgb(140, 140, 139);
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  position: fixed;
}

.content {
  margin: 0 auto;
  max-width: 83%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.logo {
  margin-left: 18px;
}

.menus ul {
  display: flex;
}

.menus ul a {
  color: rgb(138, 138, 138);
  font-weight: bold;
}

b {
  color: rgb(31, 31, 31);
  font-size: 25px;
}

.menus ul a:hover {
  color: rgb(174, 173, 173);
}

.menus ul li {
  display: flex;
  margin: 0 25px;
  font-size: 20px;
}

/* Toggle & Close buttons */
.toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: rgb(31, 31, 31);
}

.close {
  display: none;
  font-size: 25px;
  color: rgb(31, 31, 31);
  padding: 20px;
  cursor: pointer;
  text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .toggle {
    display: block;
  }

  .menus {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgb(251, 251, 251);
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.1);
    padding-top: 50px;
    transition: left 0.3s ease-in-out;
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
  }

  .menus ul {
    flex-direction: column;
    width: 100%;
  }

  .menus ul li {

    margin: 20px;

    font-size: 22px;
    
  }
  .menus ul li  a{
color: black;
        text-align: center;
  }
  .menus.show {
    left: 0;
  }

  .close {
    display: block;
    width: 100%;
  }



  

}


.banner{
  
    background-image:  linear-gradient( rgb(113, 113, 113),transparent  ), url(../images/banner5.jpg);
background-attachment: fixed;
    background-repeat: no-repeat;
    background-size:cover;
    width: 100%;
    background-position: center;
   
/* margin-top: 26vh; */
      /* background-position: center;      centre l’image */
padding:20px;
    height: 110vh;
}

h1{
    font-weight: bold;
    font-size: 50px;
    margin-top: 30vh;
    color:rgb(31, 31, 31);
    text-align: center;
       font-family:Arial, Helvetica, sans-serif;
       animation:  animation 10s ease;;
}
.p1{
    font-weight: bold;
    letter-spacing: 1.2px;
line-height: 1.2;
    margin-top: 3vh;
    text-align: center;
font-size: 20px;
    animation:  animation 15s ease;;
color: white;
}


@keyframes animation {

0%{
  opacity: 0;
}
50%{
  opacity: 1;
}

}

.btn1{
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    padding: 15px;
    height: 60px;
    width: 200px;
    background-color:white;
    border: none;
    border-radius: 10px;
   transition: 0.3s ease;
 color:black

}

.btn1 a{
font-weight: bold;
 font-size: 20px;
 color:black;;
}

.btn1:hover{
scale: 1.1;
}

h2{
    font-size: 35px;
    color: black;
}
strong{
    font-size: 35px;
    color: #7d7c7c;
   font-family:Arial, Helvetica, sans-serif;
}



/* --------------------------- */

.galery{

         background-image: url(../images/s20.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 80vh;
   
    /* margin-top: 50vh; */
 
    margin: 0 auto;
    /* max-width: 77%; */
}
.images{
    /* background-image: url(../images/s1.jpg); */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 80vh;
     margin-top: 10vh;
    animation:  anime 10s infinite;
}
.description{
    margin-top: 10vh;
}



@keyframes anime {
  0% {
    background-image: url(../images/magazin.jpg);
  }
  20% {
    background-image: url(../images/s12.jpg);
  }
  40% {
    background-image: url(../images/s40.jpg);
  }
  60% {
    background-image: url(../images/s4.jpg);
  }
  80% {
    background-image: url(../images/s30.jpg);
  }
  100% {
    background-image: url(../images/coulissant.jpg); /* corrigé : manquait un point avant 'jpg' */
  }
}

/* ---------------------- */



/* ----------services */

.services{
    /* padding:60px; */
 margin: 0 auto;
    max-width:80%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
}
.section1 img{
    width: 100%;
    height: 300px;
    filter:br;
}
.section1{
          background-color:rgb(251, 251, 251);
    transition:0.4s ease-in-out;
    height: 480px;
    /* padding: 1px; */
    margin: 0 auto;
    /* border:  1px solid rgb(125, 122, 122); */
    box-shadow: 2px 2px 2px 2px  rgb(240, 238, 238);;
    margin-top: 5vh;
   
    width: 90%;

}
.btn2,h2,.p3,a{
    padding-left: 10px;
}
.btn2{
    font-size: 18px;
    color: #7d7c7c;
}
.section1:hover{
    transform: scale(1.02);

}

.section1 .p3{

 padding-bottom: 2vh;
 padding-top: 2vh;
    font-size: 15px;
      

}
h2{
    margin-top: 2vh;
 font-weight: bold;
     color: black;
       
font-size: 18px; /* approximatif */
/* font-weight: normal; */

}


.p2{
    font-size: 18px;

}

.section1 a i{
    margin-left: 5px;

}
.section1 a {

    margin-top: 500vh;
  font-size: 19px;
      color:black

}
.section1 a:hover {


  color: rgb(95, 94, 94);

}

.btn2{
    border: none;
    background-color: transparent;
}

@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    gap: 20px;
  }

  .contenus {
    max-width: 83%;
  }
}

@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 20px;
  }

  .section1 {
    width: 100%;
  }

  .contenus {
    max-width: 90%;
  }

  .btn2,
  h2,
  .p3,
  a {
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 768px) {
  .section1 {
    text-align: center;
  }

  .btn2,
  h2,
  .p3,
  a {
    padding-left: 0;
    padding-right: 0;
  }

  .btn2 {
    display: inline-block;
  }
}
/* --------------------modal */
.details {
  overflow-y: auto;
  background-color: rgba(16, 16, 16, 0.5);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  padding: 20px; /* Ajouté pour respirer sur petits écrans */
  box-sizing: border-box;
}

.picture {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center; /* centre l’image */
}

.contenus {
  background-color: white;
  box-shadow: 3px 3px rgb(218, 216, 216);
  border: 1px solid rgb(75, 74, 74);
  color: black;
  font-size: 1.2rem; /* Taille un peu plus petite sur mobile */
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding-bottom: 15px;
}

/* Texte et titres */
.p4 {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 15px 20px 15px;
}

h3 {
  margin-top: -1.5vh;
  font-size: 1.3rem;
  font-weight: bold;
}

.plus {
  padding: 0 20px 10px 20px;
}

.btn3 {
  background-color: rgb(56, 56, 56);
  padding: 10px;
  width: 100px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
  margin: 0 auto;
  display: block;
}

.btn3:hover {
  transform: scale(1.1);
}

/* ----------- Responsive ------------ */
@media (max-width: 1024px) {
  .contenus {
    max-width: 60%;
    font-size: 1.1rem;
    padding-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .contenus {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    font-size: 1rem;
    margin: 20px auto;
    /* padding: 0px 10px 20px 00px; */
    overflow-y: auto;
    max-height: 90vh;
  }

  .btn3 {
    width: 80px;
  }
/* -------responsive du banner */
  h1{
    font-weight: bold;
    font-size: 50px;
    margin-top: 15vh;
    color:rgb(31, 31, 31);
    text-align: center;
       font-family:Arial, Helvetica, sans-serif;
       animation:  animation 10s ease;;
}
.p1{
    font-weight: bold;
    letter-spacing: 1.2px;
line-height: 1.2;
    margin-top: 3vh;
    text-align: center;
font-size: 20px;
    animation:  animation 15s ease;;
color: white;
}
}

@media (max-width: 480px) {
  .contenus {
    max-width: 95%;
    font-size: 0.95rem;
    /* padding: 10px 10px 15px 10px; */
  }

  .p4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 10px 15px 10px;
  }

  h3 {
    font-size: 1.1rem;
  }

  .btn3 {
    width: 70px;
    padding: 8px;
  }
}




   
/* -----------------aprpos */


.about {
  max-width: 80%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;  /* important pour que les colonnes prennent la même hauteur */
  color: rgb(98, 97, 97);
  padding: 0 20px;
  box-sizing: border-box;
}

#img1 {
  /* forcer que ce conteneur prenne toute la hauteur */
  display: flex;
}

#img1 img {
  width: 100%;
  height: auto;
  border-radius: 10px;

  object-fit: cover;
  /* Pour que l'image prenne toute la hauteur de son conteneur */
  flex-grow: 1;
  align-self: stretch;
  display: block;
}

.text-about {
  background-color: rgb(251, 251, 251);
  border: 1px solid #cbc9c9;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centre verticalement le texte */
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    max-width: 93%;
    gap: 20px;
  }

  #img1 img {
    height: auto;
    flex-grow: 0;
  }

  .text-about {
    padding: 15px;
  }



}



/* --------------------------conatcts */

    .contacts {

  max-width: 80%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;  /* important pour que les colonnes prennent la même hauteur */
  color: rgb(98, 97, 97);
  padding: 0 20px;
  box-sizing: border-box;
}


.session{
    background-color: rgb(251, 251, 251);

    width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  /* Pour que l'image prenne toute la hauteur de son conteneur */
  flex-grow: 1;
  align-self: stretch;
  display: block;
    box-sizing: border-box;
  display:block;
  flex-direction: column;
  justify-content: center;
}
.formulaire{

    background-color: rgb(251, 251, 251);
  border: 1px solid #cbc9c9;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display:block;
  flex-direction: column;
  justify-content: center;
}

.logo-contacts  li a i{
font-size: 20px;
  color: rgb(31, 31, 31)
}

.logo-contacts  li a i{
margin-top: 1vh;
margin-left: 2vh;
}
form{
  margin: 0 auto;
  filter: ;
}

form input,textarea{
  background-color: rgb(239, 244, 246);
  width: 400px;
  height: 40px;
  border:none;
  border-radius: 5px;
}
form input:focus{
border: 1px solid red;
}
textarea{
  height: 80px;
  resize: none;
}
.part1{
  margin-top: 2vh;
}
label{
  text-align: left;
    font-weight: bold;
}
::placeholder{
  text-align: center;

}
input[type="submit"]{
  margin-top: 3vh;
  color: white;
  width: 50%;
  transition: 0.3s ease;
  background-color:  rgb(129, 129, 129); ;
}

input[type="submit"]:hover{
scale: 1.1;
}
sup{
  color: red;
}




/* Responsive */
@media (max-width: 768px) {
  .contacts {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }
.session,.formulaire {
  min-height: 650px;

  width: 100%;
 
}
}


/* Responsive */
@media (max-width: 500px) {
  .contacts {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }
.session,.formulaire {
  min-height: 700px;
}

    .contacts {

  max-width: 93%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;  /* important pour que les colonnes prennent la même hauteur */
  color: rgb(98, 97, 97);
  padding: 0 20px;
  box-sizing: border-box;
}



}



/* ✅ Responsive design */
@media screen and (max-width: 768px) {
  .contacts {
    grid-template-columns: 1fr;
  }

  .formulaire, .session {
    width: 100%;
  }

  form input, form textarea {
    width: 100%;
  }
  .part1{
  margin-top: 7vh;
}

  input[type="submit"] {
    width: 100%;
  }

}

 footer {
    background: #2c2c2c;
    color: white;
    width: 100%;

    height: 100px;

  }
  h5{
    text-align: center;
    padding: 20px;
  }
/* --------------------- */
@media screen and (min-width: 800px) and (max-width: 1200px) {

 footer {
    background: #2c2c2c;
    color: white;
    width: 100%;
margin-top: 20vh;
    height: 100px;

  }
.session,.formulaire {
  min-height: 800px;
}



}