/* =====================================================================
 * Fichier : assets/css/pages/sendungsverfolgung.css
 * Projet  : Brennholz Shop24
 * Rôle    : Styles propres à la page de suivi (sendungsverfolgung.php) :
 *           recherche par code, étapes de la commande, paiement,
 *           coordonnées bancaires, dépôt de la preuve de paiement,
 *           envois (trajet animé, chronologie), articles, adresses,
 *           historique, « comment ça marche » et FAQ.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. En-tête et recherche
 * ------------------------------------------------------------------- */
.tr-hero { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tr-hero.is-compact { padding: 1.6rem 0 2rem; }
.tr-hero-embers { position: absolute; inset: 0; pointer-events: none; }
.tr-hero-inner { position: relative; z-index: 1; }
.tr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: 1rem; }
.tr-hero-text h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); animation: hfk-fade-up .7s var(--hfk-ease) both; }
.tr-hero-text p { animation: hfk-fade-up .7s .12s var(--hfk-ease) both; }
.tr-hero.is-compact .tr-hero-text h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .3rem; }
.tr-hero.is-compact .tr-hero-text p { display: none; }

.tr-search { position: relative; padding: clamp(1.1rem, 2.4vw, 1.7rem); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-top: 4px solid var(--hfk-flame); backdrop-filter: blur(8px); animation: hfk-fade-up .7s .2s var(--hfk-ease) both; }
.tr-search > label { display: block; margin-bottom: .6rem; font-family: var(--hfk-font-head); font-weight: 700; font-size: .95rem; color: #fff; letter-spacing: .02em; }
.tr-search-row { display: flex; gap: .6rem; }
.tr-search-field { position: relative; flex: 1; min-width: 0; }
.tr-search-field > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--hfk-flame); font-size: 1.1rem; pointer-events: none; }
.tr-search-field input { width: 100%; height: 58px; padding: 0 2.8rem 0 2.9rem; border: 2px solid transparent; border-radius: 0; background: #fff; color: var(--hfk-charcoal); font-family: var(--hfk-font-head); font-size: 1.12rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; outline: 0; transition: border-color .25s, box-shadow .25s; }
.tr-search-field input::placeholder { color: #B5AAA0; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.tr-search-field input:focus { border-color: var(--hfk-amber); box-shadow: 0 0 0 4px rgba(255, 227, 43, .28); }
.tr-search-field input[aria-invalid="true"] { border-color: var(--hfk-ember); animation: tr-shake .45s var(--hfk-ease); }
.tr-search-clear { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: var(--hfk-ash); color: var(--hfk-muted); transition: background .2s, color .2s; }
.tr-search-clear:hover { background: var(--hfk-ember); color: #fff; }
.tr-search .btn { height: 58px; white-space: nowrap; }
.tr-search .btn.is-loading { pointer-events: none; opacity: .85; }
.tr-search .btn.is-loading i { animation: hfk-spin .8s linear infinite; }
.tr-search-hint, .tr-search-error { margin: .8rem 0 0; font-size: .86rem; color: #D5DADF; max-width: none; }
.tr-search-hint code { padding: .1rem .4rem; background: rgba(255, 255, 255, .12); color: var(--hfk-amber); font-size: .86rem; }
.tr-search-error { padding: .7rem .9rem; color: #fff; background: rgba(229, 56, 59, .92); border-left: 4px solid #fff; animation: hfk-fade-up .4s var(--hfk-ease) both; }
.tr-hero.is-compact .tr-search { padding: .9rem; }
.tr-hero.is-compact .tr-search-hint { display: none; }
.tr-hero.is-compact .tr-search-field input, .tr-hero.is-compact .tr-search .btn { height: 50px; }
@keyframes tr-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------------------------------------------------------------------
 * 2. Synthèse et étapes
 * ------------------------------------------------------------------- */
.tr-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); background: var(--hfk-cream); }
.tr-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .9rem 1.5rem; align-items: center; padding: 1.2rem 1.4rem; background: #fff; border-left: 5px solid var(--hfk-flame); box-shadow: var(--hfk-shadow-sm); }
.tr-summary-main small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfk-muted); }
.tr-summary-main strong { display: block; font-family: var(--hfk-font-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--hfk-charcoal); overflow-wrap: anywhere; }
.tr-summary-main span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .25rem; font-size: .9rem; color: var(--hfk-muted); }
.tr-summary-main b { font-family: var(--hfk-font-head); color: var(--hfk-flame-dark); letter-spacing: .05em; }
.tr-copy { width: 30px; height: 30px; border: 1px solid var(--hfk-border); background: #fff; color: var(--hfk-muted); font-size: .82rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--hfk-ease); }
.tr-copy:hover { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; transform: scale(1.08); }
.tr-copy.is-copied, .bank-copy.is-copied { background: var(--hfk-forest); border-color: var(--hfk-forest); color: #fff; }
.tr-summary-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.tr-summary-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; border-top: 1px dashed var(--hfk-border); }

.tr-stepper { position: relative; margin-top: 1.2rem; padding: 1.6rem 1.2rem 1.3rem; background: #fff; box-shadow: var(--hfk-shadow-sm); overflow: hidden; }
.tr-stepper ol { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tr-stepper-track { position: absolute; top: calc(1.6rem + 23px); left: calc(1.2rem + 8.33%); right: calc(1.2rem + 8.33%); height: 4px; background: var(--hfk-ash); }
.tr-stepper-track span { display: block; width: 0; height: 100%; background: var(--hfk-grad-fire-h); transition: width 1.4s var(--hfk-ease); }
.tr-stepper.is-ready .tr-stepper-track span { width: var(--tr-progress, 0%); }
.tr-stepper li { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--hfk-muted); opacity: .55; transition: opacity .5s, transform .5s var(--hfk-ease); }
.tr-stepper li.is-done, .tr-stepper li.is-active { opacity: 1; }
.tr-step-dot { position: relative; z-index: 1; width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: .6rem; background: #fff; border: 3px solid var(--hfk-ash); color: var(--hfk-muted); font-size: 1.05rem; transition: background .4s, border-color .4s, color .4s, transform .4s var(--hfk-ease-bounce, var(--hfk-ease)); }
.tr-stepper li.is-done .tr-step-dot { background: var(--hfk-forest); border-color: var(--hfk-forest); color: #fff; }
.tr-stepper li.is-active .tr-step-dot { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; transform: scale(1.14); box-shadow: 0 0 0 6px rgba(34, 166, 75, .18); animation: hfk-pulse-soft 2.2s ease-in-out infinite; }
.tr-stepper li strong { font-family: var(--hfk-font-head); font-size: .95rem; color: var(--hfk-charcoal); }
.tr-stepper li.is-active strong { color: var(--hfk-flame-dark); }
.tr-stepper li small { margin-top: .15rem; font-size: .78rem; line-height: 1.35; }

/* ---------------------------------------------------------------------
 * 3. Mise en page et cartes
 * ------------------------------------------------------------------- */
.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.tr-main, .tr-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.tr-aside { position: sticky; top: calc(var(--hfk-header-h, 80px) + 1rem); }
.tr-card { padding: clamp(1.1rem, 2.4vw, 1.7rem); background: #fff; box-shadow: var(--hfk-shadow-sm); scroll-margin-top: calc(var(--hfk-header-h, 80px) + 1rem); transition: box-shadow .35s var(--hfk-ease); }
.tr-card:hover { box-shadow: var(--hfk-shadow-md, var(--hfk-shadow-sm)); }
.tr-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hfk-border); }
.tr-card-head > div { flex: 1; min-width: 0; }
.tr-card-head h2 { margin: 0; font-size: 1.3rem; }
.tr-card-head p { margin: .1rem 0 0; font-size: .88rem; color: var(--hfk-muted); }
.tr-card-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; background: var(--hfk-grad-fire); }
.tr-card-icon.is-sky { background: var(--hfk-sky); }
.tr-card-icon.is-forest { background: var(--hfk-forest); }
.tr-card-icon.is-plum { background: var(--hfk-plum); }

.tr-alert { display: flex; gap: .9rem; margin: 1.2rem 0 0; padding: 1rem 1.1rem; border-left: 4px solid; }
.tr-alert > i { font-size: 1.3rem; margin-top: .1rem; }
.tr-alert strong { font-family: var(--hfk-font-head); color: var(--hfk-charcoal); }
.tr-alert p { margin: .2rem 0 0; font-size: .9rem; color: var(--hfk-text); }
.tr-alert-forest { background: #E8F6EC; border-color: var(--hfk-forest); }
.tr-alert-forest > i { color: var(--hfk-forest); }
.tr-alert-sky { background: #E3F0FC; border-color: var(--hfk-sky); }
.tr-alert-sky > i { color: var(--hfk-sky); }
.tr-alert-ember { background: #FDE8E8; border-color: var(--hfk-ember); }
.tr-alert-ember > i { color: var(--hfk-ember); }

/* ---------------------------------------------------------------------
 * 4. Paiement
 * ------------------------------------------------------------------- */
.tr-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.tr-amounts > div { padding: .9rem 1rem; background: var(--hfk-cream); border-bottom: 3px solid var(--hfk-border); }
.tr-amounts small { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hfk-muted); }
.tr-amounts strong { font-family: var(--hfk-font-head); font-size: 1.3rem; color: var(--hfk-charcoal); }
.tr-amounts strong.is-paid { color: var(--hfk-forest-dark); }
.tr-amounts .is-due { background: var(--hfk-flame-light); border-color: var(--hfk-flame); }
.tr-amounts .is-due strong { color: var(--hfk-flame-dark); }
.tr-paybar { height: 10px; margin-top: 1rem; background: var(--hfk-ash); overflow: hidden; }
.tr-paybar span { display: block; height: 100%; background: var(--hfk-grad-forest, var(--hfk-forest)); transform-origin: left; animation: tr-grow 1.2s .3s var(--hfk-ease) both; }
.tr-paybar-label { margin: .4rem 0 0; font-size: .82rem; color: var(--hfk-muted); }
@keyframes tr-grow { from { transform: scaleX(0); } }

.tr-sub { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 .4rem; font-size: 1.08rem; }
.tr-sub span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; background: var(--hfk-charcoal); color: #fff; font-size: .85rem; }
.tr-sub-plain { margin-top: 0; }
.tr-sub-text { margin: 0 0 1rem; font-size: .92rem; color: var(--hfk-muted); }

.bank-details { margin: 0; border: 1px solid var(--hfk-border); }
.bank-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--hfk-border); transition: background .25s; }
.bank-row:last-child { border-bottom: 0; }
.bank-row:hover { background: var(--hfk-cream); }
.bank-row dt { align-self: stretch; display: flex; align-items: center; padding: .75rem 1rem; font-size: .84rem; font-weight: 600; color: var(--hfk-muted); background: var(--hfk-cream); }
.bank-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .45rem .5rem .45rem 1rem; font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); }
.bank-row dd span { word-break: break-word; }
.bank-row-iban dd span { letter-spacing: .05em; }
.bank-row-reference dd, .bank-row-amount dd { background: var(--hfk-amber-light); }
.bank-row-amount dd span { font-size: 1.2rem; color: var(--hfk-flame-dark); }
.bank-copy { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--hfk-border); background: #fff; color: var(--hfk-muted); transition: background .25s, color .25s, border-color .25s, transform .25s var(--hfk-ease); }
.bank-copy:hover { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; transform: scale(1.08); }

