/* Slider styles - lightweight, no will-change */
/* Conteneur principal */
#head_slider_container {
  position: relative;
  width: 900px;
  max-width: 100%;
  height: 350px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Wrapper Jssor */
#box2 {
  position: absolute;
  inset: 0;
  cursor: default;
  height: 350px;
}

/* Slides */
#box2 [u="slides"],
#box2 [data-u="slides"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#box2 [u="slides"] > div,
#box2 [data-u="slides"] > div {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Images */
#box2 [u="image"],
#box2 [data-u="image"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Captions / textes - animations JS */
#box2 [u="caption"],
#box2 [data-u="caption"] {
  position: absolute;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  pointer-events: none;
  z-index: 100;
}

/* Quand la slide est active */
#box2 .slide-visible [u="caption"],
#box2 .slide-visible [data-u="caption"] {
  opacity: 1;
  transform: translateY(0);
}

/* Titre */
#box2 [data-caption="text"] {
  width: 900px;
  max-width: 100%;
  box-sizing: border-box;
}
#box2 [data-caption="text"] > div:first-child {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}
/* Texte descriptif */
#box2 [data-caption="text"] > div:last-child {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
}

/* Loader pendant chargement */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
}

/* Navigation bullets (optionnel) */
.jssorb05 {
  position: absolute;
  bottom: 16px;
  right: 16px;
}
.jssorb05 div, .jssorb05 div:hover, .jssorb05 .av {
  background: #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 3px rgba(0,0,0,.3);
}
.jssorb05 div:hover { background: #d9a04d; }
.jssorb05 .av { background: #d9a04d; }

/* Arrows (optionnel) */
.jssora12l, .jssora12r {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.jssora12l { left: 12px; }
.jssora12r { right: 12px; }
.jssora12l:hover, .jssora12r:hover { background: rgba(255,255,255,.6); }

/* Responsive */
@media (max-width: 960px) {
  #head_slider_container, #box2 {
    height: 300px;
  }
}
@media (max-width: 640px) {
  #head_slider_container, #box2 {
    height: 220px;
  }
}