/* 09) CSS | FULLWIDTH HOME POST SLIDER — corrigé */
/* FULLWIDTH HOME POST SLIDER — v2 simple & lisible */
/* Contexte global */
.hp-post-slider-1 {
  --accent: #ae2012;
  --accent-dark: #8c1b10;
  --text: #fff;
  --overlay: rgba(0, 0, 0, 0.45);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
}

/* Slide */
.hp-post-slider-1 .et_pb_slide{
  position: relative;
  isolation: isolate;                 /* contient l’overlay */
  min-height: clamp(320px, 40vh, 540px);
  padding: 40px 30px;
  background-position: center;
  background-size: cover;
  opacity: .96;
  transition: opacity .6s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}

/* Effet d'overlay pour lisibilité */
.hp-post-slider-1 .et_pb_slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Légère animation survol */
.hp-post-slider-1 .et_pb_slide:hover::before {
  opacity: 1.1;
}

/* Animation d’arrière-plan (zoom lent) */
.hp-post-slider-1 .et_pb_slide {
  animation: zoom-bg 18s ease-in-out infinite alternate;
}
@keyframes zoom-bg {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Titre */
.hp-post-slider-1 .et_pb_slide h2{
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  margin: 18px 0 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.32);
  transition: color .3s ease, transform .2s ease;
}
.hp-post-slider-1 .et_pb_slide:hover h2{ color: var(--accent); }

/* Extrait */
.hp-post-slider-1 .et_pb_slide_content{
  color: #f2f2f2;
  font-size: .98rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Bouton principal */
.hp-post-slider-1 .et_pb_more_button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff!important;
  font-size: 0.80rem!important;
  font-weight: 700!important;
  text-transform: uppercase!important;
  letter-spacing: 0.06em!important;
  padding: 14px 32px!important;
  border-radius: 6px!important;
  border: none!important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35)!important;
  transition: all 0.35s ease!important;
}
.hp-post-slider-1 .et_pb_more_button:hover {
  transform: translateY(-4px)!important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45)!important;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%)!important;
}

/* Pagination */
.hp-post-slider-1 .et-pb-slider-pagination {
  bottom: 26px;
}
.hp-post-slider-1 .et-pb-slider-pagination li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  margin: 0 6px;
  transition: all 0.3s ease;
}
.hp-post-slider-1 .et-pb-slider-pagination li.et-pb-active-slide {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* Flèches navigation */
.hp-post-slider-1 .et-pb-arrow-next,
.hp-post-slider-1 .et-pb-arrow-prev {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.hp-post-slider-1 .et-pb-arrow-next::before,
.hp-post-slider-1 .et-pb-arrow-prev::before {
  color: #fff;
  font-size: 22px;
}
.hp-post-slider-1 .et-pb-arrow-next:hover,
.hp-post-slider-1 .et-pb-arrow-prev:hover {
  background-color: var(--accent);
  transform: scale(1.1);
}

/* Mobile / tablette */
@media (max-width: 768px){
  .hp-post-slider-1 .et_pb_slide{ padding: 36px 20px; min-height: clamp(260px, 48vh, 420px) }
  .hp-post-slider-1 .et_pb_slide h2{ font-size: clamp(1.2rem, 1rem + 2vw, 1.6rem) }
  .hp-post-slider-1 .et_pb_slide_content{ font-size: .92rem }
  .hp-post-slider-1 .et_pb_more_button{ font-size: .75rem; padding: 9px 14px }
  .hp-post-slider-1 .et-pb-arrow-next, .hp-post-slider-1 .et-pb-arrow-prev{ width: 35px; height: 35px }
  .hp-post-slider-1 .et-pb-arrow-next::before, .hp-post-slider-1 .et-pb-arrow-prev::before{ font-size: 16px }
}

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce){
  .hp-post-slider-1 .et_pb_slide,
  .hp-post-slider-1 .et_pb_more_button,
  .hp-post-slider-1 .et-pb-arrow-next,
  .hp-post-slider-1 .et-pb-arrow-prev,
  .hp-post-slider-1 .et-pb-slider-pagination li{
    transition:none !important;
  }
}