/* ========================================
   PAGE D'ACHAT - VINYLE 3D QUI DÉPASSE
   ======================================== */

:root {
  --vinyl-size: 400px;
  --vinyl-thickness: 8px;
  --groove-color: #2a2a2a;
  --label-color: #1a1a1a;
}

/* Navigation */
.purchase-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--color-primary);
  transform: translateX(-5px);
}

.back-btn i {
  width: 20px;
  height: 20px;
}

.nav-logo .logo-text {
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
}

/* Main Content */
.purchase-main {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%),
    linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  padding-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.purchase-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Album Section - Pochette avec vinyle qui sort */
.album-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  overflow: visible;
  z-index: 10;
}

/* Section du bouton d'achat en dessous de "Vinyle 12" */
.purchase-button-section {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.album-container {
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* TiltedCard Container */
#tilted-card-container {
  position: relative;
  width: 300px;
  height: 300px;
  z-index: 10;
}

/* Fallback si l'image ne charge pas - Supprimé pour éviter la bande bizarre */

/* Vinyle qui sort de la pochette */
.vinyl-emerging {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(80px) translateZ(-15px);
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  opacity: 1;
}

.vinyl-disc {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, 
      rgba(0, 0, 0, 0.1) 0%, 
      rgba(0, 0, 0, 0.2) 20%, 
      rgba(0, 0, 0, 0.3) 40%, 
      rgba(0, 0, 0, 0.4) 60%, 
      rgba(0, 0, 0, 0.5) 80%, 
      rgba(0, 0, 0, 0.6) 100%),
    url('assets/images/albums/500x500-000000-80-0-0.jpg') center/cover;
  background-blend-mode: multiply;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 255, 255, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.7),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  /* Animation supprimée pour éviter la rotation sur iPhone */
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.vinyl-disc.playing {
  /* Animation supprimée pour éviter la rotation sur iPhone */
}

/* Animation de rotation du vinyle */
/* @keyframes vinylPlaying supprimé pour éviter la rotation sur iPhone */

/* Ombres */
.album-shadow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 80%);
  z-index: -1;
  filter: blur(15px);
}

/* Vinyle Grooves */
.vinyl-grooves {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, 
      transparent 0%, 
      transparent 6%, 
      rgba(255, 255, 255, 0.12) 6.5%, 
      transparent 7%, 
      transparent 10%, 
      rgba(255, 255, 255, 0.1) 10.5%, 
      transparent 11%, 
      transparent 14%, 
      rgba(255, 255, 255, 0.08) 14.5%, 
      transparent 15%, 
      transparent 18%, 
      rgba(255, 255, 255, 0.06) 18.5%, 
      transparent 19%, 
      transparent 22%, 
      rgba(255, 255, 255, 0.05) 22.5%, 
      transparent 23%, 
      transparent 26%, 
      rgba(255, 255, 255, 0.04) 26.5%, 
      transparent 27%, 
      transparent 30%, 
      rgba(255, 255, 255, 0.03) 30.5%, 
      transparent 31%, 
      transparent 34%, 
      rgba(255, 255, 255, 0.02) 34.5%, 
      transparent 35%, 
      transparent 38%, 
      rgba(255, 255, 255, 0.015) 38.5%, 
      transparent 39%, 
      transparent 100%);
}

/* Les rainures tournent avec le vinyle */
.vinyl-disc.playing .vinyl-grooves {
  animation: vinylGroovesRotate 3s linear infinite;
}

@keyframes vinylGroovesRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.4;
}

.groove-1 { top: 8%; left: 8%; right: 8%; bottom: 8%; }
.groove-2 { top: 12%; left: 12%; right: 12%; bottom: 12%; }
.groove-3 { top: 16%; left: 16%; right: 16%; bottom: 16%; }
.groove-4 { top: 20%; left: 20%; right: 20%; bottom: 20%; }
.groove-5 { top: 24%; left: 24%; right: 24%; bottom: 24%; }
.groove-6 { top: 28%; left: 28%; right: 28%; bottom: 28%; }
.groove-7 { top: 32%; left: 32%; right: 32%; bottom: 32%; }
.groove-8 { top: 36%; left: 36%; right: 36%; bottom: 36%; }

/* Vinyle Center */
.vinyl-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, 
      #1a1a1a 0%, 
      #0f0f0f 30%, 
      #080808 60%, 
      #000000 100%);
  box-shadow: 
    inset 0 0 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

