/* ==========================================================================
   FICHIER: css/plan.css
   Styles pour la page Tarifs et Plans — alignés sur le style landing.css
   Chargé après famivest-tokens.css et landing.css (ou ses tokens partagés).
   Aucun style inline — CSP safe.
   ========================================================================== */

/* ── Variables identiques à landing.css ─────────────────────────────────── */
:root {
  --green: #1f5d50;
  --green-700: #174638;
  --green-900: #0e2a22;
  --green-50: #edf3f0;
  --night: #1c2e4a;
  --night-700: #142238;
  --night-50: #e8ecf2;
  --beige: #f4f1ec;
  --beige-deep: #eae4d7;
  --gray: #e5e7eb;
  --gray-200: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gold: #c8a96a;
  --gold-soft: #e8d8b5;
  --ink: #0f1724;
  --ink-soft: #374151;
  --paper: #fbfaf7;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm:
    0 1px 2px rgba(15, 23, 36, 0.04), 0 1px 1px rgba(15, 23, 36, 0.03);
  --shadow-md:
    0 8px 24px -10px rgba(15, 23, 36, 0.12), 0 2px 6px rgba(15, 23, 36, 0.04);
  --shadow-lg:
    0 24px 50px -20px rgba(15, 23, 36, 0.18), 0 6px 14px rgba(15, 23, 36, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Typographie (mirrors landing.css) ──────────────────────────────────── */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.main-content h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
}
.main-content h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* Eyebrow — identique landing */
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
}
.eyebrow-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* ========== PAGE TITLE (breadcrumb area) ================================= */
.page-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.page-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ========== HERO SECTION ================================================= */
.pricing-hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 0;
  border-radius: 0;
  text-align: center;
}
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 60% at 85% 40%,
      rgba(31, 93, 80, 0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 50% at 15% 20%,
      rgba(200, 169, 106, 0.1),
      transparent 60%
    );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 14px;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ========== BILLING TOGGLE =============================================== */
