/* ===== PHRASE ENTRE PANELS ===== */
.pricing-bridge {
  max-width: 1200px;
  margin: 4.2rem auto 1.8rem;
  text-align: center;
  color: #fff;
}

.pricing-bridge .bridge-text {
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: .01em;
  line-height: 1.25;
  text-shadow: 0 10px 35px rgba(0,0,0,.45), 0 0 22px rgba(24,231,255,.18);
  opacity: .96;
}

.pricing-bridge .bridge-underline,
.pricing-bridge::after {
  display: none !important;
  content: none !important;
}

/* ===== RÉSUMÉ DES OFFRES (cartes) ===== */
.pricing-summary {
  max-width: 1280px;
  margin: 0 auto 3.4rem;
  padding: 0 12px;
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== CARTES PREMIUM (PEP & PRO) ===== */
.pcard {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)),
    radial-gradient(120% 100% at 50% -20%, rgba(24,231,255,.05), transparent 60%);
  transition: transform .18s ease;
}

.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(135deg,
      rgba(24,231,255,.55),
      rgba(185,120,247,.40) 55%,
      rgba(24,231,255,.55)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  transition: opacity .25s ease;
  pointer-events: none;
}

.pcard:hover::before {
  opacity: .9;
}

.pcard:hover {
  transform: translateY(-4px);
}

.pcard .pcard-cap {
  width: 92px;
  height: 4px;
  margin: .35rem auto .2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #18e7ff, #b978f7, #18e7ff);
  filter: drop-shadow(0 6px 14px rgba(24,231,255,.35));
  background-size: 200% 100%;
  animation: capShift 3.2s linear infinite;
  opacity: .9;
}

@keyframes capShift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.pcard .ptitle {
  font-size: 1.2rem;
  letter-spacing: .015em;
  color: #18e7ff;
  text-shadow: 0 0 14px rgba(24,231,255,.18);
}

.pcard .pexpl {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  font-weight: 700;
  color: #eef3ff;
  opacity: .95;
}

/* ===== CARTE FEATURED (Premium) ===== */
.pcard--featured {
  transform: translateY(-2px);
  border-color: rgba(24,231,255,.6);
  box-shadow:
    0 18px 46px rgba(24,231,255,.18),
    0 10px 28px rgba(0,0,0,.28);
}

.pcard--featured .ptitle {
  color: #7fdfff;
  text-shadow: 0 0 20px rgba(127,223,255,.28);
}

.pcard--featured .pcard-cap {
  width: 110px;
  height: 5px;
}

.pcard-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  color: #0b0f2a;
  background: linear-gradient(90deg, #18e7ff, #7a2bff);
  box-shadow: 0 10px 26px rgba(24,231,255,.35), 0 6px 18px rgba(122,43,255,.25);
  border: 1px solid rgba(255,255,255,.12);
}

/* ===== SECTION PACKS (isolés) ===== */
.packs-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.packs-title {
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 3rem);
  text-align: center;
  margin-bottom: 1.6rem;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 18px;
}

/* ===== CARTES PACKS ===== */
.pack {
  position: relative;
  background: rgba(10,14,33,.66);
  border: 1px solid rgba(120,130,255,.18);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  overflow: hidden;
}

.pack--premium {
  border-color: rgba(24,231,255,.35);
  box-shadow: 0 16px 48px rgba(24,231,255,.18);
}

.pack--beta {
  background: rgba(18,22,45,.55);
  border-style: dashed;
}

.pack-head h3 {
  font-size: 1.3rem;
  margin: 0;
}

.pack-tag {
  opacity: .8;
  font-size: .92rem;
  margin-top: 4px;
}

.pack-body {
  margin: 14px 0;
}

.pack-price {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.pack-total {
  opacity: .9;
  margin-top: 6px;
}

.pack-list {
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
}

.pack-list li {
  margin: .35rem 0;
  opacity: .95;
}

.pack-foot {
  margin-top: 10px;
}

/* ===== BOUTONS PACKS ===== */
.btn-pack,
.btn-pack--outline {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: .18s;
  display: block;
}

.btn-pack {
  background: linear-gradient(90deg, rgba(88,54,255,.2), rgba(24,231,255,.18));
  border-color: rgba(120,130,255,.35);
}

.btn-pack:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(24,231,255,.28);
}

.btn-pack--primary {
  background: linear-gradient(90deg, rgba(24,231,255,.22), rgba(88,54,255,.28));
  border-color: rgba(24,231,255,.55);
}

.btn-pack--outline {
  background: transparent;
  border-color: rgba(120,130,255,.35);
}

.btn-pack--outline:hover {
  border-color: rgba(24,231,255,.6);
  box-shadow: 0 0 18px rgba(24,231,255,.18);
}

.pack-ribbon {
  position: absolute;
  top: -14px;
  left: 18px;
  font-size: .78rem;
  background: rgba(24,231,255,.16);
  border: 1px solid rgba(24,231,255,.45);
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* ===== KILL PSEUDO-ÉLÉMENTS ===== */
.packs-section .pack::before,
.packs-section .pack::after,
.packs-section .btn-pack::before,
.packs-section .btn-pack::after {
  content: none !important;
}

/* ===== RESPONSIVE PACKS ===== */
@media (max-width: 1100px) {
  .ps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .pricing-bridge {
    margin: 2.4rem auto 2.8rem;
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  }
}

@media (max-width: 640px) {
  .ps-grid {
    grid-template-columns: 1fr;
  }
  .packs-grid {
    grid-template-columns: 1fr;
  }
  .pcard .pexpl {
    max-width: 42ch;
  }
  .pcard .ptitle {
    font-size: 1.15rem;
  }
  .pcard .pcard-cap {
    width: 86px;
  }
}
