/* Orle Edge · page Tarifs v3 (agent principal, 04/12). Montée par outils/monte-page.py depuis pages/tarifs.corps.html (outils/tarifs-v3.py).
   Relevé : Castle, Vercel, Resend, Supabase, Cloudflare, DDoS-Guard. Épurée comme l'accueil :
   1. premier écran de l'accueil (titre à gauche, règle et boutons à droite, bande de garanties) ;
   2. les quatre formules dans une seule boîte à colonnes soudées ; carte en deux étages (prix, usage, bouton / « Tout Solo, plus : ») ;
      rangées alignées d'une colonne à l'autre (sous-grille) ; le prix domine, l'usage se lit sous le prix en deux tons ;
   3. « À l'usage » : tarifs unitaires, exemple chiffré, curseur qui met en avant le moins cher ;
   4. comparatif dans un accordéon ; 5. FAQ commune ; 6. bande finale. */

.tf-hero h1 { max-width: 13ch; }
.tf-hero .o-sur { margin-bottom: 16px; }
.tf-hero .o-hero-cote b, .tf-usage b, .tf-note b, .o-repli-c b { font-weight: 500; color: var(--o-texte); }
.tf-hero .o-hero-cote em, .tf-usage em, .o-repli-c em { font-style: italic; color: var(--o-texte); }

/* ---------- Les formules : une boîte, quatre colonnes soudées ---------- */
.tf-formules { padding: 56px var(--g, 32px) 0; }
.tf-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); margin: 0; padding: 0; list-style: none;
  border-radius: var(--o-r-3); background: var(--o-surface); box-shadow: inset 0 0 0 1px var(--o-filet-fort), 0 30px 60px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.tf-f { position: relative; display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: 28px 26px 30px; transition: background var(--o-moyen) var(--o-courbe); }
.tf-f + .tf-f { box-shadow: inset 1px 0 0 var(--o-filet); }
.tf-f:hover { background: rgba(255, 255, 255, .015); }
.tf-f--conseil { background: var(--o-surface-2); }
.tf-f--conseil:hover { background: var(--o-surface-2); }
.tf-f--conseil::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 171, 255, .7), transparent); }
.tf-f-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.tf-f h3 { margin: 0; font: 500 15px/1.2 var(--o-texte-f); color: var(--o-texte); }
.tf-badge { padding: 4px 8px; border-radius: var(--o-r-1); background: var(--o-bleu-pale); font: 500 11.5px/1 var(--o-texte-f); color: var(--o-bleu-texte); white-space: nowrap; }
.tf-prix { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 0; }
.tf-prix .m { font: 400 48px/1 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.045em; color: var(--o-texte); font-variant-numeric: tabular-nums; }
.tf-prix .u { font-size: 13px; color: var(--o-texte-3); }
.tf-inclus { margin: 18px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--o-texte-2); }
.tf-inclus b { font-weight: 500; color: var(--o-texte); }
.tf-puis { display: block; margin-top: 2px; font-size: 13.5px; color: var(--o-texte-3); }
.tf-puis em { font-style: italic; }
.tf-pour { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--o-filet); font-size: 14px; line-height: 1.55; color: var(--o-texte-2); text-wrap: pretty; }
.tf-cta { margin-top: 20px; width: 100%; }
.tf-liste { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--o-filet-fort); }
.tf-liste > p { margin: 0 0 12px; font-size: 13px; color: var(--o-texte-3); }
.tf-liste ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tf-liste li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; color: var(--o-texte-2); }
.tf-liste li svg { width: 16px; height: 16px; margin-top: 1px; color: var(--o-texte-3); }
.tf-f--conseil .tf-liste li svg { color: var(--o-bleu-texte); }
.tf-note { margin: 18px 0 0; font-size: 13.5px; color: var(--o-texte-3); text-align: center; }

