/* ==========================================================
   PAGE ABONNEMENT
   ========================================================== */

.abonnement-page {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;

}


/* ==========================================================
   HERO
   ========================================================== */

.abonnement-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.abonnement-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.abonnement-hero p {
  font-size: 16px;
  color: var(--c-text-secondary);
}

/* ==========================================================
   PROFIL ACTUEL
   ========================================================== */

.account-plan-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: -28px 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--c-surface-1);
  box-shadow: var(--shadow-sm);
}

.account-plan-summary__content {
  min-width: 0;
}

.account-plan-summary__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--c-texte-muted, var(--c-text-secondary));
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-plan-summary__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.account-plan-summary h2 {
  margin: 0;
  color: var(--c-titre);
  font-family: var(--font-titres);
  font-size: 22px;
}

.account-plan-summary p {
  margin: 6px 0 0;
  color: var(--c-texte-muted, var(--c-text-secondary));
  font-size: 14px;
  line-height: 1.45;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.account-plan-badge--premium {
  background: var(--c-accent);
  color: var(--c-accent-contrast);
}

.account-plan-badge--free {
  background: var(--c-surface-2);
  color: var(--c-texte);
  border: 1px solid var(--c-border-subtle);
}

.account-plan-summary__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.account-plan-portal-btn,
.account-plan-history-btn {
  min-height: 40px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .account-plan-summary {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }

  .account-plan-summary__actions {
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .account-plan-summary__actions .btn {
    width: 100%;
  }
}


/* ==========================================================
   PLANS
   ========================================================== */

.abonnement-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.plans-groupe {
  grid-column: span 2;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-subtle);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plans-groupe-label {
  font-family: var(--font-titres);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-titre);
}

.plans-groupe-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}


/* ==========================================================
   CARD PLAN
   ========================================================== */

.plan-card {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  background: var(--c-surface-1);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--c-border-subtle);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);

  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.plan-header h2 {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-titres);

  margin-bottom: 8px;
  letter-spacing: 0.3px;
   text-transform: uppercase;
}
/* GRATUIT = bleu */
.plan-card--free .plan-header h2 {
  color: var(--c-bleu-500);
}

/* PREMIUM = jaune + relief */
.plan-card--premium .plan-header h2 {
  color: var(--c-accent);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}





.plan-price {
  font-size: 28px;
  font-weight: 700;
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-secondary);
}


/* ----------------------------------------------------------
   FEATURES
---------------------------------------------------------- */

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

/* Petit check visuel */
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-bleu-500);
  font-weight: 600;
}


/* ----------------------------------------------------------
   BOUTONS
---------------------------------------------------------- */

.plan-card button {
  margin-top: auto;
}


/* ==========================================================
   PREMIUM HIGHLIGHT
   ========================================================== */

.plan-card--premium {
  border: 2px solid var(--c-bleu-500);
  transform: scale(1.02);
}


/* Badge */
.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;

  background: var(--c-bleu-500);
  color: white;

  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  text-align: center;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
  .abonnement-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans-groupe {
    grid-column: auto;
  }

  .plans-groupe-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .plan-card--premium {
    transform: none;
  }

  .plan-card {
    padding: 28px 20px;
  }
}

/* ==========================================================
   BENEFICES
   ========================================================== */

.abonnement-benefices {
  margin-top: 80px;
  text-align: center;
}

.benefices-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
}


/* GRID */

.benefices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}


/* CARD */

.benefice-card {
  min-width: 0;
  box-sizing: border-box;
  background: var(--c-surface-1);
  border-radius: 14px;
  padding: 24px;

  border: 1px solid var(--c-border-subtle);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);

  text-align: left;
}

.benefice-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.benefice-card p {
  font-size: 14px;
  color: var(--c-text-secondary);
}


/* RESPONSIVE */

@media (max-width: 768px) {
  .benefices-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   BOUTON DÉSACTIVÉ (PREMIUM)
   ========================================================== */

.btn-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.7;
}

/* enlève les effets hover */
.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}


/* ==========================================================
   PRE-LAUNCH PRICING
   ========================================================== */

.price-old {
  text-decoration: line-through;
  color: var(--c-text-secondary);
  font-size: 16px;
}

.price-new {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-titres);

  color: var(--c-accent);

  margin-bottom: 8px;
  letter-spacing: 0.3px;

  /* 🔥 lisibilité + relief */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  white-space: nowrap;
}

.price-new span {
  display: inline;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-secondary);
  white-space: nowrap;
}

.price-after {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--c-titre);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

/* highlight message */
.plan-highlight {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--c-bleu-500);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  text-align: center;
}

/* ==========================================================
   CONDITIONS ABONNEMENT
   ========================================================== */

.plan-conditions {
  font-size: 12px;
  color: var(--c-text-secondary);
  text-align: center;
  margin-top: 6px;
}

#premium-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-code-box {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--c-border-subtle);
  border-radius: 8px;
  background: var(--c-surface-2);
}

.promo-code-label {
  color: var(--c-titre);
  font-size: 13px;
  font-weight: 800;
}

.promo-code-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--c-border-subtle);
  border-radius: 8px;
  background: var(--c-surface-1);
  color: var(--c-texte);
  font-family: var(--font-corps);
  font-size: 14px;
  padding: 10px 12px;
}

.promo-code-input:focus {
  outline: none;
  border-color: var(--c-primaire);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primaire) 18%, transparent);
}

.promo-code-help {
  margin: 0;
  color: var(--c-text-secondary);
  font-size: 12px;
  line-height: 1.35;
}


/* ==========================================================
   JETONS D'ACTIVITÉS
   ========================================================== */

.plan-card--jetons .plan-header h2 {
  color: var(--c-bleu-500);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.plan-description {
  font-size: 14px;
  color: var(--c-text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.jetons-forfaits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jeton-forfait {
  position: relative;
  border: 1px solid var(--c-border-subtle);
  border-radius: 12px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.jeton-forfait--highlight {
  border: 2px solid var(--c-bleu-500);
}

.jeton-qty {
  font-size: 16px;
  font-weight: 700;
}

.jeton-price {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-titres);
}

.jeton-unit {
  font-size: 12px;
  color: var(--c-text-secondary);
}

/* ==========================================================
   HISTORIQUE DES ACHATS
   ========================================================== */

.purchase-history-panel {
  display: grid;
  gap: 16px;
}

.purchase-history-state {
  padding: 18px;
  border: 1px dashed var(--c-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--c-surface-2);
  color: var(--c-texte-muted);
  text-align: center;
}

.purchase-history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.purchase-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.purchase-history-table th,
.purchase-history-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--c-border-subtle);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.purchase-history-table th {
  color: var(--c-texte-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.purchase-history-title {
  color: var(--c-titre);
  font-weight: 700;
}

.purchase-history-meta {
  margin-top: 2px;
  color: var(--c-texte-muted);
  font-size: 12px;
}

.purchase-history-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-subtle);
  color: var(--c-texte);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.purchase-history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.purchase-history-unavailable {
  color: var(--c-texte-muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .purchase-history-table {
    min-width: 0;
  }

  .purchase-history-table thead {
    display: none;
  }

  .purchase-history-table,
  .purchase-history-table tbody,
  .purchase-history-table tr,
  .purchase-history-table td {
    display: block;
    width: 100%;
  }

  .purchase-history-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border-subtle);
  }

  .purchase-history-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-bottom: 0;
  }

  .purchase-history-table td::before {
    content: attr(data-label);
    color: var(--c-texte-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .purchase-history-actions .btn {
    width: 100%;
  }
}

