@import url('https://fonts.googleapis.com/css?family=Lato:300|Playfair+Display:900');



body, h1, h2, h3, h4, h5, h6, p, a, li {
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: rgb(16, 141, 72);
}

p {
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300; 
  
}



.carou {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin-top: 100px;
  overflow: hidden;
  position: relative;

}

/* Conteneur d'animation */
.ani {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Zone de défilement */
#defiler {
  width: 100vw;
  overflow: hidden;
  border: 2px solid rgb(16, 141, 72);
}

/* Bande d'images en mouvement */
.fil {
  display: flex;
  height: 100vh;
  animation: test1 25s infinite;
}

/* Style des images */
.fil img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

/* Animation de défilement lent et fluide */
 @keyframes test1 {
    0% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(-300px);
    }
    60% {
        transform: translateX(-900px);
    }
    100% {
        transform: translateX(0);
    }
   
        
    
    }







.wha {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}




.wha img {
  width: 60px;
  height: 50px;
}


/* Navigation */
nav {
  background-color: white;
  color: rgb(16, 141, 72);
  display: flex;
  width: 100%;
  height: 15vh;
  justify-content: space-around;
  align-items: center;
  font-size: 1rem;
  position: fixed;
  z-index: 10;
  top: 0%;
}


nav .logo {
  display: flex;
  justify-content: center;
  align-items: center;

}

nav .logo  {
  width: 180px;
  height: 70px;
  margin: 1rem 1rem 1rem 0.5rem;
}

nav .logo p {
  font-size: clamp(1rem, 0.8vw + 0.5rem, 2rem);
  ;
}

nav ul {
  color: black;
  width: 50%;
  margin-left: auto;
  display: flex;
  justify-content: space-around;
  align-self: center;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: rgb(16, 141, 72);
  font-size: 20px;
}

nav ul li a:hover {
  /* color: var(--primary-bg-color); */
  color: rgb(16, 141, 72);}

nav .hamburger {
  cursor: pointer;
  display: none;
}

nav .hamburger .line {
  background-color: rgb(16, 141, 72);
  width: 30px;
  height: 4px;
  margin: 5px;
}


nav .mode svg {
  color: rgb(16, 141, 72);}

nav ul.open {
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
  -webkit-clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
}



h1{
  color: rgb(16, 141, 72);
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 0;
      background-color: rgb(16, 141, 72);
      width: 100%;
      text-align: center;
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      padding: 10px 0;
  }

  .burger {
      display: block;
  }
}



@media (max-width: 450px) {
  .navbar {
      padding: 10px 15px;
  }

  .logo {
      font-size: 1.2rem;
  }



  .burger {
      font-size: 1.8rem;
  }
}

@media (max-width: 350px) {
  .logo {
      font-size: 1rem;
  }

  .burger {
      font-size: 1.6rem;
  }


  .hero img {
  width: 300px;

}




}


@media (max-width: 800px) {


  .infolink {
    grid-template-columns: 1fr;
  }

 


    nav{
      height: 12vh;
      position: fixed;
    }
    nav ul {
      position: absolute;
      top: 0;
      background-color: rgba(0, 0, 0, 0.7);
      flex-direction: column;
      align-items: center;
      width: 100%;
      height: 50vh;
      clip-path: polygon(100% 0, 100% 100%, 100% 100%, 100% 0);
      transition: all 1s ease-out;
    }
  
    nav .hamburger {
      display: block;
      z-index: 200;
      /* position: absolute;
      top: 50%;
      right: 5%;
      transform: translate(-5%, -50%); */
      cursor: pointer;
    }




}




.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero img {
  width: auto;
  height: 400px;
  border-radius: 5px;
  margin-top: 80px;
}

.hero p {

  font-size: 14px;
  color: #000 ;
}

.blog-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.article {
  border-top: 2px solid rgb(16, 141, 72);
  padding-top: 20px;
}

.article a {
  text-decoration: none;
  font-weight: bold;
  color: #000;
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.article p {
  font-size: 12px;
  color: #777;
}

.pagination {
  text-align: right;
  padding: 20px;
  font-size: 14px;
}

.pagination a {
  text-decoration: none;
  color: rgb(16, 141, 72);
}
