/* =========================================================================
   Récompenses Triangle — carte virtuelle 3D, offres, calculateur, FAQ
   Préfixe : .tr-   (s’appuie sur les jetons et composants de app.css)
   ========================================================================= */

@property --rx { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ry { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --mx { syntax: '<number>'; inherits: true; initial-value: 50; }
@property --my { syntax: '<number>'; inherits: true; initial-value: 50; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.tr-red { color: var(--red-600); }
.tr-nw { white-space: nowrap; }
.tr-head { max-width: 640px; margin-bottom: 18px; }
.tr-head .h2 { margin-top: 6px; }
.tr-head p { margin-top: 8px; text-wrap: pretty; }
.tr-demo-note { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 650; color: var(--ink-3); }
.tr-head .h2:focus { outline: none; }

/* ---------- Héros ---------- */
.tr-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 16px 0 34px;
  background:
    radial-gradient(90% 60% at 50% 46%, rgb(227 25 31 / 0.30) 0%, rgb(227 25 31 / 0) 62%),
    radial-gradient(120% 70% at 50% 0%, #1b2240 0%, rgb(27 34 64 / 0) 70%),
    var(--night);
  color: #fff;
}
.tr-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tr-orb { position: absolute; border-radius: 50%; will-change: transform; }
.tr-orb--1 {
  width: 520px; height: 520px; left: 50%; top: 18%; margin-left: -260px;
  background: radial-gradient(closest-side, rgb(255 59 64 / 0.34), rgb(255 59 64 / 0));
  animation: tr-drift 16s var(--ease-in-out) infinite alternate;
}
.tr-orb--2 {
  width: 360px; height: 360px; right: -140px; bottom: -120px;
  background: radial-gradient(closest-side, rgb(255 138 61 / 0.20), rgb(255 138 61 / 0));
  animation: tr-drift 20s var(--ease-in-out) -6s infinite alternate-reverse;
}
@keyframes tr-drift { from { transform: translate3d(-30px, -10px, 0) scale(1); } to { transform: translate3d(36px, 24px, 0) scale(1.12); } }
.tr-hero__tri {
  position: absolute; left: 50%; top: 92px; width: 640px; margin-left: -320px;
  color: rgb(255 255 255 / 0.06);
}
.tr-hero__inner {
  display: grid; gap: 16px;
  grid-template-areas: 'head' 'visual' 'body';
}
.tr-hero__head { grid-area: head; }
.tr-hero__visual { grid-area: visual; min-width: 0; }
.tr-hero__body { grid-area: body; }
.tr-hero__eyebrow { color: #ff8a8d; }
.tr-tri-ico { width: 11px; height: 11px; }
.tr-hero__title { font-size: clamp(2.45rem, 1.5rem + 4.6vw, 4.6rem); margin-top: 10px; max-width: 13ch; }
.tr-hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #ff4b4f 0%, #ff8a5c 55%, #ffc27a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tr-hero__body { display: flex; flex-direction: column; }
.tr-hero__sub { margin-top: 20px; max-width: 38ch; color: rgb(255 255 255 / 0.84); font-size: var(--fs-lg); line-height: 1.45; text-wrap: pretty; }
/* Mobile : l’appel à l’action suit directement la carte (visible sans défiler) */
.tr-hero__ctas { order: -1; display: grid; gap: 10px; }
.tr-perks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.tr-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 650; color: rgb(255 255 255 / 0.78); }
.tr-perks .icon { color: #ff6b6e; }

/* ---------- Carte de membre 3D ---------- */
.tr-stage {
  --rx: 0; --ry: 0; --mx: 50; --my: 50;
  position: relative; width: min(100%, 360px); aspect-ratio: 1.586; margin: 6px auto 0;
  perspective: 1100px;
  animation: tr-card-in 1200ms var(--ease-out) 120ms both;
}
@keyframes tr-card-in {
  from { opacity: 0; transform: translateY(46px) scale(0.9); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.tr-stage__glow {
  position: absolute; left: 10%; right: 10%; bottom: -16%; height: 34%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(227 25 31 / 0.75), rgb(227 25 31 / 0));
  filter: blur(16px);
  transform: translate3d(calc(var(--ry) * -1.6px), calc(var(--rx) * 1px), 0) scaleX(calc(1 - var(--rx) * 0.01));
  opacity: 0.9; pointer-events: none;
}
.tr-card {
  position: absolute; inset: 0; margin: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  will-change: transform;
  touch-action: pan-y;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.tr-card__flip {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.25, 1.15, 0.35, 1);
}
.tr-card.is-flipped .tr-card__flip { transform: rotateY(180deg); }
.tr-face {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  border-radius: 18px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: rotateY(0deg) translateZ(0.1px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 0 0 1px rgb(255 255 255 / 0.16) inset, 0 24px 50px rgb(0 0 0 / 0.45);
}
.tr-face--front {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 18px 15px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(255 81 86 / 0.55) 0%, rgb(255 81 86 / 0) 46%),
    linear-gradient(135deg, #e8222a 0%, #d3141b 32%, #b10f17 66%, #860a10 100%);
  text-shadow: 0 1px 2px rgb(70 0 0 / 0.28);
}
.tr-face--back {
  transform: rotateY(180deg) translateZ(0.1px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 14px 16px 14px;
  background: radial-gradient(120% 120% at 100% 0%, #3a3d44 0%, #1d1f24 45%, #0e0f12 100%);
}
.tr-face__wm { position: absolute; right: -20%; top: 12%; width: 66%; z-index: -1; transform: rotate(-8deg); }
.tr-face__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tr-face__brand { display: inline-flex; align-items: center; gap: 9px; }
.tr-face__mark { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.2)); }
.tr-face__word { display: flex; flex-direction: column; font-weight: 900; font-stretch: 122%; font-size: 1.08rem; letter-spacing: 0.01em; line-height: 1; text-transform: uppercase; }
.tr-face__word small { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; margin-bottom: 3px; }
.tr-face__tag {
  padding: 4px 9px; border-radius: 999px;
  background: rgb(60 0 4 / 0.2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.tr-face__bal { display: flex; flex-direction: column; }
.tr-face__lbl { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tr-face__num {
  font-size: clamp(2.1rem, 1.2rem + 5.2vw, 2.7rem); font-weight: 850; font-stretch: 112%;
  letter-spacing: -0.03em; line-height: 1; margin-top: 4px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgb(80 0 0 / 0.35);
}
.tr-face__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 0.76rem; font-weight: 750; white-space: nowrap; }
.tr-face__virt { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }

/* Reflets holographiques (déplacés par transform : aucun repeint) */
.tr-face__holo {
  position: absolute; top: 0; bottom: 0; left: -80%; width: 260%; z-index: 2; pointer-events: none;
  background:
    linear-gradient(108deg,
      rgb(255 255 255 / 0) 30%,
      rgb(255 120 220 / 0.55) 38%, rgb(120 220 255 / 0.55) 44%, rgb(170 255 170 / 0.5) 50%,
      rgb(255 240 140 / 0.55) 56%, rgb(255 255 255 / 0) 64%);
  mix-blend-mode: color-dodge; opacity: 0.32;
  transform: translate3d(calc((var(--mx) - 50) * -0.7%), 0, 0);
}
.tr-face__glare {
  position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0.1) 18%, rgb(255 255 255 / 0) 34%);
  mix-blend-mode: soft-light;
  transform: translate3d(calc((var(--mx) - 50) * 0.5%), calc((var(--my) - 50) * 0.5%), 0);
}
.tr-face--back .tr-face__glare { mix-blend-mode: overlay; opacity: 0.6; }

/* Verso */
.tr-back__top { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }
.tr-back__mark { width: 22px; height: 22px; }
.tr-back__code { display: grid; gap: 4px; padding: 10px 12px 7px; border-radius: 10px; background: #fff; color: var(--ink); }
.tr-back__bars { display: block; height: 44px; }
.tr-back__bars svg { width: 100%; height: 100%; }
.tr-back__digits { font-size: 0.66rem; font-weight: 750; letter-spacing: 0.22em; text-align: center; font-variant-numeric: tabular-nums; }
.tr-back__note { font-size: 0.7rem; line-height: 1.35; color: rgb(255 255 255 / 0.72); }

/* Outils sous la carte */
.tr-tools { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tr-tool {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; color: #fff; font-size: 0.85rem; font-weight: 700; white-space: nowrap;
  background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  transition: background-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.tr-tool:hover { background: rgb(255 255 255 / 0.14); }
.tr-tool:active { transform: scale(0.96); }
.tr-tool .icon { transition: transform var(--dur-3) var(--ease-out); }
.tr-tool[data-flip].is-turned .icon { transform: rotate(-180deg); }
.tr-hint { margin-top: 8px; text-align: center; font-size: 0.75rem; line-height: 1.4; color: rgb(255 255 255 / 0.6); text-wrap: balance; }

/* ---------- Comment ça marche ---------- */
.tr-steps { display: grid; }
.tr-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: start; gap: 16px; padding-bottom: 26px; }
.tr-step:last-child { padding-bottom: 0; }
.tr-step:not(:last-child)::before {
  content: ''; position: absolute; left: 27px; top: 60px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--red) 0%, var(--line-2) 100%);
  transform-origin: top; transform: scaleY(0);
  transition: transform 1000ms var(--ease-out) 260ms;
}
.tr-step.is-in::before { transform: scaleY(1); }
.tr-step__num { position: relative; width: 56px; height: 50px; filter: drop-shadow(0 8px 14px rgb(227 25 31 / 0.3)); }
.tr-step__num::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, #ff4b4f, var(--red) 45%, var(--red-700));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 4px;
}
.tr-step__num span { position: relative; display: block; padding-top: 6px; text-align: center; color: #fff; font-weight: 900; font-stretch: 115%; font-size: 1.2rem; line-height: 1; }
.tr-step__body { padding-top: 2px; }
.tr-step__body p { margin-top: 6px; color: var(--ink-3); font-size: 0.94rem; line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.tr-step__body .h3 { text-wrap: balance; }
.tr-snip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; max-width: min(100%, 340px);
  padding: 7px 14px 7px 7px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-1);
  font-size: 0.82rem; font-weight: 650; color: var(--ink-3);
}
.tr-snip__t { min-width: 0; line-height: 1.25; }
.tr-snip__ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--well); color: var(--ink-2); }
.tr-snip b { margin-left: auto; padding-left: 6px; color: var(--ink); font-weight: 850; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-snip b.tr-snip__plus { color: var(--red-600); }

/* ---------- Offres ---------- */
.tr-offers__head { display: grid; gap: 4px; margin-bottom: 14px; }
.tr-offers__head .tr-head { margin-bottom: 10px; }
.tr-meter { padding: 12px 12px 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.tr-meter__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tr-meter__txt { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: var(--ink-3); }
.tr-meter__txt:focus { outline: none; }
.tr-meter__count { display: inline-flex; align-items: baseline; flex: none; line-height: 1; font-variant-numeric: tabular-nums; }
.tr-meter__n { display: inline-block; min-width: 1ch; font-size: 1.9rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.tr-meter__of { font-size: 1rem; font-weight: 800; color: var(--muted); margin-left: 1px; }
.tr-meter__lbl { font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.tr-meter__ok { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; animation: tr-pop 520ms var(--spring); }
.tr-meter.is-full .tr-meter__lbl { color: var(--ink); }
.tr-meter__n.bump { animation: bump 520ms var(--spring); }
.tr-meter__all { flex: none; min-height: 44px; }
.tr-meter__bar > span { transition: width 700ms var(--spring); }
.tr-meter.is-full .tr-meter__bar > span { background: linear-gradient(90deg, var(--green), #2fa866); }

.tr-offer-list { display: grid; gap: 12px; }
.tr-offer-skel { height: 168px; border-radius: var(--radius); }
.tr-offer__card {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr);
  height: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.tr-offer.is-on .tr-offer__card { box-shadow: 0 0 0 2px rgb(11 122 59 / 0.9), var(--shadow-1); }
.tr-offer.is-fresh .tr-offer__card { animation: tr-card-pop 640ms var(--spring); }
@keyframes tr-card-pop { 40% { transform: scale(1.018); } }
.tr-offer__media { position: relative; display: grid; place-items: center; min-height: 100%; overflow: hidden; isolation: isolate; }
.tr-offer__media picture { width: 92%; }
.tr-offer__media img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.28)); transition: transform var(--dur-3) var(--ease-out); }
.tr-offer__media > .icon { width: 40px; height: 40px; }
.tr-offer__mult {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  padding: 3px 8px; border-radius: 8px;
  background: var(--red); color: #fff; box-shadow: 0 4px 10px rgb(227 25 31 / 0.35);
  font-size: 0.88rem; font-weight: 900; font-stretch: 112%; letter-spacing: -0.01em; white-space: nowrap;
}
.tr-offer__stamp {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9), 0 6px 14px rgb(11 122 59 / 0.4);
  transform: scale(0); opacity: 0;
  transition: transform 520ms var(--spring), opacity var(--dur-2);
}
.tr-offer.is-on .tr-offer__stamp { transform: scale(1); opacity: 1; }

/* Ambiances des visuels d’offre */
.tr-tone--night { background: radial-gradient(110% 90% at 50% 30%, #2b3456 0%, #111832 60%, var(--night) 100%); color: #fff; }
.tr-tone--pine { background: radial-gradient(110% 90% at 50% 30%, #2a6a51 0%, #12392b 70%, #0b261c 100%); color: #fff; }
.tr-tone--red { background: radial-gradient(110% 90% at 30% 20%, #ff4b4f 0%, var(--red) 45%, var(--red-700) 100%); color: #fff; }
.tr-tone--snow { background: radial-gradient(110% 90% at 50% 30%, #ffffff 0%, #e9eef5 60%, #d9e1ec 100%); }
.tr-tone--steel { background: radial-gradient(110% 90% at 50% 35%, #fbfaf8 0%, var(--well) 100%); }
.tr-tone--gold { background: radial-gradient(110% 90% at 40% 25%, #ffe2a1 0%, var(--gold) 60%, #d8962a 100%); color: var(--ink); }
.tr-tone--red .tr-offer__mult { background: #fff; color: var(--red-700); box-shadow: 0 4px 10px rgb(0 0 0 / 0.18); }
.tr-tone--gold .tr-offer__mult { background: var(--ink); box-shadow: 0 4px 10px rgb(0 0 0 / 0.2); }

.tr-offer__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 12px 12px 14px; }
.tr-offer__exp { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 750; color: var(--muted); }
.tr-offer__exp.is-soon { color: var(--red-600); }
.tr-offer__t { font-size: 1rem; font-weight: 800; font-stretch: 104%; line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.tr-offer__s { font-size: 0.8rem; color: var(--muted); line-height: 1.35; text-wrap: pretty; }
.tr-offer__actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 8px; }
.tr-offer__link {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 2px 0 8px;
  font-size: 0.85rem; font-weight: 750; color: var(--ink-3); text-decoration: none; white-space: nowrap;
}
.tr-offer__link:hover { color: var(--red-600); }

/* Bouton « Activer » */
.tr-act {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 112px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.92rem; font-weight: 800; font-stretch: 104%;
  transition: background-color 320ms var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow 320ms;
}
.tr-act:hover { background: var(--red); }
.tr-act:active { transform: scale(0.94); }
.tr-act.is-busy { background: var(--ink-3); cursor: progress; }
.tr-act.is-on { background: var(--green); cursor: default; box-shadow: 0 6px 16px rgb(11 122 59 / 0.28); }
.tr-act.is-on:active { transform: none; }
.tr-act.is-pop { animation: tr-pop 560ms var(--spring); }
@keyframes tr-pop { 0% { transform: scale(0.9); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.tr-act__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.3); border-top-color: #fff; animation: tr-spin 700ms linear infinite; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-check { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tr-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-pop .tr-check path { animation: tr-draw 420ms var(--ease-out) 120ms both; }
@keyframes tr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Éclats de confettis triangulaires */
.tr-burst { position: fixed; z-index: 85; width: 0; height: 0; pointer-events: none; }
.tr-burst i { position: absolute; left: 0; top: 0; width: 9px; height: 8px; clip-path: polygon(0 0, 100% 0, 50% 100%); }

.tr-offers__foot { display: flex; justify-content: center; margin-top: 10px; }
.tr-reset {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  font-size: 0.82rem; font-weight: 700; color: var(--muted); border-radius: 999px;
}
.tr-reset:hover { color: var(--ink); background: rgb(20 21 24 / 0.05); }

/* ---------- Calculateur ---------- */
.tr-calc {
  display: grid; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-2);
}
.tr-calc__controls { padding: 22px 18px 20px; }
.tr-calc__controls .h2 { margin-top: 6px; }
.tr-range { margin-top: 22px; }
.tr-range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tr-range__head label { font-weight: 750; font-size: 0.95rem; line-height: 1.3; }
.tr-range__per { font-weight: 600; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.tr-range__head output { flex: none; font-size: 1.3rem; font-weight: 850; font-stretch: 108%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tr-range__scale { display: flex; justify-content: space-between; margin-top: -4px; font-size: 0.72rem; font-weight: 650; color: var(--muted); }

.tr-slider {
  --p: 50%;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 44px; margin: 2px 0 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.tr-slider:focus-visible { outline: none; }
.tr-slider::-webkit-slider-runnable-track {
  height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, var(--red) 0, #ff5a3d var(--p), var(--well) var(--p), var(--well) 100%);
}
.tr-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -10px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgb(20 21 24 / 0.08), 0 4px 12px rgb(20 21 24 / 0.24), inset 0 0 0 7px #fff, inset 0 0 0 30px var(--red);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2);
}
.tr-slider:active::-webkit-slider-thumb { transform: scale(1.14); }
.tr-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--focus), inset 0 0 0 7px #fff, inset 0 0 0 30px var(--red); }
.tr-slider::-moz-range-track { height: 10px; border-radius: 99px; background: var(--well); }
.tr-slider::-moz-range-progress { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--red), #ff5a3d); }
.tr-slider::-moz-range-thumb {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgb(20 21 24 / 0.08), 0 4px 12px rgb(20 21 24 / 0.24), inset 0 0 0 7px #fff, inset 0 0 0 30px var(--red);
}
.tr-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--focus), inset 0 0 0 7px #fff, inset 0 0 0 30px var(--red); }

.tr-switch {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin-top: 20px;
  padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--well); text-align: left;
  transition: background-color var(--dur-2), box-shadow var(--dur-2);
}
.tr-switch:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tr-switch[aria-checked='true'] { background: var(--red-50); box-shadow: inset 0 0 0 1.5px rgb(227 25 31 / 0.25); }
.tr-switch__txt { flex: 1; min-width: 0; }
.tr-switch__txt b { display: block; font-size: 0.94rem; line-height: 1.3; }
.tr-switch__txt small { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.tr-switch__track { position: relative; flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--line-2); transition: background-color var(--dur-2); }
.tr-switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgb(20 21 24 / 0.25);
  transition: transform 360ms var(--spring);
}
.tr-switch[aria-checked='true'] .tr-switch__track { background: var(--red); }
.tr-switch[aria-checked='true'] .tr-switch__track::after { transform: translateX(20px); }

.tr-calc__live {
  position: fixed; z-index: 55; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 10px);
  width: min(calc(100% - 2 * var(--gutter)), 520px);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 16px; background: rgb(20 21 24 / 0.94); color: #fff; box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-out), visibility 0s;
}
.tr-calc__live.is-hidden { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; visibility: hidden; transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-out), visibility 0s var(--dur-3); }
.tr-calc__live svg { width: 22px; height: 22px; flex: none; }
.tr-calc__live-lbl { font-size: 0.78rem; font-weight: 700; color: rgb(255 255 255 / 0.72); }
.tr-calc__live b { margin-left: auto; font-size: 1.35rem; font-weight: 850; font-stretch: 110%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tr-calc__live small { font-size: 0.78rem; font-weight: 650; color: rgb(255 255 255 / 0.72); }

.tr-calc__result {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px 18px 20px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #ff3b40 0%, var(--red) 34%, var(--red-700) 100%);
}
.tr-calc__result::before {
  content: ''; position: absolute; right: -60px; top: -40px; width: 260px; height: 230px; z-index: -1; opacity: 0.14;
  background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotate(-10deg);
}
.tr-calc__lbl { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tr-calc__fig { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.tr-calc__approx { align-self: center; font-size: 1.8rem; font-weight: 700; opacity: 0.75; transform: translateY(-0.12em); }
.tr-calc__num { font-size: clamp(3.2rem, 2.2rem + 6vw, 4.8rem); font-weight: 850; font-stretch: 114%; letter-spacing: -0.035em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.tr-calc__per { font-size: 0.95rem; font-weight: 700; margin-top: 2px; }
.tr-calc__month { margin-top: 2px; font-size: 0.85rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.tr-stackbar {
  display: flex; height: 12px; margin-top: 18px; overflow: hidden;
  border-radius: 99px; background: rgb(0 0 0 / 0.22); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.2);
}
.tr-stackbar span { display: block; height: 100%; width: 0; transition: width 620ms var(--ease-out); }
.tr-stackbar [data-seg='store'] { background: #fff; }
.tr-stackbar [data-seg='gas'] { background: rgb(255 255 255 / 0.55); }
.tr-stackbar [data-seg='boost'] { background: #ffd27a; }
.tr-legend { display: grid; gap: 2px; margin-top: 12px; }
.tr-legend li { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 0.85rem; font-weight: 650; transition: opacity var(--dur-2); }
.tr-legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tr-legend [data-leg='store'] i { background: #fff; }
.tr-legend [data-leg='gas'] i { background: rgb(255 255 255 / 0.55); }
.tr-legend [data-leg='boost'] i { background: #ffd27a; }
.tr-legend li b { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.tr-legend li.is-off i { opacity: 0.35; }

.tr-equiv { margin-top: 16px; }
.tr-equiv__card {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px;
  padding: 10px 12px 10px 10px; border-radius: 16px; text-decoration: none; color: #fff;
  background: rgb(60 0 4 / 0.2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24);
  transition: background-color var(--dur-2), transform var(--dur-1) var(--ease-out);
  animation: tr-swap 420ms var(--ease-out);
}
a.tr-equiv__card:hover { background: rgb(60 0 4 / 0.3); }
a.tr-equiv__card:active { transform: scale(0.98); }
@keyframes tr-swap { from { opacity: 0; transform: translateY(6px); } }
.tr-equiv__img { flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red); }
.tr-equiv__img img { width: 48px; height: 48px; object-fit: contain; }
.tr-equiv__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-equiv__txt small { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.85); white-space: nowrap; }
.tr-equiv__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.88rem; font-weight: 700; line-height: 1.25; margin-top: 3px; text-wrap: pretty; }
.tr-equiv__price { margin-top: 3px; font-weight: 850; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.tr-equiv__go { flex: none; opacity: 0.8; transition: transform var(--dur-2) var(--ease-out); }
a.tr-equiv__card:hover .tr-equiv__go { transform: translateX(3px); }
.tr-calc__note {
  display: flex; gap: 8px; padding: 14px 18px 18px;
  font-size: 0.76rem; line-height: 1.5; color: var(--muted);
  border-top: 1px solid var(--line);
}
.tr-calc__note .icon { margin-top: 2px; color: var(--muted-2); }
.tr-calc__note b { color: var(--ink-3); }

/* ---------- Où accumuler ---------- */
.tr-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tr-where__item {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  min-height: 138px; padding: 14px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.tr-where__item:has(a):hover { box-shadow: var(--shadow-2); }
.tr-where__item:has(a):active { transform: scale(0.98); }
.tr-where__item > strong, .tr-where__link strong { font-size: 0.95rem; line-height: 1.25; letter-spacing: -0.005em; }
.tr-where__item:not(.tr-where__item--gas) > span:not(.tr-where__ico) { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.tr-where__ico { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); flex: none; }
.tr-where__link { display: block; line-height: 1.25; text-decoration: none; color: inherit; }
.tr-where__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tr-where__go { position: absolute; top: 14px; right: 14px; color: var(--muted-2); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2); }
.tr-where__item:hover .tr-where__go { transform: translateX(3px); color: var(--red-600); }
.tr-where__item--gas {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 16px;
  background: radial-gradient(120% 140% at 100% 0%, #2a2d34 0%, var(--ink) 60%); color: #fff;
}
.tr-where__item--gas .tr-where__ico { margin: 0; background: var(--red); color: #fff; }
.tr-where__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-where__txt strong { font-size: 1rem; line-height: 1.25; }
.tr-where__item--gas .tr-where__txt span { color: rgb(255 255 255 / 0.72); font-size: 0.8rem; line-height: 1.35; }
.tr-where__fig { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.tr-where__fig b { font-size: 1.7rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; color: #ff6b6e; }
.tr-where__fig small { margin-top: 4px; font-size: 0.7rem; font-weight: 700; color: rgb(255 255 255 / 0.65); }
.tr-where__note { margin-top: 12px; font-size: 0.75rem; }

/* ---------- Appel à l’adhésion ---------- */
.tr-join {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 18px; padding: 28px 20px 22px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #ff3b40 0%, var(--red) 34%, var(--red-700) 100%);
  box-shadow: 0 18px 40px rgb(163 14 21 / 0.28);
}
.tr-join__wm { position: absolute; right: -50px; top: -30px; width: 240px; z-index: -1; transform: rotate(-10deg); }
.tr-join__copy .h2 { margin-top: 6px; max-width: 14ch; }
.tr-join__copy p { margin-top: 8px; max-width: 36ch; }
.tr-join__btn { width: 100%; min-width: 0; padding-inline: 20px; }

/* ---------- FAQ ---------- */
.tr-faq__intro .h2 { margin-top: 6px; }
.tr-faq__lead { margin-top: 8px; font-size: 0.9rem; }
/* Numéro fictif : affiché, jamais composable */
.tr-faq__call { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.9rem; color: var(--ink-3); }
.tr-faq__call svg { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 12px; background: var(--well); color: var(--muted); }
.tr-faq__call b { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-faq__call small { display: block; font-size: 0.74rem; color: var(--muted); }
.tr-faq__list { display: grid; gap: 10px; margin-top: 18px; }
.tr-q {
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-2);
  interpolate-size: allow-keywords;
}
.tr-q[open] { box-shadow: var(--shadow-2); }
.tr-q summary {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 12px;
  list-style: none; cursor: pointer; border-radius: var(--radius);
}
.tr-q summary::-webkit-details-marker { display: none; }
.tr-q summary:active .tr-q__ico { transform: scale(0.92); }
.tr-q__ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--well); color: var(--ink-3);
  transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-1);
}
.tr-q[open] .tr-q__ico { background: var(--red); color: #fff; }
.tr-q__t { flex: 1; font-weight: 750; line-height: 1.3; }
.tr-q__chev { color: var(--muted); transition: transform var(--dur-3) var(--ease-out); }
.tr-q[open] .tr-q__chev { transform: rotate(180deg); }
.tr-q__a { display: grid; gap: 10px; padding: 0 18px 18px 66px; color: var(--ink-3); font-size: 0.94rem; line-height: 1.55; }
.tr-q__a strong { color: var(--ink); }
.tr-q::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete; }
.tr-q[open]::details-content { block-size: auto; }

/* ---------- Feuille d’adhésion (démo) ---------- */
.tr-js { display: grid; gap: 12px; padding-top: 2px; }
.tr-jsteps { display: flex; gap: 6px; margin: 0 0 10px; }
.tr-jsteps span { flex: 1; height: 4px; border-radius: 99px; background: var(--well); overflow: hidden; position: relative; }
.tr-jsteps span::after { content: ''; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease-out); }
.tr-jsteps span.is-on::after { transform: scaleX(1); }
.tr-js__hero { display: grid; place-items: center; padding: 4px 0 2px; }
.tr-mini {
  position: relative; overflow: hidden; isolation: isolate;
  width: 184px; aspect-ratio: 1.586; padding: 11px 12px; border-radius: 12px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(255 81 86 / 0.55) 0%, rgb(255 81 86 / 0) 46%),
    linear-gradient(135deg, #e8222a 0%, #d3141b 32%, #b10f17 66%, #860a10 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16) inset, 0 18px 36px rgb(163 14 21 / 0.35);
  text-shadow: 0 1px 2px rgb(70 0 0 / 0.28);
  transform: rotateX(8deg) rotateY(-14deg) rotateZ(-2deg);
}
.tr-mini::after {
  content: ''; position: absolute; inset: 0 -120%; z-index: 2; pointer-events: none;
  background: linear-gradient(108deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0.5) 50%, rgb(255 255 255 / 0) 60%);
  mix-blend-mode: soft-light;
  animation: tr-sweep 2.8s var(--ease-in-out) 400ms infinite;
}
@keyframes tr-sweep { from { transform: translateX(-30%); } 60%, to { transform: translateX(30%); } }
.tr-mini__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; font-stretch: 122%; font-size: 0.85rem; text-transform: uppercase; }
.tr-mini__brand svg { width: 24px; height: 24px; }
.tr-mini__wm { position: absolute; right: -16%; top: -10%; width: 70%; z-index: -1; transform: rotate(-8deg); }
.tr-mini__foot { font-size: 0.66rem; font-weight: 750; }
.tr-mini__big { font-size: 1.25rem; font-weight: 850; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; }
.tr-mini__big small { display: block; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-bottom: 3px; }
.tr-mini.skeleton { background: linear-gradient(90deg, var(--well) 25%, #f8f6f2 50%, var(--well) 75%); background-size: 200% 100%; box-shadow: none; transform: none; }
.tr-mini.skeleton::after { display: none; }
.tr-mini.is-born { animation: tr-born 900ms var(--spring) both; }
@keyframes tr-born {
  from { opacity: 0; transform: translateY(30px) rotateX(50deg) rotateY(-30deg) scale(0.7); }
  to { opacity: 1; transform: rotateX(8deg) rotateY(-14deg) rotateZ(-2deg); }
}
.tr-js__title { font-size: 1.3rem; font-weight: 850; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.15; text-align: center; text-wrap: balance; }
.tr-js__title:focus { outline: none; }
.tr-js__txt { text-align: center; color: var(--ink-3); font-size: 0.94rem; max-width: 40ch; margin-inline: auto; }
.tr-js__perks { display: grid; }
.tr-js__perks li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.tr-js__perks li:last-child { border-bottom: 0; }
.tr-js__perks .tr-js__ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); }
.tr-js__perks b { display: block; color: var(--ink); font-size: 0.94rem; }
.tr-js__lbl { font-weight: 750; font-size: 0.92rem; margin-bottom: 8px; }
.tr-js__pref .chip { min-height: 44px; }
.tr-js__fine { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 0.75rem; color: var(--muted); text-align: center; }
.tr-js__ctas { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.tr-js__ctas .btn { padding-inline: 22px; }
.tr-js--done { gap: 12px; min-height: calc(100% - 14px); align-content: center; padding-bottom: 12px; }
.tr-js--done .tr-js__hero { padding: 10px 0 4px; }
.tr-jtasks { display: grid; gap: 4px; }
.tr-jtasks li { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 0.92rem; font-weight: 650; color: var(--muted); transition: color var(--dur-2); }
.tr-jtasks li::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-2);
  transition: background-color var(--dur-2), box-shadow var(--dur-2);
}
.tr-jtasks li.is-doing { color: var(--ink); }
.tr-jtasks li.is-doing::before { box-shadow: none; border: 3px solid var(--well); border-top-color: var(--red); animation: tr-spin 700ms linear infinite; }
.tr-jtasks li.is-done { color: var(--ink); }
.tr-jtasks li.is-done::before {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: none; animation: tr-pop 460ms var(--spring);
}
.tr-demo {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--green-50); color: var(--green); box-shadow: inset 0 0 0 1px rgb(11 122 59 / 0.18);
  font-size: 0.82rem; line-height: 1.35;
}
.tr-demo b { display: block; font-size: 0.95rem; }
.tr-demo span { color: #2d5a3f; }
.tr-demo .icon { flex: none; width: 28px; height: 28px; }
.tr-js .progress > span { transition: width 520ms var(--ease-out); }

/* ---------- Petits écrans ---------- */
@media (max-width: 374px) {
  .tr-hero__title { font-size: 2.2rem; }
  .tr-offer__card { grid-template-columns: 92px minmax(0, 1fr); }
  .tr-act { min-width: 104px; padding: 0 12px; }
  .tr-q__a { padding-left: 18px; }
  .tr-face--front { padding: 14px 15px 13px; }
  .tr-face__mark { width: 30px; height: 30px; }
  .tr-meter__txt { font-size: 0.86rem; }
  .tr-where__item--gas { flex-wrap: wrap; }
}

/* ---------- Tablette ---------- */
@media (min-width: 600px) {
  .tr-hero__ctas { grid-template-columns: auto auto; justify-content: start; }
  .tr-hero__body { text-align: left; }
  .tr-offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-where { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-join { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 36px; }
  .tr-join__btn { width: auto; }
}

/* ---------- Bureau ---------- */
@media (min-width: 900px) {
  .tr-hero { padding: 0; }
  .tr-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: 'head visual' 'body visual';
    grid-template-rows: auto 1fr;
    column-gap: 64px; row-gap: 18px; padding-block: 76px 72px;
  }
  .tr-hero__head { align-self: end; }
  .tr-hero__body { align-self: start; }
  .tr-hero__sub { margin-top: 0; }
  .tr-hero__ctas { order: 0; margin-top: 26px; }
  .tr-hero__visual { align-self: center; }
  .tr-hero__tri { left: auto; right: -40px; top: 30px; margin: 0; width: 720px; }
  .tr-orb--1 { left: auto; right: 8%; top: 8%; margin: 0; width: 640px; height: 640px; }
  .tr-hero__title { font-size: clamp(3.2rem, 1.4rem + 3.2vw, 4.3rem); max-width: 11ch; }
  .tr-stage { width: min(100%, 460px); }
  .tr-face { border-radius: 22px; }
  .tr-face--front { padding: 22px 24px 20px; }
  .tr-face__mark { width: 42px; height: 42px; }
  .tr-face__word { font-size: 1.3rem; }
  .tr-face__num { font-size: 3.4rem; }
  .tr-face__foot { font-size: 0.85rem; }
  .tr-back__bars { height: 64px; }
  .tr-face--back { padding: 20px 22px; }
  .tr-back__note { font-size: 0.8rem; }

  .tr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .tr-step { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; }
  .tr-step:not(:last-child)::before {
    left: 72px; right: -16px; top: 22px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--red) 0%, var(--line-2) 100%);
    transform-origin: left; transform: scaleX(0);
  }
  .tr-step.is-in::before { transform: scaleX(1); }

  .tr-offers__head { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: end; gap: 32px; margin-bottom: 20px; }
  .tr-offers__head .tr-head { margin-bottom: 0; }
  .tr-offer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tr-offer__card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tr-offer__media { aspect-ratio: 16 / 9; min-height: 0; }
  .tr-offer__media picture { width: auto; height: 82%; aspect-ratio: 1; }
  .tr-offer__media img { height: 100%; }
  .tr-offer__card:hover .tr-offer__media img { transform: translateY(-4px) scale(1.03); }
  .tr-offer__media > .icon { width: 64px; height: 64px; }
  .tr-offer__mult { left: 14px; top: 14px; font-size: 1.15rem; padding: 4px 10px; }
  .tr-offer__stamp { right: 14px; bottom: 14px; width: 38px; height: 38px; }
  .tr-offer__body { padding: 16px 18px 16px; gap: 6px; }
  .tr-offer__t { font-size: 1.12rem; }
  .tr-offer__s { font-size: 0.86rem; }
  .tr-offer-skel { height: 380px; }

  .tr-calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .tr-calc__live { display: none; }
  .tr-calc__controls { padding: 40px 40px 32px; }
  .tr-calc__result { padding: 40px 36px 32px; justify-content: center; }
  .tr-calc__note { grid-column: 1 / -1; padding: 16px 40px 20px; }

  .tr-where { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tr-where__item { padding: 18px; min-height: 160px; }
  .tr-where__item--gas { grid-column: span 2; gap: 18px; padding: 22px 24px; }
  .tr-where__item--gas .tr-where__ico { width: 52px; height: 52px; border-radius: 14px; }
  .tr-where__item--gas .tr-where__txt strong { font-size: 1.2rem; }
  .tr-where__item--gas .tr-where__txt span { font-size: 0.88rem; max-width: 34ch; }
  .tr-where__fig b { font-size: 2.6rem; }
  .tr-where__fig small { font-size: 0.8rem; }

  .tr-join { padding: 48px 56px; }
  .tr-join__wm { width: 360px; right: 18%; top: -60px; }

  .tr-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
  .tr-faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
  .tr-faq__list { margin-top: 0; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .tr-stage { animation: none; }
  .tr-orb { animation: none; }
  .tr-mini::after { animation: none; display: none; }
  .tr-step:not(:last-child)::before { transform: none; }
}

/* Hauteur stable de la feuille d’adhésion entre les étapes */
#sheet-adherer { height: min(92dvh, 760px); }
@media (min-width: 900px) { #sheet-adherer { height: min(86dvh, 760px); } }

/* Feuille d’adhésion : écrans courts (iPhone SE, iPhone 13) — tout tient sans défiler */
@media (max-width: 899px) and (max-height: 700px) {
  .tr-mini { width: 156px; padding: 9px 10px; border-radius: 11px; }
  .tr-mini__brand { font-size: 0.74rem; gap: 6px; }
  .tr-mini__brand svg { width: 20px; height: 20px; }
  .tr-mini__big { font-size: 1.08rem; }
  .tr-mini__foot { font-size: 0.6rem; }
  .tr-js__perks li { padding: 7px 0; }
}
