/* ══════════════════════════════════════
   SECTION TARIFS

   Reprend le module d'abonnement du webmail (AdminBillingPage / UpgradePlanPage)
   avec les tokens visuels de la landing page : Inter, --pm-blue, --pm-dark,
   cartes blanches bordees comme les items de la FAQ.
══════════════════════════════════════ */

/* Le canvas d'arriere-plan est en position:fixed avec z-index:0. Une section non
   positionnee passerait dessous : voir la liste equivalente dans base.css. */
.pricing-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 100px 0 40px;
  background: transparent;
}

.pricing-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── En-tete ── */
.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}

.pricing-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pm-blue);
  margin-bottom: 16px;
}

.pricing-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--pm-dark);
  margin: 0 0 16px;
}

.pricing-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #5a6a7e;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Grille des offres ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pm-white);
  border: 1px solid rgba(0, 135, 202, 0.15);
  border-radius: 16px;
  padding: 32px 24px 24px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.pricing-card:hover {
  border-color: var(--pm-blue);
  box-shadow: 0 8px 28px rgba(0, 135, 202, 0.10);
  transform: translateY(-4px);
}

/* Offre mise en avant : RECOMMENDED_PLAN vaut "pro" dans lib/plans.ts. */
.pricing-card--featured {
  border-color: rgba(26, 115, 232, 0.45);
  box-shadow: 0 10px 34px rgba(26, 115, 232, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--pm-blue);
  color: var(--pm-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.pricing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(26, 115, 232, 0.08);
  color: var(--pm-blue);
  margin-bottom: 18px;
}

.pricing-icon svg { display: block; }

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 4px;
}

.pricing-tagline {
  font-size: 13px;
  font-weight: 400;
  color: #7c8a9c;
  line-height: 1.5;
  margin: 0 0 20px;
  min-height: 39px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
}

.pricing-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--pm-dark);
  line-height: 1.2;
}

.pricing-period {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.pricing-hint {
  font-size: 12px;
  font-weight: 400;
  color: #7c8a9c;
  line-height: 1.5;
  margin: 4px 0 0;
  min-height: 36px;
}

.pricing-features {
  list-style: none;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--pm-gray);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #33465e;
}

.pricing-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature--on svg { color: #16a34a; }

.pricing-feature--off {
  color: #a8b4c2;
}

.pricing-feature--off svg { color: #cbd5e1; }

.pricing-cta {
  display: block;
  margin-top: 24px;
  padding: 13px 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--pm-gray);
  background: var(--pm-white);
  color: var(--pm-dark);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.pricing-cta:hover {
  border-color: var(--pm-blue);
  color: var(--pm-blue);
  background: rgba(26, 115, 232, 0.05);
}

.pricing-cta--primary {
  background: var(--pm-blue);
  border-color: var(--pm-blue);
  color: var(--pm-white);
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.28);
}

.pricing-cta--primary:hover {
  background: #1557b0;
  border-color: #1557b0;
  color: var(--pm-white);
}

.pricing-note {
  max-width: 780px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #7c8a9c;
}

/* ── Responsive : memes paliers que responsive.css ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pricing-tagline,
  .pricing-hint { min-height: 0; }
}

@media (max-width: 860px) {
  .pricing-section { padding: 80px 0 32px; }
  .pricing-container { padding: 0 32px; }
  .pricing-header { margin-bottom: 44px; }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-container { padding: 0 20px; }
  .pricing-card { padding: 30px 20px 22px; }
  /* Sans marge, le badge de l'offre mise en avant chevauche la carte du dessus. */
  .pricing-card--featured { margin-top: 6px; }
}

@media (max-width: 480px) {
  .pricing-section { padding: 64px 0 24px; }
  .pricing-price { font-size: 25px; }
}
