/* Démo interactive « Essayer TITAN » : une reproduction jouable des écrans de TITAN POS et du tableau de bord.
   Les écrans gardent l'allure de l'application (police système, bleu TITAN), distincte du site autour. */
.tdemo {
  --t-brand: #1D3FCB;
  --t-brand-dark: #172F96;
  --t-brand-soft: rgba(29, 63, 203, .10);
  --t-ink: #0F172A;
  --t-muted: #5B6779;
  --t-line: #E4E8EE;
  --t-bg: #F4F6FA;
  --t-card: #FFFFFF;
  --t-good: #15803D;
  --t-good-bg: #E7F6EC;
  --t-warn: #B45309;
  --t-warn-bg: #FEF3C7;
  --t-danger: #C62828;
  --t-free: #15803D;
  --t-busy: #C2410C;
  --t-context: #8793A6;
  --t-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  overflow: clip;
  background: var(--t-bg);
  color: var(--t-ink);
  font-family: var(--t-font);
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 30px 70px -36px rgba(13, 27, 46, .45);
}
.tdemo button { font-family: inherit; cursor: pointer; }
.tdemo :focus-visible { outline: 3px solid var(--t-brand); outline-offset: 2px; }
.tdemo .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Barre du haut : vues + guide */
.td-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 14px; background: var(--t-card); border-bottom: 1px solid var(--t-line); }
.td-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--t-bg); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.td-tabs::-webkit-scrollbar { display: none; }
.td-tabs button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--t-muted); font-weight: 700; font-size: 14px; }
.td-tabs button[aria-selected="true"] { background: var(--t-card); color: var(--t-brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.td-guide { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--t-ink); font-weight: 600; }
.td-guide b { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--t-brand); color: #fff; font-size: 13px; }

.td-view { min-height: 600px; }
.td-view[hidden] { display: none; }

/* ---------- Caisse ---------- */
.td-pos { display: grid; grid-template-columns: 1fr; min-height: 600px; }
@container td (min-width: 720px) { .td-pos { grid-template-columns: minmax(0, 1fr) 320px; } }
@container td (min-width: 1060px) { .td-pos { grid-template-columns: 150px minmax(0, 1fr) 340px; } }
.td-side { display: none; flex-direction: column; gap: 4px; padding: 14px 10px; background: linear-gradient(180deg, var(--t-brand-dark), var(--t-brand)); color: #fff; }
@container td (min-width: 1060px) { .td-side { display: flex; } }
.td-side-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; }
.td-side-brand svg { width: 22px; height: 28px; --logo-mark: #FFFFFF; }
.td-side-brand strong { display: block; font-size: 14px; letter-spacing: .02em; }
.td-side-brand span { display: block; font-size: 11.5px; opacity: .8; }
.td-side button { display: block; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-weight: 700; font-size: 13.5px; text-align: left; }
.td-side button[aria-current="true"] { background: rgba(255, 255, 255, .18); }
.td-side button:hover { background: rgba(255, 255, 255, .12); }
.td-side-foot { margin-top: auto; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 12px; }
.td-side-foot strong { display: block; font-size: 13px; }

.td-products { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-width: 0; }
.td-context { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--t-card); border: 1px solid var(--t-line); font-size: 13px; font-weight: 700; }
.td-chip.is-brand { background: var(--t-brand-soft); border-color: transparent; color: var(--t-brand); }
.td-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.td-cats::-webkit-scrollbar { display: none; }
.td-cats button { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-card); color: var(--t-ink); font-weight: 700; font-size: 13.5px; }
.td-cats button[aria-pressed="true"] { border-color: var(--t-brand); background: var(--t-brand); color: #fff; }
.td-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; align-content: start; }
.td-tile { position: relative; display: grid; align-content: space-between; gap: 10px; min-height: 108px; padding: 12px 12px 14px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-card); color: var(--t-ink); text-align: left; box-shadow: 0 4px 12px rgba(15, 23, 42, .05); transition: transform .08s ease, border-color .12s ease; }
.td-tile:hover { border-color: var(--t-brand); }
.td-tile:active { transform: scale(.97); }
.td-tile strong { font-size: 15px; line-height: 1.25; }
.td-tile span { font-size: 13.5px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.td-tile i { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--t-brand); color: #fff; font-style: normal; font-weight: 800; font-size: 17px; line-height: 1; }
.td-tile.is-added { border-color: var(--t-brand); box-shadow: 0 0 0 3px var(--t-brand-soft); }

/* Ticket */
.td-ticket { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--t-card); border-top: 1px solid var(--t-line); }
@container td (min-width: 720px) { .td-ticket { border-top: 0; border-left: 1px solid var(--t-line); } }
.td-ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--t-line); }
.td-ticket-head strong { font-size: 16px; }
.td-ticket-head span { font-size: 12.5px; color: var(--t-muted); }
.td-lines { flex: 1; margin: 0; padding: 4px 0; list-style: none; overflow-y: auto; min-height: 160px; max-height: 360px; }
.td-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--t-bg); }
.td-line-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.td-qty { display: inline-flex; align-items: center; gap: 2px; }
.td-qty button, .td-del { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--t-line); border-radius: 9px; background: var(--t-card); color: var(--t-ink); font-weight: 800; font-size: 16px; }
.td-qty output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.td-line-amount { min-width: 74px; text-align: right; font-weight: 700; font-size: 14px; }
.td-del { color: var(--t-danger); border-color: #F5D0D0; }
.td-del svg { width: 16px; height: 16px; }
.td-empty { padding: 28px 16px; color: var(--t-muted); text-align: center; font-size: 14px; }
.td-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px 6px; border-top: 1px solid var(--t-line); }
.td-total span { color: var(--t-muted); font-weight: 600; }
.td-total strong { font-size: 24px; letter-spacing: -0.01em; }
.td-ticket-actions { display: grid; gap: 8px; padding: 8px 16px 16px; }
.td-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--t-brand); color: #fff; font-weight: 800; font-size: 15px; }
.td-btn:hover { background: var(--t-brand-dark); }
.td-btn:disabled { opacity: .45; cursor: not-allowed; }
.td-btn.is-ghost { background: var(--t-card); color: var(--t-ink); border: 1px solid var(--t-line); }
.td-btn.is-good { background: var(--t-good); }
.td-note { margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: var(--t-warn-bg); color: #7A3E00; font-size: 13px; line-height: 1.4; }
.td-note[hidden] { display: none; }

/* Barre fixe en bas sur téléphone (ticket hors de vue) */
.td-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--t-ink); color: #fff; }
.td-bar span { font-weight: 700; font-size: 14px; }
.td-bar button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: var(--t-ink); font-weight: 800; }
.td-bar[hidden] { display: none; }
@container td (min-width: 720px) { .td-bar { display: none; } }

