/* ==========================================================================
   Satofly — Tunnel de réservation (passagers · paiement · suivi)
   Spécifique à la surface. Réutilise les tokens de satofly.css.
   Ne jamais éditer satofly.css depuis ici.
   ========================================================================== */

/* ---- Fond commun sombre (photo d'ambiance + voile tunnel + halo) ---------
   La photo est passée par les gabarits (--sf-tunnel-photo = url(slots/tunnel))
   pour rester remplaçable en déposant un fichier, sans toucher à la CSS. */
.sf-tunnel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--creme);
  background:
    radial-gradient(900px 420px at 84% 6%, rgba(235, 175, 134, 0.22), transparent 68%),
    var(--veil-tunnel),
    var(--sf-tunnel-photo, none) center top / cover no-repeat,
    radial-gradient(120% 120% at 70% 8%, rgba(138, 180, 184, 0.34), transparent 60%),
    linear-gradient(165deg, var(--sarcelle-900) 0%, var(--encre) 70%);
  background-color: var(--encre);
}
/* Le tunnel est un couloir : ni navigation de site, ni pied de page à
   4 colonnes — autant de sorties. L'en-tête réduit .sf-thead les remplace.
   (base.html est partagé : le masquage se fait ici, pas là-bas.) */
body.sf-tunnel-body { background: var(--encre); }
body.sf-tunnel-body > .site-header,
body.sf-tunnel-body > .site-footer,
body.sf-tunnel-body > .nav-drawer { display: none; }
/* Bandeau des messages flash : aligné sur la largeur du tunnel (1180) et
   posé sur le fond encre, au-dessus du couloir. */
body.sf-tunnel-body > main > .wrap:first-child {
  position: relative; z-index: 2; max-width: var(--w-tunnel);
}

/* En-tête réduit du tunnel (logo + réassurance) */
.sf-thead { position: relative; z-index: 2; padding: 22px 0; }
.sf-thead-in {
  max-width: var(--w-tunnel); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}
.sf-thead-logo { text-decoration: none; display: inline-flex; }
.sf-thead-secure {
  margin-left: auto; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 13px; line-height: 1.3; color: rgba(249, 245, 236, 0.8);
}
.sf-thead-secure .sf-icon { color: var(--abricot-500); flex: none; }
@media (max-width: 560px) {
  .sf-thead-in { gap: 12px; }
  .sf-thead-secure { margin-left: 0; font-size: 12px; }
}

.sf-tunnel-inner {
  position: relative;
  z-index: 1;
  padding-top: 12px;
  padding-bottom: 84px;
}
@media (max-width: 720px) {
  .sf-tunnel-inner { padding-bottom: 56px; }
}

/* Utilitaire : libellé réservé aux lecteurs d'écran.
   (À remonter dans satofly.css — cf. rapport ; dupliqué ici pour que le
   tunnel ne dépende pas de sf-results.css, qu'il ne charge pas.) */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Fil d'étapes (3 pastilles reliées) --------------------------------- */
.sf-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  margin-bottom: 26px;
}
.sf-step {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; line-height: 1;
  color: var(--creme-66); background: transparent; text-decoration: none;
  border-radius: var(--r-pill); padding: 12px 18px;
  transition: background .15s ease-out, color .15s ease-out;
}
/* Une étape déjà franchie est un bouton de retour (la maquette parle de
   « 3 boutons pastille ») ; une étape à venir reste inerte. */
a.sf-step { cursor: pointer; }
a.sf-step:hover { background: var(--glass-10); color: var(--creme); }
a.sf-step:active { transform: scale(0.98); }
.sf-step[aria-disabled="true"] { cursor: default; }
.sf-step.on { color: var(--creme); background: var(--glass-14); }
.sf-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 12px;
  background: var(--glass-14); color: var(--creme-76);
}
.sf-step.on .n, .sf-step.done .n { background: var(--abricot-500); color: var(--encre); }
.sf-step.done { color: var(--creme-86); }
.sf-step .n .sf-icon { color: var(--encre); }
.sf-step-sep { width: 26px; height: 2px; background: rgba(249, 245, 236, 0.22); }

