* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    /* font-family: 'Montserrat', sans-serif !important; */
    font-family: 'Roboto', sans-serif;
  }
  
  header {
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  nav {
    display: flex;
    justify-content: center;
    font-size: 1vw;
    /* background-color: #0052a4; */
    background: linear-gradient(to right, #0072ff, #00c6ff);
    /* background: linear-gradient(to right, #30a542, #78e08f); */
    position: relative;


  }
  
  nav ul {
    display: flex;
    list-style-type: none;
  }
  
  nav li {
    margin: 10px;
    margin-right: 30px;

  }
  
  nav li:hover {
    /* font-weight: bold; */
    text-shadow: 0.3px 0.3px white, -0.3px -0.3px white, -0.3px 0.3px white, 0.3px -0.3px white;
  }
  

  nav a {
    text-decoration: none;
    color: white;
  }
  

/* CSS */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0.9;

}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: -1;
}



  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
  }
  
  h1, h2 {
    margin-bottom: 20px;
    /* color: #0052a4; */
    color: #fff;
  }
  
  button {
    padding: 10px 20px;
    background-color: #007ffe;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5vw;
    border-radius: 10px 10px 10px 10px;
    font-weight: bold;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
  }

  button:hover {
    /* background-color: #003366; */
    background-color: #005fbe;
  }
  
h1 {
    font-size: 4vw;
    text-shadow: -5px 5px 7px #000000;
  }

h2 {
    font-size: 2vw;
    /*   font-size: clamp(14px, 2vw, 24px); /* Ajoutez clamp() pour définir des limites */
    text-shadow: -5px 5px 7px #000000;
  }


  /* nav a,
  nav a:visited {
    text-decoration: none;
    color: white;
    
  } */

  .image-text a:link,
  .image-text a:visited {
    text-decoration: none;
    color: #ffffff;
    /* background-color: #007ffe; */
  }
  

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff; /* Choisissez la couleur du texte que vous voulez */
  font-size: 2vw; /* Choisissez la taille du texte que vous voulez */
  font-weight: bold;
  background-color: #007ffe;
  width: 100%;
  
}

.image-container:hover .image-text {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .test {
  opacity: 1;
}


/* section 2  */

img {
    border-radius: 20px 20px 20px 20px;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    }

    a:hover img {
      transform: scale(1.05);
      transition: transform 1s ease;
      
      
    }

.gallery-item {
    flex: 1;
    position: relative;
    margin: 0 15px; /* Add this line to create a 30px margin between images */
  }

  .image-container {
    width: 100%; /* Définissez la largeur souhaitée */
    height: 600px; /* Définissez la hauteur souhaitée */
    position: relative;
    overflow: hidden; /* Ajoutez cette ligne pour masquer les parties de l'image qui dépassent */
    border-radius: 30px 30px 30px 30px;
  }
  
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajoutez cette ligne pour adapter la taille de l'image */
    display: block;
    transition: transform 1s ease;

  
  }
  
  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex; /* Add this line to enable flexbox */
    flex-direction: column; /* Add this line to stack elements vertically */
    align-items: center; /* Ajouté pour centrer les éléments horizontalement */
    justify-content: center; /* Ajouté pour centrer les éléments verticalement */
      transition: opacity 0.5s ease;
    border-radius: 30px 30px 30px 30px;
  }
  
  .image-container:hover .overlay {
    opacity: 1;
  }
  
  .image-container:hover img {
    transform: scale(1.1);
    
  }
  
  .overlay h3 {
    color: #fff;
    padding: 10px;
    text-align: center; /* Add this line to center the text horizontally */
    align-self: center; /* Add this line to center the elements horizontally */
    font-size: 2vw;
  }
 .overlay p {
    color: #fff;
    padding: 10px;
    text-align: center; /* Add this line to center the text horizontally */
    align-self: center; /* Add this line to center the elements horizontally */
    font-size: 1.3vw;
    margin-bottom: 30px;
  }

  .overlay button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #007ffe;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    /* margin-bottom: 20px; */
    font-size: 1vw;
  }
  
  #gallery {
    display: flex;
    justify-content: center;
    padding: 50px 50px 0px 50px;
    background-color: #fff;

  }
  /* mobile menu */

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 5px;
  box-sizing: border-box;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: white;
  display: block;
  margin-bottom: 5px;
  position: relative;
}



