/* ══════════════════════════════════════════════
   FORFAIT — Wikimind Plans & Abonnements
   ══════════════════════════════════════════════ */

#forfait-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
#forfait-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel full-screen ── */
#forfait-panel {
  position: fixed;
  inset: 0;
  z-index: 801;
  background: #000;
  display: flex;
  flex-direction: column;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#forfait-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── Topbar ── */
#fp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
#fp-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
#fp-topbar-logo {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}
#fp-topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}
#fp-topbar-title {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}
#fp-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
#fp-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ── Scroll body ── */
#fp-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 80px;
  gap: 0;
}
#fp-body::-webkit-scrollbar { width: 3px; }
#fp-body::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 2px; }

/* ── Hero ── */
#fp-hero {
  text-align: center;
  margin-bottom: 56px;
  max-width: 520px;
}
#fp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}
#fp-hero-eyebrow span {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
}
#fp-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
#fp-hero-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.35);
}
#fp-hero-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* ── Billing toggle ── */
#fp-billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}
.fp-billing-opt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}
.fp-billing-opt.active { color: #fff; }
#fp-toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
#fp-toggle-switch.annual { background: rgba(255, 255, 255, 0.15); }
#fp-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}
#fp-toggle-switch.annual #fp-toggle-knob {
  transform: translateX(18px);
  background: #fff;
}
.fp-annual-badge {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 5px;
  padding: 2px 7px;
}

/* ── Plans grid ── */
#fp-plans {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 16px;
  margin-bottom: 64px;
}

@media (max-width: 1180px) {
  #fp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #fp-plans { grid-template-columns: 1fr; }
  #fp-hero-title { font-size: 1.8rem; }
}

/* ── Plan card ── */
.fp-plan {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080808;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s;
}
.fp-plan:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.fp-plan.current {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
}
.fp-plan.featured {
  border-color: rgba(255, 255, 255, 0.22);
  background: #0d0d0d;
}

/* Badge "Actuel" / "Populaire" */
.fp-plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 7px 7px;
  white-space: nowrap;
}
.fp-plan-badge.badge-current {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
}
.fp-plan-badge.badge-popular {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: none;
}
.fp-plan-badge.badge-enterprise {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-top: none;
}

/* Carte Entreprise */
.fp-plan.enterprise {
  border-color: rgba(167, 139, 250, 0.18);
  background: #0b0a0d;
}
.fp-plan.enterprise:hover {
  border-color: rgba(167, 139, 250, 0.35);
}
.fp-price-onrequest {
  font-size: 1.6rem !important;
  letter-spacing: -0.01em;
}

/* Plan header */
.fp-plan-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
  margin-top: 8px;
}
.fp-plan.featured .fp-plan-name { color: rgba(255, 255, 255, 0.6); }

.fp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.fp-price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fp-price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  align-self: flex-start;
  padding-top: 6px;
}
.fp-price-period {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}
.fp-price-annual-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  min-height: 18px;
}
.fp-price-annual-note.saving { color: #4ade80; }

.fp-plan-desc {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Features list */
.fp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.fp-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.fp-feature svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}
.fp-plan.featured .fp-feature { color: rgba(255, 255, 255, 0.7); }
.fp-plan.featured .fp-feature svg { opacity: 0.8; }
.fp-feature.dim { color: rgba(255, 255, 255, 0.2); }
.fp-feature.dim svg { opacity: 0.25; }

/* CTA button */
.fp-cta {
  width: 100%;
  padding: 11px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Geist', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.fp-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}
.fp-cta.current-cta {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
}
.fp-cta.featured-cta {
  background: #fff;
  border-color: #fff;
  color: #000;
  font-weight: 700;
}
.fp-cta.featured-cta:hover {
  background: rgba(255, 255, 255, 0.9);
}
.fp-cta.enterprise-cta {
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}
.fp-cta.enterprise-cta:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.5);
  color: #c4b5fd;
}

/* ── FAQ / note bas ── */
#fp-note {
  max-width: 480px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.7;
}
#fp-note a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