/* ---- Colonnes : panneau verre + rail récap ------------------------------ */
.sf-cols {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start;
}
.sf-main {
  flex: 1 1 600px; min-width: 0; padding: 34px;
  background: rgba(249, 245, 236, 0.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
}
.sf-rail { flex: 0 1 340px; min-width: 280px; position: sticky; top: 24px; }
/* Point de rupture des colonnes du tunnel : ~1100 px (README « Responsive »).
   L'empilement suit l'ordre du document — le formulaire reste en premier. */
@media (max-width: 1100px) {
  .sf-rail { position: static; flex-basis: 100%; }
}
@media (max-width: 560px) { .sf-main { padding: 22px; } }

.sf-h1 { font-size: 34px; letter-spacing: -0.035em; margin: 0 0 8px; }
@media (max-width: 560px) { .sf-h1 { font-size: 27px; } }
.sf-lede { font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--creme-76); margin: 0 0 30px; }

/* ---- Blocs sombres (voyageurs, e-mail, remboursement, paiement) --------- */
.sf-block {
  background: rgba(3, 31, 37, 0.5);
  border-radius: var(--r-card); padding: 24px; margin-bottom: 16px;
}
.sf-block-h {
  font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--abricot-500); margin-bottom: 20px;
}
.sf-block[hidden] { display: none; }

/* Champs crème sur bloc sombre */
.sf-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
}
.sf-f { display: block; }
.sf-f-l {
  display: block; font-weight: 700; font-size: 10px; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--creme-66); margin-bottom: 9px;
}
.sf-in {
  display: block; width: 100%;
  background: var(--creme); color: var(--encre);
  border: 0; border-radius: 12px; padding: 14px 16px;
  font-family: var(--ui); font-weight: 700; font-size: 16px; line-height: 1.2;
  outline: none;
}
.sf-in.mono { font-family: var(--mono); font-weight: 500; }
.sf-in::placeholder { color: var(--gris); font-weight: 400; }
.sf-in:focus-visible { box-shadow: 0 0 0 3px rgba(235, 175, 134, 0.55); }
.sf-hint { margin: 12px 0 0; font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--creme-76); }
.sf-hint strong { color: var(--creme); font-weight: 700; }

/* Bouton discret (ajouter un passager) */
.sf-add {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 2px 0 22px; padding: 10px 16px;
  font-family: var(--ui); font-weight: 700; font-size: 13px;
  color: var(--creme); background: var(--glass-10);
  border: 0; border-radius: var(--r-pill); cursor: pointer;
}
.sf-add:hover { background: var(--glass-12); }
.sf-add[hidden] { display: none; }

/* Sélecteur d'actif (radios en pilule), groupé PAR RÉSEAU. Avec plus de vingt
   couples jeton/réseau, une liste à plat serait illisible — et le réseau est
   justement ce que le client doit lire en premier. */
.sf-nets { display: flex; flex-direction: column; gap: 16px; }
.sf-net-grp { display: flex; flex-direction: column; gap: 8px; }
.sf-net-h {
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--creme-66);
}
.sf-assets { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-asset { position: relative; }
.sf-asset input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.sf-asset-lbl {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 11px 17px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--glass-10); color: var(--creme-86);
  transition: background .15s ease-out, color .15s ease-out;
}
.sf-asset-lbl .nm { font-weight: 700; font-size: 13px; line-height: 1.1; }
.sf-asset-lbl .net { font-family: var(--mono); font-weight: 500; font-size: 10.5px; opacity: 0.72; }
.sf-asset input:checked + .sf-asset-lbl { background: var(--creme); color: var(--encre); }
.sf-asset input:focus-visible + .sf-asset-lbl { box-shadow: 0 0 0 3px rgba(235, 175, 134, 0.55); }

/* Sélecteur de paiement (paypick) : deux champs déroulants « Devise » puis
   « Réseau », le motif des plateformes d'échange. Champs crème comme les
   autres entrées du tunnel, options avec logo + nom + coche. <details>
   natif : fonctionne sans JavaScript, satofly.js n'ajoute que le confort. */