/* Paiement et ticket imprimé : fenêtres <dialog> au-dessus de la page */
.td-dlg { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--t-ink); font-family: var(--t-font); overflow: visible; }
.td-dlg::backdrop { background: rgba(15, 23, 42, .6); }
.td-dlg.is-print { width: min(400px, calc(100vw - 32px)); }
.td-panel { width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--t-card); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); }
.td-panel h3 { margin: 0; font-size: 18px; }
.td-panel .td-due { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.td-modes, .td-cash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.td-cash { grid-template-columns: repeat(2, 1fr); }
.td-modes button, .td-cash button { min-height: 52px; padding: 6px; border: 2px solid var(--t-line); border-radius: 12px; background: var(--t-card); color: var(--t-ink); font-weight: 700; font-size: 14px; line-height: 1.2; }
.td-modes button[aria-pressed="true"], .td-cash button[aria-pressed="true"] { border-color: var(--t-brand); background: var(--t-brand-soft); color: var(--t-brand); }
.td-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--t-muted); }
.td-change { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--t-good-bg); color: #14532D; font-weight: 700; }
.td-change[hidden] { display: none; }
.td-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.td-print { width: 100%; display: grid; justify-items: center; gap: 0; }
.td-slot { width: 290px; max-width: 100%; height: 20px; border-radius: 10px; background: #0D1B2E; box-shadow: inset 0 -6px 0 #22344F; position: relative; z-index: 2; }
.td-paper-clip { width: 262px; max-width: calc(100% - 28px); margin-top: -10px; padding: 0 10px 22px; overflow: hidden; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .25)); }
.td-paper { background: #FBFBF7; color: #25282C; font-family: var(--f-mono, ui-monospace, "Courier New", monospace); font-size: 12px; line-height: 1.5; padding: 22px 18px 26px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 9px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 9px repeat-x;
  animation: td-imprimer 1.8s steps(16, end) both; }