/* Le centre reste fixe pendant la rotation */
.vinyl-disc.playing .vinyl-center {
  animation: vinylCenterCounter 3s linear infinite;
}

@keyframes vinylCenterCounter {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Vinyle Label */
.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, 
      #2a2a2a 0%, 
      #1a1a1a 30%, 
      #0f0f0f 60%, 
      #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 0 15px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

/* Le label reste fixe pendant la rotation */
.vinyl-disc.playing .vinyl-label {
  animation: vinylLabelCounter 3s linear infinite;
}

@keyframes vinylLabelCounter {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.label-content {
  text-align: center;
  color: #FFFFFF;
}

.label-content h3 {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
}

.label-content p {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
}

/* Vinyle Center */
.vinyl-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  z-index: 10;
}

.center-hole {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Vinyle Shadow */
.vinyl-shadow {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%) translateX(-20px);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 80%);
  z-index: -1;
  filter: blur(20px);
}

/* Vinyle Tooltip */
.vinyl-tooltip {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

/* Effets hover identiques sur tous les appareils */
.vinyl-emerging:hover + .vinyl-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

.tooltip-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
}

.tooltip-content i {
  width: 16px;
  height: 16px;
}

/* Product Section */
.product-section {
  color: var(--color-text-primary);
}

.product-header {
  margin-bottom: 40px;
}

.product-title {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 8px 0;
  color: var(--color-text-primary);
}

.product-artist {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
}

.product-badge {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 16px;
}

.detail-item i {
  width: 20px;
  height: 20px;
  color: var(--color-text-primary);
}

.product-description {
  margin-bottom: 40px;
}

.product-description p {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Pricing */
.pricing-section {
  margin-bottom: 32px;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price {
  font-family: var(--font-family);
  font-size: 36px;
  font-weight: 900;
  color: var(--color-text-primary);
}

.price-label {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.shipping-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
}

.shipping-info i {
  width: 16px;
  height: 16px;
}

/* Tracklist Section */
.tracklist-section {
  margin-bottom: 32px;
}

.tracklist-title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 20px 0;
}

.tracklist {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-family);
}

.track-item:last-child {
  border-bottom: none;
}

.side-header {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 12px 0;
  padding: 8px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.side-header:first-child {
  margin-top: 0;
}

.track-number {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
  min-width: 30px;
}

.track-name {
  flex: 1;
  color: var(--color-text-primary);
  font-weight: 500;
}

.track-duration {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Purchase Button */
.purchase-btn {
  width: 100%;
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.purchase-btn:hover {
  background: #F5F5F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.purchase-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Streaming Links */
.streaming-links {
  margin-top: 32px;
}

.streaming-links h4 {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.streaming-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stream-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.stream-btn:hover {
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}

.stream-btn i {
  width: 16px;
  height: 16px;
}

.stream-btn.spotify:hover {
  background: #1DB954;
  border-color: #1DB954;
}

.stream-btn.apple:hover {
  background: #FA243C;
  border-color: #FA243C;
}

.stream-btn.deezer:hover {
  background: #FEAA2D;
  border-color: #FEAA2D;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #CCCCCC;
  font-family: var(--font-family);
  font-size: 12px;
}

.payment-item i {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
}

/* Payment Modal */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.payment-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #CCCCCC;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.close-btn i {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 24px;
}

.order-summary {
  margin-bottom: 24px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-family);
  color: #CCCCCC;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.stripe-container {
  margin-top: 24px;
}

/* Animations */
/* @keyframes artworkBreathing supprimé pour éviter la rotation sur iPhone */

/* @keyframes artworkPlaying supprimé pour éviter la rotation sur iPhone */

/* Animations identiques sur tous les appareils */
.album-container {
  /* Animation supprimée pour éviter la rotation sur iPhone */
}

.vinyl-emerging {
  /* Animation supprimée pour éviter la rotation sur iPhone */
}

/* Effets hover identiques sur tous les appareils */
.album-container:hover .vinyl-emerging {
  transform: translate(-50%, -50%) translateX(0px) translateZ(-10px);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .purchase-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .vinyl-disc {
    width: 300px;
    height: 300px;
  }
  
  .product-title {
    font-size: 36px;
  }
  
  .product-artist {
    font-size: 20px;
  }
  
  .payment-methods {
    flex-wrap: wrap;
  }
}