.sf-pp {
  display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 460px;
}
.sf-ppf { min-width: 0; }
.sf-dd { position: relative; }
.sf-dd summary { list-style: none; }
.sf-dd summary::-webkit-details-marker { display: none; }
.sf-dd-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--creme); color: var(--encre);
  border-radius: 12px; padding: 11px 14px; cursor: pointer;
  transition: box-shadow .15s ease-out;
}
.sf-dd-btn:hover { box-shadow: 0 0 0 2px rgba(235, 175, 134, 0.45); }
.sf-dd[open] .sf-dd-btn { box-shadow: 0 0 0 3px rgba(235, 175, 134, 0.55); }
.sf-dd-val { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sf-dd-val .sf-icon, .sf-dd-opt > .sf-icon { flex: none; border-radius: 50%; }
.sf-dd-val .t, .sf-dd-opt .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sf-dd-val .t b, .sf-dd-opt .t b {
  font-weight: 800; font-size: 14.5px; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf-dd-val .t small, .sf-dd-opt .t small {
  font-weight: 500; font-size: 11.5px; line-height: 1.15; color: var(--gris);
}
.sf-dd-chev { margin-left: auto; flex: none; color: var(--gris); transition: transform .15s ease-out; }
.sf-dd[open] .sf-dd-chev { transform: rotate(180deg); }

/* Panneau d'options : posé SOUS le champ, par-dessus le reste. */
.sf-dd-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--creme); color: var(--encre);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 44px rgba(3, 31, 37, 0.45);
  max-height: 320px; overflow: auto;
}
.sf-dd-opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 12px; border: 0; border-radius: 10px;
  cursor: pointer; font: inherit; text-align: left;
  background: transparent; color: inherit;
}
.sf-dd-opt:hover { background: rgba(3, 52, 60, 0.08); }
.sf-dd-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.sf-dd-check { margin-left: auto; flex: none; color: var(--sarcelle-700); visibility: hidden; }
.sf-dd-opt:has(input:checked) { background: rgba(3, 52, 60, 0.08); }
.sf-dd-opt:has(input:checked) .sf-dd-check { visibility: visible; }
.sf-dd-opt:has(input:focus-visible) { box-shadow: inset 0 0 0 2px rgba(235, 175, 134, 0.8); }

/* Badge du standard réseau (TRC-20, ERC-20…). */
.sf-dd-badge {
  flex: none; display: inline-flex; align-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.04em; padding: 5px 9px; border-radius: var(--r-pill);
  background: rgba(3, 52, 60, 0.1); color: var(--sarcelle-900);
}

/* Le champ Crypto ne montre que les cryptos du réseau choisi —
   en CSS pur, une règle par réseau du catalogue. */
.sf-pp:has([data-paynet][value="tron"]:checked)      [data-dd="coin"] .sf-dd-opt:not([data-for="tron"]),
.sf-pp:has([data-paynet][value="ethereum"]:checked)  [data-dd="coin"] .sf-dd-opt:not([data-for="ethereum"]),
.sf-pp:has([data-paynet][value="bsc"]:checked)       [data-dd="coin"] .sf-dd-opt:not([data-for="bsc"]),
.sf-pp:has([data-paynet][value="solana"]:checked)    [data-dd="coin"] .sf-dd-opt:not([data-for="solana"]),
.sf-pp:has([data-paynet][value="base"]:checked)      [data-dd="coin"] .sf-dd-opt:not([data-for="base"]),
.sf-pp:has([data-paynet][value="polygon"]:checked)   [data-dd="coin"] .sf-dd-opt:not([data-for="polygon"]),
.sf-pp:has([data-paynet][value="arbitrum"]:checked)  [data-dd="coin"] .sf-dd-opt:not([data-for="arbitrum"]),
.sf-pp:has([data-paynet][value="optimism"]:checked)  [data-dd="coin"] .sf-dd-opt:not([data-for="optimism"]),
.sf-pp:has([data-paynet][value="avalanche"]:checked) [data-dd="coin"] .sf-dd-opt:not([data-for="avalanche"]) {
  display: none;
}

/* Mini-logos des cryptos d'un réseau (pile façon avatars) + équivalent
   converti sur une option crypto. */
