/* ============================================
   PAGE TARIFS — /forfaits/
============================================ */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.tf-section { background: var(--bg-dark); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.tf-section--alt { background: var(--bg-forest); }

.tf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.tf-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.5rem; }
.tf-head p  { margin: 0; color: rgba(255,255,255,0.7); max-width: 38rem; line-height: 1.6; }

/* Bascule engagement / sans engagement */
.tf-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.tf-switch__opt {
  border: 0;
  background: none;
  color: rgba(255,255,255,0.7);
  font: 600 0.875rem/1 var(--font-body);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.tf-switch__opt:hover { color: var(--white); }
.tf-switch__opt.is-active { background: var(--white); color: var(--black); }
.tf-switch__opt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Cartes abonnement */
.tf-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.tf-plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #121a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.tf-plan__title { font-size: clamp(1.5rem, 2.5vw, 1.875rem); margin: 0 0 0.5rem; }
.tf-plan__desc  { color: rgba(255,255,255,0.7); line-height: 1.55; margin: 0 0 1.75rem; }

.tf-plan__offer { display: flex; flex-direction: column; flex: 1; }
.tf-plans[data-mode="engage"] .tf-plan__offer--libre,
.tf-plans[data-mode="libre"]  .tf-plan__offer--engage { display: none; }

.tf-plan__price { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.tf-plan__amount {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1;
  color: var(--white);
}
.tf-plan__period { color: rgba(255,255,255,0.6); font-size: 1rem; }
.tf-plan__unit { margin: 0.6rem 0 0; color: rgba(255,255,255,0.8); font-size: 0.9375rem; }
.tf-plan__note { margin: 0.35rem 0 1.75rem; color: var(--green); font-size: 0.875rem; font-weight: 500; }
.tf-plan__offer--libre .tf-plan__note { color: rgba(255,255,255,0.55); }
.tf-plan__btn { margin-top: auto; }

/* Inclus partout */
.tf-included {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
}
.tf-included li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
}
.tf-included li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 1rem; height: 0.55rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg) scale(0.8);
}

/* À la séance */
.tf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.1); }
.tf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tf-row__name h3 { font-size: 1.25rem; margin: 0 0 0.2rem; }
.tf-row__name p  { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.tf-row__price {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--white);
}
.tf-row__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.tf-row__link:hover { border-color: var(--green); color: var(--green); }

.tf-footnote { margin: 1.5rem 0 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

@media (max-width: 768px) {
  .tf-head { align-items: stretch; }
  .tf-switch { width: 100%; }
  .tf-switch__opt { flex: 1; }
  .tf-plans { grid-template-columns: minmax(0, 1fr); }
  .tf-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tf-row__link { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 480px) {
  .forfaits-cta .cta-split__content .btn { align-self: stretch; padding-inline: 1rem; font-size: 1rem; text-align: center; }
}
