/* ──────────────────────────────────────────────────────────────
   Tarifs (tarifs.html) — charte verte Ludilon.
   S'appuie sur home.css (en-tête, boutons, footer, modale) ;
   classes propres à la page préfixées .tf-*.
   ────────────────────────────────────────────────────────────── */

body.tf { background: var(--hp-cream); }

.tf-h1, .tf-h2 {
  text-align: center; color: var(--hp-black);
  font-weight: 700; line-height: 1.15;
}
.tf-h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 48px; }
.tf-h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 40px; }

.tf-section { padding-top: 104px; }

/* ── OFFRES ── */
/* scroll-margin-top : l'ancre « Je me lance » ne doit pas finir sous l'en-tête collant */
.tf-offers { padding-top: 56px; scroll-margin-top: 126px; }

.tf-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1100px; margin: 0 auto;
}
/* Cartes latérales de même hauteur, l'annuelle dépasse en haut et en bas */
.tf-plan:not(.tf-plan--featured) { margin: 16px 0; }
.tf-plan {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1.5px solid #F1DFAE; border-radius: 22px;
  padding: 32px 28px 28px;
}
.tf-plan--featured {
  border: 2px solid var(--hp-green);
  padding: 36px 30px 34px;
  box-shadow: 0 20px 44px rgba(0, 75, 56, 0.16);
}
.tf-plan-name { font-size: 1.3rem; font-weight: 700; color: var(--hp-black); margin-bottom: 14px; }
.tf-plan-price {
  font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 2.4rem; line-height: 1.1; color: var(--hp-black);
  margin-bottom: 14px;
}
.tf-plan-period { font-family: 'Quicksand', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--hp-body); }
.tf-plan-note { font-size: 0.85rem; font-weight: 600; line-height: 1.45; color: var(--hp-ink); margin-bottom: 10px; }
.tf-plan-badge {
  align-self: flex-start;
  background: var(--hp-mint-strong); color: var(--hp-green);
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 700;
  margin-bottom: 6px;
}

.tf-features { list-style: none; margin: 14px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tf-feature {
  position: relative; padding-left: 34px;
  font-size: 0.92rem; font-weight: 500; line-height: 1.4; color: var(--hp-ink);
}
.tf-feature > span:not(.hp-sr-only) { display: block; font-size: 0.84rem; color: var(--hp-body); }
/* Pastille verte cochée / grise barrée */
.tf-feature::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--hp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tf-feature--off { color: #A3ACA8; }
.tf-feature--off::before {
  background: #F0ECE1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2BBA8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tf-plan-cta {
  margin-top: auto;
  display: block; width: 100%;
  background: #fff; color: var(--hp-black);
  border: 1.5px solid var(--hp-black); border-radius: 999px; cursor: pointer;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 0.98rem; line-height: 1.25;
  padding: 12px 16px 10px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.tf-plan-cta:hover { background: var(--hp-black); color: #fff; transform: translateY(-1px); }
.tf-plan-cta--primary { background: var(--hp-green); border-color: var(--hp-green); color: #fff; padding: 15px 16px 13px; }
.tf-plan-cta--primary:hover { background: var(--hp-green-dark); border-color: var(--hp-green-dark); }

/* ── COMPARATIF ── */
.tf-compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: 22px; overflow: hidden;
  font-size: 0.86rem; line-height: 1.5;
}
.tf-compare th, .tf-compare td { padding: 20px 22px; border-bottom: 1px solid #EFEAE0; vertical-align: top; }
.tf-compare tr:last-child > * { border-bottom: 0; }
.tf-compare thead th {
  font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--hp-black);
  text-align: center; vertical-align: middle;
}
.tf-compare tbody th { text-align: left; font-weight: 700; color: var(--hp-black); width: 20%; }
.tf-compare tbody td { text-align: center; color: var(--hp-body); width: 26.6%; }
.tf-compare .tf-compare-us { background: var(--hp-mint); color: var(--hp-ink); border-bottom-color: #B7E3B6; }
.tf-compare thead .tf-compare-us { color: var(--hp-green); }
.tf-compare-price td { font-weight: 700; color: var(--hp-black); }
.tf-compare-price .tf-compare-us { color: var(--hp-green); }

/* ── MATIÈRES ── */
.tf-tabs { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; }
.tf-tabs [role="tab"] {
  background: none; border: 0; cursor: pointer;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: #A3ACA8;
  padding: 4px 4px 8px;
  border-bottom: 3px solid transparent;
}
.tf-tabs [role="tab"][aria-selected="true"] { color: var(--hp-green); border-bottom-color: var(--hp-green); }
.tf-tabs [role="tab"]:hover { color: var(--hp-green); }

.tf-pills {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  max-width: 760px;
}
.tf-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--hp-ink);
  border: 1.5px solid #F1DFAE; border-radius: 999px;
  padding: 11px 22px 9px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1rem;
}
.tf-pill--on { background: var(--hp-mint-strong); border-color: var(--hp-mint-strong); color: var(--hp-green); }
.tf-soon {
  background: var(--hp-cream); color: #8A6D1C;
  border-radius: 999px; padding: 2px 9px;
  font-family: 'Quicksand', sans-serif; font-size: 0.7rem; font-weight: 700;
}

.tf-final { text-align: center; padding: 64px 0 96px; }
.tf-final-cta { border-radius: 999px; padding: 15px 40px 13px; font-size: 1.05rem; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  /* Cartes empilées : l'offre annuelle, mise en avant, passe en premier */
  .tf-plans { grid-template-columns: 1fr; max-width: 460px; gap: 20px; }
  .tf-plan--featured { order: -1; }

  /* Comparatif : une carte par critère, la colonne Ludilon en vert */
  .tf-compare, .tf-compare tbody, .tf-compare tr, .tf-compare th, .tf-compare td { display: block; width: auto; }
  .tf-compare { background: none; border-radius: 0; overflow: visible; max-width: 560px; margin: 0 auto; }
  .tf-compare thead { display: none; }
  .tf-compare tbody tr { background: #fff; border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
  .tf-compare tbody th { width: auto; font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; padding: 18px 20px 6px; border: 0; }
  .tf-compare tbody td { width: auto; text-align: left; padding: 10px 20px; border-bottom: 1px solid #EFEAE0; }
  .tf-compare tbody tr > :last-child { border-bottom: 0; padding-bottom: 16px; }
  .tf-compare tbody td::before {
    content: attr(data-label);
    display: block; margin-bottom: 2px;
    font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #A3ACA8;
  }
  .tf-compare tbody .tf-compare-us::before { color: var(--hp-green); }
}

@media (max-width: 760px) {
  .tf-offers { padding-top: 40px; scroll-margin-top: 100px; }
  .tf-h1 { margin-bottom: 32px; }
  .tf-section { padding-top: 72px; }
  .tf-plan, .tf-plan--featured { padding: 28px 22px 24px; }
  .tf-final { padding: 48px 0 72px; }
}