/* ---------- À l'usage : tarifs unitaires, exemple, curseur ---------- */
.tf-usage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; padding: 120px var(--g, 32px) 0; }
.tf-usage h2, .tf-comp h2 { margin: 14px 0 0; font: var(--o-titre-graisse) clamp(28px, 2.6cqw, 38px)/1.1 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.03em; color: var(--o-texte); text-wrap: balance; }
.tf-usage-txt > p:not(.o-sur) { margin: 16px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.6; color: var(--o-texte-2); text-wrap: pretty; }
.tf-unit { margin: 28px 0 0; border-top: 1px solid var(--o-filet); }
.tf-unit > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--o-filet); }
.tf-unit dt { font-size: 14.5px; color: var(--o-texte-2); }
.tf-unit dd { margin: 0; font-size: 14px; color: var(--o-texte-3); white-space: nowrap; }
.tf-unit dd .o-chiffre { font-size: 15px; color: var(--o-texte); }
.tf-usage .tf-exemple { font-size: 14px !important; }
/* Le curseur et les quatre totaux */
.tf-estim { padding: 28px; border-radius: var(--o-r-3); background: var(--o-surface); box-shadow: inset 0 0 0 1px var(--o-filet-fort), 0 30px 60px -40px rgba(0, 0, 0, .9); }
.tf-curseur { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; }
.tf-curseur .l { font-size: 14px; color: var(--o-texte-2); }
.tf-curseur .v { font: 400 32px/1 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.03em; color: var(--o-texte); font-variant-numeric: tabular-nums; }
.tf-curseur input { grid-column: 1 / -1; width: 100%; height: 28px; margin: 14px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 46%; }
.tf-curseur input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--o-texte) var(--p), rgba(255, 255, 255, .12) var(--p)); }
.tf-curseur input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.tf-curseur input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--o-texte); }
.tf-curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 2px 8px rgba(0, 0, 0, .5); transition: box-shadow var(--o-court) var(--o-courbe); }
.tf-curseur input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.tf-curseur input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 255, 255, .16), 0 2px 8px rgba(0, 0, 0, .5); }
.tf-curseur input:focus-visible { outline: none; }
.tf-curseur input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--o-surface), 0 0 0 5px var(--o-bleu-texte); }
.tf-curseur input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--o-surface), 0 0 0 5px var(--o-bleu-texte); }
.tf-estim-l { display: grid; gap: 2px; margin: 22px 0 0; padding: 0; list-style: none; }
.tf-estim-l li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 12px 14px; border-radius: var(--o-r-2); transition: background var(--o-moyen) var(--o-courbe); }
.tf-estim-l b { font-weight: 500; font-size: 14.5px; color: var(--o-texte); }
.tf-estim-l small { grid-column: 1; font-size: 12.5px; color: var(--o-texte-3); }
.tf-estim-l .t { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 450 17px/1 var(--o-mono); color: var(--o-texte-2); font-variant-numeric: tabular-nums; }
.tf-estim-l li.mieux { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--o-filet-fort); }
.tf-estim-l li.mieux .t { color: var(--o-texte); }
.tf-estim-l li.mieux b::after { content: "Le moins cher"; margin-left: 10px; padding: 3px 7px; border-radius: var(--o-r-1); background: rgba(67, 211, 154, .12); font: 500 11px/1 var(--o-texte-f); color: var(--o-vert); vertical-align: 2px; }
.tf-estim-n { margin: 14px 0 0; font-size: 12.5px; color: var(--o-texte-3); }

/* ---------- Comparatif, dans un accordéon ---------- */
.tf-comp { padding: 120px var(--g, 32px) 0; }
.tf-comp-repli { margin-top: 28px; border-top: 1px solid var(--o-filet); }
.tf-comp-repli > summary { font-size: 15px; }
.tf-comp-repli::details-content { width: 100%; min-width: 0; }
.tf-table { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 8px; }
.tf-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tf-table thead th { padding: 14px 12px; text-align: left; font: 500 14px/1.2 var(--o-texte-f); color: var(--o-texte); vertical-align: bottom; }
.tf-table thead th small { display: block; margin-top: 4px; font: 450 12.5px/1 var(--o-mono); color: var(--o-texte-3); }
.tf-table thead th.c { color: var(--o-bleu-texte); }
.tf-table tbody th { padding: 13px 12px 13px 0; text-align: left; font-weight: 450; color: var(--o-texte-2); width: 26%; }
.tf-table td { padding: 13px 12px; color: var(--o-texte); }
.tf-table tbody tr { border-top: 1px solid var(--o-filet); }
.tf-table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.tf-table { position: relative; }
.tf-oui { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--o-vert); }
.tf-oui svg { width: 16px; height: 16px; }
.tf-comp .o-repli-c { max-width: none; padding-right: 0; }

/* Apparition au défilement (site-univers.js observe .o-revele) */
@media (prefers-reduced-motion: reduce) { .tf-f, .tf-estim-l li, .tf-curseur input::-webkit-slider-thumb { transition: none; } }

@container (max-width: 1100px) {
  .tf-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(14, auto); }
  .tf-f:nth-child(3) { box-shadow: inset 0 1px 0 var(--o-filet); }
  .tf-f:nth-child(4) { box-shadow: inset 1px 0 0 var(--o-filet), inset 0 1px 0 var(--o-filet); }
  .tf-usage { grid-template-columns: 1fr; }
}
@container (max-width: 900px) {
  .tf-formules { padding: 40px 16px 0; }
  .tf-usage, .tf-comp { padding: 80px 16px 0; }
  .tf-f { padding: 24px 20px 26px; }
  .tf-prix .m { font-size: 42px; }
  .tf-estim { padding: 20px; }
}
@container (max-width: 640px) {
  .tf-table table { min-width: 620px; }
  .tf-table tbody th, .tf-table thead td { position: sticky; left: 0; z-index: 1; background: var(--o-fond); box-shadow: 1px 0 0 var(--o-filet); width: 132px; min-width: 132px; padding-right: 10px; font-size: 13px; }
  .tf-grille { display: flex; flex-direction: column; }
  .tf-f { display: flex; flex-direction: column; }
  .tf-f + .tf-f, .tf-f:nth-child(3), .tf-f:nth-child(4) { box-shadow: inset 0 1px 0 var(--o-filet); }
  .tf-unit > div { flex-direction: column; gap: 4px; }
}
