/* ============================================================
   TARIFS — tarifs.css
   S'appuie sur les variables et composants de site.css
   (.btn, .eyebrow, .section-head, .icon-badge).
   ============================================================ */

[hidden] { display: none !important; }

/* `overflow-x: hidden` sur html ET body casse position: sticky (récapitulatif,
   menu). `clip` coupe pareil sans créer de conteneur de défilement. */
html:root,
html body { overflow-x: clip; }

/* --- Animations : l'état par défaut est toujours l'état final visible --- */
@keyframes tfUp {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes tfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes tfFade {
  from { opacity: 0; transform: translateY(-5px); }
}

.tf-in {
  animation: tfUp .75s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(var(--i, 0) * .09s);
}

.tf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Boutons sur fond sombre */
.tf-btn-light {
  background: white;
  border-color: white;
  color: var(--blue-dark);
  box-shadow: 0 18px 38px -16px rgba(4, 16, 32, .6);
}

.tf-btn-light:hover {
  background: #f0f7fd;
  color: var(--blue-dark);
}

.tf-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .38);
  color: white;
}

.tf-btn-ghost:hover {
  background: rgba(255, 255, 255, .09);
  border-color: white;
  color: white;
}

/* ============================================================
   HERO
   ============================================================ */
.tf-hero {
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 70px));
  padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 36%, rgba(60, 140, 220, .11), transparent 32rem),
    radial-gradient(circle at 96% 0%, rgba(129, 114, 221, .08), transparent 24rem);
}

.tf-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.tf-hero-copy { max-width: 700px; }

.tf-hero h1 {
  max-width: 13ch;
  margin-bottom: .4em;
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.tf-hero .lede { max-width: 54ch; margin: 0 0 32px; }

.tf-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tf-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.tf-fact:first-child { padding-left: 0; }
.tf-fact:last-child { padding-right: 0; border-right: 0; }

.tf-fact .icon-badge { width: 40px; height: 40px; border-radius: 12px; }

.tf-fact strong {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}

.tf-fact small {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--muted);
}

/* --- Ticket « première année » --- */
.tf-visual {
  position: relative;
  min-width: 0;
  padding: 36px 48px 48px;
}

.tf-visual::before {
  content: "";
  position: absolute;
  left: 6%;
  top: 6%;
  width: 88%;
  height: 88%;
  border: 1px solid rgba(60, 140, 220, .14);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.tf-ticket {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  filter: drop-shadow(0 34px 40px rgba(23, 37, 54, .2));
  transform: rotate(1.2deg);
}

.tf-ticket-card {
  --top: 190px;
  --r: 13px;
  overflow: hidden;
  background: white;
  border-radius: 22px;
  -webkit-mask:
    radial-gradient(circle var(--r) at 0 var(--top), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--r) at 100% var(--top), #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--r) at 0 var(--top), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--r) at 100% var(--top), #0000 98%, #000) right / 51% 100% no-repeat;
}

.tf-ticket-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--top);
  padding: 22px 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(129, 114, 221, .4), transparent 14rem),
    linear-gradient(165deg, #1d4c7b, #173f69 65%, #12335a);
  color: white;
}

.tf-ticket-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  font-size: .74rem;
  font-weight: 600;
}

.tf-ticket-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: none;
  margin: 14px 0 6px;
}

.tf-ticket-price b {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.tf-ticket-price span {
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
}

.tf-ticket-sub {
  max-width: 34ch;
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}

.tf-ticket-lines {
  padding: 8px 28px 4px;
  border-top: 2px dashed var(--line-strong);
}

.tf-ticket-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-soft);
}

.tf-ticket-lines li:last-child { border-bottom: 0; }

.tf-ticket-lines b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.tf-ticket-lines em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
}

.tf-ticket-foot {
  max-width: none;
  margin: 0;
  padding: 14px 28px 20px;
  background: var(--blue-pale);
  border-top: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-align: center;
}

.tf-badge {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 13px 20px rgba(27, 39, 53, .14));
}

.tf-badge .icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .55);
}

.tf-badge .icon-badge svg { width: 24px; height: 24px; }