.billing-cycle-section {
  text-align: center;
  padding: 28px 0 52px;
  background: var(--beige);
  border-top: 1px solid rgba(28, 46, 74, 0.04);
  border-bottom: 1px solid rgba(28, 46, 74, 0.04);
}
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: 999px;
  padding: 4px;
  justify-content: center;
  flex-wrap: nowrap;
}
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 160ms var(--ease);
  border: 0;
  background: transparent;
  position: relative;
  white-space: nowrap;
}
/* Active state driven by :has() — CSP-safe, no inline style */
.toggle-label:has(.toggle-radio:checked) {
  background: var(--green);
  color: #fff;
}
.toggle-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.toggle-radio:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}
.toggle-text {
  font-weight: 500;
}
.toggle-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--gold);
  color: var(--green-900);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ========== PRICING GRID ================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 52px 0 100px;
  background: var(--beige);
}
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== PLAN CARD ==================================================== */
.plan-card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 220ms var(--ease);
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.plan-recommended {
  border-color: var(--green);
  box-shadow:
    0 24px 50px -20px rgba(31, 93, 80, 0.22),
    0 6px 14px rgba(31, 93, 80, 0.06);
  background: linear-gradient(180deg, #f3f9f6 0%, #fff 22%);
  transform: none;
}
.plan-recommended:hover {
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .plan-recommended {
    transform: none;
  }
}

/* Badge */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.badge-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Plan header */
.plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 0;
  border-bottom: none;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.plan-tagline {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* Divider */
.plan-divider,
.plan-header + .plan-tagline + .plan-divider {
  height: 1px;
  background: var(--gray);
  margin: 0 0 24px;
  border: none;
}

/* Pricing */
.plan-pricing {
  margin-bottom: 6px;
}
.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0;
}
.price-currency {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
}
.price-amount {
  font-size: 52px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings:
    "tnum" 1,
    "lnum" 1;
}
.price-period {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.price-note {
  font-size: 13px;
  color: var(--gray-500);
  margin: 6px 0 22px;
}
.first-year-free {
  color: var(--green);
  font-weight: 600;
}
.price-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* CTA button */
.plan-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  cursor: pointer;
  transition: all 160ms var(--ease);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.plan-cta:hover {
  background: var(--green-700);
  border-color: var(--green-700);
}
.plan-card:not(.plan-recommended) .plan-cta {
  background: #fff;
  color: var(--green);
  border-color: var(--green);
}
.plan-card:not(.plan-recommended) .plan-cta:hover {
  background: var(--green);
  color: #fff;
}
.plan-cta.btn-primary-highlighted {
  background: var(--green);
  color: #fff;
  font-size: 14px;
}

/* Features */
.plan-features {
  flex: 1;
  margin-bottom: 24px;
  margin-top: 0;
}
.features-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 14px;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
}
/* Icônes emoji (💾📨🤖⚖️🎓🏦) — fond doré */
.feature-icon[data-type="addon"] {
  background: #f5ecd9;
  color: var(--gold);
}
.feature-text {
  flex: 1;
}

/* Plan note */
.plan-note {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--beige);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  border-left: none;
}
.plan-note p {
  margin: 0 0 6px;
}
.plan-note p:last-child {
  margin: 0;
}
.plan-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ========== COMPARISON TABLE ============================================= */
.pricing-comparison {
  padding: 100px 0;
  background: var(--paper);
  margin-bottom: 0;
}
.comparison-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 48px;
  text-align: center;
  line-height: 1.1;
}
.comparison-table-wrapper {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.comparison-table thead {
  background: var(--night);
  color: #fff;
}
.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.comparison-feature {
  font-weight: 600;
  color: var(--ink);
  min-width: 200px;
  padding: 12px 16px;
}
.comparison-plan {
  text-align: center;
  width: 22%;
  min-width: 140px;
}
.comparison-row {
  border-bottom: 1px solid var(--gray);
  transition: background 120ms var(--ease);
}
.comparison-row:nth-child(even) {
  background: var(--beige);
}
.comparison-row:hover {
  background: var(--green-50);
}
.comparison-section {
  background: var(--night-50);
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--gray-200);
}
.comparison-section td {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.comparison-value {
  padding: 12px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
@media (max-width: 768px) {
  .comparison-table {
    font-size: 13px;
  }
  .comparison-feature {
    min-width: 120px;
  }
  .comparison-value,
  .comparison-plan {
    padding: 10px;
  }
}

/* ========== À LA CARTE =================================================== */
.pricing-acard {
  padding: 100px 0;
  background: var(--beige);
  margin-bottom: 0;
  border-top: 1px solid rgba(28, 46, 74, 0.04);
  border-bottom: 1px solid rgba(28, 46, 74, 0.04);
}
.acard-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 14px;
  text-align: center;
  line-height: 1.1;
}
.acard-subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}
.acard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 980px) {
  .acard-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .acard-grid {
    grid-template-columns: 1fr;
  }
}

.acard-item {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: all 220ms var(--ease);
  position: relative;
}
.acard-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}
.acard-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.acard-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.acard-description {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 20px;
}
.acard-pricing {
  padding-top: 16px;
  border-top: 1px solid var(--gray);
}
.acard-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 4px;
}
.acard-note {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
}
.acard-note-box {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}
.acard-note-box strong {
  color: var(--ink);
  font-weight: 600;
}
.acard-note-box p {
  margin: 0;
}