/* Galerie */
.gallery  {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 30px;
 }
 
 .gallery img {
   width: 100%;
 }

 .container {
  width: 100%;
  max-width: 1600px; /* détermine la largeur maximale de votre container */
  margin: 0 auto; /* Centrer horizontalement */
  padding: 0 15px; /* Ajoutez un espace entre le contenu du container et les bords de l'écran sur les petits écrans */
  text-align: center;
  margin-bottom: 50px;

 }

 #text_parcs {
  font-size: 1vw;
  margin-bottom: 50px;
  text-align: justify;
  font-family: "Roboto";
 }

 #h1_parcs {
  margin-top: 50px;
  margin-bottom: 50px;
  color: #00c6ff;
  font-family: "Roboto Slab";
  text-shadow: none;

 }

 
 #h2_parcs {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #00c6ff;
  font-family: "Roboto Slab";
  text-shadow: none;

 }


 /* ajustement ecran 2 */

 @media (max-width: 1300px) {
  h1 {
    font-size: 7vw;
  }

  h2 {
    font-size: 5vw;
  }


  button {
    font-size: 3vw;
  }

  .overlay h3 {
    font-size: 4vw;
  }

  .overlay p {
    font-size: 2vw;
  }

  .overlay button {
    font-size: 2vw;
  }

  #gallery {
    flex-direction: column;
  }

  .gallery-item {
    margin: 15px 0;
  }


  .image-container {
    width: 100%; /* Définissez la largeur souhaitée */
    height: 400px; /* Définissez la hauteur souhaitée */
    position: relative;
    overflow: hidden; /* Ajoutez cette ligne pour masquer les parties de l'image qui dépassent */
    border-radius: 30px 30px 30px 30px;
  }
  
  .image-text a:link,
  .image-text a:visited {
    text-decoration: none;
    color: #ffffff;
    background-color: #007ffe;
    font-size: 5vw;
  }

  #text_parcs {
    font-size: 4vw !important;
   }
  
   nav {
    font-size: 1.8vw;
  }
}

/* Galerie d'image */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  grid-auto-rows: 1px;
  grid-gap: 30px;
}

.gallery img {
  width: 100%;
  object-fit: cover;
}

.gallery::before {
  content: "";
  width: 0;
  padding-bottom: 100%;
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

.gallery>*:first-child {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

/* Add this media query for screens with a width of 768px or less */
@media (max-width: 768px) {
  h1 {
    font-size: 8vw;
  }

  h2 {
    font-size: 6vw;
  }

  button {
    font-size: 6vw;
  }

  .overlay h3 {
    font-size: 5vw;
  }

  .overlay p {
    font-size: 4vw;
  }

  .overlay button {
    font-size: 3vw;
  }

  #gallery {
    flex-direction: column;
    padding: 50px 25px 0px 25px;
  }

  .gallery-item {
    margin: 15px 0;
  }

  .hamburger-menu {
    display: flex;
  }

  nav ul {
    display: none;
  }

  #nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: black;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    z-index: 1;
  }

  nav a {
    font-size: 7vw;
  }

nav ul.open {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.8);
  position: absolute; /* Change this from fixed to absolute */
  top: 100%; /* Change this from 0 to 100% */
  left: 0;
  right: 0;
  text-align: center;
}


  nav li {
    margin: 10px 0;
  }
  .image-container {
    width: 100%; /* Définissez la largeur souhaitée */
    height: 400px; /* Définissez la hauteur souhaitée */
    position: relative;
    overflow: hidden; /* Ajoutez cette ligne pour masquer les parties de l'image qui dépassent */
    border-radius: 30px 30px 30px 30px;
  }
  
  .image-text a:link,
  .image-text a:visited {
    text-decoration: none;
    color: #ffffff;
    background-color: #007ffe;
    font-size: 8vw;
  }

  #text_parcs {
    font-size: 4vw !important;
   }
  
   .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 1px;
    grid-gap: 30px;
  }

}

#legal {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 20px;
  text-decoration: none;
  color: black;
  background-color: #fff;
}
#legal a {
  text-decoration: none;
  color: black;
}

#h1_ML {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  color: #00c6ff;
  font-family: "Roboto Slab";
  text-shadow: none;
  font-size: 4em;

 }

#h2_ML {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  color: #00c6ff;
  font-family: "Roboto Slab";
  text-shadow: none;
  font-size: 3em;

 }

 #text_ML {
  font-size: 1.3em;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  text-align: justify;
  font-family: "Roboto";
 }