.tf-badge--1 { top: 4%; right: 2%; animation: tfFloat 4.8s ease-in-out infinite; }
.tf-badge--2 { top: 44%; left: -1%; animation: tfFloat 5.6s ease-in-out infinite .3s; }
.tf-badge--3 { bottom: 3%; right: 9%; animation: tfFloat 5.2s ease-in-out infinite .6s; }

/* ============================================================
   FORMULES
   ============================================================ */
.tf-plans .section-head { max-width: 640px; }

.tf-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.tf-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px 30px 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

/* Les lignes (en-tête, prix, bouton) s'alignent d'une carte à l'autre */
@supports (grid-template-rows: subgrid) {
  .tf-plans-grid { grid-template-rows: auto auto auto 1fr; row-gap: 0; }

  .tf-plan {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
  }
}

.tf-plan-head h3 {
  margin: 16px 0 6px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.tf-plan-head p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--muted);
}

.tf-price {
  padding: 26px 0 22px;
}

.tf-price-from {
  display: block;
  margin-bottom: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.tf-price-main {
  max-width: none;
  margin: 0;
}

.tf-price-main b {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink);
}

.tf-price-main .tf-price-text { font-size: clamp(2.2rem, 3.2vw, 2.8rem); }

.tf-price-then {
  max-width: none;
  margin: 10px 0 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}

.tf-price-then strong { color: var(--ink); }

.tf-plan-cta { padding-bottom: 26px; }

.tf-list {
  display: grid;
  align-content: start;
  gap: 13px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tf-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tf-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-bg);
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-list .is-off { color: #8493a3; }

.tf-list .is-off svg {
  background: var(--line);
  stroke: #8493a3;
}

/* Ligne de synthèse sous le prix (carte recommandée) */
.tf-price-year {
  display: inline-block;
  max-width: none;
  margin: 14px 0 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  font-size: .8rem;
  font-weight: 600;
  color: white;
}

/* --- Formule recommandée --- */
.tf-plan--featured {
  color: white;
  background:
    radial-gradient(circle at 92% 0%, rgba(129, 114, 221, .42), transparent 16rem),
    radial-gradient(circle at 0% 100%, rgba(60, 140, 220, .3), transparent 16rem),
    linear-gradient(165deg, #1d4c7b, #173f69 60%, #12335a);
  border-color: transparent;
  box-shadow: 0 40px 80px -40px rgba(23, 63, 105, .85);
}

.tf-plan--featured h3,
.tf-plan--featured .tf-price-main b { color: white; }

.tf-plan--featured .tf-plan-head p,
.tf-plan--featured .tf-price-from,
.tf-plan--featured .tf-price-then { color: rgba(255, 255, 255, .78); }

.tf-plan--featured .tf-price-then strong { color: white; }

.tf-plan--featured .icon-badge { background: rgba(255, 255, 255, .14); color: white; }

.tf-plan--featured .tf-list { border-top-color: rgba(255, 255, 255, .18); }
.tf-plan--featured .tf-list li { color: rgba(255, 255, 255, .92); }
.tf-plan--featured .tf-list strong { color: white; font-weight: 600; }

.tf-plan--featured .tf-list svg {
  background: rgba(111, 211, 163, .2);
  stroke: #8ee3b8;
}

.tf-plan-ribbon {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 5px 13px;
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-size: .74rem;
  font-weight: 700;
}

.tf-plans-note {
  max-width: none;
  margin: 30px 0 0;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   ABONNEMENT
   ============================================================ */
.tf-incl-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.tf-incl .section-head { margin-bottom: 36px; }

.tf-commit {
  padding: 26px;
  color: white;
  background:
    radial-gradient(circle at 92% 0%, rgba(129, 114, 221, .38), transparent 14rem),
    linear-gradient(165deg, #1d4c7b, #173f69 60%, #12335a);
  border-radius: 22px;
  box-shadow: 0 30px 70px -40px rgba(23, 63, 105, .75);
}

.tf-commit-title {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.tf-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)) minmax(0, 1.8fr);
  gap: 5px;
  margin: 20px 0 16px;
}

.tf-months i {
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #cfe6fb);
}

.tf-months span {
  height: 34px;
  border: 1.5px dashed rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 6px, transparent 6px 12px);
}

.tf-commit-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, .22);
}

