/* Page Tarifs — Wise Eat */
.pricing-breadcrumb {
  padding-top: 1.5rem;
}

.pricing-main {
  max-width: var(--site-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.pricing-hero {
  position: relative;
  margin: 0 -1.5rem 2.5rem;
  padding: 3.5rem 1.5rem 3.75rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, #392800 0%, #5a3d00 45%, #aa6900 100%);
  color: #fff;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 174, 0, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.pricing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 174, 0, 0.2);
  border: 1px solid rgba(255, 174, 0, 0.45);
  color: #ffe8b0;
}

.pricing-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.pricing-hero-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.pricing-billing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 2rem;
}

.pricing-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(57, 40, 0, 0.06);
  border: 1px solid rgba(57, 40, 0, 0.1);
}

.pricing-billing-toggle button {
  border: none;
  background: transparent;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted, #6b5d4a);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-billing-toggle button.is-active {
  background: #fff;
  color: var(--primary, #392800);
  box-shadow: 0 2px 12px rgba(57, 40, 0, 0.12);
}

.pricing-billing-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted, #6b5d4a);
}

.pricing-billing-note strong {
  color: var(--primary-light, #aa6900);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-grid.is-loading {
  min-height: 320px;
}

.pricing-grid.is-loading::before {
  content: '';
  display: block;
  width: min(100%, 720px);
  height: 280px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(57, 40, 0, 0.04) 0%,
    rgba(255, 174, 0, 0.08) 50%,
    rgba(57, 40, 0, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: pricing-shimmer 1.2s ease-in-out infinite;
}

@keyframes pricing-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pricing-grid.is-ready .pricing-card {
  animation: pricing-card-in 0.45s ease-out both;
}

.pricing-grid.is-ready .pricing-card:nth-child(2) {
  animation-delay: 0.08s;
}

.pricing-grid.is-ready .pricing-card:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes pricing-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(57, 40, 0, 0.1);
  box-shadow: 0 4px 24px rgba(57, 40, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(57, 40, 0, 0.1);
}

.pricing-card--featured {
  border-color: rgba(255, 174, 0, 0.55);
  box-shadow: 0 8px 32px rgba(255, 174, 0, 0.18);
}

.pricing-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffae00, #ffc94d);
  color: #392800;
  white-space: nowrap;
}

.pricing-card__name {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary, #392800);
}

.pricing-card__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted, #6b5d4a);
  min-height: 2.9em;
}

.pricing-card__price-wrap {
  margin-bottom: 0.35rem;
}

.pricing-card__price {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary, #392800);
  letter-spacing: -0.02em;
}

.pricing-card__price-period {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted, #6b5d4a);
}

.pricing-card__trial {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 174, 0, 0.15);
  color: #7a5200;
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text, #2c2416);
}

.pricing-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: rgba(255, 174, 0, 0.2);
  color: var(--primary-light, #aa6900);
}

