/* InterFilm — Page Sans pub */

.pd-item--sanspub {
  color: var(--accent-bright, #b4a8ff);
  font-weight: 700;
  background: rgba(155, 140, 248, 0.08);
}
.pd-item--sanspub:hover {
  background: rgba(155, 140, 248, 0.14);
}

.sans-pub-page {
  min-height: calc(100vh - 72px);
  padding: calc(var(--header-h, 72px) + 2.25rem) 0 80px;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(155, 140, 248, 0.14), transparent 55%),
    var(--bg, #0a0a12);
}

.sp-page-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(155, 140, 248, 0.35);
  background: rgba(155, 140, 248, 0.12);
  color: var(--accent-bright, #b4a8ff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.sp-eyebrow svg {
  width: 14px;
  height: 14px;
}

.sp-title {
  margin: 0 0 8px;
  font-family: 'Bebas Neue', var(--ff-head, sans-serif);
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #fff;
}

.sp-lead {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.sp-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}
.sp-status.is-active {
  border-color: rgba(155, 140, 248, 0.4);
  background: rgba(155, 140, 248, 0.1);
}
.sp-status-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(155, 140, 248, 0.16);
  color: var(--accent-bright, #b4a8ff);
}
.sp-status-icon svg {
  width: 20px;
  height: 20px;
}
.sp-status-body {
  flex: 1;
  min-width: 0;
}
.sp-status-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.sp-status.is-active .sp-status-label {
  color: var(--accent-bright, #b4a8ff);
}
.sp-status-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}
.sp-status-timer {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(155, 140, 248, 0.28);
}

.sp-active-pass {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(155, 140, 248, 0.45);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(155, 140, 248, 0.18), transparent 55%),
    rgba(155, 140, 248, 0.08);
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(155, 140, 248, 0.08) inset;
}
.sp-active-pass-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.sp-active-pass-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(155, 140, 248, 0.22);
  color: #c4b5fd;
  border: 1px solid rgba(155, 140, 248, 0.35);
}
.sp-active-pass-icon svg {
  width: 22px;
  height: 22px;
}
.sp-active-pass-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright, #b4a8ff);
}
.sp-active-pass-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.sp-active-pass-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.sp-active-pass-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.sp-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sp-offer {
  position: relative;
  text-align: left;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(26, 26, 44, 0.8), rgba(15, 15, 28, 0.9));
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sp-offer:hover {
  border-color: rgba(232, 48, 74, 0.55);
  background: linear-gradient(145deg, rgba(38, 30, 58, 0.9), rgba(20, 18, 36, 0.95));
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(232, 48, 74, 0.22), 0 0 0 1px rgba(232, 48, 74, 0.35);
}
.sp-offer--locked {
  cursor: default;
  opacity: 0.88;
  grid-column: 1 / -1;
}
.sp-offer--locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  width: fit-content;
  border: 1px solid transparent;
}
.sp-badge--fast {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
.sp-badge--pop {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}
.sp-badge--rec {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}
.sp-badge--best {
  background: rgba(232, 48, 74, 0.2);
  color: #ff6b81;
  border-color: rgba(232, 48, 74, 0.35);
}
.sp-badge--max {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.sp-offer-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.sp-offer-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}
.sp-offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-offer-foot--actions {
  flex-direction: column;
  align-items: stretch;
  border-top: none;
  padding-top: 4px;
}
.sp-offer-foot--actions .sp-btn {
  width: 100%;
}
.sp-offer--resume {
  cursor: default;
}
.sp-offer--resume:hover {
  transform: none;
}
.sp-offer-ads {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-bright, #b4a8ff);
}
.sp-offer-go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232, 48, 74, 0.3), rgba(155, 140, 248, 0.3));
  color: #fff;
  font-size: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.sp-offer:hover .sp-offer-go {
  transform: translateX(3px);
  background: linear-gradient(135deg, var(--red2, #e8304a), #b4a8ff);
}

/* Modal déblocage — centré écran */
body.sp-unlock-open {
  overflow: hidden;
}

.sp-unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.sp-unlock-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sp-unlock-modal[hidden] {
  display: none !important;
}

.sp-unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sp-unlock-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12121c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}
.sp-unlock-modal.is-open .sp-unlock-dialog {
  transform: none;
}

.sp-unlock-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sp-unlock-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sp-unlock-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 168, 255, 0.9);
}
.sp-unlock-title {
  margin: 0;
  padding-right: 40px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.sp-unlock-step {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
}

.sp-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
}
.sp-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sp-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #b4a8ff;
  transition: width 0.25s ease;
}
.sp-progress-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 3.2rem;
  text-align: right;
}

