/* QG+ · Paramètres › Quota : le jour choisi se voit + tous les moteurs listés (05/11/2026, demandes de Dali). Va avec
   qg-jetons-jour.js (préfixe qgqj-). Couleurs : celles de la vue Quota (--qgq-accent…) et du thème ; clair, sombre, noir et
   bleu (le bleu est recalculé par qg-nuit.js comme les autres feuilles).
   Retour arrière : retirer qg-jetons-jour.css et qg-jetons-jour.js d'index.html. */

/* 1. la bulle du jour choisi, au-dessus de sa barre (la bulle de survol de qg-quota reste au-dessus d'elle) */
#hermes-signature .qgqj-repere{position:absolute;z-index:2;top:0;left:0;pointer-events:none;opacity:0;
  transform:translate(-50%,calc(-100% + 5px)) scale(.96);transform-origin:var(--qgqj-pointe,50%) 100%;
  transition:opacity .22s ease,transform .34s var(--hs-ease,ease)}
#hermes-signature .qgqj-repere.qgqj-glisse{transition:opacity .22s ease,transform .34s var(--hs-ease,ease),left .42s var(--hs-ease,ease),top .42s var(--hs-ease,ease)}
#hermes-signature .qgqj-repere.qgqj-on{opacity:1;transform:translate(-50%,-100%)}
#hermes-signature .qgqj-repere.qgqj-on.qgqj-cache{opacity:0;transition-duration:.14s}
#hermes-signature .qgqj-r-in{position:relative;z-index:1;display:block;padding:6px 11px 7px;border:1px solid color-mix(in srgb,var(--qgq-accent) 46%,var(--nx-line-2,var(--hs-line)));border-radius:11px;background:var(--hs-paper);box-shadow:0 10px 26px rgba(0,0,0,.34);white-space:nowrap;text-align:center;line-height:1.3}
#hermes-signature .qgqj-r-in b{display:block;font-size:12.5px;font-weight:600;color:var(--hs-ink)}
#hermes-signature .qgqj-r-in small{display:block;margin-top:1px;font-size:11px;color:var(--hs-dim);font-variant-numeric:tabular-nums}
#hermes-signature .qgqj-pointe{position:absolute;z-index:2;bottom:-4px;left:var(--qgqj-pointe,50%);width:9px;height:9px;margin-left:-4.5px;border:solid color-mix(in srgb,var(--qgq-accent) 46%,var(--nx-line-2,var(--hs-line)));border-width:0 1px 1px 0;border-bottom-right-radius:2px;background:var(--hs-paper);transform:rotate(45deg)}
#hermes-signature .qgqj-repere.qgqj-sur .qgqj-pointe{display:none}
#hermes-signature[data-theme="light"] .qgqj-r-in{border-color:color-mix(in srgb,var(--qgq-accent) 40%,rgba(60,60,67,.2));box-shadow:0 8px 22px rgba(16,24,40,.14),0 1px 2px rgba(16,24,40,.06)}
#hermes-signature[data-theme="light"] .qgqj-pointe{border-color:color-mix(in srgb,var(--qgq-accent) 40%,rgba(60,60,67,.2))}

/* 2. le jour dans les titres (« · Mar. 3 nov. ») : chaque morceau reste entier quand le titre passe à la ligne */
#hermes-signature .qgqj-quand>span{white-space:nowrap}
#hermes-signature .qgqj-quand{color:var(--qgq-accent)}
#hermes-signature[data-theme="light"] .qgqj-quand{color:color-mix(in srgb,var(--qgq-accent) 58%,#000)}
#hermes-signature .qgqj-quand[hidden],#hermes-signature .qgqj-mois[hidden]{display:none}
#hermes-signature .qgqj-a-mois>[data-qgq-t="mois"]{display:none}
@media (max-width:600px){   /* tuiles étroites : l'agent filtré reste dans la tuile Tokens (et le titre du graphique) */
  #hermes-signature .qgq-chiffres>.qgq-carte:not(.qgq-c-tokens) .qgqj-ag{display:none}
}

/* 3. la pastille « Mar. 3 nov. ✕ », posée sur l'en-tête du graphique (n'en change pas la hauteur) */
#hermes-signature .qgq-graphe>.qgq-tete{position:relative}
#hermes-signature .qgq-graphe>.qgq-tete>small{transition:opacity .2s ease,visibility .2s}
#hermes-signature .qgq-graphe>.qgq-tete.qgqj-remplace>small{opacity:0;visibility:hidden}
#hermes-signature .qgqj-pastille{position:absolute;z-index:1;top:0;left:0;display:inline-flex;align-items:center;gap:6px;min-height:28px;margin:0;padding:3px 9px 3px 12px;border:1px solid color-mix(in srgb,var(--qgq-accent) 55%,transparent);border-radius:999px;background:color-mix(in srgb,var(--qgq-accent) 9%,transparent);color:var(--hs-ink);font:inherit;font-size:12px;font-weight:500;line-height:1.2;letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer;transition:background-color .2s,border-color .2s}
#hermes-signature .qgqj-pastille::before{content:"";position:absolute;inset:-8px -4px}
#hermes-signature .qgqj-pastille:hover{background:color-mix(in srgb,var(--qgq-accent) 17%,transparent)}
#hermes-signature .qgqj-pastille:active{background:color-mix(in srgb,var(--qgq-accent) 22%,transparent)}
#hermes-signature .qgqj-pastille:focus-visible{outline:2px solid var(--qgq-accent);outline-offset:2px}
#hermes-signature .qgqj-pastille svg{flex:none;opacity:.72}
#hermes-signature .qgqj-pastille[hidden]{display:none}
#hermes-signature[data-theme="light"] .qgqj-pastille{border-color:color-mix(in srgb,var(--qgq-accent) 50%,transparent);background:color-mix(in srgb,var(--qgq-accent) 8%,#fff)}
#hermes-signature .qgqj-annonce{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* 4. « Par moteur » : les moteurs à 0, à la suite des autres, un peu atténués */
#hermes-signature .qgq-liste.qgqj-zeros{margin-top:2px}
#hermes-signature .qgq-liste.qgqj-zeros:empty{display:none}
#hermes-signature .qgqj-zero>.qgq-ligne-in{opacity:.5}
#hermes-signature[data-theme="light"] .qgqj-zero>.qgq-ligne-in{opacity:.58}

@media (prefers-reduced-motion:reduce){
  #hermes-signature .qgqj-repere,#hermes-signature .qgqj-repere.qgqj-glisse{transition:opacity .16s ease}
  #hermes-signature .qgqj-repere{transform:translate(-50%,-100%)}
}