/* Dépôt de la preuve */
.tr-proof { scroll-margin-top: calc(var(--hfk-header-h, 80px) + 1rem); }
.tr-proof.is-highlight { animation: tr-flash 1.6s var(--hfk-ease) 1; }
@keyframes tr-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 166, 75, 0); } 30% { box-shadow: 0 0 0 10px rgba(34, 166, 75, .18); } }
.tr-drop { position: relative; border: 2px dashed var(--hfk-border); background: var(--hfk-cream); transition: border-color .25s, background .25s, transform .25s var(--hfk-ease); }
.tr-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.tr-drop:hover, .tr-drop:focus-within { border-color: var(--hfk-flame); }
.tr-drop.is-dragover { border-color: var(--hfk-flame); background: var(--hfk-flame-light); transform: scale(1.01); }
.tr-drop.is-invalid { border-color: var(--hfk-ember); background: #FDE8E8; }
.tr-drop.has-file { border-style: solid; border-color: var(--hfk-forest); background: #E8F6EC; }
.tr-drop.has-file input[type="file"] { pointer-events: none; }
.tr-drop-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: 0; padding: 1.8rem 1rem; text-align: center; color: var(--hfk-text); }
.tr-drop-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: .4rem; background: #fff; color: var(--hfk-flame); font-size: 1.5rem; box-shadow: var(--hfk-shadow-sm); animation: hfk-float 3.5s ease-in-out infinite; }
.tr-drop-empty strong { font-family: var(--hfk-font-head); font-size: 1rem; }
.tr-drop-empty u { color: var(--hfk-flame-dark); text-underline-offset: 3px; }
.tr-drop-empty small { color: var(--hfk-muted); font-size: .82rem; }
.tr-drop-file { position: relative; z-index: 2; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; animation: hfk-fade-up .35s var(--hfk-ease) both; }
.tr-drop-file[hidden], .tr-drop-empty[hidden] { display: none; }
.tr-drop-thumb { width: 60px; height: 60px; flex: 0 0 60px; display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--hfk-forest-dark); font-size: 1.5rem; }
.tr-drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-drop-file > div { flex: 1; min-width: 0; }
.tr-drop-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--hfk-font-head); color: var(--hfk-charcoal); }
.tr-drop-file small { color: var(--hfk-muted); }
.tr-drop-remove { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--hfk-border); background: #fff; color: var(--hfk-ember); transition: background .25s, color .25s; }
.tr-drop-remove:hover { background: var(--hfk-ember); color: #fff; }

.tr-proof-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; margin-top: 1.1rem; }
.tr-field-wide { grid-column: 1 / -1; }
.tr-field label { display: block; margin-bottom: .3rem; font-size: .86rem; font-weight: 600; color: var(--hfk-charcoal); }
.tr-field label em { font-style: normal; font-weight: 400; color: var(--hfk-muted); }
.tr-input-unit { position: relative; }
.tr-input-unit input { padding-right: 2.4rem; }
.tr-input-unit span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--hfk-muted); pointer-events: none; }