.sp-unlock-hint {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.sp-unlock-status {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-unlock-status.is-ready {
  color: #86efac;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
}

.sp-ad-warn {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.45;
}

.sp-btn-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sélecteurs scoped : écrase .sp-btn du staff/legacy (orange !important) */
#spUnlockPanel .sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
#spUnlockPanel .sp-btn:hover {
  transform: none;
  filter: none;
}
#spUnlockPanel .sp-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}
#spUnlockPanel .sp-btn--primary {
  background: #ffffff !important;
  color: #0c0c12 !important;
  border: none !important;
}
#spUnlockPanel .sp-btn--primary:hover:not(:disabled) {
  background: #f0f0f4 !important;
  color: #0c0c12 !important;
  transform: translateY(-1px);
}
#spUnlockPanel .sp-btn--confirm {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
#spUnlockPanel .sp-btn--confirm:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
#spUnlockPanel .sp-btn--confirm:not([hidden]):not(:disabled) {
  background: #10b981 !important;
  border-color: transparent !important;
  color: #fff !important;
}
#spUnlockPanel .sp-btn--confirm:not([hidden]):not(:disabled):hover {
  background: #0ea371 !important;
  color: #fff !important;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}
.sp-btn--primary {
  background: #fff;
  color: #0c0c12;
}
.sp-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f2f2f6;
}
.sp-btn--confirm {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.sp-btn--confirm:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.sp-btn--confirm:not([hidden]):not(:disabled) {
  background: #10b981;
  border-color: transparent;
  color: #fff;
}
.sp-btn--confirm:not([hidden]):not(:disabled):hover {
  background: #0ea371;
}
.sp-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sp-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}
.sp-btn--accent {
  background: linear-gradient(135deg, var(--accent-deep, #6b5ce7), var(--accent, #9b8cf8));
  color: #fff;
}

.sp-vip-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.1), rgba(155, 140, 248, 0.06));
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.sp-vip-banner:hover {
  border-color: rgba(232, 197, 71, 0.45);
}
.sp-vip-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(232, 197, 71, 0.16);
  color: #e8c547;
}
.sp-vip-icon svg {
  width: 20px;
  height: 20px;
}
.sp-vip-text {
  flex: 1;
  min-width: 0;
}
.sp-vip-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.sp-vip-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}
.sp-vip-arrow {
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
}

.sp-login-gate {
  text-align: center;
  padding: 36px 12px 20px;
}
.sp-login-gate p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
}

.sp-vip-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(155, 140, 248, 0.12);
  border: 1px solid rgba(155, 140, 248, 0.28);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .sans-pub-page {
    padding-top: calc(var(--header-h, 72px) + 1.5rem);
  }
  .sp-offers {
    grid-template-columns: 1fr;
  }
  .sp-status {
    flex-wrap: wrap;
  }
  .sp-status-timer {
    width: 100%;
    text-align: center;
  }
  .sp-unlock-dialog {
    width: min(100%, calc(100vw - 24px));
    padding: 24px 18px 18px;
    border-radius: 18px;
  }
  .sp-unlock-title {
    font-size: 22px;
  }
}
