/* ASI Réunions — v38 : traduction en direct (panneau latéral, question d'accueil, sous-titres) */
#call-translate .trx-dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #ffb020; border: 2px solid #0b1437; animation: trx-pulse 1.4s ease-in-out infinite; }
#call-translate .trx-dot[hidden] { display: none; }
@keyframes trx-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@media (max-width: 560px) { #call-translate { display: grid !important; } }

#side-translate { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px; color: #eef2ff; font-size: 12.5px; line-height: 1.45; }
#side-translate[hidden], .trx-panel [hidden], .trx-ask [hidden] { display: none !important; }
.trx-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 12px; display: grid; gap: 9px; }
.trx-card.trx-grow { min-height: 140px; }
.trx-h { font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #a8c4ff; }
.trx-state { font-weight: 700; }
.trx-sub { color: rgba(238,242,255,.72); font-size: 12px; }
.trx-note { color: rgba(238,242,255,.6); font-size: 11.5px; margin: 0; }
.trx-msg { min-height: 18px; color: #ffd58a; font-size: 12.5px; font-weight: 700; }

.trx-btn { min-height: 40px; padding: 8px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font: 700 13px/1.2 inherit; cursor: pointer; }
.trx-btn:hover { background: rgba(255,255,255,.18); }
.trx-btn:disabled { opacity: .5; cursor: default; }
.trx-primary { background: var(--orange, #12b0d8); border-color: transparent; }
.trx-danger { background: rgba(162,61,36,.85); border-color: transparent; }
.trx-mini { min-height: 32px; min-width: 38px; padding: 4px 9px; }
.trx-link { background: none; border: 0; color: #9fc2ff; text-align: left; padding: 4px 0; font: 600 12px/1.3 inherit; text-decoration: underline; cursor: pointer; }
.trx-row { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.trx-row span { flex: 1; }
.trx-row input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; }

.trx-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.trx-lang { min-height: 42px; padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: 700 14px/1.2 "Segoe UI","Noto Sans Arabic","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif; cursor: pointer; }
.trx-lang:hover { background: rgba(255,255,255,.17); }
.trx-lang.is-on { background: var(--orange, #12b0d8); border-color: transparent; }
.trx-lang.is-hint { outline: 2px solid #ffb020; }

.trx-people { display: flex; flex-wrap: wrap; gap: 6px; }
.trx-chip { background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; }
.trx-progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.trx-progress i { display: block; height: 100%; width: 0; background: #12b0d8; transition: width .25s; }
.trx-voice { display: grid; gap: 8px; }

.trx-hist { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.trx-line { background: rgba(255,255,255,.07); border-radius: 10px; padding: 7px 10px; font-family: "Segoe UI","Noto Sans Arabic","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.trx-line.is-mine { background: rgba(18,176,216,.16); }
.trx-line strong { display: block; font-size: 11px; color: #a8c4ff; margin-bottom: 1px; }
.trx-orig { margin-top: 3px; font-size: 11.5px; color: rgba(238,242,255,.6); font-style: italic; }

/* question d'accueil */
.trx-ask { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(3,8,26,.72); backdrop-filter: blur(4px); }
.trx-ask-card { width: min(480px, 100%); max-height: 100%; overflow-y: auto; border-radius: 18px; padding: 20px 18px; display: grid; gap: 10px; background: #0b1437; color: #eef2ff; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.5); text-align: center; }
.trx-ask-card h3 { margin: 0; font-size: 20px; }
.trx-hello { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font: 800 17px/1.3 "Segoe UI","Noto Sans Arabic","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif; color: #7fd6f0; }
.trx-ask-form { display: flex; gap: 8px; }
.trx-ask-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 14px; }
.trx-ask-form input::placeholder { color: rgba(255,255,255,.5); }
.trx-ask .trx-link { justify-self: center; }

/* sous-titres traduits : DANS la salle (au-dessus de tout), centrés sous la zone vidéo, juste au-dessus de la barre de boutons (comme Google Meet).
   Position et largeur recalculées par asi-translate.js (placeSubs). */
.trx-subs { position: absolute; z-index: 60; left: 0; width: 100%; bottom: 96px; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 0 10px; box-sizing: border-box; pointer-events: none; }
.trx-subs:empty { display: none; }
.trx-sub-line { max-width: min(100%, 820px); padding: 9px 16px; border-radius: 10px; background: rgba(20,20,20,.86); color: #fff; font-weight: 600; line-height: 1.42; text-align: center; font-family: "Segoe UI","Noto Sans Arabic","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif; transition: opacity .4s; box-shadow: 0 4px 16px rgba(0,0,0,.45); text-shadow: 0 1px 2px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.trx-sub-line b { color: #8ecbff; margin-inline-end: 2px; }
.trx-sub-line.is-own { background: rgba(10,40,70,.82); font-weight: 500; }
.trx-sub-line.is-own b { color: #ffd58a; }
.trx-sub-line.is-interim span { opacity: .8; }
.trx-sub-line.is-out { opacity: 0; }
@media (max-width: 820px) { html.trx-sideopen .trx-subs { display: none !important; } }
.trx-diag { font-size: 11.5px; line-height: 1.5; }

/* traduction d'un message du chat */
.trx-tbtn { display: block; margin-top: 5px; padding: 2px 0; border: 0; background: none; color: #9fc2ff; font: 700 11px/1.2 inherit; cursor: pointer; text-decoration: underline; }
.trx-tres { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(18,176,216,.16); font-family: "Segoe UI","Noto Sans Arabic","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.trx-report { font-size: 11px; opacity: .7; margin-top: 3px; }
.trx-report:disabled { opacity: .5; text-decoration: none; }