.pricing-check svg {
  width: 0.65rem;
  height: 0.65rem;
}

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card__cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.pricing-card__cta--primary {
  background: linear-gradient(135deg, #ffae00, #ffc94d);
  color: #392800;
  box-shadow: 0 4px 16px rgba(255, 174, 0, 0.3);
}

.pricing-card__cta--ghost {
  background: transparent;
  color: var(--primary, #392800);
  border: 1px solid rgba(57, 40, 0, 0.2);
}

.pricing-card__cta--ghost:hover {
  background: rgba(57, 40, 0, 0.04);
}

.pricing-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  background: rgba(57, 40, 0, 0.03);
  border: 1px dashed rgba(57, 40, 0, 0.15);
}

.pricing-state p {
  margin: 0 0 1rem;
  color: var(--text-muted, #6b5d4a);
}

.pricing-state button {
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  background: var(--primary, #392800);
  color: #fff;
  cursor: pointer;
}


.pricing-fees {
  margin-top: 3.5rem;
  width: 100%;
}

.pricing-fees .pricing-section-lead {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.pricing-fees-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pricing-fees-meta-card {
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(57, 40, 0, 0.08);
  box-shadow: 0 2px 12px rgba(57, 40, 0, 0.04);
}

.pricing-fees-meta-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-light, #aa6900);
}

.pricing-fees-meta-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #6b5d4a);
}

.pricing-fees-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(57, 40, 0, 0.1);
  background: #fff;
  box-shadow: 0 4px 24px rgba(57, 40, 0, 0.06);
}

.pricing-fees-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pricing-fees-caption {
  caption-side: top;
  padding: 1.15rem 1.25rem 0.65rem;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-muted, #6b5d4a);
}

.pricing-fees-table thead th {
  padding: 0.9rem 1.15rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary, #392800);
  background: rgba(255, 174, 0, 0.1);
  border-bottom: 1px solid rgba(57, 40, 0, 0.08);
}

.pricing-fees-table thead th:nth-child(1) { width: 11%; }
.pricing-fees-table thead th:nth-child(2) { width: 16%; }
.pricing-fees-table thead th:nth-child(3) { width: 11%; }
.pricing-fees-table thead th:nth-child(4) { width: 18%; }
.pricing-fees-table thead th:nth-child(5) { width: 44%; }

.pricing-fees-table tbody td {
  padding: 0.95rem 1.15rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(57, 40, 0, 0.06);
  color: var(--text, #2c2416);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.pricing-fees-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-fees-table .pricing-fees-cell-merged {
  vertical-align: middle;
  border-right: 1px solid rgba(57, 40, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
}

.pricing-fees-table tbody tr:nth-child(even) td:not(.pricing-fees-cell-merged) {
  background: rgba(253, 248, 240, 0.45);
}

.pricing-fees-table tbody tr:nth-child(even) td.pricing-fees-cell-merged {
  background: rgba(253, 248, 240, 0.65);
}

.pricing-fees-table .pricing-fees-category {
  font-weight: 700;
  color: var(--primary, #392800);
}

.pricing-fees-table .pricing-fees-rate {
  font-weight: 700;
  color: var(--primary-light, #aa6900);
  line-height: 1.45;
}

.pricing-fees-table .pricing-fees-rate-detail {
  font-weight: 600;
  font-size: 0.8125rem;
}

.pricing-fees-table .pricing-fees-payer {
  font-size: 0.8125rem;
}

.pricing-fees-loading {
  text-align: center;
  color: var(--text-muted, #6b5d4a);
  padding: 2rem 1rem !important;
}

.pricing-fees-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted, #6b5d4a);
}

.pricing-fees-note.is-estimated::before {
  content: 'ℹ ';
}

@media (max-width: 900px) {
  .pricing-fees-table {
    table-layout: auto;
    min-width: 680px;
  }

  .pricing-fees-table thead th:nth-child(n) {
    width: auto;
  }
}

@media (max-width: 768px) {
  .pricing-fees-meta {
    grid-template-columns: 1fr;
  }
}

.pricing-faq {
  margin-top: 3.5rem;
  width: 100%;
}

.pricing-faq .pricing-section-lead {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.pricing-section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  text-align: center;
  color: var(--primary, #392800);
}

.pricing-section-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted, #6b5d4a);
}

.pricing-cta {
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 174, 0, 0.12), rgba(253, 248, 240, 0.9));
  border: 1px solid rgba(255, 174, 0, 0.25);
}

.pricing-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--primary, #392800);
}

.pricing-cta p {
  margin: 0 0 1.25rem;
  color: var(--text-muted, #6b5d4a);
}

.pricing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.pricing-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.pricing-btn--primary {
  background: linear-gradient(135deg, #ffae00, #ffc94d);
  color: #392800;
}

.pricing-btn--ghost {
  background: #fff;
  color: var(--primary, #392800);
  border: 1px solid rgba(57, 40, 0, 0.15);
}

@media (max-width: 640px) {
  .pricing-card--featured {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-grid.is-loading::before,
  .pricing-grid.is-ready .pricing-card {
    animation: none !important;
  }
}