.tf-commit-legend b {
  display: block;
  font-size: .86rem;
}

.tf-commit-legend span {
  display: block;
  margin-top: 3px;
  font-size: .8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
}

.tf-commit-list {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.tf-commit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}

.tf-commit-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(111, 211, 163, .2);
  fill: none;
  stroke: #8ee3b8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-incl-list { margin: 0; padding: 0; }

.tf-incl-list li {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}

.tf-incl-list li:first-child { border-top: 0; padding-top: 4px; }

.tf-incl-list h3 { margin: 0 0 5px; font-size: 1.08rem; }

.tf-incl-list p {
  max-width: 52ch;
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================
   CONFIGURATEUR
   ============================================================ */
.tf-cfg .section-head { max-width: 660px; }

.tf-cfg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.tf-cfg-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px -40px rgba(23, 37, 54, .32);
}

.tf-block { padding: clamp(22px, 3.4vw, 34px); }
.tf-block + .tf-block { border-top: 1px solid var(--line); }

.tf-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.tf-block-title b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-deep);
  color: white;
  font-size: .78rem;
}

.tf-block-title span {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  color: #8493a3;
}

.tf-base {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--blue-pale);
  border: 1px solid rgba(60, 140, 220, .45);
  border-radius: 16px;
}

.tf-base-text { min-width: 0; flex: 1; }

.tf-base-text strong {
  display: block;
  font-size: .98rem;
  color: var(--ink);
}

.tf-base-text small {
  display: block;
  margin-top: 3px;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}

.tf-base-price { text-align: right; flex-shrink: 0; }

.tf-base-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--blue-dark);
}

.tf-base-price small { font-size: .78rem; color: var(--muted); }

/* --- Outils --- */
.tf-mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tf-mod {
  position: relative;
  display: block;
  cursor: pointer;
}

.tf-mod--wide { grid-column: 1 / -1; }

.tf-mod input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.tf-mod-body {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.tf-mod:hover .tf-mod-body {
  border-color: rgba(60, 140, 220, .5);
  transform: translateY(-1px);
}

.tf-mod input:checked + .tf-mod-body {
  background: var(--blue-pale);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 140, 220, .14);
}

.tf-mod input:focus-visible + .tf-mod-body {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.tf-mod-text { min-width: 0; flex: 1; }

.tf-mod-text strong {
  display: block;
  font-size: .94rem;
  line-height: 1.3;
  color: var(--ink);
}

.tf-mod-text small {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--muted);
}

.tf-mod-price { text-align: right; flex-shrink: 0; }

.tf-mod-price b {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--ink);
}

.tf-mod-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  color: white;
  transition: background .2s ease, border-color .2s ease;
}

