.floating-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.floating-overlay.show {
  display: block;
  opacity: 1;
}

.floating-media {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  max-width: 90%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-media.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.floating-media.expanded {
  top: 50%;
  left: 50%;
  bottom: auto;
  right: auto;
  width: 90%;
  max-width: 720px;
  transform: translate(-50%, -50%) scale(1);
}

.floating-image,
.floating-video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.close-media {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  cursor: pointer;
  z-index: 10;
}

.floating-cta {
  display: block;
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  background: #111;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
  .floating-media {
    width: 200px;   /* réduit la taille */
    bottom: 15px;
    right: 15px;
  }

  .floating-cta {
    font-size: 14px;
    padding: 10px;
  }
}



/* DESKTOP ONLY */
/* @media (max-width: 1023px) {
  .floating-media {
    display: none !important;
  }
} */

/* MOBILE ONLY */

/* @media (min-width: 1024px) {
  .floating-media {
    display: none !important;
  }
} */


