/* ===========================
   PAGE PRICING — Doxa
   =========================== */

.pricing-body {
  background: #0A0B22;
  color: #e0e0f0;
  font-family: 'Exo 2', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.pricing-header {
  background: rgba(26, 26, 46, 0.95);
  border-bottom: 1px solid rgba(100, 100, 200, 0.2);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-header .logo img { height: 44px; }

.back-link {
  color: #a0a0c0;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

/* ---- Titre ---- */
.pricing-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.pricing-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pricing-hero p {
  color: #a0a0c0;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ---- Toggle mensuel / annuel ---- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: #a0a0c0;
  cursor: pointer;
  transition: color 0.2s;
}
.toggle-label.active { color: #fff; font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(100, 100, 200, 0.3);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-switch input:checked + .toggle-track { background: #5b5bf5; }
.toggle-track::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-track::after { transform: translateX(24px); }

.badge-economy {
  background: rgba(91, 91, 245, 0.2);
  color: #8888ff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(91, 91, 245, 0.4);
}

/* ---- Cartes de plan ---- */
.pricing-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.plan-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(100, 100, 200, 0.2);
  border-radius: 16px;
  padding: 2rem;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.plan-card:hover {
  border-color: rgba(100, 100, 200, 0.5);
  transform: translateY(-4px);
}

.plan-card.featured {
  border-color: #5b5bf5;
  background: rgba(91, 91, 245, 0.08);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #5b5bf5;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}

.plan-price .amount {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.plan-price .currency {
  font-size: 1.4rem;
  color: #a0a0c0;
  margin-bottom: 0.3rem;
}

.plan-price .period {
  font-size: 0.9rem;
  color: #a0a0c0;
  margin-bottom: 0.5rem;
}

.plan-price-sub {
  font-size: 0.8rem;
  color: #8888ff;
  margin-top: 0.25rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #c0c0d8;
}

.plan-features li .check {
  color: #5b5bf5;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.plan-features li .cross {
  color: #555;
  flex-shrink: 0;
}

.plan-features li.disabled { color: #555; }

/* ---- Boutons ---- */
.plan-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  border: none;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}

.plan-btn:active { transform: scale(0.98); }

.plan-btn.primary {
  background: #5b5bf5;
  color: #fff;
}
.plan-btn.primary:hover { opacity: 0.9; }

.plan-btn.secondary {
  background: transparent;
  color: #a0a0c0;
  border: 1px solid rgba(100, 100, 200, 0.3);
}
.plan-btn.secondary:hover { border-color: #5b5bf5; color: #fff; }

.plan-btn.current {
  background: rgba(100, 100, 200, 0.15);
  color: #8888ff;
  cursor: default;
  border: 1px solid rgba(91, 91, 245, 0.3);
}

/* ---- Message erreur / succès ---- */
#checkout-msg {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ff6b6b;
  min-height: 1.2rem;
}

/* Checkbox CGV */
.cgv-accept-block { margin: 0.75rem 0 1rem; }
.cgv-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: #B0B0C3;
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}
.cgv-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  accent-color: #00FFC6;
  margin-top: 3px;
  cursor: pointer;
}
.cgv-link { color: #00FFC6; text-decoration: underline; }

/* Bouton S'abonner désactivé */
.plan-btn.primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer géré par .site-footer dans styles.css */

@media (max-width: 640px) {
  .pricing-hero h1 { font-size: 1.6rem; }
  .pricing-grid { flex-direction: column; align-items: center; }
  .plan-card { max-width: 100%; }
}

/* ── Responsive mobile ───────────────────────────────────────── */
@media (max-width: 480px) {
  /* Sur mobile : Plan Pro affiché en premier (visuellement plus important) */
  .plan-card.featured { order: -1; }

  /* Header */
  .pricing-header { padding: 0.75rem 1rem; }
  .pricing-header .logo img { height: 36px; }

  /* Hero */
  .pricing-hero { padding: 2rem 1rem 1.5rem; }
  .pricing-hero h1 { font-size: 1.4rem; }
  .pricing-hero p  { font-size: 0.95rem; }

  /* Toggle mensuel/annuel : compact */
  .billing-toggle { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
  .toggle-label   { font-size: 0.85rem; }

  /* Grille de plans */
  .pricing-grid { padding: 0 0.75rem 3rem; gap: 1.25rem; }
  .plan-card    { min-width: 0; width: 100%; padding: 1.5rem; }

  /* Prix : taille réduite */
  .plan-price .amount { font-size: 2.4rem; }

  /* Features : taille réduite */
  .plan-features li { font-size: 0.88rem; }
}
