html {
  font-size: 16px; /* fixe une base claire pour tout */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f3f3ee;
  color: black;
}

/* === SECTION HERO === */

.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #ff0200;
    font-weight: bold;
  }
  
  .overlay h1 {
    margin: 0;
    font-size: 3rem;
  }
  
  .close-btn {
    text-decoration: none;
    color: rgb(255, 0, 0);
    font-size: 3rem;
    padding: 5px 10px;
  }


.hero {
  display: flex;
  align-items: flex-start; /* ✅ remet en haut */
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 3rem; /* ✅ plus léger que min-height */
  padding: 4rem 4rem 4rem;
  box-sizing: border-box;
  gap: 2rem;
}

.hero-text {
  flex: 1; /* ✅ pas besoin de "2 1 65%" */
  padding-top: 1rem;
  padding-left: 1rem;
}

.hero-text h1 {
  font-size: 3.5vw;
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.hero-subtext {
  font-size: 1.8rem;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

.hero-image {
  flex: 0 0 auto; /* ✅ ne pas forcer largeur */
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: flex-start; /* ✅ garde l’image en haut */
  padding-right: 2rem;
  padding-top: 0;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}

/* === RESPONSIVE === */

@media (min-width: 1600px) {
  .hero-text h1 {
    font-size: 5.5vw;
  }

  .hero-subtext {
    font-size: 2rem; /* ~32px */
  }
}

@media (min-width: 2000px) {
  .hero-text h1 {
    font-size: 6vw;
  }

  .hero-subtext {
    font-size: 2.2rem; /* ~35px */
  }
}

@media (max-width: 1400px) {
  .hero {
    padding: 2.5rem 3rem;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 4.2vw;
  }

  .hero-subtext {
    font-size: 1.4rem;
  }

  .hero-image img {
    max-width: 240px;
  }
}

@media (max-width: 1200px) {
  .hero {
    padding: 2rem 2.5rem;
    gap: 1.8rem;
  }

  .hero-text h1 {
    font-size: 4vw;
  }

.hero-subtext {
  font-size: 18px;
}

  .hero-image img {
    max-width: 210px;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 1.8rem 2rem;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 3.8vw;
  }

 .hero-subtext {
  font-size: 16px;
}

  .hero-image img {
    max-width: 190px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 1.5rem 1.5rem;
    gap: 1.2rem;
  }

  .hero-text h1 {
    font-size: 3.6vw;
  }

  .hero-subtext {
  font-size: 14px;
}

  .hero-image img {
    max-width: 170px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.2rem 1.2rem;
    gap: 1rem;
  }

  .hero-text h1 {
    font-size: 3.5vw;
  }

 .hero-subtext {
  font-size: 13px;
}

  .hero-image img {
    max-width: 150px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 1rem 1rem;
    gap: 0.8rem;
  }

  .hero-text h1 {
    font-size: 3.3vw;
  }

  .hero-subtext {
  font-size: 12px;
}

  .hero-image img {
    max-width: 130px;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 0.8rem;
    gap: 0.7rem;
  }

  .hero-text h1 {
    font-size: 3vw;
  }

  .hero-subtext {
  font-size: 11px;
}

  .hero-image img {
    max-width: 120px;
  }
}