.tf-mod-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.tf-mod input:checked + .tf-mod-body .tf-mod-check {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.tf-mod input:checked + .tf-mod-body .tf-mod-check svg {
  opacity: 1;
  transform: scale(1);
}

/* --- Pages supplémentaires --- */
.tf-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tf-pages-text strong { display: block; font-size: .96rem; color: var(--ink); }
.tf-pages-text small { font-size: .82rem; color: var(--muted); }

.tf-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.tf-stepper button {
  width: 46px;
  height: 46px;
  background: none;
  border: 0;
  color: var(--blue-deep);
  font: 500 1.3rem var(--font-body);
  cursor: pointer;
  transition: background .2s ease;
}

.tf-stepper button:hover:not(:disabled) { background: var(--blue-soft); }
.tf-stepper button:disabled { color: #b3bfcb; cursor: not-allowed; }
.tf-stepper button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }

.tf-stepper output {
  min-width: 50px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* --- Récapitulatif --- */
.tf-sum {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 26px;
  color: white;
  background:
    radial-gradient(circle at 92% 0%, rgba(129, 114, 221, .38), transparent 14rem),
    radial-gradient(circle at 0% 100%, rgba(60, 140, 220, .3), transparent 14rem),
    linear-gradient(165deg, #1d4c7b, #173f69 60%, #12335a);
  border-radius: 22px;
  box-shadow: 0 30px 70px -36px rgba(23, 63, 105, .75);
}

.tf-sum-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tf-sum-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.tf-sum-top em {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
}

.tf-sum-lines { margin: 18px 0 0; }

.tf-sum-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px dashed rgba(255, 255, 255, .2);
  font-size: .88rem;
  line-height: 1.4;
}

.tf-sum-lines li.is-new { animation: tfFade .35s ease; }

.tf-sum-lines span { color: rgba(255, 255, 255, .88); }
.tf-sum-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.tf-sum-totals {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.tf-sum-totals div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
}

.tf-sum-totals strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: white;
}

.tf-sum-year {
  margin-bottom: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
}

.tf-sum-year > span {
  display: block;
  font-size: .8rem;
  color: rgba(255, 255, 255, .78);
}

.tf-sum-year strong {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.tf-sum-year small {
  font-size: .78rem;
  color: rgba(255, 255, 255, .72);
}

.tf-sum-note {
  max-width: none;
  margin: 14px 0 0;
  font-size: .78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}

.tf-sum a:focus-visible,
.tf-cta a:focus-visible { outline-color: white; }

/* --- Barre mobile --- */
.tf-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -14px 34px rgba(23, 37, 54, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tf-bar small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }

.tf-bar strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.tf-bar .btn { min-height: 46px; padding: 10px 18px; font-size: .88rem; }

/* ============================================================
   COMPARATIF
   ============================================================ */
.tf-compare .section-head { max-width: 640px; }

.tf-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px -44px rgba(23, 37, 54, .3);
}

.tf-table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

.tf-table th,
.tf-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  color: var(--ink-soft);
}

.tf-table tbody tr:last-child th,
.tf-table tbody tr:last-child td { border-bottom: 0; }

.tf-table tbody th {
  width: 29%;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.tf-table thead th {
  padding: 28px 24px 22px;
  vertical-align: top;
  font-weight: 400;
  border-bottom: 1px solid var(--line-strong);
}

.tf-table thead th span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.tf-table thead th b {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--blue-deep);
}

.tf-table thead th small {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: var(--muted);
}

.tf-table .is-featured { background: var(--blue-pale); }
.tf-table thead .is-featured { box-shadow: inset 0 3px 0 var(--blue-deep); }

.tf-yes,
.tf-no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.tf-yes { background: var(--green-bg); }
.tf-no { background: var(--line); }

.tf-yes svg,
.tf-no svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-yes svg { stroke: var(--green); }
.tf-no svg { stroke: #8493a3; }

/* ============================================================
   AVIS
   ============================================================ */
.tf-proof-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.tf-proof-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.tf-proof-score b {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
}

.tf-proof-score small {
  display: block;
  margin-top: 5px;
  font-size: .84rem;
  color: var(--muted);
}

.tf-stars { display: inline-flex; gap: 3px; }
.tf-stars svg { width: 18px; height: 18px; fill: #e0a52a; }

.tf-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

.tf-review {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.tf-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tf-review-top cite {
  display: block;
  font-style: normal;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.tf-review-top small { font-size: .74rem; color: var(--muted); }

.tf-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  color: white;
  font-size: .82rem;
  font-weight: 700;
}

.tf-tone-0 { background: #2f7ccb; }
.tf-tone-1 { background: #7461d6; }
.tf-tone-2 { background: #b97f0f; }
.tf-tone-3 { background: #d9445f; }
.tf-tone-4 { background: #2a8a5b; }

.tf-review blockquote { margin: 0; flex: 1; }

.tf-review blockquote p {
  max-width: none;
  margin: 0;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.tf-review-link {
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.tf-review-link:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.tf-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}

.tf-faq-intro { position: sticky; top: 100px; }
.tf-faq-intro .section-head { margin-bottom: 28px; }

.tf-faq-list details { border-top: 1px solid var(--line-strong); }
.tf-faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }

.tf-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color .2s ease;
}

.tf-faq-list summary::-webkit-details-marker { display: none; }
.tf-faq-list summary:hover { color: var(--blue-deep); }

.tf-faq-list summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}

.tf-faq-list summary i {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue-deep);
  transition: transform .3s ease, background .2s ease, border-color .2s ease;
}

.tf-faq-list summary i::before,
.tf-faq-list summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.tf-faq-list summary i::before { width: 12px; height: 2px; }
.tf-faq-list summary i::after { width: 2px; height: 12px; }

.tf-faq-list details[open] summary { color: var(--blue-deep); }

.tf-faq-list details[open] summary i {
  transform: rotate(45deg);
  background: var(--blue-soft);
  border-color: rgba(60, 140, 220, .5);
}

.tf-faq-a { padding: 0 52px 26px 0; animation: tfFade .3s ease; }

.tf-faq-a p {
  max-width: 62ch;
  margin: 0;
  font-size: .96rem;
  line-height: 1.75;
  color: var(--muted);
}

@supports selector(::details-content) {
  .tf-faq-list details { interpolate-size: allow-keywords; }

  .tf-faq-list details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .35s ease, opacity .3s ease, content-visibility .35s allow-discrete;
  }

  .tf-faq-list details[open]::details-content { block-size: auto; opacity: 1; }
  .tf-faq-a { animation: none; }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.tf-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(68px, 9vw, 112px) 0;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(129, 114, 221, .34), transparent 30rem),
    radial-gradient(circle at 8% 100%, rgba(60, 140, 220, .25), transparent 28rem),
    #173f69;
}

.tf-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(255, 255, 255, .035), transparent 35%, rgba(255, 255, 255, .025));
  pointer-events: none;
}

.tf-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.tf-cta h2 {
  max-width: 560px;
  margin: 0;
  color: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-height: 780px) {
  .tf-sum { position: static; }
}

@media (min-width: 1021px) {
  .tf-bar { display: none !important; }
}

@media (max-width: 1200px) {
  .tf-hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 36px; }
  .tf-visual { padding: 28px 30px 40px; }
  .tf-fact { padding-left: 16px; padding-right: 16px; }
  .tf-plan { padding: 28px 24px 26px; }
  .tf-plan-ribbon { top: 24px; right: 22px; }
}

