/* ═══════════════════════════════════════════════════
   InterFilm — Modal Premium (noir / orange)
   ═══════════════════════════════════════════════════ */

.pm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pm-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: min(90vh, 720px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(247, 127, 0, 0.22);
  background: #0a0a0a;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(247, 127, 0, 0.1);
  animation: premiumPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Visuel gauche ── */
.pm-visual {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: min(90vh, 720px);
  overflow: hidden;
  background: #111;
}

.pm-visual-bg {
  position: absolute;
  inset: 0;
  background-color: #111;
  background-image: url('https://www.franceinfo.fr/pictures/pT5OXj014v7h-V97DMGzQvi0lso/1200x900/2025/11/07/fa7fc075dcef1a0ab59211071721287c-690db94c0bb0f900603625.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.82;
}

.pm-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 127, 0, 0.12) 0%, transparent 35%),
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.92) 100%);
}

.pm-visual-content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 36px;
  z-index: 2;
}

.pm-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 127, 0, 0.35);
  background: rgba(247, 127, 0, 0.1);
  color: #ff9500;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pm-visual-title {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 8px;
}

.pm-visual-title span {
  color: #f77f00;
}

.pm-visual-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
}

/* ── Panneau droit ── */
.pm-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 22px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: linear-gradient(165deg, #0c0c0c 0%, #101010 100%);
}

.pm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  z-index: 10;
}

.pm-close:hover {
  background: rgba(247, 127, 0, 0.12);
  border-color: rgba(247, 127, 0, 0.35);
  color: #fff;
}

.pm-pricing {
  margin-bottom: 14px;
  padding-right: 36px;
}

.pm-label {
  color: #ff9500;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pm-price {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: clamp(2.6rem, 2.2rem + 1.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  background: linear-gradient(135deg, #fff 20%, #f77f00 75%, #ff9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vipPulse 2s infinite alternate ease-in-out;
  display: inline-block;
}

.pm-price-unit {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-price-note {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
}

/* ── Durées ── */
.pm-duration {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.vip-dur-btn {
  position: relative;
  padding: 9px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.vip-dur-btn:hover:not(.active) {
  background: rgba(247, 127, 0, 0.08);
  color: #fff;
}

.vip-dur-btn.active {
  background: linear-gradient(135deg, #f77f00, #ff9500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(247, 127, 0, 0.35);
}

.vip-dur-badge {
  position: absolute;
  top: -7px;
  right: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.vip-dur-badge--green {
  background: #22c55e;
  color: #fff;
}

.vip-dur-badge--orange {
  background: linear-gradient(135deg, #f77f00, #ff9500);
  color: #fff;
}

/* ── Avantages ── */
.pm-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 16px;
  padding: 0;
  flex: 0 0 auto;
}

.vip-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.vip-feature-row:hover {
  background: rgba(247, 127, 0, 0.06);
  border-color: rgba(247, 127, 0, 0.18);
  transform: translateX(6px);
}

.vip-feature-row:hover .vip-icon-box {
  transform: scale(1.08);
  background: rgba(247, 127, 0, 0.18);
  border-color: rgba(247, 127, 0, 0.45);
  color: #fff;
}

.vip-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(247, 127, 0, 0.1);
  border: 1px solid rgba(247, 127, 0, 0.25);
  color: #ff9500;
  transition: all 0.25s ease;
}

.vip-feature-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  line-height: 1.4;
}

.vip-feature-soon {
  color: #ff9500;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── PayPal ── */
.pm-paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%);
  color: #fff;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 10px 30px rgba(0, 112, 186, 0.35);
}

.pm-paypal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 112, 186, 0.5);
}

.pm-secure-note {
  margin-top: 14px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

/* ── Code VIP ── */
.pm-code-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 127, 0, 0.12);
}

.pm-code-label {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pm-code-row {
  display: flex;
  gap: 8px;
}

.pm-code-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pm-code-input:focus {
  border-color: rgba(247, 127, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.1);
}

.pm-code-btn {
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(247, 127, 0, 0.35);
  background: rgba(247, 127, 0, 0.1);
  color: #ff9500;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pm-code-btn:hover {
  background: linear-gradient(135deg, #f77f00, #ff9500);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ── Confirmation PayPal ── */
.pm-confirm-dialog {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(247, 127, 0, 0.22);
  background: linear-gradient(165deg, #0c0c0c 0%, #101010 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(247, 127, 0, 0.1);
  animation: premiumPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pm-confirm-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0070ba, #1546a0);
}

.pm-confirm-title {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}

.pm-confirm-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 12px;
}

.pm-confirm-text strong {
  color: #fff;
}

.pm-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.pm-confirm-cancel {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: border-color 0.2s, background 0.2s;
}

.pm-confirm-cancel:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.pm-confirm-proceed {
  flex: 1.2;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0070ba, #1546a0);
  color: #fff;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pm-confirm-proceed:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 112, 186, 0.4);
}

@keyframes vipPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.03); filter: brightness(1.08); }
}

.paypal-btn-shiny {
  position: relative;
  overflow: hidden;
}

.paypal-btn-shiny::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  animation: paypalShine 3.5s infinite;
}

@keyframes paypalShine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .pm-dialog {
    grid-template-columns: 1fr;
    max-width: 440px;
    max-height: 92vh;
  }

  .pm-visual {
    min-height: 140px;
    max-height: 160px;
  }

  .pm-main {
    max-height: none;
    padding: 20px 18px 18px;
  }
}

@media (max-width: 768px) {
  .pm-modal {
    padding: 0;
    align-items: flex-end;
  }

  .pm-dialog {
    max-width: 100%;
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    overflow: hidden;
  }

  .pm-visual {
    min-height: 120px;
    max-height: 140px;
  }

  .pm-main {
    max-height: calc(92vh - 140px);
    overflow-y: auto;
    padding: 18px 16px 16px;
  }

  .pm-duration {
    grid-template-columns: repeat(2, 1fr);
  }
}

#paypalConfirmModal {
  z-index: 100000;
}