.tr-progress { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.tr-progress[hidden] { display: none; }
.tr-progress-bar { flex: 1; height: 10px; background: var(--hfk-ash); overflow: hidden; }
.tr-progress-bar span { display: block; width: 0; height: 100%; background: var(--hfk-grad-fire-h); background-size: 200% 100%; animation: hfk-gradient-pan 2s linear infinite; transition: width .25s linear; }
.tr-progress small { min-width: 44px; text-align: right; font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-flame-dark); }
.tr-form-feedback:empty, [data-form-feedback]:empty { display: none; }
.tr-form-feedback, .tr-unlock-form [data-form-feedback] { margin-top: .9rem; padding: .7rem .9rem; font-size: .9rem; border-left: 4px solid var(--hfk-ember); background: #FDE8E8; color: var(--hfk-ember-dark); animation: hfk-fade-up .35s var(--hfk-ease) both; }
.tr-form-feedback.is-success, .tr-unlock-form [data-form-feedback].is-success { border-color: var(--hfk-forest); background: #E8F6EC; color: var(--hfk-forest-dark); }
.tr-proof-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.1rem; }
.tr-proof-submit p { flex: 1; min-width: 220px; margin: 0; font-size: .82rem; color: var(--hfk-muted); }
.tr-proof-submit p i { color: var(--hfk-forest); margin-right: .2rem; }
.tr-proof-submit .btn.is-loading { pointer-events: none; opacity: .8; }
.tr-proof-submit .btn.is-loading i { animation: hfk-spin .8s linear infinite; }

.tr-proofs { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--hfk-border); }
.tr-proofs ul { display: grid; gap: .6rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.tr-proofs li { display: flex; align-items: flex-start; gap: .9rem; padding: .8rem 1rem; background: var(--hfk-cream); border-left: 4px solid var(--hfk-sky); }
.tr-proofs li.is-approved { border-color: var(--hfk-forest); }
.tr-proofs li.is-rejected { border-color: var(--hfk-ember); }
.tr-proofs li > div { flex: 1; min-width: 0; }
.tr-proofs-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; background: #fff; color: var(--hfk-muted); font-size: 1.1rem; }
.tr-proofs strong { display: block; font-family: var(--hfk-font-head); color: var(--hfk-charcoal); }
.tr-proofs small { color: var(--hfk-muted); overflow-wrap: anywhere; }
.tr-proofs p { margin: .4rem 0 0; font-size: .88rem; color: var(--hfk-ember-dark); }

/* ---------------------------------------------------------------------
 * 5. Envois
 * ------------------------------------------------------------------- */
.tr-ship-empty { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem; background: var(--hfk-cream); }
.tr-ship-truck { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; background: #fff; color: var(--hfk-sky); font-size: 1.6rem; animation: hfk-float 3.5s ease-in-out infinite; }
.tr-ship-empty strong { font-family: var(--hfk-font-head); color: var(--hfk-charcoal); }
.tr-ship-empty p { margin: .2rem 0 0; font-size: .92rem; color: var(--hfk-muted); }

.tr-shipment { scroll-margin-top: calc(var(--hfk-header-h, 80px) + 1rem); }
.tr-shipment + .tr-shipment { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 2px dashed var(--hfk-border); }
.tr-shipment.is-focused { outline: 2px solid var(--hfk-flame); outline-offset: 10px; }
.tr-shipment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.tr-shipment-head small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfk-muted); }
.tr-shipment-head strong { font-family: var(--hfk-font-head); font-size: 1.15rem; letter-spacing: .05em; color: var(--hfk-charcoal); }

