/* GBHA Promo Banner Slider - Fixed Height (360px), Borderless & Fluid Cinematic Transitions */

.gbha-promo-slider-wrapper {
  max-width: 1400px;
  margin: 24px auto 22px auto;
  padding: 0 5%;
}

.gbha-promo-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  border: none;
  outline: none;
  background: #0f172a;
}

.gbha-slide-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gbha-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 60px;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s;
}

.gbha-slide-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.gbha-slide-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
}

/* Animations en cascade du contenu */
.gbha-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #ffffff !important;
  color: #0f172a !important;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.gbha-slide-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f172a;
}

.gbha-slide-title {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 12px 0;
  letter-spacing: -0.4px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.16s,
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
}

.gbha-slide-desc {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 26px 0;
  font-weight: 500;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s,
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s;
}

.gbha-slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s,
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

.gbha-slide-item.active .gbha-slide-badge,
.gbha-slide-item.active .gbha-slide-title,
.gbha-slide-item.active .gbha-slide-desc,
.gbha-slide-item.active .gbha-slide-actions {
  opacity: 1;
  transform: translateY(0);
}

.gbha-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.gbha-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  background: #f8fafc;
}

/* Image occupant la moitié droite avec fondu horizontal et effet Ken Burns doux */
.gbha-slide-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.gbha-slide-visual-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 15%, rgba(0, 0, 0, 0.8) 45%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 15%, rgba(0, 0, 0, 0.8) 45%, black 100%);
  transform: scale(1.08) translateX(12px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gbha-slide-item.active .gbha-slide-visual-bg {
  transform: scale(1) translateX(0);
}

/* Slider Controls */
.gbha-slider-controls {
  position: absolute;
  bottom: 22px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gbha-slider-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.gbha-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.gbha-slider-dot.active {
  width: 28px;
  background: #ffffff;
}

.gbha-slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s;
}

.gbha-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.06);
}

/* Mobile Responsive : Degrade diagonal du bas-gauche vers le haut-droite + image cadree en haut-droite */
@media (max-width: 900px) {
  .gbha-promo-slider-wrapper {
    margin: 16px auto 28px auto;
  }
  .gbha-promo-card {
    height: 415px;
  }
  .gbha-slide-item {
    height: 415px;
    padding: 115px 20px 56px 20px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .gbha-slide-content {
    max-width: 90%;
    z-index: 6;
  }
  .gbha-slide-badge {
    margin-bottom: 10px;
    padding: 5px 13px;
    font-size: 10px;
  }
  .gbha-slide-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 7px;
    text-shadow: 0 2px 14px rgba(9, 13, 22, 0.75);
  }
  .gbha-slide-desc {
    font-size: 12.5px;
    line-height: 1.48;
    margin-bottom: 15px;
    color: #e2e8f0;
    text-shadow: 0 2px 10px rgba(9, 13, 22, 0.85);
  }
  .gbha-slide-cta {
    padding: 10px 18px;
    font-size: 12px;
  }
  .gbha-slide-visual {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  .gbha-slide-visual-bg {
    background-position: 86% 14%;
    -webkit-mask-image: radial-gradient(
      115% 88% at 96% 4%,
      #000000 0%,
      rgba(0, 0, 0, 0.90) 26%,
      rgba(0, 0, 0, 0.34) 49%,
      rgba(0, 0, 0, 0.05) 66%,
      transparent 82%
    );
    mask-image: radial-gradient(
      115% 88% at 96% 4%,
      #000000 0%,
      rgba(0, 0, 0, 0.90) 26%,
      rgba(0, 0, 0, 0.34) 49%,
      rgba(0, 0, 0, 0.05) 66%,
      transparent 82%
    );
  }
  .gbha-slider-controls {
    bottom: 14px;
    right: 18px;
  }
}