.sf-dd-minis { display: inline-flex; margin-left: auto; }
.sf-dd-minis .sf-icon { border-radius: 50%; border: 1.5px solid var(--creme); }
.sf-dd-minis .sf-icon + .sf-icon { margin-left: -5px; }
.sf-dd-approx {
  margin-left: auto; font-family: var(--mono); font-weight: 500;
  font-size: 11px; color: var(--gris);
}
.sf-dd-opt:has(.sf-dd-minis) .sf-dd-check,
.sf-dd-opt:has(.sf-dd-approx) .sf-dd-check { margin-left: 8px; }

/* CTA principal + note */
.sf-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.sf-cta-note { font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--creme-66); }

/* Bandeau d'erreurs */
.sf-errors {
  background: rgba(164, 59, 56, 0.16); border-radius: var(--r-field);
  padding: 14px 18px; margin-bottom: 22px; color: #f6c9c7;
}
.sf-errors ul { margin: 0; padding-left: 18px; }
.sf-errors li { font-weight: 600; font-size: 14px; line-height: 1.5; }

/* ---- Étape 2 : en-tête paiement ----------------------------------------- */
.sf-pay-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 14px; margin-bottom: 26px;
}
.sf-pay-ref { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--creme-76); }

/* Moyen de paiement en cours (pastille crème, symbole + réseau en entier),
   puis les autres actifs groupés par réseau : de vrais boutons, ils
   réémettent la facture. */
.sf-assets-cur { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sf-nets-view { margin-bottom: 26px; }
.sf-assets-view { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-assetp {
  display: inline-flex; align-items: center;
  font-family: var(--ui); font-weight: 700; font-size: 13px; line-height: 1;
  color: var(--creme-86); background: var(--glass-10);
  border: 0; border-radius: var(--r-pill); padding: 11px 17px;
  transition: background .15s ease-out, color .15s ease-out;
}
button.sf-assetp { cursor: pointer; }
button.sf-assetp:hover { background: var(--glass-14); color: var(--creme); }
button.sf-assetp:active { transform: scale(0.98); }
button.sf-assetp:focus-visible { box-shadow: 0 0 0 3px rgba(235, 175, 134, 0.55); outline: none; }
.sf-assetp.is-off { opacity: 0.45; }
.sf-assetp.on { color: var(--encre); background: var(--creme); }
.sf-assets-note {
  margin: -16px 0 26px; font-weight: 400; font-size: 12px; line-height: 1.5;
  color: var(--creme-66);
}

/* Grille QR + adresse/montant */
.sf-pay-grid { display: flex; flex-wrap: wrap; gap: 22px; }
.sf-qr-col { flex: 0 0 216px; }
@media (max-width: 560px) { .sf-qr-col { flex: 1 1 100%; } }
.sf-qr-card {
  background: var(--creme); border-radius: var(--r-card); padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sf-qr {
  width: 180px; height: 180px; border-radius: 12px; overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.sf-qr svg { width: 164px; height: 164px; display: block; }
.sf-qr-lbl {
  font-weight: 700; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gris); text-align: center;
}

.sf-pay-detail { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sf-lbl {
  font-weight: 700; font-size: 10px; line-height: 1; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--creme-66); margin-bottom: 9px;
}
.sf-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(3, 31, 37, 0.55); border-radius: 14px; padding: 14px 16px;
}
.sf-box-addr {
  flex: 1; min-width: 0; font-family: var(--mono); font-weight: 400;
  font-size: 13px; line-height: 1.5; color: var(--creme); word-break: break-all;
}
.sf-box-amount {
  flex: 1; min-width: 0; font-family: var(--mono); font-weight: 500;
  font-size: 22px; line-height: 1; color: var(--creme);
}
.sf-copy {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-family: var(--ui); font-weight: 700; font-size: 12px; line-height: 1;
  color: var(--encre); background: var(--abricot-500);
  border: 0; border-radius: var(--r-pill); padding: 9px 13px; cursor: pointer;
  transition: background .15s ease-out, transform .1s ease-out;
}
.sf-copy:hover { background: var(--abricot-200); }
.sf-copy:active { transform: scale(0.98); }
.sf-copy.is-copied { background: var(--confirme-clair); color: var(--encre); }
.sf-copy .ic-ok { display: none; }
.sf-copy.is-copied .ic-copy { display: none; }
.sf-copy.is-copied .ic-ok { display: inline-flex; }
.sf-net {
  margin: 0; font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--creme-76);
}
.sf-net strong { color: var(--creme); font-weight: 700; }

/* Taux garanti + état paiement */
.sf-pay-status { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.sf-rate, .sf-live {
  flex: 1 1 260px; background: rgba(3, 31, 37, 0.55);
  border-radius: var(--r-card); padding: 20px;
}
.sf-rate { display: flex; align-items: center; gap: 18px; }
.sf-ring { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.sf-ring .t {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--creme);
}
.sf-rate-t { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--creme); margin-bottom: 5px; }
.sf-rate-v { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--abricot-500); margin-bottom: 6px; }
.sf-rate-s { font-weight: 400; font-size: 12px; line-height: 1.45; color: var(--creme-66); }

