/* Azura Club : correctifs mobile appliqués par-dessus le build Next.js.
   Tout est borné à < 1024px (sous le breakpoint lg), le desktop n'est pas concerné. */

/* ---------- Hero ---------- */
@media (max-width: 1023.98px) {
  /* La grille du hero n'a pas de colonne explicite sous lg : la piste implicite prend
     la largeur min-content du mock (399px) et coupe titre, texte et CTA sur tous les mobiles. */
  main > section:first-child > .azura-container.grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Texte du hero visible dès le premier rendu : Framer Motion le sert en opacity:0
     jusqu'à l'hydratation, ce qui repousse le LCP (le H1) de plusieurs secondes. */
  main > section:first-child > .azura-container.grid > :first-child > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 639.98px) {
  /* Mock dashboard plus compact : 3 prospects au lieu de 5 */
  main > section:first-child > .azura-container.grid > :last-child ul > li:nth-child(n + 4) {
    display: none;
  }
}


/* ---------- Navbar ---------- */
@media (max-width: 767.98px) {
  /* Burger à 3 traits : le SVG n'en dessine que 2 (y=8 et y=16), on ajoute celui du milieu */
  header button[aria-label="Ouvrir le menu"] {
    position: relative;
  }
  header button[aria-label="Ouvrir le menu"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17.75px;
    height: 1.75px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1023.98px) {
  /* ---------- Hero : contraste du mock ---------- */
  main > section:first-child .text-mute {
    color: #64748b;
  }
  /* Badge « Répondu » : #0066FF sur #F0F6FF donne 4,44:1, sur blanc 5,2:1 */
  main > section:first-child li span[class*="bg-azure/"] {
    background-color: #ffffff;
  }

  /* ---------- Stack ---------- */
  #stack .grid p:nth-of-type(2) {
    font-size: 11px;
    color: #64748b;
  }
  #stack .grid p:nth-of-type(3) {
    font-size: 14px;
    line-height: 1.5;
  }

  /* ---------- CTA final ---------- */
  /* Lien de secours Calendly : 37px de haut, porté à 44px */
  #rdv p > a[target="_blank"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  /* ---------- Footer ---------- */
  /* Liens de 17px de haut : zone tactile portée à 44px, 8px entre deux liens */
  footer ul {
    margin-top: 0.5rem;
    gap: 0.5rem;
  }
  footer ul > li {
    display: flex;
    min-height: 44px;
    align-items: center;
  }
  footer ul a,
  footer a[aria-label] {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }
  footer .text-mute {
    color: #64748b;
  }
}
