.before-after-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  aspect-ratio: 16 / 9;
}

.before-after-container img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: left;
    position: absolute;
    left: 0;
    top: 0;
}

.before-wrapper,
.after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.before-wrapper {
  z-index: 1;
}

.after-wrapper {
  z-index: 2;
  overflow: hidden;
}

.separator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.separator-bullet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.arrow {
  border: solid #333;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 4px;
}

.left-arrow {
  transform: rotate(135deg);
}

.right-arrow {
  transform: rotate(-45deg);
}

/* popup  */
.ccbb-view-details{
    display: block;
    margin: 10px 0;
    padding:20px 10px;
    text-transform: uppercase;
    text-align: center;
    background: #c8a64c;
    color: #141414;
    line-height: 0;
    width: 100%;
    border: 1px solid #c8a64c;
}

.ccbb-view-details:hover,
.ccbb-view-details:focus{
    background: transparent;
    color: #c8a64c;
    background: transparent;
}


.ccbb-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 999;
}

.ccbb-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  padding: 30px;
  width: 95%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: all 0.25s ease;
  background: #141414;
  border: 1px solid #c8a64c;
  max-height: 95%;
  overflow-y: auto;
}

.ccbb-popup.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ccbb-popup-close {
  margin-top: 20px;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}
.ccbb-popup-close:hover {
  background: #555;
}

.ccbb-popup-x {
  position: absolute;
  top: 0px;
  right: 0px;
  inline-size: 50px; 
  block-size: 50px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  z-index: 1;
}

.ccbb-popup-x svg {
  pointer-events: none;
  display: block;
  /* couleur de l’icône */
  fill: #fff;
}

.ccbb-popup-x:hover,
.ccbb-popup-x:focus-visible {
  background: rgba(0,0,0,0.06);
  outline: none;
}

.ccbb-popup-x:active {
  transform: scale(0.96);
}

/* Accessibilité : focus clair au clavier */
.ccbb-popup-x:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.35);
}


.ccbb-popup-content-box{
    display: flex;
    gap: 30px;
}

.ccbb-popup-content-box .ccbb-popup-content-box__description{ width: 75%; }
.ccbb-popup-content-box .ccbb-popup-content-box__etape{ width: 25%; position: relative;}
.ccbb-popup-content-box .ccbb-popup-content-box__etape:after{content: ''; z-index: -1; position: absolute; background: #141414; left: 1.25rem; top: 0; bottom: 0; width: 1px; background: #fff;}
.ccbb-popup-content-box .prestation__title{ color: #c8a64c; margin: 0 0 15px; }
.ccbb-popup-content-box .prestation__description{ color: #fff; margin-bottom: 15px;}

.ccbb-popup-content-box .prestation__description p{
    text-align: justify;
}

.ccbb-popup-content-box .prestation_cta { 
    color: #c8a64c;
    display: inline-block;
    border: 1px solid #c8a64c;
    padding:5px 18px;
    border-radius: 20px;
    text-transform: uppercase;
}


.ccbb-popup-content-box .etape_title{ color: #c8a64c; margin:0 0 15px 3.5rem;}

.ccbb-popup-content-box  .etape_liste h4{ color: #c8a64c; text-transform: uppercase; font-weight: 300;}
.ccbb-popup-content-box  .etape_liste p{ color: #fff;}

.ccbb-popup-content-box  ol.etape_liste {
    counter-reset: li;
    list-style: none; 
    *list-style: decimal; 
    padding: 0 0 0 2.5rem;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.ccbb-popup-content-box  .etape_liste li{
    padding:0 0 15px 15px;
    position: relative;
}

.ccbb-popup-content-box  .etape_liste li:before{
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -2.5em;
    top: 0;
    height: 2.5em;
    width: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #c8a64c;
    border: 1px solid #fff;
    background:  #333;
    z-index: 22;
    border-radius: 2rem;
    transform: translateY(-7px);
}

.ccbb-slider-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media only screen and (max-width: 767px) {
    .ccbb-popup-content-box{
        flex-direction: column;
    }
    .ccbb-popup-content-box .ccbb-popup-content-box__description,
    .ccbb-popup-content-box .ccbb-popup-content-box__etape{ width: 100%;}

    .ccbb-slider-grid{grid-template-columns: 1fr;}
}