/* Panneau état paiement (fragment _status.html injecté) */
.sf-live-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sf-live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--abricot-500); flex-shrink: 0;
}
.sf-live-dot.ok { background: var(--confirme-clair); }
.sf-live-title { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--creme); }
.sf-live-rows { display: flex; flex-direction: column; gap: 11px; font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--creme-76); }
.sf-live-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-live-row .mono { color: var(--creme-86); }
.sf-live-row .dash { font-family: var(--mono); color: rgba(249, 245, 236, 0.5); }
.sf-bar { display: block; height: 7px; border-radius: var(--r-pill); background: rgba(249, 245, 236, 0.14); overflow: hidden; }
.sf-bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--abricot-500); transition: width .4s ease-out; }
.sf-live-foot { margin: 14px 0 0; font-weight: 400; font-size: 12px; line-height: 1.5; color: var(--creme-66); }
.sf-live-paid { display: flex; align-items: center; gap: 12px; }
.sf-live-paid .ic {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--confirme); color: var(--creme);
}
.sf-live-paid strong { display: block; font-weight: 700; font-size: 15px; color: var(--creme); margin-bottom: 3px; }
.sf-live-paid span { font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--creme-76); }

/* Note « la page se met à jour » (sous la grille de paiement, secours) */
.sf-note-soft { margin: 26px 0 0; font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--creme-66); }

/* Formulaire de simulation (démo) */
.sf-sim { margin-top: 16px; }

/* ---- Étape 3 : suivi ---------------------------------------------------- */
.sf-track-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 13px;
}
.sf-track-pill.ok { background: rgba(53, 120, 85, 0.24); color: #c8ead6; }
.sf-track-pill.ok .sf-icon { color: var(--confirme-clair); }
.sf-track-pill.wait { background: var(--glass-12); color: var(--creme-86); }
.sf-track-pill.wait .sf-icon { color: var(--abricot-500); }
.sf-track-pill.off { background: var(--glass-10); color: var(--creme-66); }
.sf-track-pill.off .sf-icon { color: var(--creme-66); }

/* Taux expiré : bloc de reprise (la seule impasse possible du tunnel) */
.sf-expired {
  background: rgba(3, 31, 37, 0.55); border-radius: var(--r-card);
  padding: 24px; margin-bottom: 28px;
}
.sf-expired-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-weight: 700; font-size: 15px; color: var(--creme);
}
.sf-expired-h .sf-icon { color: var(--abricot-500); flex: none; }
.sf-expired .sf-rline {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-weight: 400; font-size: 14px; line-height: 1.4;
}
.sf-expired .sf-rline .k { color: var(--creme-66); }
.sf-expired .sf-rline .v { color: var(--creme-86); font-weight: 600; }
.sf-expired .sf-rline .v.mono { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.sf-expired form { margin-top: 18px; }
.sf-lede .mono { font-family: var(--mono); font-size: 14px; }

.sf-tl { display: flex; flex-direction: column; margin-bottom: 28px; }
.sf-tl-row { display: flex; gap: 18px; }
.sf-tl-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.sf-tl-dot {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-pill); flex-shrink: 0;
}
.sf-tl-dot.done { background: var(--confirme); color: var(--creme); }
.sf-tl-dot.now { background: var(--abricot-500); color: var(--encre); }
.sf-tl-dot.idle { background: var(--glass-14); color: var(--creme-66); }
.sf-tl-dot.now .sf-icon { animation: sf-spin 1.5s linear infinite; }
.sf-tl-line { width: 2px; flex: 1; min-height: 34px; background: var(--glass-14); }
.sf-tl-line.done { background: var(--confirme); }
.sf-tl-body { padding-bottom: 22px; }
.sf-tl-t { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--creme); margin-bottom: 5px; }
.sf-tl-t.dim { color: var(--creme-76); }
.sf-tl-s { font-weight: 400; font-size: 14px; line-height: 1.5; color: rgba(249, 245, 236, 0.6); }
.sf-tl-s .mono { font-family: var(--mono); font-size: 12px; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

.sf-refund-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-08); border-radius: 14px; padding: 13px 16px;
}
.sf-refund-box .val {
  flex: 1; min-width: 0; font-family: var(--mono); font-weight: 400; font-size: 13px;
  line-height: 1.4; color: var(--creme-86); word-break: break-all;
}
.sf-refund-box .val.empty { color: rgba(249, 245, 236, 0.5); }
.sf-refund-box .tag {
  flex-shrink: 0; font-weight: 700; font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--confirme-clair);
}

