/* slider-hero – mobile overrides only (safe to append at end of style.css or load after it) */
@media (max-width: 42em) {
  /* Slides : hauteur auto sur mobile */
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto !important;
    max-height: 500px;
    /* position: relative !important; évite chevauchements */
  }

  .hero-zone {
    grid-area: 1/1/2/2 !important; /* force zone claire */
    flex-direction: column !important;
    align-items: center !important; /* centrage texte/images */
    text-align: center !important;
    gap: 0.5rem;
    width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-slider-contenu {
    opacity: 1 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
    padding-inline: 1rem !important;
    max-width: 100vw;
  }

  .image-wrap img {
    height: auto !important;
    grid-area: 2/1/3/2 !important;
    max-height: 34vh !important;
    width: 100% !important;
    object-fit: cover;
    position: relative !important; /* annule absolute */
  }

  .slider-hero h1 {
    font-size: 1.5rem !important;
    line-height: 1.2;
    margin: 0;
  }

  /* Navigation : horizontal et centrée */

  .nav-dot {
    opacity: 1 !important;
  }

  .carousel {
    padding: 0;
    margin: 0;
  }

  .slider-hero {
    padding: 0;
    margin: 0;
  }

  .logo-Tours-slide img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
  }

  .hero-slider-contenu p.sstitre,
  .description-site {
    line-height: 1.3;
    font-size: 0.9rem !important;
    padding-block: 0.5rem;
    margin-bottom: 0 !important;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .logo-Tours-slide {
    width: 60%;
    height: auto;
  }
}

/* Autoriser le scroll vertical mais capter un geste horizontal */
.slider-wrapper,
.slider-wrapper * {
  touch-action: pan-y;
}
/* --- HOTFIX mobile: puces ancrées + pas de reflow --- */
@media (max-width: 42em) {
  /* Le wrapper et la slide prennent la hauteur du contenu sans 100dvh */
  .slider-wrapper {
    height: auto !important;
    overflow: visible !important;
  }

  /* Image sans « liseré » et sans position absolue */
  .image-wrap img {
    display: block !important;
    position: relative !important;
    height: auto !important;
    /* max-height: 60vh !important; */
    width: 100% !important;
    object-fit: cover;
  }
  .slide-nav {
    position: absolute !important; /* <- clé */
    left: 50% !important;
    bottom: 0.75rem !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    width: auto !important;
    right: auto !important;
  }
}

@media (max-width: 20em) {
  .slide-nav {
    top: 35% !important;
  }
}
@media (min-width: 21em) and (max-width: 29.99999em) {
  .slide-nav {
    top: 56% !important;
  }
}
@media (min-width: 30em) and (max-width: 38em) {
  .slide-nav {
    top: 47% !important;
  }
}
