/**
 * Folies Secrètes — Popup vidéo premium Magnific / stvideo
 * Scope : body#product uniquement
 * Habillage externe — lecteur YouTube inchangé
 * Version : 20260716-ps648-premium-v2
 */

body#product .mfp-bg {
  opacity: 0.82;
  background: rgba(26, 23, 22, 0.9);
}

body#product .mfp-wrap {
  -webkit-backface-visibility: hidden;
}

body#product .mfp-iframe-holder {
  padding-top: 3rem;
  padding-bottom: 2.75rem;
}

body#product .mfp-iframe-holder .mfp-content {
  position: relative;
  max-width: 920px;
  width: calc(100vw - 2rem);
  line-height: 0;
  overflow: visible;
}

body#product .mfp-iframe-scaler {
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 32px 80px rgba(26, 23, 22, 0.48),
    0 0 0 1px rgba(184, 149, 107, 0.28);
  background: #0d0c0b;
  border: 1px solid rgba(184, 149, 107, 0.22);
}

body#product .mfp-iframe-scaler iframe {
  box-shadow: none;
  border-radius: 14px;
}

/* Bouton fermer premium */
body#product .mfp-iframe-holder .mfp-close,
body#product .mfp-close-btn-in .mfp-iframe-holder .mfp-close {
  position: absolute !important;
  top: -0.35rem !important;
  right: -0.15rem !important;
  left: auto !important;
  bottom: auto !important;
  width: 3.15rem !important;
  height: 3.15rem !important;
  min-width: 3.15rem !important;
  min-height: 3.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid rgba(184, 149, 107, 0.65) !important;
  border-radius: 50% !important;
  background-color: #faf7f2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%231a1716' stroke-width='3.1' stroke-linecap='round' d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 1.5rem 1.5rem !important;
  font: 0/0 a !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  opacity: 1 !important;
  box-shadow:
    0 12px 28px rgba(26, 23, 22, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  cursor: pointer;
  transition:
    background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1060;
}

body#product .mfp-iframe-holder .mfp-close::before,
body#product .mfp-iframe-holder .mfp-close::after {
  content: none !important;
  display: none !important;
}

body#product .mfp-iframe-holder .mfp-close:hover,
body#product .mfp-iframe-holder .mfp-close:focus-visible {
  background-color: #fffefb !important;
  border-color: var(--fs-gold, #b8956b) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23b8956b' stroke-width='3.2' stroke-linecap='round' d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") !important;
  box-shadow:
    0 16px 34px rgba(26, 23, 22, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: translateY(-1px);
  outline: 2px solid rgba(184, 149, 107, 0.45);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body#product .mfp-iframe-holder {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
  }

  body#product .mfp-iframe-holder .mfp-content {
    max-width: calc(100vw - 1.1rem);
    width: calc(100vw - 1.1rem);
  }

  body#product .mfp-iframe-scaler {
    border-radius: 10px;
  }

  body#product .mfp-iframe-holder .mfp-close,
  body#product .mfp-close-btn-in .mfp-iframe-holder .mfp-close {
    top: -0.55rem !important;
    right: 0 !important;
    width: 3.25rem !important;
    height: 3.25rem !important;
    min-width: 3.25rem !important;
    min-height: 3.25rem !important;
    background-size: 1.45rem 1.45rem !important;
  }
}