/* Carte remboursement (quand un remboursement existe) */
.sf-refund-card { background: rgba(3, 31, 37, 0.55); border-radius: var(--r-card); padding: 22px; margin-bottom: 20px; }
.sf-refund-card h2 { font-size: 15px; margin-bottom: 4px; color: var(--creme); }
.sf-refund-card .sub { font-weight: 400; font-size: 13px; color: var(--creme-66); margin-bottom: 14px; }
.sf-rc-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.sf-rc-line .k { color: var(--creme-66); }
.sf-rc-line .v { color: var(--creme-86); }
.sf-rc-line .v.mono { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.sf-txid { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--abricot-500); display: inline-flex; align-items: center; gap: 4px; }

.sf-track-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Rail récapitulatif ------------------------------------------------- */
.sf-rail-card {
  background: var(--creme); color: var(--encre);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 30px 70px rgba(3, 31, 37, 0.4);
}
/* Bandeau image 150 px : la photo de la destination (offer.image_key) avec
   un voile bas pour que « Paris → Tokyo » reste lisible. Sans fichier, le
   dégradé sarcelle de repli tient la place. */
.sf-rail-img {
  position: relative; height: 150px; overflow: hidden;
  background-image:
    radial-gradient(120% 120% at 70% 10%, rgba(138, 180, 184, 0.5), transparent 60%),
    linear-gradient(160deg, var(--sarcelle-700), var(--sarcelle-900));
  background-size: cover; background-position: center;
  background-color: var(--sarcelle-900);
}
.sf-rail-img::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 31, 37, 0.05), rgba(3, 31, 37, 0.72));
}
.sf-rail-title {
  position: absolute; left: 22px; bottom: 16px; right: 22px; z-index: 1;
  font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -0.03em;
  color: var(--creme);
}
.sf-rail-badge { position: absolute; top: 14px; right: 14px; z-index: 1; }
.sf-rail-body { padding: 24px; }
.sf-rail-grp {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--creme-300);
  font-weight: 400; font-size: 14px; line-height: 1.4;
}
.sf-rail-grp:first-child { padding-top: 0; }
.sf-rsub { font-weight: 600; }
.sf-rline { display: flex; justify-content: space-between; gap: 12px; }
.sf-rline .k { color: var(--gris); }
.sf-rline .v { font-weight: 600; }
.sf-rline .v.mono { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.sf-rline .v.green { color: var(--confirme); }
.sf-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 4px; }
.sf-total-row .lbl { font-weight: 800; font-size: 17px; }
.sf-total { font-family: var(--mono); font-weight: 500; font-size: 28px; color: var(--sarcelle-900); }
.sf-approx { text-align: right; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--gris); margin-bottom: 18px; }
.sf-guarantee {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--sarcelle-100); border-radius: 14px; padding: 14px;
}
.sf-guarantee .sf-icon { color: var(--sarcelle-900); flex-shrink: 0; margin-top: 1px; }
.sf-guarantee span:last-child { font-weight: 600; font-size: 13px; line-height: 1.45; color: var(--sarcelle-900); }

