/* =========================================================
   services-slider.css
========================================================= */

.slider-accueil {
  position: relative;
  width: 100%;
}

.services-slider-wrapper {
  position: relative;
  height: 100vh;
}

/* GSAP gère le pin */
.services-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.services-slider-inner {
  width: 80%;
}

.services-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.services-tabs {
  position: relative;
  z-index: 10;
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  margin-left: 25px;
}

.services-nav-btn {
  border: none;
  outline: none;
  padding: 10px 22px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.18s ease;
  font-family: "Krona One";
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services-nav-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: #000000;
}

.services-nav-btn.active {
  background: #ffffff;
  color: #000000;
}

.services-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.scroll-bar {
  width: 160px;
  height: 4px;
  border-radius: 999px;
  background: #1f1f1f;
  overflow: hidden;
}

.scroll-bar-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #caff46;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* PANELS SUPERPOSES */
.services-slides {
  position: relative;
  height: 70vh;
  min-height: 420px;
  margin-top: 4px;
  width: 100%;
}

/* Chaque slide est un panel full size */
.service-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* la slide active peut recevoir les events (optionnel) */
.service-slide.is-active {
  pointer-events: auto;
}

.service-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 0;
  background: #d4d4d4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
  transform: translateZ(0);
  will-change: transform;
}

.service-slide-media {
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.95;
  transform: translateZ(0);
  /*filter: brightness(0.5) !important;*/
}

.service-slide-footer {
  position: absolute;
  left: 40px;
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.service-slide-meta {
  max-width: 100%;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #111111;
  background: rgba(255, 255, 255, 0.8);
  color: #111111;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-title {
  font-size: 60px;
  line-height: 1.2;
  color: #ffffff;
  font-family: "Krona One";
  text-transform: uppercase;
}

section.service-slide.slide-center:before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 108%;
  height: 90%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30%;
  transform: translate(-50%, -50%);
  filter: blur(65px);
  z-index: -1;
  pointer-events: none;
}

button.services-nav-btn:focus {
    background: #ffffff;
    color : black;
}

.service-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  color: #d4ff46;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  font-family: "Krona One";
  font-size: 13px;
  margin-left: 7px;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-slide-btn:hover {
  color: #ffffff;
}

/* Responsive */

@media (max-width: 1366px) {
.services-slider-inner {
    width: 85%!important;
}
}

@media (max-width: 1200px) {
.services-slider-inner {
    width: 90%!important;
}
}

@media (max-width: 1024px) {
.services-slider-inner {
    width: 90%!important;
}

  .service-title 
  { font-size: 32px; }

  .services-tabs {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .services-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .services-slides { height: 300px; min-height: 360px; }
  .service-slide-footer { left: 24px; bottom: 24px; }
  .service-title { font-size: 22px; }
}

@media (max-width: 767px) {
  .services-slider-header { gap: 14px; }
  .scroll-bar { width: 140px; }
  .service-slide-footer { left: 18px; right: 18px; bottom: 18px; }
  .service-title { font-size: 26px; }
  .services-slides { height: 350px!important; min-height: 360px; }
  .service-slide-inner { margin-top: -30px; height: 92%; }
}

@media (max-width: 640px) {
  .services-slides { height: 350px; min-height: 320px; }
  .services-slider-header { align-items: stretch; }
  .services-scroll-indicator { align-self: flex-end; }
  .service-title { font-size: 19px; }
  .service-slide-btn { padding: 10px 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-slide,
  .service-slide-inner,
  .scroll-bar-fill {
    transition: none !important;
    animation: none !important;
  }
}