/* Storage addon card inner (dynamic) */
.storage-addon-plan-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.storage-current-usage {
  margin-bottom: 18px;
}
.storage-usage-label {
  font-size: 12px;
  color: var(--gray-500);
  display: block;
  margin-bottom: 6px;
}
.storage-progress {
  height: 6px;
  background: var(--gray);
  border-radius: 999px;
  overflow: hidden;
}
.storage-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  width: 0;
  transition: width 400ms var(--ease);
}
.storage-progress-fill.warning {
  background: var(--gold);
}
.storage-progress-fill.danger {
  background: #c0392b;
}
.addon-row {
  margin-bottom: 16px;
}
.addon-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.addon-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.addon-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms var(--ease);
}
.addon-step-btn:hover {
  background: var(--green-50);
  border-color: var(--green);
}
.addon-number-input {
  width: 64px;
  text-align: center;
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.addon-unit {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.addon-min-note {
  font-size: 11.5px;
  color: var(--gray-500);
  margin: 6px 0 0;
}
.addon-pricing-box {
  padding: 12px 14px;
  background: var(--beige);
  border-radius: 10px;
  margin-bottom: 16px;
}
.addon-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.addon-price-value {
  font-weight: 700;
  color: var(--green);
  font-size: 15px;
}
.storage-addon-canceling-notice {
  font-size: 12px;
  color: var(--gold);
  padding: 8px 10px;
  background: #fdf6e8;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ========== FAQ ========================================================== */
.pricing-faq {
  padding: 100px 0;
  background: var(--paper);
  margin-bottom: 0;
}
.faq-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 48px;
  text-align: center;
  line-height: 1.1;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: all 200ms var(--ease);
}
.faq-item:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: background 140ms var(--ease);
  font-family: inherit;
  letter-spacing: -0.01em;
}
.faq-question:hover {
  background: var(--beige);
}
.faq-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green-50);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  color: var(--green);
  transition: all 200ms var(--ease);
}
.faq-question:hover .faq-arrow {
  background: var(--green);
  color: #fff;
}
.faq-answer {
  padding: 16px 20px;
  background: var(--beige);
  border-top: 1px solid var(--gray);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 14px;
  overflow: hidden;
  transition: all 240ms var(--ease);
}
.faq-answer.is-hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
  display: block;
}
.faq-answer p {
  margin: 0 0 8px;
}
.faq-answer p:last-child {
  margin: 0;
}
.faq-answer ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.faq-answer li {
  margin-bottom: 4px;
}
.faq-answer strong {
  color: var(--ink);
  font-weight: 600;
}

/* ========== FINAL CTA ==================================================== */
.pricing-cta-final {
  padding: 120px 0;
  background: var(--green);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
  text-align: center;
}
.pricing-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 80% at 80% 30%,
      rgba(200, 169, 106, 0.18),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 10% 90%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    );
  pointer-events: none;
}
.cta-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 14px;
  position: relative;
}
.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
  position: relative;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--green-900);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 160ms var(--ease);
}
.cta-btn:hover {
  background: #d4b782;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========== BOUTONS GÉNÉRAUX ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms var(--ease);
  line-height: 1;
  white-space: nowrap;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 160ms var(--ease);
  font-family: inherit;
}
.btn-outline:hover {
  background: var(--green-50);
}

