/* ============================================
   HERO QUIZ
   ============================================ */

.hero-quiz {
  --hero-offset: -4vh;

  width: 100%;
  min-height: 100vh;                /* permet de grandir si le contenu dépasse */
  background-color: #1E3A8A;
  display: flex;
  align-items: safe center;         /* centre, mais bascule en haut si contenu trop grand */
  justify-content: center;
  padding: 2rem 5vw;
  box-sizing: border-box;
}

.hero-quiz__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4vw;
  width: 100%;
  max-width: 1400px;
  transform: translateY(var(--hero-offset));
}

/* ---- Visuel gauche ---- */
.hero-quiz__visual {
  flex: 0 0 auto;
  max-width: 40%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-quiz__visual img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* ---- Contenu droite ---- */
.hero-quiz__content {
  flex: 1 1 auto;
  max-width: 700px;
  color: #FFFFFF;
}

.hero-quiz__title {
  font-family: 'Arial', sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 2rem;
  color: #FFFFFF;
  text-transform: none;
}

.hero-quiz__title-head {
  text-transform: uppercase;
  display: block;
  font-size: 1em;
}

.hero-quiz__title-sub {
  font-family: 'Arial', sans-serif;
  font-size: 2.4em;
  font-weight: bold;
  padding-bottom: 0.65em;
}
  @media(max-width: 768px) {
    .hero-quiz__title-sub {
      font-size: 1.4em;
      padding-bottom: 0.65em;
    }
  }

.hero-quiz__text {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  line-height: 1.6;
  margin: 0 0 2rem;
  color: #FFFFFF;
}

.hero-quiz__text:last-of-type {
  margin-bottom: 0;
}

/* ============================================
   FORMULAIRE QUIZ
   ============================================ */

.hero-quiz__form {
  margin-top: 3rem;
}

.hero-quiz__form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.hero-quiz__form-item {
  display: flex;
}

/* ---- Select ---- */
.hero-quiz__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  color: #1E3A8A;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 3rem 0 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 340px;
  height: 56px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3A8A'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 22px;
}

.hero-quiz__select:focus {
  outline: 2px solid #FCD34D;
  outline-offset: 2px;
}

/* ---- Bouton ---- */
.hero-quiz__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background-color: #22C55E;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 0 1rem;
  height: 56px;
  min-width: 200px;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.hero-quiz__btn:hover:not(:disabled) {
  background-color: #16A34A;
}

.hero-quiz__btn:active:not(:disabled) {
  transform: translateY(1px);
}

.hero-quiz__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero-quiz__btn-label {
  display: inline-block;
}

.hero-quiz__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-quiz__btn-arrow div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-quiz__btn-arrow svg {
  width: 18px;
  height: auto;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 1024px) {
  .hero-quiz {
    padding: 2rem 4vw;
  }

  .hero-quiz__inner {
    gap: 3vw;
  }

  .hero-quiz__visual {
    max-width: 38%;
  }

  .hero-quiz__text {
    margin: 0 0 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-quiz {
    --hero-offset: -2vh;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    min-height: 100dvh; /* gère la barre d'adresse mobile */
  }

  .hero-quiz__inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 12em;
  }

  .hero-quiz__visual {
    /* max-width: 60%;
    flex: 0 0 auto; */
    display: none;
  }

  .hero-quiz__visual img {
    max-height: 35vh;
  }

  .hero-quiz__content {
    text-align: left;
    max-width: 100%;
  }

  .hero-quiz__title {
    margin-bottom: 1rem;
  }

  .hero-quiz__form {
    margin-top: 1.5rem;
  }

  .hero-quiz__form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-quiz__select,
  .hero-quiz__btn {
    width: 100%;
    min-width: 0;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .hero-quiz {
    --hero-offset: 0;
  }

  .hero-quiz__visual {
    max-width: 75%;
  }

  .hero-quiz__visual img {
    max-height: 30vh;
  }
}