/* ---- Adresse de remboursement modifiable + documents (ajout) ---- */
.sf-refund-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sf-refund-input {
  flex: 1 1 240px; min-width: 0; border: 0; border-radius: var(--r-field);
  background: var(--creme); color: var(--encre); padding: 13px 16px;
  font-size: 14px; outline: none;
}
.sf-refund-input:focus { box-shadow: 0 0 0 2px var(--abricot-500); }
.sf-docs { display: flex; flex-direction: column; gap: 8px; }
.sf-doc {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: rgba(3,31,37,0.5); border-radius: var(--r-field);
  padding: 12px 16px; color: var(--creme); font-weight: 700; font-size: 14px;
  transition: background .15s ease-out;
}
.sf-doc:hover { background: rgba(3,31,37,0.72); color: var(--creme); }
.sf-doc .sf-icon { color: var(--abricot-500); flex: none; }
.sf-doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-doc-meta { color: var(--creme-66); font-size: 12px; flex: none; }

/* Date de naissance : trois listes (jour / mois / année). Le champ natif
   type="date" perdait la saisie incomplète sans prévenir. */
.sf-birth { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px; }
.sf-birth select.sf-in { width: 100%; min-width: 0; cursor: pointer; }
@media (max-width: 420px) {
  .sf-birth { grid-template-columns: 1fr 1fr; }
  .sf-birth select:last-child { grid-column: 1 / -1; }
}

/* Anneau « taux verrouillé » : remplace le compte à rebours dès que la
   transaction est vue on-chain (le serveur n'expire jamais une facture vue). */
.sf-ring-ok {
  display: flex; align-items: center; justify-content: center;
  background: rgba(53, 120, 85, 0.28); border: 3px solid rgba(53, 120, 85, 0.8);
  border-radius: 50%; color: #9fd8b4;
}
.sf-ring-ok[hidden] { display: none; }

/* ---- Payer en un geste : bouton navigateur + liens profonds (ajout) ---- */
/* Le bouton « portefeuille du navigateur » est [hidden] tant que le script
   n'a pas constaté window.ethereum : ces styles ne jouent qu'à ce moment-là. */
.sf-wallet { margin-top: 4px; }
.sf-wallet-tx {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--creme);
  overflow-wrap: anywhere; word-break: break-all;
}
.sf-wallet-tx a { color: var(--abricot-500); }

/* Liens profonds : discrets sur bureau (petites capsules en retrait)… */
.sf-deeplinks {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; font-size: 12px; opacity: .78;
}
.sf-deeplinks-lbl { color: var(--creme-66); }
.sf-deeplink {
  display: inline-flex; align-items: center; text-decoration: none;
  border: 1px solid rgba(249,245,236,0.28); border-radius: 999px;
  padding: 5px 12px; color: var(--creme); font-weight: 600; font-size: 12px;
  transition: background .15s ease-out, opacity .15s ease-out;
}
.sf-deeplink:hover { background: rgba(249,245,236,0.12); color: var(--creme); }

/* …et mis en avant sur mobile / écran tactile : c'est là qu'un lien profond
   ouvre réellement l'application du portefeuille, montant prérempli. */
@media (hover: none) and (pointer: coarse), (max-width: 720px) {
  .sf-deeplinks { opacity: 1; margin-top: 10px; }
  .sf-deeplink {
    flex: 1 1 auto; justify-content: center; padding: 12px 16px;
    font-size: 14px; background: rgba(3,31,37,0.5);
    border-color: rgba(249,245,236,0.20);
  }
}

/* 320 px : le montant d'argent ne se tronque JAMAIS — le bouton Copier
   descend à la ligne quand la place manque. */
.sf-box { flex-wrap: wrap; row-gap: 8px; }