.btn-large {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* ========== UTILITAIRES ================================================== */
.is-hidden {
  display: none !important;
}

/* ========== RESPONSIVE ==================================================== */
@media (max-width: 980px) {
  .pricing-hero {
    padding: 48px 0 56px;
  }
  .pricing-comparison,
  .pricing-acard,
  .pricing-faq {
    padding: 72px 0;
  }
  .pricing-cta-final {
    padding: 80px 0;
  }
}
@media (max-width: 640px) {
  .billing-toggle {
    flex-direction: column;
    gap: 8px;
  }
  .pricing-hero {
    padding: 36px 0 44px;
  }
  .hero-title {
    font-size: 26px;
  }
  .comparison-title,
  .acard-title,
  .faq-title,
  .cta-title {
    font-size: 26px;
  }
  .pricing-acard,
  .pricing-cta-final {
    padding: 48px 0;
  }
}
/* ==========================================================================
   PLAN PAGE — Background fix v5 (définitif)
   
   CAUSE RACINE : dans index.css, .main-content a padding: 2rem + max-width: 1400px
   + margin: 0 auto → les sections ne s'étendent pas jusqu'aux bords du viewport.
   
   SOLUTION : on annule le padding de .main-content sur plan.css uniquement,
   et on gère le padding interne section par section via un inner wrapper.
   ========================================================================== */

/* ── 1. Annuler le padding global du main-content sur cette page ─────────── */
/* Les sections pleine largeur gèrent leur propre padding interne */
.main-content {
  padding: 0; /* ← remplacez padding-left/right: 0 par padding: 0 */
  background-color: var(
    --beige
  ); /* ← remplacez var(--paper) par var(--beige) */
}

/* ── 2. Le header de page (.main-header) garde un padding normal ─────────── */
.main-header {
  padding-left: 2rem;
  padding-right: 2rem;
  min-height: 180px; /* Ajout de la hauteur */
}

/* ── 3. Sections full-width : s'étendent sur toute la largeur ───────────── */
.pricing-hero,
.billing-cycle-section,
.pricing-grid,
.pricing-comparison,
.pricing-acard,
.pricing-faq,
.pricing-cta-final {
  /* Annule le max-width hérité et force le plein écran */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  /* Le padding horizontal est géré section par section ci-dessous */
  box-sizing: border-box;
}

/* ── 4. Couleurs des sections (deux tons de beige) ───────────────────────── */
/* Ton foncé : hero, billing, grid, boutique à la carte */
.pricing-hero,
.billing-cycle-section,
.pricing-grid,
.pricing-acard {
  background: var(--beige); /* #f4f1ec */
}

/* Ton clair : comparaison, faq */
.pricing-comparison,
.pricing-faq {
  background: var(--paper); /* #fbfaf7 */
}

/* CTA final : vert foncé — inchangé */
.pricing-cta-final {
  background: var(--green); /* inchangé */
}

/* ── 5. Padding interne des sections (contenu centré dans la section) ─────── */
.pricing-hero .hero-content,
.pricing-comparison .comparison-title,
.pricing-comparison .comparison-table-wrapper,
.pricing-acard .acard-title,
.pricing-acard .acard-subtitle,
.pricing-acard .acard-grid,
.pricing-acard .acard-note-box,
.pricing-faq .faq-title,
.pricing-faq .faq-container,
.pricing-cta-final .cta-title,
.pricing-cta-final .cta-subtitle,
.pricing-cta-final .cta-btn {
  /* Le contenu reste centré et lisible */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* La grille de plans : padding horizontal seulement */
.pricing-grid {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* La section billing : son contenu est déjà centré via inline-flex */
.billing-cycle-section {
  padding-left: 2rem;
  padding-right: 2rem;
}
/* ==========================================================================
   PLAN PAGE — Styles alignés sur landing.css
   Cible les 3 éléments du header de page pour qu'ils matchent exactement
   les équivalents de la landing (eyebrow, h1 hero, hero-sub).
   ========================================================================== */

/* ── 1. "💰 Tarifs et Plans" → style .eyebrow de landing ─────────────────
   Original landing : 12px, uppercase, letter-spacing .14em, green, ligne gold avant
   La classe .page-title dans index.css a un gradient + souligné custom qu'on écrase.
   ────────────────────────────────────────────────────────────────────────── */
/* ==========================================================================
   PLAN PAGE — Styles alignés sur landing.css (v2 corrigé)
   ========================================================================== */

/* ── 1. "💰 Tarifs et Plans" → style .eyebrow landing ────────────────────── */
.page-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;

  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em !important;
  color: var(--green) !important;
  /* ✅ Pas de margin-bottom excessif, pas de padding-bottom */
  margin: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.4;
  /* ✅ Pas de text-decoration, pas de border-bottom */
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Ligne dorée avant (::before) — identique landing */
.page-title::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  display: block;
}

/* ✅ Supprime l'ancien souligné vert de index.css */
.page-title::after {
  display: none !important;
}

/* ── 2. "Choisissez l'offre adaptée…" → style .hero-sub landing ───────────
   19px, ink-soft, line-height 1.55, pas de gras (font-weight 400)
   + marge importante avec le titre au-dessus
   ────────────────────────────────────────────────────────────────────────── */
.page-subtitle {
  font-size: 19px !important;
  color: var(--ink-soft) !important;
  line-height: 1.55 !important;
  font-weight: 400 !important; /* ✅ pas de gras */
  margin: 22px 0 0 !important; /* ✅ marge top importante comme landing */
  max-width: 520px;
}

/* ── 3. Hero title : "Un plan adapté à chaque patrimoine." ────────────────
   ✅ font-weight: 700 UNIQUEMENT (landing h1 est 700, pas 800 ni 900)
   ✅ clamp identique landing : clamp(40px, 5vw, 60px)
   ✅ letter-spacing: -0.028em
   ✅ line-height: 1.04
   ✅ centré par rapport à la section
   ────────────────────────────────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(40px, 5vw, 60px) !important;
  font-weight: 700 !important; /* ✅ 700 comme landing, pas 800 */
  letter-spacing: -0.028em !important;
  line-height: 1.04 !important;
  color: var(--ink) !important;
  margin: 0 0 14px !important;
  text-align: center;
}

/* Mot clé en vert avec soulignement doré (nécessite <em> dans le HTML) */
.hero-title em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--gold-soft);
  z-index: -1;
  border-radius: 2px;
}

