/* ===================================================================
   HERO SECTION - RESPONSIVE COMPLET POUR TOUS LES ÉCRANS
   Les textes (H1 + H2) et boutons doivent prendre environ 60%
   de la hauteur pour éviter un hero vide
   =================================================================== */

/* ========== MOBILE PORTRAIT (320px - 480px) ========== */
@media (max-width: 480px) {
  #hero {
    min-height: 100vh !important;
    height: 100vh  !important;

  }

  #hero h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
  }

  #hero h2 {
    font-size: 1.2rem !important;
    margin-top: 2rem !important;
    line-height: 1.5 !important;
    margin-bottom: 2rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    gap: 1rem !important;
  }

  #hero a.inline-flex {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* ========== MOBILE LANDSCAPE / TABLET PORTRAIT (481px - 767px) ========== */
@media (min-width: 481px) and (max-width: 767px) {
  #hero {
    min-height: 100vh !important;
    height: 100vh  !important;

  }

  #hero h1 {
    font-size: 2.25rem !important;
 
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
  }

  #hero h2 {
    font-size: 1.3rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    gap: 1rem !important;
  }

  #hero a.inline-flex {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* ========== TABLET LANDSCAPE (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
  #hero {
    min-height: 100vh !important;
    height: 100vh !important;

  }

  #hero h1 {
    font-size: 2.5rem !important;
   
    margin-bottom: 2rem !important;
  }

  #hero h2 {
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
  }

  #hero a.inline-flex {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
  }
}

/* ========== LAPTOP SCREENS (1024px+) avec hauteur limitée ========== */
/* Fix pour tous les écrans de type laptop (14", 15") */
@media (min-width: 1024px) and (max-height: 900px) {
  #hero {
    height: 100vh  !important;

  }

  #hero h1 {
    font-size: 3rem !important;

    margin-bottom: 2rem !important;
  }

  #hero h2 {
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #hero .flex.flex-col {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
  }

  #hero a.inline-flex {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
  }
}

/* ========== ÉCRANS 14" ET HAUTEUR LIMITÉE (1024px+, hauteur < 800px) ========== */
@media (min-width: 1024px) and (max-height: 800px) {
  #hero {
    height: 100vh  !important;

  }

  #hero h1 {
    font-size: 2.75rem !important;

    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  #hero h2 {
    font-size: 1.4rem !important;
    margin-top: 1.5rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 2.5rem !important;
    padding-top: 1.5rem !important;
    gap: 1rem !important;
  }

  #hero a.inline-flex {
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
  }
}

/* ========== ÉCRANS TRÈS COURTS (1024px+, hauteur < 768px) - Ex: 1366x768 ========== */
@media (min-width: 1024px) and (max-height: 768px) {
  #hero {
    height: 100vh  !important;

  }

  #hero h1 {
    font-size: 2.5rem !important;

    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  #hero h2 {
    font-size: 1.3rem !important;
    margin-top: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    gap: 1rem !important;
  }

  #hero a.inline-flex {
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
  }
}

/* ========== ÉCRANS FULL HD COURTS (1366px+, hauteur < 768px) ========== */
@media (min-width: 1366px) and (max-height: 768px) {
  #hero h1 {
    font-size: 2rem !important;
  }

  #hero h2 {
    font-size: 1rem !important;
  }
}

/* ========== DESKTOP STANDARD (1024px - 1439px) ========== */
@media (min-width: 1024px) and (max-width: 1439px) and (min-height: 901px) {
  #hero {
    height: 100vh !important;
  }

  #hero h1 {
    font-size: 2.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
  }

  #hero h2 {
    font-size: 1.25rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  #hero a.inline-flex {
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
  }
}

/* ========== LARGE DESKTOP (1440px - 1919px) ========== */
@media (min-width: 1440px) and (max-width: 1919px) {
  #hero {
    height: 100vh !important;
  }

  #hero h1 {
    font-size: 2.75rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
  }

  #hero h2 {
    font-size: 1.4rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  #hero a.inline-flex {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
  }
}

/* ========== ULTRA WIDE / 4K (1920px+) ========== */
@media (min-width: 1920px) {
  #hero {
    height: 100vh !important;
  }

  #hero h1 {
    font-size: 3rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2rem !important;
  }

  #hero h2 {
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
  }

  #hero a.inline-flex {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
  }
}

/* ========== RÈGLES GÉNÉRALES POUR TOUS LES ÉCRANS ========== */
/* S'assurer que les boutons restent visibles et bien disposés */
#hero .flex.flex-col.sm\:flex-row {
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  #hero .flex.flex-col.sm\:flex-row {
    justify-content: flex-start;
  }
}

/* Assurer que le contenu ne déborde jamais */
#hero .relative.z-20 {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Fix pour la hauteur de la colonne droite (image) selon la hauteur d'écran */
@media (min-width: 1024px) and (max-height: 900px) {
  #hero .relative.h-72.md\:h-96.lg\:h-\[500px\] {
    height: 300px !important;
  }
}

@media (min-width: 1024px) and (max-height: 768px) {
  #hero .relative.h-72.md\:h-96.lg\:h-\[500px\] {
    height: 250px !important;
  }
}

/* ========== ORIENTATION PAYSAGE SUR MOBILE/TABLETTE ========== */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 60vh !important;

  }

  #hero h1 {
    font-size: 1.5rem !important;
    margin-top: 0.5rem !important;
  }

  #hero h2 {
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    gap: 0.5rem !important;
  }

  #hero a.inline-flex {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* Masquer l'indicateur uniquement en mode paysage sur mobile */
  #hero .absolute.bottom-8 {
    display: none !important;
  }
}