@media (max-width: 1020px) {
  .tf-plans-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  @supports (grid-template-rows: subgrid) {
    .tf-plans-grid { grid-template-rows: none; }
    .tf-plan { grid-row: auto; display: flex; }
  }

  .tf-incl-grid,
  .tf-faq-grid { grid-template-columns: 1fr; }

  .tf-cfg-grid { grid-template-columns: 1fr; }
  .tf-sum { position: static; }

  .tf-faq-intro { position: static; }
  .tf-reviews { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 900px) {
  .tf-hero { min-height: auto; padding-top: 48px; }
  .tf-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .tf-visual { width: min(100%, 500px); margin: 0 auto; }
  .tf-hero h1 { max-width: 15ch; }
  .tf-facts { width: 100%; }
}

@media (max-width: 720px) {
  .tf-mods { grid-template-columns: 1fr; }
  .tf-commit-legend { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .tf-visual { padding: 18px 22px 30px; }
  .tf-badge .icon-badge { width: 43px; height: 43px; border-radius: 12px; }
  .tf-badge .icon-badge svg { width: 19px; height: 19px; }

  .tf-facts { grid-template-columns: 1fr; }

  .tf-fact,
  .tf-fact:first-child,
  .tf-fact:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tf-fact:last-child { border-bottom: 0; }

  .tf-hero .button-row { flex-direction: column; align-items: stretch; }
  .tf-hero .btn { width: 100%; }

  .tf-base { flex-wrap: wrap; }
  .tf-base-price { width: 100%; text-align: left; padding-left: 60px; }

  .tf-mod-body { flex-wrap: wrap; }
  .tf-mod-text { flex-basis: calc(100% - 100px); }
  .tf-mod-price { order: 4; width: 100%; padding-left: 58px; text-align: left; }

  .tf-months { grid-template-columns: repeat(12, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 3px; }

  .tf-faq-a { padding-right: 0; }
  .tf-faq-list summary { font-size: 1rem; }

  .tf-cta .button-row { width: 100%; flex-direction: column; align-items: stretch; }
  .tf-cta .btn { width: 100%; }
  .tf-cta .container { align-items: flex-start; }

  /* Laisse la place à la barre fixe du configurateur */
  .tf-cfg { padding-bottom: calc(var(--section-space) + 70px); }
}