/* ===========================================================
   Sama Vente · Page tarifs (à charger après home.css)
   Bandeau bleu nuit, cartes blanches, orange pour l'action. Pas de vert.
   Sur ordinateur : tout tient dans l'écran, sans défilement.
   =========================================================== */
.tf-body { background: var(--gris); }
.tf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tf-w { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* En-tête compact */
.tf-body .hd { position: relative; background: #fff; border-bottom: 1px solid var(--bordure); }
.tf-body .hd__in { padding: .55rem 0; }
.tf-body .hd__brand img { height: 40px; }
.tf-body .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.tf-body .hd .btn { padding: .65rem 1.2rem; }

/* ---------- Bandeau : vert principal de la page d'accueil ---------- */
.tf-band { position: relative; overflow: hidden; background: var(--vert); color: var(--blanc); text-align: center; padding: clamp(18px, 3.4vh, 34px) 0 clamp(70px, 10vh, 100px); }
.tf-band::before, .tf-band::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.tf-band::before { width: 440px; height: 440px; right: -130px; top: -230px; background: var(--vert-fonce); }
.tf-band::after { width: 150px; height: 150px; left: 5%; bottom: -70px; background: var(--orange); opacity: .9; }
.tf-band .tf-w { position: relative; z-index: 1; }
.tf-band h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
.tf-band__sub { margin-top: .5rem; color: rgba(255, 255, 255, .85); font-size: 1rem; }
.tf-band__sub b { color: var(--blanc); }
.tf-eyebrow { margin: clamp(10px, 2vh, 20px) 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.tf-seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.tf-seg__o { position: relative; cursor: pointer; }
.tf-seg__o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tf-seg__o span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: .95rem; color: rgba(255, 255, 255, .88); transition: background .2s, color .2s, transform .2s; }
.tf-seg__o b { font-weight: 700; }
.tf-seg__o em { font-style: normal; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); color: var(--orange-clair); font-size: .76rem; font-weight: 800; transition: background .2s, color .2s; }
.tf-seg__o:hover span { color: var(--blanc); background: rgba(255, 255, 255, .1); }
.tf-seg__o input:checked + span { background: var(--orange); color: var(--nuit); box-shadow: 0 8px 20px -10px rgba(255, 138, 0, .9); }
.tf-seg__o input:checked + span em { background: rgba(15, 23, 42, .14); color: var(--nuit); }
.tf-seg__o input:focus-visible + span { outline: 3px solid var(--blanc); outline-offset: 2px; }

/* ---------- Cartes ---------- */
.tf-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; margin-top: clamp(-64px, -8vh, -52px); align-items: stretch; }
.tf-card { background: #fff; border-radius: 22px; padding: clamp(16px, 2.6vh, 26px) 26px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 30px 50px -30px rgba(15, 23, 42, .35); display: flex; flex-direction: column; }
.tf-h { font-size: 1.05rem; font-weight: 800; margin-bottom: clamp(6px, 1.4vh, 14px); }

/* Compteurs */
.tf-cnt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: clamp(8px, 1.6vh, 16px) 0; border-top: 1px solid var(--bordure); }
.tf-cnt__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gris); color: var(--nuit); }
.tf-cnt__ic svg { width: 23px; height: 23px; }
.tf-cnt__txt h3 { font-size: 1rem; font-weight: 700; }
.tf-cnt__txt p { color: var(--mute); font-size: .84rem; line-height: 1.4; margin-top: 1px; }
.tf-cnt__txt small { display: block; margin-top: 4px; color: #B35F00; font-size: .78rem; font-weight: 700; }

.tf-step { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 15px; background: var(--gris); }
.tf-step button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 11px; background: #fff; color: var(--nuit); cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); transition: transform .15s, background .15s, opacity .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tf-step button svg { width: 17px; height: 17px; }
.tf-step button:hover:not(:disabled) { background: var(--orange); }
.tf-step button:active:not(:disabled) { transform: scale(.9); }
.tf-step button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.tf-val { display: block; min-width: 50px; height: 40px; overflow: hidden; text-align: center; font: 800 1.5rem/40px var(--font-titre); font-variant-numeric: tabular-nums; }
.tf-val span { display: inline-block; }
.tf-val .up { animation: tfUp .26s cubic-bezier(.2, .8, .2, 1) both; }
.tf-val .down { animation: tfDown .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tfUp { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tfDown { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Détail du prix mensuel */
.tf-break { margin: 6px 0 0; padding: clamp(8px, 1.6vh, 14px) 16px; border-radius: 14px; background: var(--gris); display: grid; gap: clamp(2px, .6vh, 6px); font-size: .86rem; }
.tf-break div { display: flex; justify-content: space-between; gap: 12px; }
.tf-break dt { color: var(--mute); }
.tf-break dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Inclus : sous la carte de gauche */
.tf-leftcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tf-more { padding: 4px 4px 0; }
.tf-more .tf-h { margin-bottom: 10px; }
.tf-incl { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-incl li { padding: 6px 12px; background: #fff; border: 1px solid var(--bordure); border-radius: 999px; font-size: .84rem; font-weight: 600; }

/* Récapitulatif */
.tf-rows { margin: 0; display: grid; }
.tf-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: clamp(4px, .95vh, 9px) 0; border-top: 1px solid var(--bordure); font-size: .88rem; line-height: 1.25; }
.tf-rows dt { color: var(--mute); }
.tf-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.is-struck { text-decoration: line-through; color: var(--mute); font-weight: 500; }
.tf-rows__eco dd { color: var(--mute); transition: color .25s; }
.tf-rows__eco.is-on dt, .tf-rows__eco.is-on dd { color: #9A5200; }
.tf-rows__eco b { animation: tfPop .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tfPop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.tf-badge { font-style: normal; display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--orange-clair); color: #9A5200; font-size: .78rem; font-weight: 800; animation: tfPop .3s both; }
.tf-badge--off { background: var(--gris); color: var(--mute); animation: none; }

.tf-final { display: grid; gap: 1px; margin-top: auto; padding: clamp(10px, 1.8vh, 16px) 18px; border-radius: 16px; background: var(--vert); color: var(--blanc); }
.tf-final > span { font-size: .8rem; color: rgba(255, 255, 255, .8); font-weight: 600; }
.tf-final strong { font: 800 clamp(1.9rem, 4.6vh, 2.6rem)/1.1 var(--font-titre); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tf-final small { margin-left: 8px; font: 700 .85rem var(--font-texte); color: rgba(255, 255, 255, .8); }
.tf-final em { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .8); }
.tf-hint { margin: clamp(6px, 1.2vh, 10px) 0 0; text-align: center; color: var(--mute); font-size: .82rem; }
.tf-cta { width: 100%; margin-top: clamp(8px, 1.4vh, 12px); min-height: 52px; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.tf-note { margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--orange-clair); color: #7A4100; font-size: .82rem; font-weight: 600; }
.tf-note[hidden] { display: none; }

.tf-trust { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(1080px, 100% - 2.5rem); margin: clamp(8px, 1.8vh, 18px) auto 0; text-align: center; color: var(--mute); font-size: .84rem; }
.tf-trust svg { width: 16px; height: 16px; flex: none; color: var(--orange-fonce); }
.tf-bar { display: none; }

/* ---------- Ordinateur : jamais de défilement ---------- */
@media (min-width: 960px) {
    .tf-body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
    .tf-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .tf-stage { flex: 0 1 auto; min-height: 0; }
}
@media (min-width: 960px) and (max-height: 780px) { .tf-leftcol { align-self: start; } .tf-more .tf-h { margin-bottom: 6px; } .tf-incl { gap: 6px; } .tf-incl li { padding: 4px 10px; font-size: .78rem; } .tf-band__sub { display: none; } .tf-cnt__txt p { display: none; } .tf-band h1 { font-size: 1.8rem; } }
@media (min-width: 960px) and (max-height: 660px) { .tf-eyebrow { display: none; } .tf-hint { display: none; } .tf-trust { display: none; } .tf-seg__o span { min-height: 38px; } }
@media (min-width: 960px) and (max-height: 560px) { .tf-body { height: auto; overflow: auto; } }

/* ---------- Tablette et téléphone : une colonne ---------- */
@media (max-width: 959px) {
    .tf-stage { grid-template-columns: 1fr; margin-top: -56px; gap: 14px; }
    .tf-leftcol { display: contents; }
    .tf-left { order: 1; }
    .tf-recap { order: 2; }
    .tf-more { order: 3; padding: 6px 2px 0; }
    .tf-card { padding: 20px; }
    .tf-body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .tf-trust { margin: 16px auto 22px; }
    .tf-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--bordure); box-shadow: 0 -12px 28px -16px rgba(15, 23, 42, .3); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
    .tf-bar.is-hidden { transform: translateY(110%); }
    .tf-bar small { display: block; color: var(--mute); font-size: .74rem; line-height: 1.2; }
    .tf-bar b { font: 800 1.25rem var(--font-titre); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .tf-bar .btn { min-height: 48px; padding: 0 1.5rem; }
}
@media (max-width: 720px) {
    /* en-tête : logo, lien « Se connecter », bouton orange */
    .tf-body .hd__nav { display: none; }
    .tf-body .hd__in { gap: .4rem; padding: .5rem 0; }
    .tf-body .hd__brand img { height: 34px; }
    .tf-body .hd__in > .btn--ghost { margin-left: auto; border-color: transparent; padding: .55rem .6rem; font-size: .85rem; white-space: nowrap; }
    .tf-body .hd__in > .btn--orange { padding: .6rem 1rem; font-size: .85rem; white-space: nowrap; }

    /* bandeau */
    .tf-band { padding: 20px 0 78px; }
    .tf-band::before { width: 300px; height: 300px; right: -120px; top: -170px; }
    .tf-band::after { width: 110px; height: 110px; left: -30px; bottom: -50px; }
    .tf-band h1 { font-size: 1.55rem; line-height: 1.15; }
    .tf-band__sub { margin-top: .45rem; font-size: .88rem; }
    .tf-eyebrow { margin: 14px 0 8px; font-size: .68rem; }
    .tf-seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 3px; padding: 4px; }
    .tf-seg__o span { flex-direction: column; justify-content: center; gap: 4px; min-height: 54px; padding: 6px 2px; text-align: center; font-size: .9rem; }
    .tf-seg__o em { font-size: .7rem; padding: 1px 6px; }

    /* cartes */
    .tf-stage { margin-top: -52px; }
    .tf-card { padding: 16px; border-radius: 20px; }
    .tf-h { font-size: 1.02rem; margin-bottom: 8px; }
    .tf-cnt { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 14px 0; align-items: start; }
    .tf-cnt__ic { width: 42px; height: 42px; border-radius: 12px; }
    .tf-cnt__txt p { font-size: .82rem; }
    .tf-cnt__txt small { font-size: .78rem; }
    .tf-step { grid-column: 1 / -1; justify-content: space-between; padding: 5px; }
    .tf-step .tf-val { flex: 1; font-size: 1.7rem; }
    .tf-step button { width: 56px; height: 46px; border-radius: 12px; }
    .tf-break { padding: 12px 14px; }
    .tf-rows > div { padding: 9px 0; font-size: .9rem; }
    .tf-final { padding: 14px 16px; }
    .tf-final strong { font-size: 2.3rem; }
    .tf-cta { min-height: 54px; }
    .tf-hint { font-size: .8rem; }
    .tf-incl { gap: 6px; }
    .tf-incl li { padding: 5px 11px; font-size: .8rem; }
    .tf-trust { align-items: flex-start; text-align: left; font-size: .8rem; margin-top: 12px; }
    .tf-trust svg { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .tf-step button, .tf-seg__o span, .tf-bar { transition: none !important; }
    .tf-val .up, .tf-val .down, .tf-rows__eco b, .tf-badge { animation: none !important; }
}