@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust this value to match the height of your fixed header */

}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgb(22, 74, 54);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo-img {
  width: 120px;
  height: auto;
  object-fit: cover;
  margin-left: 20px;
}

.nav a {
  text-decoration: none;
  margin: 0 15px; /* Increased margin for more space */
  color: #ffffff;
  font-size: 1rem;
}

.nav a.active {
  color: rgb(5, 88, 62);
  font-weight: bold;
}

.mobile-nav-button {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  margin-right: 20px;
}


/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('hero-img.png') no-repeat center center/cover;
  padding: 20px;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.cta-btn {
  background-color: #04543d;
  color: #fff;
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #093f2d;
  transform: scale(1.05);
}

/* Presentation Section */
.presentation {
  margin-top: 10px;
  text-align: center;
  padding: 40px;
}

.presentation-text {
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Products Section */
.produits {
  padding: 50px 20px;
  text-align: center;
}

.produits h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0a4d39;
}

.produit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.produit-card {
  background: #ffffff00;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.produit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.produit-card img {
  width: 200px;
  height: 175px;
  border-radius: 10px;
  margin: 0 auto;
}

.produit-card h3 {
  font-size: 1.2rem;
  color: #0a4d39;
  margin: 10px 0 0;
}

/* About Section */
.about {
  text-align: center;
  padding: 50px 20px;
}

.about-text {
  font-size: 1rem;
  color: #000000;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0a4d39;
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(to left, rgba(2, 101, 51, 0), rgb(4, 106, 82));
  color: white;
}

.contact-grid {
  display: flex;
  justify-content: space-between;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.contact-form button {
  background-color: rgb(14, 125, 95);
  border: none;
  color: white;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
}

/* Footer */
.footer {
  background-color: #042116;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer a {
  color: #a7c7bd;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: #04543d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero h3 {
    font-size: 1rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    background-color: rgb(4, 33, 22);
    position: absolute;
    top: 60px;
    width: 100%;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    margin: 10px 0; /* Adjust margin for vertical layout on mobile */
    text-align: center;
  }

  .mobile-nav-button {
    display: block;
  }


  .produit-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .produit-card img {
    width: 100px;
    height: 100px;
  }

  .contact-grid {
    flex-direction: column;
  }
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #04543d;
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Hidden by default */
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s;
}

#scroll-to-top:hover {
  background-color: #093f2d;
  transform: scale(1.1);
}

/* Focus States */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #04543d;
  outline-offset: 2px;
}