/* ===========================
   PACKS — style type "pricing"
   (Compatible home + packs.html)
   =========================== */

.pricing-wrap {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow2);
  padding: 18px;
}

/* ✅ grille home + packs */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

/* --- Card --- */
.plan {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  transition: transform .14s ease, box-shadow .14s ease;
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

/* Carte populaire (au centre) */
.plan.popular {
  transform: translateY(-10px);
  border: 1px solid rgba(91, 108, 255, .35);
  box-shadow: 0 32px 90px rgba(91, 108, 255, .18);
}

.plan.popular:hover {
  transform: translateY(-12px);
}

/* Bandeau "LE PLUS POPULAIRE" */
.plan .popular-banner {
  display: none;
}

.plan.popular .popular-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: .78rem;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Contenu */
.plan-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===========================
   ✅ IMPORTANT (Fix 71/78/85)
   On cache le badge par défaut.
   Si un jour tu veux une vraie promo,
   tu pourras afficher en ajoutant la classe .has-discount sur la carte.
   =========================== */
.plan-discount {
  display: none;
}

.plan.has-discount .plan-discount {
  display: inline-flex;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(91, 108, 255, .12);
  border: 1px solid rgba(91, 108, 255, .22);
  color: #1f2a87;
  font-weight: 850;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ✅ si populaire + discount (au cas où) */
.plan.popular.has-discount .plan-discount {
  top: 58px;
  /* 46px + marge */
}

/* Titre + desc */
.plan-name {
  margin-top: 10px;
  font-weight: 950;
  font-size: 1.1rem;
}

.plan-tagline {
  color: var(--muted);
  margin-top: 6px;
  font-size: .95rem;
}

/* Prix */
.plan-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-price .value {
  font-weight: 980;
  font-size: 2.3rem;
  letter-spacing: -0.04em;
}

.plan-price .currency {
  color: var(--muted);
  font-weight: 950;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Bonus */
.plan-free {
  margin-top: 4px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.82);
  font-size: .95rem;
}

/* ✅ 2 boutons (Commander + Détails) */
.plan-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.plan-actions .btn {
  flex: 1;
  justify-content: center;
  border-radius: 12px;
  box-shadow: none;
}

.plan-actions .btn-primary {
  box-shadow: 0 18px 50px rgba(91, 108, 255, .18);
}

/* Note */
.plan-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

/* Divider */
.plan-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.10);
  margin: 16px 0;
}

/* Liste features */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.plan-features li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-features img {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* Bottom */
.plan-bottom {
  margin-top: auto;
  padding-top: 12px;
}

.plan-subtitle {
  font-weight: 950;
  color: var(--text);
  margin-bottom: 8px;
}

/* Footer sous la grille */
.pricing-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Note options */
.note {
  margin-top: 18px;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, .75);
  box-shadow: var(--shadow2);
}

.note-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.note-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  color: var(--muted);
}

.note-list li {
  list-style: disc;
  margin-left: 18px;
}

/* Tableau comparatif */
.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

th {
  background: rgba(91, 108, 255, .08);
  font-weight: 900;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .22);
  color: #14532d;
  font-weight: 800;
  font-size: .85rem;
}

/* Responsive */
@media (max-width: 1050px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan.popular {
    transform: none;
  }

  .note-list {
    grid-template-columns: 1fr;
  }

  .plan {
    min-height: auto;
  }

  .plan-actions {
    flex-direction: column;
  }
}