.hero {
  background: url('/static/img/baner_hero_home4.jpg');
  background-size: cover;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, white, transparent);
  pointer-events: none;
}

.hero-content {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1em;
  left: 15px;
  /* backdrop-filter: blur(5px); */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
} 

.hero-highlight {
  color: #43B929;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top:1.5rem;
  text-align: center;
}

.btn-primary {
  padding: 0.8rem 1.5rem;
  background-color: #43B929;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #43B929;
}

.btn-secondary {
  padding: 0.8rem 1.5rem;
  color: #43B929;
  text-decoration: none;
  font-weight: 500;
}

.partner-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  position: relative;
  z-index: 2;
}

.partner-logo {
  height: 2rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}


@media (max-width: 768px) {
  .hero-content {
      margin: 2rem;
      padding: 8.5rem;
  }

  .hero-title {
      font-size: 2.5rem;
  }

  .partner-logos {
      padding: 1.5rem;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
  }

  .nav-links {
      gap: 1rem;
  }

}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh; /* Ajouté : hauteur réduite sur tablette */
  }

  .hero-content {
    margin: 1.5rem;
    padding: 1.5rem; /* Modifié : réduit le padding excessif */
    max-width: 90%; /* Ajouté */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .partner-logos {
    padding: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh; /* Ajouté : hauteur réduite sur mobile */
  }

  .hero-content {
    margin: 1rem;
    padding: 1rem; /* Ajouté */
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .partner-logo {
    height: 1.5rem;
  }
}
