/* =======================
   SLIDER (structure)
======================= */

.apb-slider{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* Hauteur du slider (ajuste ici) */
.apb-slider__track{
  position: relative;
  height: clamp(360px, 45vw, 650px);
}

/* Slides : superposition, pas de flux normal */
.apb-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
  z-index: 0;
}

.apb-slide.is-active{
  opacity: 1;
  z-index: 1;
}

/* Slides 2/3/4 avec images */
.apb-slide > img,
.apb-slide picture > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay texte sur slides image */
.apb-slide__overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
}

.apb-slide__overlay h2{
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.apb-slide__overlay a{
  color: #fff;
  text-decoration: none;
}
.apb-slide__overlay a:hover{
  text-decoration: underline;
}

/* =======================
   DOTS (pagination)
======================= */

.apb-slider__dots{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.apb-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.65);
}
.apb-dot:hover{ background: rgba(255,255,255,.9); }
.apb-dot.is-active{ background: #e6007e; }

/* =======================
   SLIDE 1 : HERO + BG IMAGE + BADGE
   (titre haut, texte+buttons bas)
======================= */

/* Le slide 1 porte : class="apb-slide ... apb-hero-bg" */
.apb-slide.apb-hero-bg .accueil-hero{
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3rem 3rem;

  background-color: #c6eded;
  background-image: url("/sites/default/files/inline-images/apb-hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Voile léger (garde le BG visible) */
.apb-slide.apb-hero-bg .accueil-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.32); /* ajuste 0.25 -> 0.50 */
  z-index:0;
}

/* Tout le contenu au-dessus du voile */
.apb-slide.apb-hero-bg .accueil-hero > *{
  position: relative;
  z-index: 2;
}

/* Colonne gauche = zone "head" en haut + "body" en bas */
.apb-slide.apb-hero-bg .accueil-left{
  flex: 1 1 auto;
  max-width: 760px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 🔼 TITRE plus haut */
.apb-slide.apb-hero-bg .hero-head{
  margin-top: 10px;       /* 🔧 ajuste (20/30/50) */
}

/* 🔽 TEXTE + BOUTONS plus bas */
.apb-slide.apb-hero-bg .hero-body{
  margin-top: auto;       /* 🔥 pousse en bas */
  margin-bottom: 110px;    /* 🔧 ajuste (60/80/110) */
}

/* Titres */
.apb-slide.apb-hero-bg .hero-title{
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 0 0 .6rem;
  color: #111;
}

.apb-slide.apb-hero-bg .hero-subtitle{
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  color: #222;
}

/* Texte */
.apb-slide.apb-hero-bg .hero-text{
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 680px;
  color: #222;
}

/* Couleurs */
.apb-slide.apb-hero-bg .green{ color:#00a393; }
.apb-slide.apb-hero-bg .pink{  color:#e6007e; }

/* Boutons */
.accueil-buttons a{
  display: inline-block;
  padding: .85rem 1.8rem;
  font-weight: 700;
  border-radius: 8px;
  margin-right: 1rem;
  text-decoration: none;
  transition: all .25s ease;
}

.btn-green{ background:#00a393; color:#fff; }
.btn-green:hover{ background:#007e6d; }

.btn-outline-pink{
  border: 2px solid #e6007e;
  color: #e6007e;
  background: rgba(255,255,255,.25);
}
.btn-outline-pink:hover{ background:#e6007e; color:#fff; }

/* Colonne droite : badge */
.apb-slide.apb-hero-bg .accueil-right{
  flex: 0 0 300px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 3;
}

.apb-slide.apb-hero-bg .badge{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.apb-slide.apb-hero-bg .apb-badge-img{
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: calc(100% - 40px);
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 1024px){
  .apb-slider__track{ height: clamp(360px, 55vw, 620px); }

  .apb-slide.apb-hero-bg .accueil-right{ flex: 0 0 260px; }
  .apb-slide.apb-hero-bg .apb-badge-img{ max-width: 260px; }

  .apb-slide.apb-hero-bg .hero-title{ font-size: 2.2rem; }

  .apb-slide.apb-hero-bg .hero-head{ margin-top: 20px; }
  .apb-slide.apb-hero-bg .hero-body{ margin-bottom: 60px; }
}

@media (max-width: 768px){
  .apb-slider__track{ height: clamp(460px, 95vw, 640px); }

  .apb-slide.apb-hero-bg .accueil-hero{
    padding: 2rem 1.25rem;
    gap: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .apb-slide.apb-hero-bg .accueil-left{
    max-width: 100%;
  }

  /* Sur mobile, on rapproche head/body */
  .apb-slide.apb-hero-bg .hero-head{ margin-top: 10px; }
  .apb-slide.apb-hero-bg .hero-body{
    margin-top: 24px;
    margin-bottom: 0;
  }

  .apb-slide.apb-hero-bg .hero-title{ font-size: 2rem; }
  .apb-slide.apb-hero-bg .hero-subtitle{ font-size: 1.1rem; }

  .apb-slide.apb-hero-bg .accueil-right{
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-left: 0;
  }

  .apb-slide.apb-hero-bg .apb-badge-img{
    max-width: 180px;
    max-height: none;
  }

  /* Mobile : recadrage un peu plus haut sur les images 2/3/4 */
  .apb-slide > img,
  .apb-slide picture > img{
    object-position: center top;
  }
}

/* Descendre uniquement les boutons du slide 1 */
.apb-slide.apb-hero-bg .accueil-buttons{
  margin-top: 100px;   /* ajuste : 20 / 40 / 60 */
}