/* Cuisly — page Tarifs (version 20261007) */

.pricing-hero {
  max-width: 820px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.pricing-hero h1 {
  margin: 1.1rem auto 0.9rem;
  max-width: 14ch;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.pricing-hero h1 span {
  color: var(--brand);
}

.pricing-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Bascule mensuel / annuel */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.9rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--brand-ink);
  color: #fff;
}

.billing-toggle .badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .billing-toggle button {
    padding-inline: 0.7rem;
    font-size: 0.84rem;
    gap: 0.35rem;
  }

  .billing-toggle .badge {
    font-size: 0.62rem;
    padding-inline: 0.4rem;
  }
}

.billing-toggle button[aria-pressed="true"] .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Grille de formules */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.55rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 126, 167, 0.3);
}

.plan--featured {
  border-color: rgba(0, 126, 167, 0.45);
  box-shadow: 0 24px 60px rgba(0, 126, 167, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbfd 100%);
}

.plan__ribbon {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 126, 167, 0.3);
}

.plan__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.plan__tagline {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 2.7em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 1.35rem 0 0.15rem;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan__price .plan__currency {
  font-size: 1.4rem;
  letter-spacing: 0;
}

.plan__period {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.3em;
}

.plan__saving {
  margin-top: 0.4rem;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 1.2em;
}

.plan__features {
  flex: 1;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan__features li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0 0 0.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.plan__features li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 900;
  content: "✓";
}

.plan__features li.is-highlight {
  color: var(--text);
  font-weight: 600;
}

.plan__features li.is-highlight::before {
  background: var(--brand);
  color: #fff;
}

.plan__features li.is-sub {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: -0.3rem;
}

.plan__features li.is-sub::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  top: 0.5rem;
  left: 0.35rem;
  background: #cbd5e1;
}

.plan .primary-button,
.plan .secondary-button {
  width: 100%;
  margin-top: 1.4rem;
}

.pricing-note {
  max-width: 760px;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

/* Tableau de comparaison */
.pricing-section {
  padding-top: 4.5rem;
}

.pricing-section__head {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.pricing-section__head h2 {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.pricing-section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tier-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.tier-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tier-table th,
.tier-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.tier-table th:first-child,
.tier-table td:first-child {
  text-align: left;
  width: 34%;
  color: var(--text);
  font-weight: 600;
}

.tier-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.tier-table thead th small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
}

.tier-table thead th.is-featured {
  color: var(--brand);
}

.tier-table tbody th {
  padding: 1.1rem 1rem 0.5rem;
  text-align: left;
  background: #fff;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 0;
}

.tier-table tbody tr:last-child td {
  border-bottom: 0;
}

.tier-table td.is-featured {
  background: rgba(0, 126, 167, 0.045);
}

.tier-table .yes,
.tier-table .no {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.tier-table .yes {
  background: var(--success-soft);
  color: var(--success);
}

.tier-table .no {
  background: #f1f5f9;
  color: #94a3b8;
}

.tier-table .val {
  font-weight: 700;
  color: var(--text);
}

/* Teaser famille + soutien */
.pricing-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4.5rem;
}

.pricing-aside .card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.9rem;
}

.pricing-aside h3 {
  margin: 0.4rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.pricing-aside p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-aside .hero-actions {
  justify-content: flex-start;
  margin-top: 0.6rem;
}

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

@media (max-width: 720px) {
  .plans,
  .pricing-aside {
    grid-template-columns: 1fr;
  }

  .billing-toggle {
    width: 100%;
    justify-content: center;
  }

  .billing-toggle button {
    flex: 1;
    justify-content: center;
  }

  .plan__tagline {
    min-height: 0;
  }

  .pricing-section {
    padding-top: 3rem;
  }
}
