.ads-visualizer{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: row;
    width: 200%;
    margin: 0 auto;
    min-height: 720px;
}

/* ---- Bloc contrôles (desktop + mobile) ---- */
.device-controls {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  background-color: var(--text-primary);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  z-index: 10;
}

/* Ligne d’icônes leviers */
.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.social-btn {
  background: var(--white-10);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  width: 50px;
  height: 50px;
  color: var(--text-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover,
.social-btn.active {
  background: linear-gradient(135deg, var(--brand-blue), #a07cff);
  color: var(--bg-white);
}

/* ---- Slider ---- */
.device-slider {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 6px;
  width: 140px;
  height: 55px;
  margin-bottom: 0;
  
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
}

.slider-btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
}

.slider-btn.active {
  color: var(--bg-white);
}

.slider-indicator {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 50%;
  height: 47px;
  background: linear-gradient(135deg, var(--brand-blue), #a07cff);
  border-radius: 15px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
/* Format non disponible (globalement ou pour ce levier) */
.slider-btn.disabled-format {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(100%) brightness(0.7);
  pointer-events: none; /* empêche le clic */
}

/* Empêche le hover de réactiver un style trop flashy */
.slider-btn.disabled-format:hover {
  color: inherit !important;
  background: none !important;
}

/* ---- Téléphone centré ---- */
.device-viewport {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 720px;
  width: 100%;
  overflow: hidden;
}

.device {
  display: none;
}

.device.active {
  display: block;
}

/* ---- Téléphone ---- */
.phone-container {
  position: relative;
  width: 300px;
  overflow: hidden;
  justify-content: center;
}

.phone-container video {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 79%;

  object-fit: fill;
  border-radius: 30px 30px 30px 30px;
}


.phone-overlay {
  position: relative;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}



/* ---- Téléphone ---- */


.desktop-container video {
  position: absolute;
  top: 19.5%;
  left: 10.4%;
  width: 76.9%;

  object-fit: fill;
  border-radius: 0px 0px 5px 5px;
}
.desktop-container {
  position: relative;
  width: 600px;
  overflow: hidden;
  justify-content: center;
}

.phone-container,
.desktop-container {
  display: flex;  
  height: 600px;
  align-items: center;
}

.phone-overlay,
.desktop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;         /* 👈 s’adapte à la largeur parent */
  height: 100%;        /* garde la proportion via aspect-ratio */
  object-fit: contain; /* évite les déformations */
  pointer-events: none;
} 

.ads-img-phone,
.ads-img-desktop {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 82%;
  object-fit: cover;
  border-radius: 0 0 30px 30px;
  z-index: 1;
}

/* VISUALIZER SECTION LAYOUT STYLES */

.formats-header {
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.details-exemples-services-inversed {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.details-exemples-services-left-inversed {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (min-width: 741px) {
  .ads-visualizer {
    width: 200%;
    min-height: 720px;
  }

  .device-controls {
    display: contents;
  }

  .device-slider {
    margin-bottom: 10px;
  }

  .social-row {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: none;
    overflow: visible;
    padding: 12px;
    background: var(--text-primary);
    border-radius: 20px;
    z-index: 10;
  }

  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 12px;
  }
}

@media (max-width: 740px) {
  .ads-visualizer {
    width: 100%;
    min-height: auto;
  }

  .device-viewport {
    height: auto;
    padding-top: 12px;
  }

  .device-controls {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto 10px;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .device-slider {
    margin-bottom: 0;
  }

  .social-row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
    background: var(--text-primary);
    padding: 8px;
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .social-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .device.desktop {
    width: 100%;
  }

  .device.desktop.active {
    display: flex;
    justify-content: center;
  }

  .desktop-container {
    width: min(100%, 360px);
    max-width: calc(100vw - 24px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}