/* Labels Avant/Après */
.ba-label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
}
.ba-label--before {
  left: 20px;
  background: var(--accent-2);
  color: var(--black);
}
.ba-label--after {
  right: 20px;
  background: var(--secondary);
  color: var(--white);
}

.ba-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border-radius: 20px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.ba-slider img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.ba-before img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  z-index: 1;
}
.ba-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.ba-arrows svg {
  width: 12px;
  height: 12px;
  color: var(--white);
}
