/* ============================================================
   RESET WOOCOMMERCE
   ============================================================ */
.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-notices-wrapper,
.single-product .product > .images,
.single-product .product > .summary,
.single-product .woocommerce-tabs,
.single-product .related,
.single-product .upsells {
  display: none !important;
}

/* ============================================================
   FOND GLOBAL
   ============================================================ */
.single-product body,
.single-product .site-main,
.single-product #main {
  background: #0a0a0a;
  color: #f0f0f0;
}

/* ============================================================
   HERO
   ============================================================ */
.sp-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.sp-hero-backdrop {
  position: absolute;
  inset: -20px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.25) saturate(0.6);
  z-index: 0;
}
.sp-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  z-index: 1;
  pointer-events: none;
}
.sp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

/* ============================================================
   COVER
   ============================================================ */
.sp-cover {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}
.sp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  display: block;
}
.sp-play-btn {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #ffffff;
}
.sp-play-btn svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}
.sp-cover:hover .sp-play-btn { opacity: 1; }
.sp-play-btn.playing {
  opacity: 1;
  background: rgba(0,0,0,0.6);
}

/* ============================================================
   INFOS
   ============================================================ */
.sp-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px 12px;
}
.sp-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.0;
}
.sp-meta {
  display: flex;
  gap: 20px;
}
.sp-meta span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
}
.sp-meta span::before { content: '— '; }
.sp-price {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sp-price-from {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sp-price .woocommerce-Price-amount { color: #ffffff; }
.sp-short-desc {
  font-size: 14px;
  color: #666;
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 520px;
}
.sp-short-desc p { margin: 0; }

/* ============================================================
   SECTION LICENCES
   ============================================================ */
.sp-licenses-section {
  max-width: 1160px;
  margin: 0 auto 60px;
  padding: 60px 40px 0;
}
.sp-licenses-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #444;
  margin: 0 0 24px;
}
.sp-license-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* Card — fond blanc, texte sombre */
.sp-license-card {
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  text-align: left;
  color: #111111 !important;
}
.sp-license-card:hover {
  border-color: #e0001b !important;
  background: #fff5f5 !important;
  transform: translateY(-2px);
}

/* Carte sélectionnée */
.sp-license-card.selected {
  border: 2px solid #e0001b !important;
  background: #fff0f2 !important;
  box-shadow: 0 0 0 4px rgba(224, 0, 27, 0.15) !important;
}

.sp-license-card.popular {
  background: #fff0f2 !important;
  border: 1px solid #e0001b !important;
}

.sp-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #e0001b !important;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sp-license-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111 !important;
}
.sp-license-price {
  font-size: 22px;
  font-weight: 800;
  color: #111111 !important;
}
.sp-license-desc {
  font-size: 12px;
  color: #555555 !important;
  line-height: 1.5;
}
.sp-license-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-license-features li {
  font-size: 12px;
  color: #555555 !important;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.sp-license-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e0001b !important;
  font-size: 10px;
}

.sp-selected-badge {
  display: none;
  margin-top: 12px;
  align-self: center;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  text-align: center;
}

.sp-license-card.selected .sp-selected-badge {
  display: block;
}

/* ============================================================
   FOOTER TOTAL + BOUTON
   ============================================================ */
.sp-cart-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
}
.sp-total {
  font-size: 15px;
  color: #666;
}
.sp-total strong {
  color: #ffffff;
  font-size: 20px;
}
.sp-add-to-cart {
  background: #e0001b;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 8px 24px rgba(224, 0, 27, 0.3);
}
.sp-add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 0, 27, 0.45);
}
.sp-add-to-cart:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================
   DESCRIPTION LONGUE
   ============================================================ */
.sp-description {
  max-width: 1160px;
  margin: 0 auto 80px;
  padding: 40px;
  background: #111;
  border-radius: 18px;
  border: 1px solid #1a1a1a;
}
.sp-description h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #444;
  margin: 0 0 20px;
}
.sp-description p {
  font-size: 15px;
  line-height: 1.75;
  color: #888;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .sp-hero-content {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
    gap: 28px;
  }
  .sp-cover {
    width: 200px;
    height: 200px;
  }
  .sp-title { font-size: 32px; }
  .sp-license-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-licenses-section {
    padding: 60px 40px 0;
  }
  .sp-description {
    margin: 0 24px 60px;
    padding: 28px 24px;
  }
}
@media (max-width: 560px) {
  .sp-license-cards {
    grid-template-columns: 1fr;
  }
  .sp-cart-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .sp-add-to-cart { text-align: center; }
}