/* ═══════════════════════════════════════════════════════════════════════════
   PAGE TARIFS (/tarifs) — refonte d'octobre 2026
   ───────────────────────────────────────────────────────────────────────────
   Objectif : une page qui se lit en quelques secondes. Trois onglets (site,
   réservation, plaque NFC), une famille à l'écran, trois cartes au plus,
   quatre points par carte. Le détail est replié dans « Comparer ».

   Préfixe `tf-` partout : rien n'hérite des anciennes classes de cartes
   (`.tp`, `#pricing-grid` dans mobile.css…) et rien ne fuit ailleurs.
   ⚠️ `#pricing-grid` et `#resa-grid` gardent leur id (mobile.js y pose des
   pastilles de carrousel), mais mobile.css visait l'ANCIENNE grille : la
   nouvelle annule son défilement horizontal plus bas (section « Mobile »).

   Couleurs : celles du site (encre, papier) et les quatre teintes d'appoint
   de couleurs.css (--c1 à --c4), par petites touches.
   ═══════════════════════════════════════════════════════════════════════════ */

.tf {
  --tf-ink: var(--ink, #212224);
  --tf-ink-2: var(--ink-2, #413f3c);
  --tf-muted: var(--muted, #6e6b66);
  --tf-line: var(--border, #e6e1d8);
  --tf-paper: var(--paper, #faf8f5);
  --tf-ombre: 0 1px 2px rgba(33, 34, 36, .04), 0 14px 34px -16px rgba(33, 34, 36, .18);
  display: block;
  padding: 74px 0 0;
  background: var(--tf-paper);
  color: var(--tf-ink);
}
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.tf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.tf-hero { padding: clamp(48px, 7vw, 84px) 0 0; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--tf-paper) 100%); }
.tf-hero__k { justify-content: center; }
.tf-hero__t {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.tf-hero__t span { color: var(--tf-muted); }
.tf-hero__s { margin: 20px auto 0; max-width: 54ch; color: var(--tf-muted); font-size: 1.08rem; line-height: 1.6; }

/* Les onglets : trois grandes pastilles, nom + prix d'appel */
.tf-tabs {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px;
  margin: 40px auto 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--tf-line);
  border-radius: 18px;
  box-shadow: var(--tf-ombre);
}
.tf-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 22px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--tf-ink-2);
  font: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tf-tab:hover { background: #f4f2ee; }
.tf-tab__n { font-weight: 600; font-size: .98rem; }
.tf-tab__p { font-size: .8rem; color: var(--tf-muted); }
.tf-tab[aria-selected="true"] { background: var(--tf-ink); color: #fff; }
.tf-tab[aria-selected="true"] .tf-tab__p { color: rgba(255, 255, 255, .7); }
.tf-tab:focus-visible { outline: 2px solid var(--tf-ink); outline-offset: 2px; }

/* ── Panneaux ────────────────────────────────────────────────────────────── */
.tf-panel { padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
/* Avec JavaScript, un seul panneau à la fois. Sans, ils s'empilent. */
.tf-js .tf-panel[hidden] { display: none; }

.tf-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tf-bar__t { margin: 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.tf-bar__s { margin: 8px 0 0; max-width: 60ch; color: var(--tf-muted); line-height: 1.55; }

/* Sélecteur de durée */
.tf-sw { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #efece7; }
.tf-sw__o {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--tf-ink-2);
  font-family: inherit; font-weight: 600; font-size: .88rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tf-sw__o[aria-pressed="true"] { background: #fff; color: var(--tf-ink); box-shadow: 0 1px 3px rgba(33, 34, 36, .12); }
.tf-sw__eco { padding: 3px 7px; border-radius: 999px; background: var(--c2-bg, #e7f5ee); color: var(--c2, #19875a); font-size: .74rem; }

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.tf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: #fff;
  border: 1px solid var(--tf-line);
  border-radius: 22px;
  transition: box-shadow .25s, transform .25s;
}
.tf-card:hover { box-shadow: var(--tf-ombre); }
.tf-card--vedette { border: 1.5px solid var(--tf-ink); box-shadow: var(--tf-ombre); }
.tf-card__badge {
  position: absolute; top: -12px; left: 28px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--tf-ink); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.tf-card__n { margin: 0; font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; }
.tf-card__pour { margin: 6px 0 0; color: var(--tf-muted); font-size: .95rem; min-height: 2.9em; }

.tf-price { display: flex; align-items: flex-start; gap: 4px; margin: 22px 0 0; line-height: 1; color: var(--tf-ink); }
.tf-price__m { font-size: 3.1rem; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tf-price__u { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; font-size: 1.25rem; font-weight: 600; }
.tf-price__u small { font-size: .8rem; font-weight: 500; color: var(--tf-muted); }
.tf-price__note { margin: 10px 0 0; min-height: 2.6em; font-size: .84rem; color: var(--tf-muted); line-height: 1.4; }
.tf-price__note a { color: inherit; }

.tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.tf-btn:active { transform: scale(.98); }
.tf-btn[hidden] { display: none; }
.tf-btn svg { transition: transform .2s; }
.tf-btn:hover svg { transform: translateX(3px); }
.tf-card .tf-btn { margin-top: 20px; width: 100%; }
.tf .tf-btn--plein { background: var(--tf-ink); color: #fff; }
.tf .tf-btn--plein:hover { background: #000; }
.tf .tf-btn--blanc { background: #fff; color: var(--tf-ink); }
.tf .tf-btn--blanc:hover { background: #ece9e4; }
.tf .tf-btn--ligne { border-color: rgba(255, 255, 255, .35); color: #fff; }
.tf .tf-btn--ligne:hover { border-color: #fff; }

.tf-list { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--tf-line); display: grid; gap: 12px; }
.tf-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .93rem; color: var(--tf-ink-2); line-height: 1.45; }
.tf-list svg { margin-top: 2px; color: var(--c2, #19875a); }
.tf-card__more { margin-top: auto; padding-top: 20px; align-self: flex-start; font-size: .86rem; color: var(--tf-muted); text-decoration: underline; text-underline-offset: 3px; }
.tf-card__more:hover { color: var(--tf-ink); }

/* Plaque NFC : une carte seule, en deux colonnes */
.tf-card--seule { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px 48px; max-width: 880px; margin-inline: auto; padding: 36px 40px; }
.tf-seule__g { display: flex; flex-direction: column; }
.tf-seule__g .tf-btn { align-self: flex-start; width: auto; }
.tf-seule__d { margin: 0; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid var(--tf-line); align-content: center; }

/* ── Inclus partout (sites) ───────────────────────────────────────────────── */
.tf-inclus { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tf-inclus li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--tf-line); border-radius: 14px; font-size: .9rem; font-weight: 500; color: var(--tf-ink-2); }
.tf-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.tf-ic--1 { background: var(--c1-bg, #edf1fd); color: var(--c1, #2f5bd3); }
.tf-ic--2 { background: var(--c2-bg, #e7f5ee); color: var(--c2, #19875a); }
.tf-ic--3 { background: var(--c3-bg, #fdf2e2); color: var(--c3, #b76d0c); }
.tf-ic--4 { background: var(--c4-bg, #f0ecfc); color: var(--c4, #6a4bd1); }

.tf-mini { margin: 24px 0 0; color: var(--tf-muted); font-size: .88rem; line-height: 1.6; max-width: 80ch; }
.tf-mini a { color: var(--tf-ink); }

/* ── Comparatif replié ─────────────────────────────────────────────────────── */
.tf-cmp { margin-top: 28px; border: 1px solid var(--tf-line); border-radius: 16px; background: #fff; }
.tf-cmp summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .98rem;
}
.tf-cmp summary::-webkit-details-marker { display: none; }
.tf-cmp summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.tf-cmp[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.tf-cmp__scroll { overflow-x: auto; padding: 0 22px 18px; }
.tf-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.tf-table th, .tf-table td { padding: 12px 14px; text-align: center; border-top: 1px solid #f0ede7; }
.tf-table thead th { border-top: 0; font-weight: 700; font-size: .92rem; }
.tf-table tbody th { text-align: left; font-weight: 500; color: var(--tf-ink-2); }
.tf-table td { color: var(--tf-ink-2); }
.tf-table td.y { color: var(--c2, #19875a); font-weight: 600; }
.tf-table td.n { color: #c3beb6; }
.tf-table .is-v { background: #f7f5f1; }

/* ── Bon à savoir ─────────────────────────────────────────────────────────── */
.tf-savoir { padding: clamp(56px, 7vw, 88px) 0; background: #fff; border-top: 1px solid var(--tf-line); }
.tf-savoir__t { margin: 0 0 28px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; }
.tf-savoir__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tf-savoir__grid div { padding: 22px 24px; border-radius: 16px; background: var(--tf-paper); border: 1px solid #efebe4; }
.tf-savoir__grid div:nth-child(1) { border-top: 3px solid var(--c1, #2f5bd3); }
.tf-savoir__grid div:nth-child(2) { border-top: 3px solid var(--c2, #19875a); }
.tf-savoir__grid div:nth-child(3) { border-top: 3px solid var(--c3, #b76d0c); }
.tf-savoir h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.tf-savoir p { margin: 0; color: var(--tf-muted); font-size: .92rem; line-height: 1.6; }
.tf-savoir .tf-savoir__cgv { margin-top: 22px; font-size: .88rem; }
.tf-savoir .tf-savoir__cgv a { color: var(--tf-ink); }

/* ── Appel final ──────────────────────────────────────────────────────────── */
.tf-fin { padding: clamp(48px, 6vw, 72px) 0; background: var(--tf-ink); color: #fff; }
.tf-fin__in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.tf-fin h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
.tf-fin p { margin: 8px 0 0; color: rgba(255, 255, 255, .7); }
.tf-fin__b { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tf-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tf-card__pour, .tf-price__note { min-height: 0; }
  .tf-inclus { grid-template-columns: 1fr 1fr; }
  .tf-savoir__grid { grid-template-columns: 1fr; }
  .tf-card--seule { grid-template-columns: 1fr; padding: 30px 28px; }
  .tf-seule__d { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--tf-line); }
  /* ⚠️ mobile.css transformait `#pricing-grid` en carrousel horizontal (pour
     l'ancienne page). Les cartes s'empilent désormais : on annule. */
  .tf #pricing-grid { display: grid; overflow: visible; scroll-snap-type: none; padding: 0; margin-inline: auto; }
  .tf #pricing-grid > * { flex: initial; width: auto; min-width: 0; scroll-snap-align: none; }
}
@media (max-width: 640px) {
  .tf-tabs { display: grid; grid-template-columns: 1fr; width: 100%; }
  .tf-tab { flex-direction: row; justify-content: space-between; padding: 12px 16px; }
  .tf-bar { align-items: flex-start; }
  .tf-sw { width: 100%; }
  .tf-sw__o { flex: 1; justify-content: center; padding: 10px 8px; font-size: .82rem; }
  .tf-inclus { grid-template-columns: 1fr; }
  .tf-card { padding: 28px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf *, .tf *::before, .tf *::after { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FENÊTRE DE PAIEMENT (assets/js/checkout.js) — reprise telle quelle
   ═══════════════════════════════════════════════════════════════════════════ */
.checkout-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center;
  justify-content: center; padding: 16px; background: rgba(20,20,22,.6); backdrop-filter: blur(3px); }
.checkout-modal[hidden] { display: none; }
.checkout-modal__dialog { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 5px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.checkout-modal__head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; border-bottom: 1px solid #ececec; position: sticky; top: 0; background: #fff; }
.checkout-modal__brand { font-weight: 600; font-size: .95rem; color: #242628; }
.checkout-modal__brand b { color: var(--brand, #b41824); }
.checkout-modal__close { border: 0; background: #f4f4f5; width: 34px; height: 34px; border-radius: 5px;
  cursor: pointer; font-size: 15px; color: #555; line-height: 1; }
.checkout-modal__close:hover { background: #ececec; }
.checkout-modal__loading { padding: 48px 16px; text-align: center; color: #757575; font-size: .95rem; }
#checkout-container { padding: 8px; min-height: 220px; }
