/* ================================
   HERO SECTION (dégradé institutionnel)
   ================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0066cc 0%, #99cc00 100%);
  padding-top: 20px; /* fine bande de dégradé au-dessus du bandeau */
  overflow: hidden;
}

/* ================================
   HERO BANNER (logo + menu)
   ================================ */
.hero-banner {
  background: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 36px;
  z-index: 3;
}

/* ================================
   HERO CONTENT (texte + image)
   ================================ */
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* texte et image en haut */
  gap: 40px;
  padding: 30px 60px; /* pas de padding bas excessif */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Nanum Brush Script', cursive;
  font-size: 2.5rem;
  margin: 10px 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.5vw, 18px);
  margin: 10px 0;
  max-width: 56ch;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-img {
  max-width: min(480px, 38vw);
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 16px 30px rgba(16, 34, 58, 0.25));
  transform-origin: center;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.02);
}

/* ================================
   HERO WAVE (courbe décorative)
   ================================ */
.hero-wave {
  position: absolute; /* collée en bas */
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .hero-img {
    max-width: min(520px, 85vw);
  }

  .banner-logo {
    height: 36px;
  }

  .banner-nav {
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }
}

/* ================================
   ACCESSIBILITÉ
   ================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-text h1 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-image-wrapper:hover .hero-img {
    transform: none;
  }
}