@keyframes td-imprimer { from { transform: translateY(-75%); } to { transform: none; } }
.td-paper p { margin: 0; }
.td-paper .c { text-align: center; }
.td-paper .b { font-weight: 700; }
.td-paper .sep { border-top: 1px dashed #9AA0A6; margin: 8px 0; }
.td-paper .r { display: flex; justify-content: space-between; gap: 10px; }
.td-paper .r span:last-child { white-space: nowrap; }
.td-print-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.td-print-actions .td-btn { flex: 1 1 auto; }

/* ---------- Tables ---------- */
.td-floor { padding: 16px; display: grid; gap: 14px; align-content: start; }
.td-floor-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.td-floor-head h3 { margin: 0; font-size: 18px; }
.td-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--t-muted); font-weight: 600; }
.td-legend li { display: inline-flex; align-items: center; gap: 6px; }
.td-legend i { width: 12px; height: 12px; border-radius: 4px; }
.td-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container td (min-width: 640px) { .td-tables { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.td-table { display: grid; gap: 4px; align-content: center; justify-items: center; min-height: 118px; padding: 12px; border: 0; border-radius: 16px; color: #fff; text-align: center; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.td-table strong { font-size: 30px; line-height: 1; }
.td-table span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.td-table em { font-style: normal; font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.td-table.is-free { background: var(--t-free); }
.td-table.is-busy { background: var(--t-busy); }
.td-table.is-mine { background: var(--t-brand); }
.td-floor-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--t-card); border: 1px solid var(--t-line); font-size: 14px; }
.td-floor-msg[hidden] { display: none; }

/* ---------- Tableau de bord ---------- */
.td-dash { padding: 18px; display: grid; gap: 18px; align-content: start; background: var(--t-card); }
.td-dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.td-dash-head h3 { margin: 0; font-size: 20px; }
.td-dash-head h3 small { font-weight: 500; color: var(--t-muted); font-size: 16px; }
.td-dash-head p { margin: 2px 0 0; color: var(--t-muted); font-size: 13px; }
.td-dash-main { display: grid; gap: 20px; }
@container td (min-width: 980px) { .td-dash-main { grid-template-columns: minmax(0, 1fr) 320px; } }
.td-day { margin: 0; color: var(--t-muted); font-weight: 600; font-size: 14px; }
.td-figure { margin: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.td-figure small { font-size: .38em; color: var(--t-muted); font-weight: 700; letter-spacing: 0; }
.td-sub { margin: 4px 0 0; color: var(--t-muted); font-size: 14px; }
.td-headline { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid #F59E0B; background: #FFFBEB; border-radius: 0 10px 10px 0; font-size: 15.5px; }
.td-compare { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 14px 0 0; }
.td-compare div { display: grid; }
.td-compare dt { font-size: 12.5px; color: var(--t-muted); }
.td-compare dd { margin: 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.td-up { color: var(--t-good); }
.td-down { color: var(--t-danger); }
.td-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 4px; padding: 0; list-style: none; font-size: 13px; color: var(--t-muted); }
.td-keys li { display: inline-flex; align-items: center; gap: 6px; }
.td-keys i { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--t-brand); }
.td-keys i.ctx { border-top-color: var(--t-context); }
.td-chart { position: relative; }
.td-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.td-chart text { font-family: var(--t-font); font-size: 11px; fill: var(--t-muted); }
.td-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 160px; padding: 8px 10px; border-radius: 10px; background: var(--t-ink); color: #fff; font-size: 12.5px; line-height: 1.45; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.td-tip[hidden] { display: none; }
.td-tip b { display: block; margin-bottom: 2px; }
.td-tip span { display: flex; justify-content: space-between; gap: 12px; }
.td-watch { padding: 16px; border-radius: 14px; background: var(--t-bg); display: grid; gap: 4px; align-content: start; }
.td-watch h4 { margin: 0 0 6px; font-size: 16px; }
.td-watch ul { margin: 0; padding: 0; list-style: none; }
.td-watch li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--t-line); }
.td-watch li:last-child { border-bottom: 0; }
.td-watch strong { display: block; font-size: 14px; line-height: 1.3; }
.td-watch p { margin: 2px 0 0; font-size: 13px; color: var(--t-muted); line-height: 1.4; }
.td-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; }
.td-ico.warn { background: #F59E0B; color: #3B2600; }
.td-ico.info { background: var(--t-context); }
.td-ico.good { background: var(--t-good); }
.td-watch li.is-new { animation: td-flash 1.6s ease 1; }
@keyframes td-flash { 0%, 40% { background: #FEF3C7; } 100% { background: transparent; } }
.td-cards { display: grid; gap: 16px; }
@container td (min-width: 760px) { .td-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.td-card { padding: 16px; border: 1px solid var(--t-line); border-radius: 14px; display: grid; gap: 10px; align-content: start; }
.td-card h4 { margin: 0; font-size: 15px; }
.td-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.td-bars li { display: grid; gap: 4px; }
.td-bars .lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.td-bars .lbl span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.td-bars .trk { height: 8px; border-radius: 4px; background: var(--t-bg); overflow: hidden; }
.td-bars .trk i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--t-brand); transition: width .4s ease; }
.td-bars small { font-size: 12px; color: var(--t-muted); }
.td-list { margin: 0; padding: 0; list-style: none; display: grid; }
.td-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--t-bg); font-size: 13.5px; }
.td-list li:last-child { border-bottom: 0; }
.td-list li > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-list .muted { color: var(--t-muted); font-weight: 400; }
.td-table-alt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Mail du soir ---------- */
.td-mailview { padding: 18px; display: grid; gap: 12px; justify-items: center; align-content: start; }
.td-mailmeta { width: min(640px, 100%); padding: 12px 16px; border-radius: 12px; background: var(--t-card); border: 1px solid var(--t-line); font-size: 13.5px; display: grid; gap: 2px; }
.td-mailmeta span { color: var(--t-muted); }
.td-mail { width: min(640px, 100%); border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--t-line); font-family: Arial, Helvetica, sans-serif; color: #0F172A; }
.td-mail-head { padding: 20px 24px; background: var(--t-brand); color: #fff; }
.td-mail-head strong { display: block; font-size: 19px; }
.td-mail-head span { display: block; margin-top: 4px; font-size: 14px; color: #DCE4FF; }
.td-mail-demo { padding: 10px 24px; background: #EEF4FF; color: #1E3A8A; font-size: 13px; }
.td-mail-body { padding: 20px 24px 24px; display: grid; gap: 16px; }
.td-mail-body h5 { margin: 0 0 6px; font-size: 13px; color: #64748B; font-weight: 700; }
.td-mail .big { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.td-mail .sub { margin: 4px 0 0; color: #475569; font-size: 14px; }
.td-mail .head { margin: 0; padding: 10px 12px; background: #F4F6FF; border-left: 3px solid var(--t-brand); border-radius: 0 8px 8px 0; font-size: 14px; }
.td-mail table { width: 100%; border-collapse: collapse; font-size: 14px; }
.td-mail td { padding: 7px 0; border-bottom: 1px solid #EEF1F5; }
.td-mail td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.td-mail .foot { margin: 0; font-size: 12.5px; color: #64748B; }

/* Fin de parcours */
.td-after { display: grid; gap: 14px; justify-items: start; }
@media (prefers-reduced-motion: reduce) { .td-paper, .td-watch li.is-new { animation: none; } .td-bars .trk i { transition: none; } }

/* ---------- Compléments ---------- */
.tdemo [hidden], .td-dlg [hidden] { display: none !important; }
.td-ticket { scroll-margin-top: 90px; }
.td-hint { margin: 0 16px 14px; font-size: 13px; color: var(--t-muted); line-height: 1.4; }
.td-info { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--t-bg); color: var(--t-ink); font-size: 14px; }
.td-noscript { padding: 40px 24px; text-align: center; color: var(--t-ink); }
.td-noscript a { color: var(--t-brand); font-weight: 700; }
.td-side-foot span { display: block; opacity: .85; }
.td-mailnote { margin: 6px 0 0; color: var(--t-muted); font-size: 13px; }
.td-mailmeta > div span { color: var(--t-muted); }
.td-mail-actions { width: min(640px, 100%); display: flex; flex-wrap: wrap; gap: 10px; }
.td-mail-actions .td-btn { flex: 1 1 200px; }

/* Courbe */
.td-chart .grid { stroke: var(--t-line); stroke-width: 1; }
.td-chart .base { stroke: #CBD5E1; stroke-width: 1; }
.td-chart .hab { fill: none; stroke: var(--t-context); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.td-chart .jour { fill: none; stroke: var(--t-brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.td-chart .aire { fill: var(--t-brand); opacity: .08; }
.td-chart .pt { fill: var(--t-brand); stroke: #fff; stroke-width: 2; }
.td-chart .pt-hab { fill: var(--t-context); stroke: #fff; stroke-width: 2; }
.td-chart .cross { stroke: #94A3B8; stroke-width: 1; }
.td-chart svg:focus-visible { outline: 3px solid var(--t-brand); outline-offset: 4px; border-radius: 6px; }
.td-chart svg { touch-action: pan-y; }
.td-keys i.ctx { border-top-style: dashed; }

/* Scène : la démo s'adapte à la largeur disponible (ordinateur) ou à celle du terminal */
.td-stage { container: td / inline-size; }
.td-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.td-toolbar p { margin: 0; color: var(--muted); font-size: 1rem; }
.td-device { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--mist); }
.td-device button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: .95rem; cursor: pointer; }
.td-device button[aria-pressed="true"] { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(13, 27, 46, .14); }
@media (max-width: 719px) { .td-device { display: none; } }
.td-stage.is-terminal { width: 410px; max-width: 100%; margin-inline: auto; padding: 16px 12px 26px; border-radius: 42px; background: #0D1B2E; box-shadow: 0 40px 80px -40px rgba(13, 27, 46, .6), inset 0 0 0 2px #22344F; }
.td-stage.is-terminal .tdemo { height: 780px; overflow-x: hidden; overflow-y: auto; border: 0; border-radius: 28px; box-shadow: none; overscroll-behavior: contain; scrollbar-width: thin; }

/* Page « Essayer TITAN » */
.essai-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.essai-note { justify-self: start; padding: 8px 14px; border-radius: 12px; background: var(--mist); color: var(--fg); font-size: .95rem; font-weight: 600; }
.essai-suite { display: grid; gap: 24px; align-items: center; }
.essai-suite h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.essai-suite p { margin-top: 12px; max-width: 62ch; color: var(--muted); }
@media (min-width: 900px) { .essai-suite { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

/* Sur téléphone : le bouton du conseiller passe au-dessus de la barre du ticket */
@media (max-width: 719px) { body.td-bar-on .fab { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }
