/* === PACKAGES SERVICES SECTION - DESIGN 2025 === */
.packages-services {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.packages-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.packages-services__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
}

/* === HEADER === */
.packages-services__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 800px;
  margin-inline: auto;
}

.packages-services__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(12px);
  padding: 0.625rem 1.25rem;
  border-radius: 200px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.packages-services__badge:hover {
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.packages-services__title {
  font-size: clamp(2.25rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.05;
  color: #0f172a;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.025em;
}

.packages-services__title em {
  font-style: normal;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.packages-services__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* === PACKAGE INFO DISPLAY === */
.package-info {
  text-align: center;
  margin-bottom: 4rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.package-name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.02em;
}

.package-price-display {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-duration-display {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* === CAROUSEL CONTAINER === */
.carousel-container {
  position: relative;
  width: 100%;
  height: 660px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* === PACKAGE CARD MODERNE === */
.package-card {
  position: absolute;
  width: 380px;
  height: 610px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  left: 50%;
  top: 50%;
  transform-origin: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.1), 
    rgba(139, 92, 246, 0.1), 
    rgba(168, 85, 247, 0.1)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* === POSITIONS CAROUSEL === */
.package-card.center {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  z-index: 5;
  opacity: 1;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.package-card.center::before {
  opacity: 1;
}

.package-card.left-1 {
  transform: translate(-50%, -50%) translateX(-420px) scale(0.9) rotateY(15deg);
  z-index: 4;
  opacity: 0.7;
}

.package-card.left-2 {
  transform: translate(-50%, -50%) translateX(-720px) scale(0.8) rotateY(25deg);
  z-index: 3;
  opacity: 0.4;
}

.package-card.right-1 {
  transform: translate(-50%, -50%) translateX(420px) scale(0.9) rotateY(-15deg);
  z-index: 4;
  opacity: 0.7;
}

.package-card.right-2 {
  transform: translate(-50%, -50%) translateX(720px) scale(0.8) rotateY(-25deg);
  z-index: 3;
  opacity: 0.4;
}

.package-card.hidden {
  transform: translate(-50%, -50%) scale(0.6);
  z-index: 1;
  opacity: 0;
}

/* === PACKAGE POPULAIRE === */
.package-card.package-popular {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%
  );
}

.package-card.package-popular::after {
  content: '✨ Populaire';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0 0 20px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* === CONTENU DES CARDS === */
.package-header {
  text-align: center;
  margin-bottom: 2rem;
}

.package-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

.package-price {
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-custom {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-duration {
  display: block;
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-weight: 500;
}

.package-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.package-features {
  margin-bottom: 1.5rem;
}

.package-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.5rem 0;
  border-radius: 12px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.package-feature:last-child {
  margin-bottom: 0;
}

.package-feature span {
  flex: 1;
  word-wrap: break-word;
  hyphens: auto;
}

.package-feature svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.125rem;
  padding: 2px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
}

.package-feature:hover {
  background: rgba(99, 102, 241, 0.04);
  padding-left: 0.75rem;
}

.package-footer {
  margin-top: auto;
}

.btn {
  width: 100%;
  padding: 1.125rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: rgba(99, 102, 241, 0.05);
  color: #6366f1;
  border: 2px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* === NAVIGATION MODERNE === */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-arrow:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.nav-arrow.left {
  left: 3rem;
}

.nav-arrow.right {
  right: 3rem;
}

/* === DOTS MODERNES === */
.dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.dot.active {
  background: #6366f1;
  transform: scale(1.5);
}

.dot.active::after {
  border-color: rgba(99, 102, 241, 0.3);
}

.dot:hover {
  background: #8b5cf6;
  transform: scale(1.3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .package-card {
    width: 350px;
    height: 650px;
  }

  .package-card.left-1,
  .package-card.right-1 {
    transform: translate(-50%, -50%) translateX(0) scale(0.85);
    opacity: 0.3;
  }

  .package-card.left-2,
  .package-card.right-2,
  .package-card.hidden {
    display: none;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    height: 520px;
  }

  .package-card {
    width: 320px;
    height: 650px;
    padding: 2rem;
  }

  .nav-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .nav-arrow.left {
    left: 1.5rem;
  }

  .nav-arrow.right {
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .package-card {
    width: 300px;
    height: 640px;
    padding: 1.5rem;
    padding-top: 3rem;
  }

  .carousel-container {
    height: 650px;
  }

  .package-card.left-1,
  .package-card.right-1 {
    display: none;
  }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  .package-card,
  .package-name,
  .package-price-display,
  .nav-arrow,
  .dot {
    transition: none;
  }
}