.hero {
  background-image: url("../img/paysage.png");
  height: 95vh;
  position: relative;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  transition: all 0.3s ease;
  
}
.hero .overlay {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}



.search-bar {
  margin: 1.5rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.4s ease both;
}

.search-bar input {
  width: 80%;
  max-width: 600px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.search-bar input:focus {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.categories {
  animation: fadeInUp 0.4s ease both;
}

.categories button {
  background-color: #006644;
  color: white;
  border: none;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.categories button:hover {
  background-color: #004d33;
}

.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 0.5s ease;
}
.section h2 {
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.5s ease;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }

.card:hover {
  transform: translateY(-3px);
}
.card img {
  width: 100%;
  border-radius: 8px;
  height: 150px;
  object-fit: cover;
}
.stars {
  color: #f5b301;
  font-size: 1.1rem;
}

.culture {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.4s ease both;
}
.culture p {
  max-width: 600px;
  margin-top: 0.5rem;
}
.btn {
  background-color: #006644;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover {
  background-color: #004d33;
}

.events {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.event-card {
  background-color: white;
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  animation: fadeInUp 0.5s ease both;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.05s; }
.event-card:nth-child(3) { animation-delay: 0.1s; }

.event-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.event-info {
  padding: 1rem;
}
.event-info .date {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.newsletter {
  animation: fadeInUp 0.4s ease both;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  animation: fadeInUp 0.4s ease both;
}

.newsletter-form input {
  padding: 0.8rem 1.5rem;
  border: 2px solid #e5e7e9;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  min-width: 300px;
}

.newsletter-form input:focus {
  border-color: #006644;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 2rem;
  }

  .section {
    padding: 2rem 1.5rem;
  }

  .card {
    width: 240px;
  }

  .cards {
    justify-content: center;
  }

  .events {
    justify-content: center;
  }

  .event-card {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .hero h2 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .search-bar input {
    width: 90%;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }

  .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  .categories button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin: 0.3rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .cards {
    gap: 1rem;
    justify-content: center;
  }

  .card {
    width: 100%;
    max-width: 350px;
  }

  .culture {
    flex-direction: column;
    text-align: center;
  }

  .culture p {
    max-width: 100%;
  }

  .events {
    justify-content: center;
  }

  .event-card {
    width: 100%;
    max-width: 350px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input {
    min-width: auto;
    width: 90%;
    max-width: 350px;
  }

  .btn {
    width: 90%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 80vh;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .categories button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 1.5rem 0.75rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .card {
    width: 100%;
  }

  .event-card {
    width: 100%;
  }
}