.tr-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin: 1.3rem 0 1.1rem; padding: 1.1rem 1rem; background: var(--hfk-grad-night); color: #fff; }
.tr-route-end { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 56px; font-size: 1.15rem; color: var(--hfk-amber); }
.tr-route-end small { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: #D5DADF; }
.tr-route-line { position: relative; height: 6px; margin: 0 14px; background: rgba(255, 255, 255, .16); }
.tr-route-line span { display: block; width: 0; height: 100%; background: var(--hfk-grad-fire-h); transition: width 1.6s var(--hfk-ease); }
.tr-route-truck { position: absolute; top: 50%; left: 0; width: 36px; height: 36px; display: grid; place-items: center; margin: -18px 0 0 -18px; background: var(--hfk-flame); color: #fff; font-size: .95rem; box-shadow: 0 0 0 5px rgba(34, 166, 75, .25); transition: left 1.6s var(--hfk-ease); }
.tr-route.is-ready .tr-route-line span { width: var(--tr-route, 0%); }
.tr-route.is-ready .tr-route-truck { left: var(--tr-route, 0%); }

.tr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.tr-facts > div { padding: .7rem .9rem; background: var(--hfk-cream); }
.tr-facts dt { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hfk-muted); }
.tr-facts dt i { width: 1.1rem; color: var(--hfk-flame); }
.tr-facts dd { margin: .15rem 0 0; font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); overflow-wrap: anywhere; }
.tr-facts dd a { color: var(--hfk-flame-dark); }
.tr-shipment-note { margin: .9rem 0 0; padding: .8rem 1rem; font-size: .92rem; background: var(--hfk-amber-light); border-left: 4px solid var(--hfk-amber); }
.tr-shipment-note i { color: #7A6200; margin-right: .25rem; }

.tr-timeline { position: relative; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.tr-timeline::before { content: ''; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--hfk-border); }
.tr-timeline li { position: relative; display: flex; gap: .9rem; padding-bottom: 1.1rem; }
.tr-timeline li[hidden] { display: none; }
.tr-timeline li:last-child { padding-bottom: 0; }
.tr-timeline li.is-revealed { animation: hfk-fade-up .4s var(--hfk-ease) both; }
.tr-timeline-dot { position: relative; z-index: 1; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; background: #fff; border: 2px solid var(--hfk-border); color: var(--hfk-muted); font-size: .85rem; }
.tr-timeline li.is-latest .tr-timeline-dot { background: var(--hfk-flame); border-color: var(--hfk-flame); color: #fff; box-shadow: 0 0 0 5px rgba(34, 166, 75, .16); }
.tr-timeline strong { display: block; font-size: .96rem; color: var(--hfk-charcoal); }
.tr-timeline li.is-latest strong { font-family: var(--hfk-font-head); font-size: 1.02rem; }
.tr-timeline small { color: var(--hfk-muted); font-size: .82rem; }
.tr-timeline-more { display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 0 3rem; padding: .45rem .9rem; border: 1px solid var(--hfk-border); background: #fff; color: var(--hfk-charcoal); font-size: .86rem; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.tr-timeline-more:hover { background: var(--hfk-charcoal); border-color: var(--hfk-charcoal); color: #fff; }
.tr-timeline-more i { transition: transform .3s var(--hfk-ease); }
.tr-timeline-more[aria-expanded="true"] i { transform: rotate(180deg); }

/* ---------------------------------------------------------------------
 * 6. Articles, adresses, facture
 * ------------------------------------------------------------------- */
.tr-items { margin: 0; padding: 0; list-style: none; }
.tr-items li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--hfk-border); }
.tr-items li:first-child { padding-top: 0; }
.tr-items li > div { flex: 1; min-width: 0; }
.tr-item-thumb { position: relative; width: 64px; height: 64px; flex: 0 0 64px; background: var(--hfk-placeholder, var(--hfk-ash)); }
.tr-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-item-thumb .img-ph { min-height: 0; width: 64px; height: 64px; font-size: 1.2rem; }
.tr-item-thumb b { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 .3rem; background: var(--hfk-charcoal); color: #fff; font-size: .74rem; }
.tr-items strong { display: block; font-size: .98rem; color: var(--hfk-charcoal); }
.tr-items small { color: var(--hfk-muted); font-size: .82rem; }
.tr-item-total { font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); white-space: nowrap; }
.tr-totals { max-width: 380px; margin: 1.1rem 0 0 auto; }
.tr-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .94rem; }
.tr-totals dt { font-weight: 400; color: var(--hfk-muted); }
.tr-totals dd { margin: 0; font-weight: 600; color: var(--hfk-charcoal); }
.tr-totals .is-discount dd { color: var(--hfk-forest-dark); }
.tr-totals .is-total { margin-top: .5rem; padding-top: .8rem; border-top: 2px solid var(--hfk-charcoal); }
.tr-totals .is-total dt { font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); }
.tr-totals .is-total dt small { display: block; font-family: var(--hfk-font-body, inherit); font-weight: 400; font-size: .76rem; color: var(--hfk-muted); }
.tr-totals .is-total dd { font-family: var(--hfk-font-head); font-size: 1.4rem; color: var(--hfk-flame-dark); }