/* ── 4. Hero subtitle centré ─────────────────────────────────────────────── */
.hero-subtitle {
  font-size: 19px !important;
  color: var(--ink-soft) !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  margin: 0 auto !important; /* ✅ centré */
  text-align: center;
  max-width: 520px;
}
/* Alignement logo + titre */
/* ===== ALIGNEMENT LOGO + TITRE ===== */
.hero-header {
  display: flex;
  align-items: center; /* Alignement vertical */
  gap: 16px; /* Espacement entre logo et titre */
  justify-content: flex-start; /* Aligné à gauche */
  margin-bottom: 40px; /* Espacement entre les 2 lignes */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Taille du titre "Tarifs et Plans" */
.page-title {
  font-size: 2.5rem !important; /* 40px */
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Style du logo (ajuste la hauteur selon ton image) */
#logo-placement {
  height: 12px; /* À adapter selon ton logo */
  width: auto;
  margin-top: -40px; /* Ajustez cette valeur (ex: -4px, -8px, etc.) */
}

/* ===== SOUS-TITRE CENTRÉ (sans chevauchement) ===== */
.hero-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(40px, 5vw, 60px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.028em !important;
  line-height: 1.04 !important;
  margin: 0 0 14px !important;
}

/* Soulignement doré pour "patrimoine" */
.hero-title em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--gold-soft);
  z-index: -1;
  border-radius: 2px;
}
/* Alignement logo + titres */
.hero-header {
  display: flex;
  align-items: flex-start; /* Alignement en haut */
  gap: 24px; /* Espacement entre logo et titres */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Garde votre style existant pour le logo */
#logo-placement {
  height: 12px; /* Valeur originale, inchangée */
  width: auto;
  flex-shrink: 0; /* Empêche le logo de rétrécir */
  margin-top: -40px; /* Ajustez cette valeur (ex: -4px, -8px, etc.) */
}

.title-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre les titres */
  text-align: center;
}

/* Ajustement minimal pour éviter le chevauchement */
.page-subtitle {
  margin-top: 8px; /* Espacement réduit entre titre et sous-titre */
}
/* Fix lisibilité en-tête tableau comparatif */
.comparison-table thead {
  background: #1c2e4a;
  color: #fff;
}

.comparison-table th {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* ── Neutraliser le padding body de general.css sur cette page ── */
body {
  padding: 0;
  background-color: var(--beige);
}

.main-wrapper {
  background-color: var(--beige);
}

.top-bar {
  background-color: var(--beige) !important;
  border-bottom: 1px solid var(--beige-deep);
}

/* Fix top-bar sur page plan */
.top-bar {
  overflow: visible !important;
}

#user-info-placement {
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 2rem; /* petit espace bord droit */
}
