/* Qubo Terminal PC · charte et composants (refonte du 13 novembre 2026).
   Chargé après app.css et app-fin.css, seulement à partir de 1024 px de large ; toutes les règles visent html.tv2, la classe
   que app.js pose sur le Terminal PC. La version mobile ne lit donc rien ici.
   Ordre : 1 variables · 2 base · 3 coque (en-tête, tiroirs, recherche Ctrl K, bandeau, menu latéral, barre d'état avec
   le chemin de la page) · 4 composants (panneau, KPI, tableau, boutons, segments, états) · 5 pages · 6 animations réduites.
   Valeurs alignées sur la charte du site public (assets/qubo.css). Après toute modification : node tools/app-version.cjs. */

/* ---------- 1. Variables ---------- */
html.tv2{
  --bg:#0A0A0A; --surface:#101010; --surface-2:#161615; --well:#0B0B0B;
  --line:#242422; --line-2:#1C1C1A; --line-hi:#3A3A37;
  --accent-bg:#150F06; --accent-line:#3A2A12;
  --f-num:'IBM Plex Mono',ui-monospace,monospace; /* aucun chiffre en police pixel (Paul, 2026-11-13) */
  --r:6px; --r-s:4px;
  --t-lbl:11px; --t-h:12px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Base ---------- */
html.tv2 body{background-color:var(--bg); background-image:radial-gradient(#161614 1px,transparent 1px); background-size:28px 28px; background-attachment:fixed; font-variant-numeric:tabular-nums}
html.tv2 :focus-visible{outline:2px solid var(--accent)!important; outline-offset:2px}
html.tv2 ::selection{background:var(--accent); color:#0A0A0A}
html.tv2 *{scrollbar-width:thin; scrollbar-color:#2C2C2A transparent}
html.tv2 ::-webkit-scrollbar{width:8px; height:8px}
html.tv2 ::-webkit-scrollbar-thumb{background:#2C2C2A; border-radius:8px; border:2px solid transparent; background-clip:padding-box}
html.tv2 ::-webkit-scrollbar-thumb:hover{background-color:#3A3A37}
html.tv2 ::-webkit-scrollbar-track{background:transparent}

/* ---------- 3. Coque ---------- */
/* En-tête : même contenu, page active soulignée en orange au lieu d'un bloc plein. */
html.tv2 .top{background:rgba(10,10,10,.92); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom-color:var(--line)}
html.tv2 .top nav.menu>button,html.tv2 .top nav.menu>button[aria-current="page"]{position:relative; border-radius:var(--r-s); transition:color .15s,background-color .15s}
html.tv2 .top nav.menu>button:hover{background:#151514}
html.tv2 .top nav.menu>button.tvon,html.tv2 .top nav.menu>button.hdon{background:transparent; color:var(--ink); font-weight:600}
html.tv2 .top nav.menu>button.tvon::before{content:""; position:absolute; left:4px; right:4px; bottom:-10px; height:2px; background:var(--accent); border-radius:2px}
html.tv2 .top nav.menu>button.hdon{background:#151514}
html.tv2 .top nav.menu>button[data-page=rep].tvon{background:transparent; color:var(--ink)}
html.tv2 .top nav.menu>button[data-page=scr],html.tv2 .top nav.menu>button[data-page=scr][aria-current="page"]{border-radius:var(--r-s); transition:border-color .15s,background-color .15s}
html.tv2 .top nav.menu>button[data-page=scr]:hover{background:var(--accent-bg)}
html.tv2 .top nav.menu>button[data-page=scr].tvon::before{display:none}
html.tv2 .top nav.menu>button[data-page=scr] .qcur{animation:tqBlink 1.1s steps(1) infinite}
html.tv2 .top .btn,html.tv2 .tvsup,html.tv2 .tvtok,html.tv2 .tvplans{border-radius:var(--r-s)}
html.tv2 .tvsup{transition:border-color .15s,color .15s,background-color .15s}
html.tv2 .tvsup:hover{border-color:var(--line-hi); background:#151514}

/* Tiroirs de l'en-tête : glissent à l'ouverture, ombre portée. */
html.tv2 .hddr{border-radius:0 0 var(--r) var(--r); border-color:var(--line); background:#0D0D0C; box-shadow:0 22px 48px -18px rgba(0,0,0,.85); animation:tqDrop .14s var(--ease)}
html.tv2 .hddr button[role=menuitem]{border-radius:var(--r-s); transition:background-color .12s,color .12s}
html.tv2 .hddr button[role=menuitem]:hover,html.tv2 .hddr button[role=menuitem]:focus-visible{background:#171716}
html.tv2 .hddr button[role=menuitem][aria-current="page"]{background:var(--accent-bg); box-shadow:inset 2px 0 0 var(--accent)}

/* Recherche : champ de commande (Ctrl K ou /), pastille de raccourci, résultats groupés. */
html.tv2 .tvsearch{border-radius:var(--r-s); background:var(--well); border-color:var(--line); transition:border-color .15s,box-shadow .15s}
html.tv2 .tvsearch:hover{border-color:var(--line-hi)}
html.tv2 .tvsearch:focus-within{box-shadow:0 0 0 3px rgba(255,138,0,.12)}
html.tv2 .tvsearch input{min-width:0}
html.tv2 .tvsearch input:focus-visible{outline:0!important}
html.tv2 .tvsearch .tqkbd{flex:none; display:inline-flex; gap:3px; margin-left:auto; pointer-events:none}
html.tv2 .tvsearch .tqkbd kbd{font:500 10px/1 var(--f-mono); color:var(--ink-3); padding:3px 5px; border:1px solid var(--line-hi); border-bottom-width:2px; border-radius:3px; background:#121211}
html.tv2 .tvsearch:focus-within .tqkbd{display:none}
html.tv2 .tvsug{border-radius:0 0 var(--r) var(--r); box-shadow:0 22px 48px -18px rgba(0,0,0,.85); max-height:min(70vh,560px); overflow-y:auto}
html.tv2 .tvsug .tqgrp{padding:10px 12px 4px; font:600 10px/1 var(--f-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3)}
html.tv2 .tvsug .tqgrp::before{content:"// "; color:var(--accent)}
html.tv2 .tvsug button.tqi{display:flex; align-items:center; gap:10px; width:100%}
html.tv2 .tvsug button.tqi .tqp{color:var(--ink-3); font-size:11px; margin-left:auto; white-space:nowrap}
html.tv2 .tvsug button.tqi .tqa{color:var(--accent)}
html.tv2 .tvsug button[aria-selected="true"]{box-shadow:inset 2px 0 0 var(--accent)}
/* Documents Qubo Research (tqRepLi) : titre et accès sur la 1re ligne, type et date dessous. */
html.tv2 .tvsug button.tqrp{display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:10px; row-gap:2px}
html.tv2 .tvsug button.tqrp .tqt{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
html.tv2 .tvsug button.tqrp .tqp{grid-column:2/4; grid-row:2; margin-left:0; overflow:hidden; text-overflow:ellipsis}
html.tv2 .tvsug button.tqrp .tqb{align-self:center; font:600 10px/1 var(--f-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); white-space:nowrap}
html.tv2 .tvsug button.tqrp .tqb.ok{color:var(--up)}
html.tv2 .tvsug button.tqrp .tqb.gift,html.tv2 .tvsug button.tqrp .tqb.tk{color:var(--accent)}

/* Bandeau de cours : pause au survol, cellules qui clignotent quand le prix change. */
html.tv2 .tvtick{background:rgba(10,10,10,.94); border-bottom-color:var(--line)}
html.tv2 .tvtick:hover>div,html.tv2 .tvtick:focus-within>div{animation-play-state:paused}
html.tv2 .tvtick button{transition:background-color .6s}
html.tv2 .tvtick button:hover{background:#141413}
html.tv2 .tvtick b[data-p]:empty::before{content:""; display:inline-block; width:54px; height:9px; border-radius:2px; background:#1A1A18; vertical-align:middle; animation:tqSk 1.4s ease-in-out infinite}
html.tv2 .tvtick span[data-c]:empty::before{content:""; display:inline-block; width:34px; height:9px; border-radius:2px; background:#161614; vertical-align:middle}
html.tv2 .tqup{animation:tqUp .7s ease-out}
html.tv2 .tqdn{animation:tqDn .7s ease-out}

/* Menu latéral : même marque que l'en-tête pour l'élément actif, survol doux. */
html.tv2 body.tvsub .tvsubnav{background:rgba(10,10,10,.96); border-right-color:var(--line)}
html.tv2 .tvsubnav button{border-radius:var(--r-s); transition:color .12s,background-color .12s}
html.tv2 .tvsubnav button:hover{background:#121211}
html.tv2 .tvsubnav button[aria-current="page"]{background:var(--accent-bg); color:var(--ink); box-shadow:inset 2px 0 0 var(--accent)}
html.tv2 .tvsubnav button.soon::after{border-radius:3px; border-color:var(--line-hi)}

/* Barre d'état : chemin « $ cd rubrique/vue » de la page ouverte, flux, formule, devise, raccourci ; liens légaux à droite. */
html.tv2 .tvstat{background:rgba(10,10,10,.94); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-top-color:var(--line); color:#9A9A93; font-size:11px; gap:18px}
html.tv2 .tvstat>span{white-space:nowrap; flex:none}
html.tv2 .tvstat .r{flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; margin-left:auto}
html.tv2 .tvstat .tqs{display:inline-flex; align-items:center; gap:6px; white-space:nowrap}
html.tv2 .tvstat .tqcd{min-width:150px; color:var(--ink-2)}
html.tv2 .tvstat .tqk{gap:3px}
html.tv2 .tvstat .tqs b{font-weight:500; color:var(--ink-2)}
html.tv2 .tvstat .tqs kbd{font:500 10px/1 var(--f-mono); color:var(--ink-2); padding:2px 5px; border:1px solid var(--line-hi); border-radius:3px}
html.tv2 .tvstat .tqtag{display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--ink); letter-spacing:.08em}
html.tv2 .tvstat .tqtag i{display:inline-block; width:6px; height:6px; background:var(--accent)}
html.tv2 .tvstat .r{color:#76766F}
html.tv2 .tvstat .r a{color:#8E8E87}
html.tv2 .tvstat .r a:hover{color:var(--ink)}

/* ---------- 4. Composants ---------- */
/* Panneau : un seul style partout (fond, bord, arrondi). */
html.tv2 .tvbox,html.tv2 #pgCoin .panel,html.tv2 #profile .panel,html.tv2 section.ipoh{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden}
html.tv2 .tvbh{border-bottom-color:var(--line-2); padding:12px 16px}
/* Titre de panneau : blanc, capitales, repère orange carré (le ■ de « LESS NOISE ■ BETTER SIGNAL »). */
html.tv2 .tvt,html.tv2 #pgDash .ph h2,html.tv2 #pgCoin .panel h2,html.tv2 #pgCoin .panel h3{display:inline-flex; align-items:center; gap:7px; color:var(--ink); font-size:var(--t-h); font-weight:600; letter-spacing:.06em; white-space:nowrap}
html.tv2 .tvt::before,html.tv2 #pgDash .ph h2::before{content:""; flex:none; width:6px; height:6px; background:var(--accent)}
html.tv2 .tvprompt{color:var(--ink-3)}
html.tv2 .tvprompt b,html.tv2 .tvprompt::first-letter{color:var(--accent)}
html.tv2 .tvempty{color:var(--ink-2)}
html.tv2 .tvmut{color:var(--ink-3)}

/* Bande de KPI : cellules séparées, valeur en IBM Plex Mono. */
html.tv2 .tvkpi{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden}
html.tv2 .tvkpi>div{border-right-color:var(--line-2); padding:14px 18px; transition:background-color .15s}
html.tv2 .tvkpi>div:hover{background:#121211}
html.tv2 .tvkpi .l{font-size:var(--t-lbl); letter-spacing:.08em; color:var(--ink-3)}
html.tv2 .tvkpi b{font-family:var(--f-num); font-weight:500; font-size:22px; letter-spacing:-.01em; line-height:1.15}

/* Boutons et segments : arrondis, transitions. */
html.tv2 .tvbtn{border-radius:var(--r-s); transition:border-color .15s,background-color .15s,color .15s,transform .1s}
html.tv2 .tvbtn:hover{border-color:var(--line-hi); background:#151514}
html.tv2 .tvbtn:active{transform:translateY(1px)}
html.tv2 .tvbtn.acc{background:var(--accent-bg)}
html.tv2 .tvbtn.acc:hover{background:#21170A}
html.tv2 .tvbtn.pri:hover{background:#FF9A24; border-color:#FF9A24}
html.tv2 .tvseg{border-radius:var(--r-s); overflow:hidden; border-color:var(--line)}
html.tv2 .tvseg button{transition:color .12s,background-color .12s}
html.tv2 .tvseg button[aria-pressed="true"]{background:var(--accent-bg)}
html.tv2 .seg{border-radius:var(--r-s)}
html.tv2 input.tvq,html.tv2 .tvq input,html.tv2 .tvbox input[type=search],html.tv2 .tvbox input[type=text],html.tv2 .tvbox select{border-radius:var(--r-s)}

/* Tableaux : en-tête discret, chiffres alignés, survol avec liseré orange. */
html.tv2 table{font-variant-numeric:tabular-nums}
html.tv2 .tvbox table thead th,html.tv2 .tvbox .hd>span{font-size:var(--t-lbl); letter-spacing:.08em; color:var(--ink-3)}
html.tv2 .tvbox tbody tr{transition:background-color .12s}
html.tv2 .tvbox tbody tr:hover{background:#131312}
html.tv2 .tvbox tbody tr:hover>*:first-child{box-shadow:inset 2px 0 0 var(--accent)}

/* Chargement : les trois points restent, en plus doux ; squelette sur les listes vides en attente. */
html.tv2 .ld{color:var(--ink-3)}

/* Pastilles de formule (PULSE+, EDGE+, APEX) : un seul gabarit. */
html.tv2 .hdtag,html.tv2 .tvsubnav .tag,html.tv2 .tvsubnav button>.pl{border-radius:3px}

/* Couches : fenêtres et menus avec la même ombre et le même arrondi. */
html.tv2 .ovl>div,html.tv2 .ovl .dlg,html.tv2 .plansdlg,html.tv2 .aadlg,html.tv2 .rppop{border-radius:var(--r)}

/* ---------- 5. Pages ---------- */
/* Cryptos : carte de chaleur en attente des capitalisations, squelette au lieu d'une bande vide. */
html.tv2 .tvhm{border-radius:var(--r); overflow:hidden}
html.tv2 .tvhm:empty{min-height:120px; background:linear-gradient(90deg,#121211 0%,#171716 50%,#121211 100%); background-size:200% 100%; animation:tqShim 1.6s linear infinite; border:1px solid var(--line)}

/* Accueil : panneaux séparés par une gouttière (mêmes largeurs qu'avant). */
html.tv2 #pgDash{gap:12px; background:transparent; border:0; overflow:visible}
html.tv2 #pgDash .panel{border:1px solid var(--line); border-radius:var(--r); background:var(--surface)}
html.tv2 #pfVal,html.tv2 #psVal{font-family:var(--f-num); font-weight:500; letter-spacing:-.01em}
html.tv2 #fgNum{font-family:var(--f-num); font-weight:500}

/* Calendrier macro de l'Accueil sur un écran peu haut (1280 × 800) : la légende Research se replie et les cases se resserrent,
   pour qu'un événement tienne entier dans chaque case au lieu d'être coupé. */
html.tv2 #mcPanel .ph{gap:8px; flex-wrap:nowrap}
html.tv2 #mcPanel .mcgnav button.rg{white-space:nowrap; padding:0 2px}
html.tv2 #mcPanel .mcgnav .nav{gap:3px}
/* Moins de 1440 px : la plage de dates (simple libellé quand on est sur la semaine en cours) laisse la place aux boutons. */
@media (max-width:1439px){html.tv2 #mcPanel .ph h2{letter-spacing:.03em} html.tv2 #mcPanel .mcgseg button{padding:2px 6px} html.tv2 #mcPanel .mcgnav button.rg[disabled]{display:none}}
html.tv2 .tvmc.tqtight .mcglg>.lg+.lg{display:none}
html.tv2 .tvmc.tqtight .mcg .c{padding:2px 4px}
html.tv2 .tvmc.tqtight .mcg .c .d{line-height:1.15}

/* Régime de marché : champ de points three.js derrière le texte (canevas posé par app.js). */
html.tv2 #hbRg{position:relative}
html.tv2 #hbRg>*{position:relative; z-index:1}

/* Écran d'accès (non connecté) : orbite du logo en fond, comme la landing. */
html.tv2 #gate .tqstage{position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.55}
html.tv2 #gate .tqstage canvas{display:block; width:100%; height:100%}
html.tv2 #gate .gatebox{position:relative; z-index:1; width:min(500px,100%); padding:32px 36px; border:1px solid var(--line); border-radius:var(--r); background:rgba(10,10,10,.9); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}

/* Écran d'accès en deux volets, comme la connexion de l'Admin : orbite, logo et signature à gauche, formulaire à droite. */
html.tv2 body.gated #gate.tqsplit{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(400px,.85fr); grid-template-rows:100vh; grid-template-rows:100dvh; place-items:stretch; padding:0; overflow:hidden; background:var(--bg)}
html.tv2 #gate.tqsplit .tqgv{position:relative; overflow:hidden; border-right:1px solid var(--line); background:radial-gradient(120% 90% at 30% 40%,#15100A 0%,var(--bg) 62%); width:100%; height:100%}
html.tv2 #gate.tqsplit .tqstage{opacity:1}
html.tv2 #gate.tqsplit .gatebox{position:absolute; left:28px; top:24px; width:auto; padding:0; border:0; border-radius:0; background:none; -webkit-backdrop-filter:none; backdrop-filter:none; display:block; text-align:left}
html.tv2 #gate.tqsplit .gatebox img{height:22px; width:auto; margin:0; display:block}
html.tv2 #gate.tqsplit .gatebox>:not(img){display:none}
html.tv2 #gate .tqgtl{position:absolute; left:28px; bottom:26px; z-index:1; margin:0; font:500 13px var(--f-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3)}
html.tv2 #gate .tqgtl b{font:inherit; color:var(--ink); font-weight:600}
html.tv2 #gate .tqgf{display:flex; width:100%; height:100%; padding:32px 24px; background:var(--surface); overflow-y:auto}
html.tv2 #gate .tqgf .audlg{width:100%; max-width:360px; max-height:none; overflow:visible; margin:auto; padding:0; border:0; border-radius:0; background:none; gap:12px}
html.tv2 #gate .tqgf .dlg-h h2{font:600 20px var(--f-mono); letter-spacing:.03em; text-transform:uppercase}
html.tv2 #gate .tqgf #auClose{display:none}
html.tv2 #gate .tqgf .demo{color:var(--ink-3); font-size:13px; margin:0; padding:0; border:0; background:none}
html.tv2 #gate .tqgf #auLegal a{color:var(--ink-2)}
html.tv2 #gate .tqgf .inp,html.tv2 #gate .tqgf .btn{min-height:42px}
html.tv2 #gate .tqgf .orsep{font:10.5px var(--f-mono); text-transform:uppercase; letter-spacing:.1em}
html.tv2 #gate .tqgf .gateback{font:12px var(--f-mono); color:var(--ink-3); text-align:center; text-decoration:none; margin-top:4px}
html.tv2 #gate .tqgf .gateback:hover{color:var(--accent)}

/* ---------- Animations ---------- */
@keyframes tqBlink{50%{opacity:0}}
@keyframes tqDrop{from{opacity:0; transform:translateY(-6px)}to{opacity:1; transform:none}}
@keyframes tqShim{from{background-position:200% 0}to{background-position:-200% 0}}
@keyframes tqSk{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes tqUp{from{background-color:rgba(61,213,152,.22)}to{background-color:transparent}}
@keyframes tqDn{from{background-color:rgba(255,122,98,.22)}to{background-color:transparent}}

/* Portfolio › Projection (Monte Carlo, 15/11/2026) : graphique de Qubo Lens en pleine largeur, « What drives the range » dessous. */
html.tv2 #pgPortfolio[data-pfv=mc] #tvPf,html.tv2 #pgPortfolio:not([data-pfv=mc]) #tvMc{display:none}
html.tv2 #tvMc{position:relative; height:auto; min-height:0; grid-template-columns:minmax(0,1fr); grid-template-rows:auto; gap:10px}
html.tv2 #tvMc .mck{grid-template-columns:minmax(0,1.2fr) minmax(0,1.7fr) repeat(3,minmax(0,1fr)) auto}
html.tv2 #tvMc .mck>div{padding:11px 14px; gap:4px}
html.tv2 #tvMc .mck b{font-size:19px; white-space:nowrap}
html.tv2 #tvMc .mck>div:first-child b{font-size:26px}
html.tv2 #tvMc .mck .c{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
html.tv2 #tvMc .mck .acts{display:flex; flex-direction:row; align-items:center; justify-content:flex-end; gap:8px; border-right:0}
html.tv2 #tvMc .mcq{display:flex; flex-direction:column; height:max(300px,calc(100vh - 470px))}
html.tv2 #tvMc .mcq .tvqisvg{flex:1; min-height:0; margin:0 8px 8px}
html.tv2 #tvMc .mcdrv{display:grid; grid-template-columns:minmax(0,2.2fr) minmax(0,1fr)}
html.tv2 #tvMc .mctb{overflow:auto; min-width:0; max-height:184px}
html.tv2 #tvMc .mctb thead th{position:sticky; top:0; background:var(--surface); z-index:1}
html.tv2 #tvMc .mcdv .tvbh{padding-top:8px; padding-bottom:8px}
html.tv2 #tvMc .mcnote{border-left:1px solid var(--line-2); padding:8px 14px; font-family:var(--f-body); font-size:12px; color:var(--ink-3); line-height:1.5}
html.tv2 #tvMc .mcnote p{margin:0 0 8px}
html.tv2 #tvMc .mcdl{font-family:var(--f-num); color:var(--ink-2)}
html.tv2 .mcrk{width:100%; border-collapse:collapse; font-size:12px}
html.tv2 .mcrk th{font-weight:400; font-size:11px; color:var(--ink-3); text-align:right; padding:6px 14px 5px; border-bottom:1px solid var(--line-2); text-transform:uppercase; letter-spacing:.04em}
html.tv2 .mcrk th:first-child,html.tv2 .mcrk td:first-child{text-align:left}
html.tv2 .mcrk td{padding:5px 14px; border-bottom:1px solid var(--line-2); text-align:right; white-space:nowrap}
html.tv2 .mcrk tr.off td{opacity:.4}
html.tv2 .mcrk label{display:inline-flex; align-items:center; gap:8px; cursor:pointer}
html.tv2 .mcrk input{accent-color:var(--accent); width:14px; height:14px; margin:0}
html.tv2 .mcrk td span.bar{display:inline-block; height:6px; min-width:2px; border-radius:2px; background:var(--accent); opacity:.85; vertical-align:middle; margin-right:8px}
html.tv2 #tvMc .mcdisc{margin:0 0 4px; font-family:var(--f-body); font-size:11px; color:var(--ink-3)}
html.tv2 #pfMenu small.mcnew{font-size:9.5px; letter-spacing:.08em; color:var(--accent); border:1px solid var(--accent-line); border-radius:3px; padding:0 4px}
html.tv2 #pfMenu small.mcnew:empty{display:none}
html.tv2 .mctz{margin-left:8px}
html.tv2 #tvMc.locked>section,html.tv2 #tvMc.locked>p{filter:blur(6px); opacity:.6; pointer-events:none; user-select:none}
html.tv2 #tvMc .mclock{position:absolute; inset:0; z-index:3; display:flex; align-items:flex-start; justify-content:center; padding-top:160px}
html.tv2 #tvMc .mclock .tvcta{max-width:460px; margin:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); align-items:center; text-align:center}

/* Backtest de la fiche actif (2026-11-15) : bloc déplié par le bouton « Backtest » sous le graphique (crypto et TradFi). */
html.tv2 .btp{margin-top:0; padding:0; overflow:hidden; container-type:inline-size}
html.tv2 .btoff{display:none!important}
html.tv2 .btp .bth{display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px 14px; margin:0; border-bottom:1px solid var(--line-2)}
html.tv2 .btp .bth h2{margin:0}
html.tv2 .btnew{font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); border:1px solid var(--accent-line); background:var(--accent-bg); border-radius:var(--r-s); padding:1px 6px}
html.tv2 .btpill{font-family:var(--f-mono); font-size:11px; color:var(--ink-3); border:1px solid var(--line); border-radius:999px; padding:1px 8px}
html.tv2 .btsp{flex:1}
html.tv2 .btseg{margin:0}
html.tv2 .btseg button{font-family:var(--f-mono); font-size:11px; padding:5px 10px}
html.tv2 .btseg button:disabled{cursor:not-allowed; opacity:.55}
html.tv2 .btx{background:transparent; border:1px solid var(--line); color:var(--ink-2); border-radius:var(--r-s); width:30px; height:30px; font-size:16px; line-height:1; cursor:pointer}
html.tv2 .btx:hover{border-color:var(--line-hi); color:var(--ink)}
html.tv2 .btbtn svg{flex:none}
html.tv2 .btrules{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--line-2)}
html.tv2 .btrule{all:unset; box-sizing:border-box; cursor:pointer; padding:12px 14px; border-right:1px solid var(--line-2); display:flex; flex-direction:column; gap:3px; min-width:0}
html.tv2 .btrule:last-child{border-right:0}
html.tv2 .btrule .k{font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3)}
html.tv2 .btrule .k.q{color:var(--accent)}
html.tv2 .btrule .t{font-family:var(--f-mono); font-size:12.5px; font-weight:600; color:var(--ink-2)}
html.tv2 .btrule .d{font-size:12px; color:var(--ink-3); line-height:1.35}
html.tv2 .btrule:hover .t{color:var(--ink)}
html.tv2 .btrule[aria-pressed="true"]{background:var(--accent-bg); box-shadow:inset 0 -2px 0 var(--accent)}
html.tv2 .btrule[aria-pressed="true"] .t{color:var(--ink)}
html.tv2 .btrule[aria-pressed="true"] .k{color:var(--accent)}
html.tv2 .btrule:disabled{cursor:not-allowed; opacity:.5}
html.tv2 .btrule:focus-visible{outline:2px solid var(--accent); outline-offset:-2px}
html.tv2 .btpar{display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; padding:10px 14px; border-bottom:1px solid var(--line-2)}
html.tv2 .btl{font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3)}
html.tv2 .btpar .tvbtn[aria-pressed="true"]{border-color:var(--accent); color:var(--accent); background:var(--accent-bg)}
html.tv2 .btpar .tvbtn:disabled{cursor:not-allowed; opacity:.6}
html.tv2 .btlock{display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; padding:10px 14px; border-bottom:1px solid var(--line-2); font-size:12.5px; color:var(--ink-2)}
html.tv2 .btcmd{font-family:var(--f-mono); font-size:11px; color:var(--ink-3); padding:8px 14px; border-bottom:1px solid var(--line-2); white-space:nowrap; overflow-x:auto}
html.tv2 .btcmd b{color:var(--ink); font-weight:500}
html.tv2 .btwarn{margin:10px 14px 0; padding:10px 12px; border:1px solid var(--accent-line); background:var(--accent-bg); border-radius:var(--r-s); font-size:12.5px; line-height:1.45}
html.tv2 .btwarn b{color:var(--accent); font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; margin-right:8px}
html.tv2 .btmsg{padding:18px 14px; font-size:13px; color:var(--ink-2); line-height:1.5; max-width:72ch}
html.tv2 .btgrid{display:grid; grid-template-columns:minmax(0,1fr) 340px; border-top:0}
@container (max-width:980px){html.tv2 .btgrid{grid-template-columns:minmax(0,1fr)} html.tv2 .btres{border-left:0; border-top:1px solid var(--line-2)} html.tv2 .btkp{grid-template-columns:repeat(4,minmax(0,1fr))} html.tv2 .btkp>div{border-right:1px solid var(--line-2)} html.tv2 .btkp>div:last-child{border-right:0}}
html.tv2 .btchart{position:relative; padding:10px 14px 6px; min-width:0}
html.tv2 .btleg{display:flex; flex-wrap:wrap; gap:16px; font-family:var(--f-mono); font-size:11px; color:var(--ink-3); padding-bottom:6px}
html.tv2 .btleg i{display:inline-block; width:14px; height:2px; vertical-align:middle; margin-right:6px}
html.tv2 .btleg i.s{background:var(--accent)} html.tv2 .btleg i.h{background:var(--ink-3)}
html.tv2 .btleg i.in{height:8px; background:var(--accent); opacity:.4} html.tv2 .btleg i.dd{height:8px; background:var(--down); opacity:.5}
html.tv2 .btsvg{display:block; width:100%; height:auto}
html.tv2 .btsvg text{fill:var(--ink-3); font:14px var(--f-mono)}
html.tv2 .btsvg .gl{stroke:var(--line-2); stroke-width:1}
html.tv2 .btsvg .st{fill:none; stroke:var(--accent); stroke-width:1.8}
html.tv2 .btsvg .bh{fill:none; stroke:var(--ink-3); stroke-width:1.3}
html.tv2 .btsvg .ar{fill:var(--accent); fill-opacity:.08}
html.tv2 .btsvg .sd{fill:var(--accent)}
html.tv2 .btsvg .sb{fill:var(--well)}
html.tv2 .btsvg .si{fill:var(--accent); fill-opacity:.38}
html.tv2 .btsvg .dd{fill:var(--down); fill-opacity:.32; stroke:var(--down); stroke-opacity:.6; stroke-width:.8}
html.tv2 .btsvg .cx{stroke:var(--line-hi); stroke-width:1}
html.tv2 .bttip{position:absolute; top:34px; pointer-events:none; background:var(--surface-2); border:1px solid var(--line-hi); border-radius:var(--r-s); padding:6px 8px; font:11px/1.5 var(--f-mono); white-space:nowrap; z-index:2}
html.tv2 .bttip .acc,html.tv2 .bttr .acc{color:var(--accent)}
html.tv2 .btres{border-left:1px solid var(--line-2); min-width:0}
html.tv2 .btkp{display:grid; grid-template-columns:repeat(2,minmax(0,1fr))}
html.tv2 .btkp>div{display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-bottom:1px solid var(--line-2); min-width:0}
html.tv2 .btkp>div:nth-child(odd){border-right:1px solid var(--line-2)}
html.tv2 .btkp .l{font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3)}
html.tv2 .btkp .v{font-family:var(--f-mono); font-size:19px; font-weight:500}
html.tv2 .btkp .s{font-family:var(--f-mono); font-size:11px; color:var(--ink-2)}
html.tv2 .btv{margin:0; padding:12px 14px; border-bottom:1px solid var(--line-2); font-size:13px; line-height:1.5}
html.tv2 .btv b{font-family:var(--f-mono); font-weight:600}
html.tv2 .btcmp,html.tv2 .bttr table{width:100%; border-collapse:collapse; font-family:var(--f-mono); font-size:12px}
html.tv2 .btcmp th,html.tv2 .btcmp td,html.tv2 .bttr th,html.tv2 .bttr td{padding:7px 10px; text-align:right; border-bottom:1px solid var(--line-2); white-space:nowrap}
html.tv2 .btcmp th:first-child,html.tv2 .btcmp td:first-child,html.tv2 .bttr th:first-child,html.tv2 .bttr td:first-child{text-align:left; padding-left:14px}
html.tv2 .btcmp td:first-child{color:var(--ink-2)}
html.tv2 .btcmp th,html.tv2 .bttr th{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); font-weight:500}
html.tv2 .btcmp td.st{color:var(--accent)}
html.tv2 .btsub{padding:10px 14px 4px; font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3)}
html.tv2 .bttr{max-height:240px; overflow:auto}
html.tv2 .bttr th{position:sticky; top:0; background:var(--surface)}
html.tv2 .btdisc{padding:10px 14px 12px; font-size:12px; color:var(--ink-3); border-top:1px solid var(--line-2); line-height:1.5}
html.tv2 .btdisc b{color:var(--ink-2); font-weight:600}

/* ---------- 6. Animations réduites ---------- */
/* Jauge du Régime de marché (Accueil) : cases de 6 px sur une grille de 8 px, aiguille et axe lisses */
html.tv2 #hbRg.tqg .hbl>.hbsc,html.tv2 #hbRg.tqg .hbl>.sg{display:none}
html.tv2 .tqgauge{display:flex; flex-direction:column; align-items:center; margin:2px 0 6px}
html.tv2 .tqgauge svg{display:block; width:min(100%,260px); height:auto; overflow:visible}
html.tv2 .tqgc rect{fill:#262624; transition:fill .35s var(--ease)}
html.tv2 .tqgn{transition:transform 1.1s cubic-bezier(.34,1.3,.5,1); fill:var(--ink,#EDEDE8)}
html.tv2 .tqgn .h{fill:var(--surface)}
html.tv2 .tqgv{display:grid; grid-template-columns:1fr auto 1fr; align-items:end; width:min(100%,260px); margin-top:-2px; font-family:'IBM Plex Mono',ui-monospace,monospace}
html.tv2 .tqgv>span{font-size:10px; color:var(--ink-3); padding-bottom:4px}
html.tv2 .tqgv>span:last-child{text-align:right}
html.tv2 .tqgv div{display:flex; flex-direction:column; align-items:center; gap:2px}
html.tv2 .tqgv b{font-size:30px; font-weight:500; line-height:1; letter-spacing:-.01em; font-variant-numeric:tabular-nums}
html.tv2 .tqgv em{font-style:normal; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase}
/* Répartition du Portfolio : anneau fin en SVG */
html.tv2 .tvpie.tqring{background:none!important}
html.tv2 .tvpie.tqring>svg.tqr{position:absolute; inset:0; width:100%; height:100%; overflow:visible}
html.tv2 .tvpie.tqring span{background:transparent}
html.tv2 svg.tqr path{fill:none; stroke-width:8; stroke-dasharray:100; transition:stroke-width .2s var(--ease),opacity .2s var(--ease); animation:tqArc linear both}
html.tv2 .tvpie.tqnoan svg.tqr path{animation:none}
html.tv2 .tvpie.tqh svg.tqr path{opacity:.28}
html.tv2 .tvpie.tqh svg.tqr path.on{opacity:1; stroke-width:11}
@keyframes tqArc{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}

@media (prefers-reduced-motion:reduce){
  html.tv2 *,html.tv2 *::before,html.tv2 *::after{animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important}
  html.tv2 .tvtick>div{animation:none!important}
}

/* ---------- Qubo Lens en nuage de scénarios (piste D, 13 novembre 2026) : canevas three.js sous le SVG de qiChart ---------- */
html.tv2 .tvqisvg canvas.ql3{position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none}
html.tv2 .tvqisvg svg.q3 text.dz{fill:var(--ink); font-size:10.5px}
html.tv2.ql3 .tvqilg i.s{width:8px; height:8px; border-radius:50%; background:radial-gradient(#FF8A00,transparent 70%)}
@media (prefers-reduced-motion:no-preference){
  html.tv2 .tvqisvg svg.qan.q3 .qz.z50 rect{animation-delay:6.3s}
  html.tv2 .tvqisvg svg.qan.q3 .qz.z80 rect{animation-delay:6.75s}
  html.tv2 .tvqisvg svg.qan.q3 .qz.z95 rect{animation-delay:7.2s}
  html.tv2 .tvqisvg svg.qan.q3 .qg>g{animation-duration:.26s; animation-delay:calc(8s + var(--i)*110ms)}
  html.tv2 .tvqisvg svg.qan.q3 .qm{animation-delay:9.5s}
  html.tv2 .tvqisvg svg.qan.q3 .qd{opacity:0; animation:qaIn .4s ease-out 1s forwards}
  html.tv2 .tvqisvg svg.qan.q3 .qd .z8{opacity:0; animation:qaIn .4s ease-out 6.75s forwards}
}