.tr-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tr-addresses > div { padding: 1rem 1.1rem; background: var(--hfk-cream); border-top: 3px solid var(--hfk-plum); }
.tr-addresses h3 { margin: 0 0 .5rem; font-size: .95rem; }
.tr-addresses h3 i { color: var(--hfk-plum); margin-right: .3rem; }
.tr-addresses address { margin: 0; font-style: normal; line-height: 1.6; color: var(--hfk-text); overflow-wrap: anywhere; }
.tr-address-note { margin: .6rem 0 0; font-size: .86rem; color: var(--hfk-muted); overflow-wrap: anywhere; }
.tr-invoice { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; padding: 1rem 1.1rem; background: var(--hfk-charcoal); color: #E6E9EC; }
.tr-invoice > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; background: var(--hfk-ember); color: #fff; font-size: 1.2rem; }
.tr-invoice > div { flex: 1; min-width: 160px; }
.tr-invoice strong { display: block; font-family: var(--hfk-font-head); color: #fff; }
.tr-invoice small { color: #D5DADF; }
.tr-invoice .btn-hfk-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.tr-invoice .btn-hfk-outline:hover { background: #fff; border-color: #fff; color: var(--hfk-charcoal); }

.tr-unlock { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.3rem; align-items: center; }
.tr-unlock-preview { position: relative; display: grid; gap: .5rem; padding: 1.1rem; background: var(--hfk-cream); }
.tr-unlock-preview span { height: 10px; background: var(--hfk-border); filter: blur(2px); }
.tr-unlock-preview span:nth-child(2) { width: 75%; }
.tr-unlock-preview span:nth-child(4) { width: 55%; }
.tr-unlock-preview i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--hfk-plum); }
.tr-unlock-body p { margin: 0 0 .8rem; font-size: .93rem; color: var(--hfk-text); }
.tr-unlock-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.tr-unlock-form .form-control { flex: 1; min-width: 200px; }
.tr-unlock-form [data-form-feedback] { flex: 0 0 100%; margin-top: 0; }

.tr-lock { max-width: 640px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.6rem); text-align: center; background: #fff; border-top: 4px solid var(--hfk-plum); box-shadow: var(--hfk-shadow-sm); }
.tr-lock-icon { width: 72px; height: 72px; display: inline-grid; place-items: center; margin-bottom: 1rem; background: var(--hfk-plum); color: #fff; font-size: 1.7rem; animation: hfk-bounce-in .7s var(--hfk-ease) both; }
.tr-lock h2 { font-size: 1.5rem; }
.tr-lock p { color: var(--hfk-muted); }
.tr-lock .tr-unlock-form { margin-top: 1.2rem; text-align: left; }

/* ---------------------------------------------------------------------
 * 7. Colonne latérale
 * ------------------------------------------------------------------- */
.tr-aside h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.tr-aside h2 i { color: var(--hfk-flame); margin-right: .35rem; }
.tr-history ol { position: relative; margin: 0; padding: 0; list-style: none; }
.tr-history ol::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--hfk-border); }
.tr-history li { position: relative; display: flex; gap: .8rem; padding-bottom: 1rem; }
.tr-history li:last-child { padding-bottom: 0; }
.tr-history-dot { position: relative; z-index: 1; width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; font-size: .78rem; box-shadow: 0 0 0 3px #fff; }
.tr-history strong { display: block; font-size: .93rem; color: var(--hfk-charcoal); }
.tr-history p { margin: .1rem 0; font-size: .86rem; color: var(--hfk-text); }
.tr-history small { font-size: .78rem; color: var(--hfk-muted); }
.tr-help { border-top: 4px solid var(--hfk-flame); }
.tr-help p { font-size: .92rem; color: var(--hfk-muted); }
.tr-help-link { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); border-bottom: 1px solid var(--hfk-border); overflow-wrap: anywhere; transition: color .25s, padding-left .25s var(--hfk-ease); }
.tr-help-link:hover { color: var(--hfk-flame-dark); padding-left: .4rem; }
.tr-help-link i { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: var(--hfk-flame-light); color: var(--hfk-flame-dark); font-size: .9rem; }
.tr-help .btn { margin-top: 1rem; }
.tr-tips ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.tr-tips li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .9rem; color: var(--hfk-text); }
.tr-tips li i { margin-top: .25rem; color: var(--hfk-forest); }

/* ---------------------------------------------------------------------
 * 8. Comment ça marche, texte, FAQ, appel à l'action
 * ------------------------------------------------------------------- */
.tr-how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.tr-how-card { position: relative; padding: 1.8rem 1.4rem 1.5rem; background: #fff; border-bottom: 4px solid var(--hfk-border); box-shadow: var(--hfk-shadow-sm); overflow: hidden; transition: transform .4s var(--hfk-ease), box-shadow .4s var(--hfk-ease), border-color .4s; }
.tr-how-card:hover { transform: translateY(-8px); border-color: var(--hfk-flame); box-shadow: var(--hfk-shadow-lg); }
.tr-how-num { position: absolute; top: -.6rem; right: .6rem; font-family: var(--hfk-font-head); font-size: 5.5rem; font-weight: 800; line-height: 1; color: var(--hfk-ash); transition: color .4s; }
.tr-how-card:hover .tr-how-num { color: var(--hfk-flame-light); }
.tr-how-icon { position: relative; width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--hfk-grad-fire); color: #fff; font-size: 1.35rem; transition: transform .4s var(--hfk-ease); }
.tr-how-card:nth-child(2) .tr-how-icon { background: var(--hfk-sky); }
.tr-how-card:nth-child(3) .tr-how-icon { background: var(--hfk-plum); }
.tr-how-card:nth-child(4) .tr-how-icon { background: var(--hfk-forest); }
.tr-how-card:hover .tr-how-icon { transform: rotate(-8deg) scale(1.08); }
.tr-how-card h3 { position: relative; font-size: 1.15rem; }
.tr-how-card p { position: relative; margin: 0; font-size: .93rem; color: var(--hfk-muted); }

.tr-info-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tr-faq h2 { margin-bottom: 1rem; }
.tr-faq-item { margin-bottom: .6rem; background: #fff; border-left: 4px solid var(--hfk-border); box-shadow: var(--hfk-shadow-sm); transition: border-color .3s; }
.tr-faq-item[open] { border-color: var(--hfk-flame); }
.tr-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; list-style: none; cursor: pointer; font-family: var(--hfk-font-head); font-weight: 700; color: var(--hfk-charcoal); transition: color .25s; }
.tr-faq-item summary::-webkit-details-marker { display: none; }
.tr-faq-item summary:hover { color: var(--hfk-flame-dark); }
.tr-faq-item summary i { flex: 0 0 auto; color: var(--hfk-flame); transition: transform .35s var(--hfk-ease); }
.tr-faq-item[open] summary i { transform: rotate(135deg); }
.tr-faq-item > div { padding: 0 1.1rem 1rem; overflow: hidden; }
.tr-faq-item p { margin: 0; font-size: .94rem; color: var(--hfk-text); }

.tr-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.tr-cta-inner h2 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.tr-cta-inner p { margin: 0; color: #D5DADF; }
.tr-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------------------------------------------------------------------
 * 9. Adaptation aux écrans
 * ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .tr-layout { grid-template-columns: minmax(0, 1fr); }
    .tr-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .tr-history { grid-column: 1 / -1; }
    .tr-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .tr-hero-grid, .tr-info-grid { grid-template-columns: minmax(0, 1fr); }
    .tr-hero.is-compact .tr-hero-text { display: none; }
    .tr-stepper { padding: 1.2rem 1rem; }
    .tr-stepper ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .tr-stepper-track { top: 1.2rem; bottom: 1.2rem; left: calc(1rem + 20px); right: auto; width: 4px; height: auto; }
    .tr-stepper-track span { width: 100% !important; height: 0; transition: height 1.4s var(--hfk-ease); }
    .tr-stepper.is-ready .tr-stepper-track span { height: var(--tr-progress, 0%); }
    .tr-stepper li { flex-direction: row; align-items: center; gap: .9rem; padding: .45rem 0; text-align: left; }
    .tr-stepper li small { display: none; }
    .tr-stepper li.is-active small { display: block; margin: 0; }
    .tr-stepper li.is-active { flex-wrap: wrap; }
    .tr-stepper li.is-active small { flex: 0 0 100%; padding-left: calc(44px + .9rem); margin-top: -.5rem; }
    .tr-step-dot { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; }
    .tr-stepper li.is-active .tr-step-dot { transform: none; }
}
@media (max-width: 767.98px) {
    .tr-summary { grid-template-columns: minmax(0, 1fr); }
    .tr-summary-pills { justify-content: flex-start; }
    .tr-aside { grid-template-columns: minmax(0, 1fr); }
    .tr-card-head { flex-wrap: wrap; }
    .tr-card-head > div { flex: 1 1 60%; }
    .tr-card-head .status-pill { margin-left: calc(48px + .9rem); }
    .tr-addresses, .tr-facts, .tr-proof-fields { grid-template-columns: minmax(0, 1fr); }
    .tr-unlock { grid-template-columns: minmax(0, 1fr); }
    .tr-unlock-preview { display: none; }
    .tr-totals { max-width: none; }
    .tr-cta-inner, .tr-cta-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 575.98px) {
    .tr-search-row { flex-direction: column; }
    .tr-search .btn { width: 100%; }
    .tr-amounts { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .tr-amounts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; }
    .bank-row { grid-template-columns: minmax(0, 1fr); }
    .bank-row dt { padding: .45rem 1rem .1rem; background: none; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
    .bank-row dd { padding-top: 0; }
    .tr-how-grid { grid-template-columns: minmax(0, 1fr); }
    .tr-items li { align-items: flex-start; flex-wrap: wrap; }
    .tr-item-total { flex: 0 0 100%; padding-left: calc(64px + .9rem); margin-top: -.4rem; }
    .tr-route { padding: .9rem .6rem; gap: .5rem; }
    .tr-route-end small { max-width: 70px; }
    .tr-proofs li { flex-wrap: wrap; }
    .tr-proofs li > div { flex: 1 1 60%; }
    .tr-proofs li .status-pill { margin-left: calc(40px + .9rem); }
    .tr-invoice > div { flex: 1 1 60%; }
    .tr-proof-submit .btn, .tr-unlock-form .btn, .tr-summary-actions .btn { width: 100%; }
    .tr-invoice .btn { flex: 1 1 40%; }
    .tr-timeline-more { margin-left: 0; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .tr-stepper-track span, .tr-route-line span, .tr-route-truck, .tr-paybar span { transition: none; animation: none; }
}
@media print {
    .tr-hero, .tr-summary-actions, .tr-proof, .tr-help .btn, .tr-tips, .tr-cta, .tr-unlock, .bank-copy, .tr-copy, .tr-timeline-more { display: none !important; }
    .tr-section { background: #fff; padding: 0; }
    .tr-layout { grid-template-columns: minmax(0, 1fr); }
    .tr-card, .tr-summary, .tr-stepper { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .tr-timeline li[hidden] { display: flex; }
}

/* Les entrées latérales (AOS fade-left / fade-right) ne doivent pas élargir la page */
.tr-info { overflow-x: clip; }