/* ═══ Espace Qualitest — la télécommande « Signaler un bug » (09/11/2026) ═══
   jules : « visible tout le temps, le design de la télécommande des chaînes de la télé : elle reste sur le côté et
   s'invoque à tout moment en passant la souris dessus ». Même dessin que la télécommande de CINÉ 8
   (CINE8/telecommande/telecommande.js) : poignée verticale au bord, pilule noire de 30 px d'arrondi qui glisse,
   plaque claire en haut (ici le logiciel concerné, numéroté comme une chaîne), touches rondes, numéro en haut à droite.
   Bord DROIT : le rail de l'Espace occupe la gauche. Rien ne bouge au repos : seul un geste la fait glisser. */
.tc-racine { position: fixed; inset: 0; z-index: 80; pointer-events: none; font-family: var(--police); }
.tc-racine * { box-sizing: border-box; }
:where(.tc-racine) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; margin: 0; }

/* La poignée, toujours là */
.tc-poignee { pointer-events: auto; position: fixed; right: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 132px;
  border-radius: 14px 0 0 14px; background: rgba(11, 11, 12, .9); border: 1px solid rgba(255, 255, 255, .14); border-right: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .78);
  font-size: 10.5px; letter-spacing: .3em; transition: opacity .4s; -webkit-tap-highlight-color: transparent; }
.tc-poignee span { writing-mode: vertical-rl; transform: rotate(180deg); }
.tc-poignee b { font-weight: 600; letter-spacing: 0; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: grid; place-items: center; background: var(--rouge, #e5484d); color: #fff; }
.tc-poignee b[hidden] { display: none; }
.tc-ouverte .tc-poignee { opacity: 0; }

/* La télécommande */
.tc { pointer-events: auto; position: fixed; right: 12px; top: 50%; width: 214px; max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 12px 10px; border-radius: 30px; background: #0b0b0c; border: 1px solid rgba(255, 255, 255, .1); color: #f5f5f7;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  transform: translate(250px, -50%); transition: transform .45s cubic-bezier(.76, 0, .18, 1); scrollbar-width: none; }
.tc::-webkit-scrollbar { display: none; }
.tc-ouverte .tc { transform: translate(0, -50%); }
.tc-titre { text-align: center; font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .55); padding: 2px 0 0; }
.tc-actuelle { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.tc-plaque { width: 132px; height: 52px; border-radius: 12px; background: #f2f2f4; display: grid; place-items: center; overflow: hidden;
  color: #111; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-align: center; padding: 0 8px; line-height: 1.15; }
.tc-actuelle span { font-size: 12px; color: #a1a1a6; text-align: center; }
.tc-b { height: 44px; border-radius: 16px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14px; transition: background .2s, transform .15s; width: 100%; }
.tc-b:hover { background: rgba(255, 255, 255, .14); }
.tc-b:active { transform: scale(.95); }
.tc-b svg { width: 22px; height: 22px; flex: none; }
.tc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tc-etiq { font-size: 10px; color: #8b8d92; padding: 4px 4px 0; }
.tc-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tc-pave .tc-b { height: 54px; flex-direction: column; gap: 1px; }
.tc-pave .tc-b b { font-size: 19px; font-weight: 300; line-height: 1; }
.tc-pave .tc-b small { font-size: 9.5px; color: #a1a1a6; }
.tc-pave .tc-b.pris { background: #f2f2f2; color: #000; }
.tc-pave .tc-b.pris small { color: #333; }
.tc-texte { width: 100%; min-height: 96px; resize: vertical; border-radius: 16px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); color: #f5f5f7; font: 14px/1.4 var(--police); padding: 10px 12px; outline: none; }
.tc-texte:focus { border-color: rgba(255, 255, 255, .32); }
.tc-texte::placeholder { color: #6e7076; }
.tc-envoyer { background: #f2f2f2; color: #000; font-weight: 600; }
.tc-envoyer:hover { background: #fff; }
.tc-envoyer:disabled { opacity: .5; cursor: progress; }
.tc-msg { font-size: 11.5px; color: var(--rouge-vif, #ff5a5f); text-align: center; min-height: 0; margin: 0; }
.tc-msg:empty { display: none; }
.tc-bas { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 8px; }
.tc-bas .tc-b { height: 38px; font-size: 13px; }

/* La photo de l'écran (comme ECOOT 3) */
.tc-photo { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tc-photo img { width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); display: block; background: #111; }
.tc-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: #c7c7cc; }
.tc-photo label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tc-photo input { accent-color: #f2f2f2; margin: 0; }
.tc-photo figcaption button { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); }
.tc-photo figcaption button:hover { background: rgba(255, 255, 255, .1); }
.tc-photo-etat { margin: 0; font-size: 11px; color: #8b8d92; text-align: center; }
.tc-photo-etat:empty { display: none; }
.tc-sig .vignette img { width: 100%; max-height: 180px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); display: block; }

/* Le numéro en haut à droite, comme le numéro de chaîne */
.tc-osd { position: fixed; right: 30px; top: 74px; display: flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px; border-radius: 22px;
  background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .1); color: #f5f5f7; opacity: 0; transition: opacity .4s; }
.tc-osd.vu { opacity: 1; }
.tc-osd b { font-size: 46px; font-weight: 200; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.tc-osd span { font-size: 20px; font-weight: 600; }

/* Le suivi : la liste des signalements, sortie à gauche de la télécommande */
.tc-suivi { pointer-events: auto; position: fixed; right: 238px; top: 50%; transform: translateY(-50%); width: min(360px, calc(100vw - 262px));
  max-height: min(80dvh, 640px); overflow-y: auto; padding: 14px; border-radius: 26px; background: #0b0b0c; border: 1px solid rgba(255, 255, 255, .1);
  color: #f5f5f7; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 8px; }
.tc-suivi[hidden] { display: none; }
.tc-suivi h3 { margin: 0; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tc-suivi h3 button { font-size: 18px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.tc-sig { border-radius: 16px; background: rgba(255, 255, 255, .045); padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.tc-sig .tete { display: flex; gap: 8px; align-items: baseline; font-size: 11px; color: #a1a1a6; flex-wrap: wrap; }
.tc-sig .tete b { color: #f5f5f7; font-weight: 600; font-size: 12px; }
.tc-sig p { margin: 0; font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-sig .etat { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }
.tc-sig .etat.e-corrige { background: #f2f2f2; color: #000; border-color: #f2f2f2; }
.tc-sig .etat.e-encours { border-color: var(--ambre, #ff8a3d); color: var(--ambre, #ff8a3d); }
.tc-sig .g3 { color: var(--rouge-vif, #ff5a5f); }
.tc-sig .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-sig .actions button { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); }
.tc-sig .actions button:hover { background: rgba(255, 255, 255, .1); }
.tc-vide { font-size: 12px; color: #8b8d92; margin: 0; }

@media (max-width: 640px) {
  .tc-poignee { top: 42%; }
  .tc { top: 42%; }
  .tc-suivi { right: 12px; left: 12px; width: auto; z-index: 2; }
  .tc-osd { right: 16px; top: 70px; }
}
@media (prefers-reduced-motion: reduce) { .tc { transition-duration: .2s; } }
