/* ===== Visite 3D ===== */
.vis-page { padding-top: 78px; background: var(--navy-900); }
.vis { position: relative; height: calc(100vh - 78px); min-height: 560px; overflow: hidden; background: #dfe6f0; isolation: isolate; }
.vis-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.vis-canvas:active { cursor: grabbing; }

/* étiquettes reliées à leur objet par un trait */
.vis-hots { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.vis-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vis-lines line { stroke: rgba(6, 26, 71, .8); stroke-width: 1.6; stroke-dasharray: 4 3; }
.vis-lines circle { fill: rgba(255, 106, 0, .25); stroke: #fff; stroke-width: 2; }
.vis-lines .is-hover, .vis-lines .is-active { stroke: var(--orange); stroke-dasharray: none; stroke-width: 2.2; }
.vis-lines circle.is-hover, .vis-lines circle.is-active { fill: rgba(255, 106, 0, .55); stroke: #fff; }
.vis-hot { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; will-change: transform; }
.vis-hot-dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.vis-hot-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 106, 0, .7); animation: vis-pulse 1.8s ease-out infinite; }
.vis-hot.is-found .vis-hot-dot { background: var(--sky); }
.vis-hot.is-found .vis-hot-dot::after { animation: none; border-color: transparent; }
.vis-hot-name { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); white-space: nowrap; padding: 6px 11px; border-radius: 9px; background: rgba(6, 26, 71, .92); color: #fff; font: 700 .76rem/1 var(--head); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); transition: opacity .2s, background-color .2s; }
.vis-hot.is-found .vis-hot-name::before { content: "✓ "; color: var(--sky); }
.vis-hot.is-far .vis-hot-name { opacity: 0; pointer-events: none; }
.vis-hot.is-far:hover .vis-hot-name, .vis-hot.is-far.is-hover .vis-hot-name { opacity: 1; }
.vis-hot:hover .vis-hot-name, .vis-hot.is-hover .vis-hot-name, .vis-hot.is-active .vis-hot-name { background: var(--orange); }
.vis-hot.is-active .vis-hot-dot { background: var(--orange); }
.vis-hot:hover, .vis-hot.is-hover, .vis-hot.is-active { z-index: 2; }
@keyframes vis-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* barre du haut */
.vis-top { position: absolute; z-index: 3; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none; }
.vis-title, .vis-progress { pointer-events: auto; padding: 12px 18px; border-radius: 14px; background: rgba(6, 26, 71, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); }
.vis-kicker { font: 700 .68rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #ffb27a; margin-bottom: 6px; }
.vis-title h1 { color: #fff; font-size: 1.15rem; font-weight: 800; }
.vis-progress { display: grid; gap: 8px; font-size: .82rem; color: #c9d4ea; min-width: 250px; }
.vis-progress b { color: #fff; font-family: var(--head); }
.vis-bar { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.vis-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--orange)); transition: width .5s; }

/* barre du bas : zones */
.vis-bottom { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 44px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.vis-zones { display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(6, 26, 71, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; overflow-x: auto; max-width: 100%; }
.vis-zones button { flex: none; border: 0; background: none; color: #c9d4ea; font: 700 .82rem/1 var(--head); padding: 10px 14px; border-radius: 10px; cursor: pointer; transition: background-color .2s, color .2s; }
.vis-zones button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.vis-zones button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.vis-guide-btn, .vis-btn { border: 0; cursor: pointer; font: 700 .84rem/1 var(--head); color: #fff; padding: 12px 18px; border-radius: 12px; background: linear-gradient(135deg, #ff7a12, var(--orange-600)); box-shadow: 0 12px 26px -12px rgba(255, 106, 0, .8); pointer-events: auto; transition: transform .2s; }
.vis-guide-btn:hover, .vis-btn:hover { transform: translateY(-1px); }
.vis-btn-ghost { border: 1.5px solid #c9d3e6; background: #fff; color: var(--navy); font: 700 .84rem/1 var(--head); padding: 11px 16px; border-radius: 12px; cursor: pointer; }
.vis-btn-ghost:hover { border-color: var(--navy); }
.vis-btn-ghost:disabled { opacity: .4; cursor: default; }
.vis-link { border: 0; background: none; color: var(--muted); font: 600 .82rem/1 var(--head); cursor: pointer; margin-right: auto; padding: 8px 0; }
.is-guided .vis-guide-btn { display: none; }
.vis-guide-btn.vis-zones-btn { background: #fff; color: var(--navy); box-shadow: 0 12px 26px -14px rgba(4, 18, 47, .6); }
.is-auto .vis-guide-btn:not(.vis-zones-btn):not(.ctd-open) { background: var(--navy); box-shadow: 0 12px 26px -12px rgba(10, 42, 102, .9); }

.vis-help { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .76rem; color: #4a5672; pointer-events: none; }

/* visite guidée */
.vis-guide { position: absolute; z-index: 4; left: 20px; bottom: 112px; width: min(440px, calc(100% - 40px)); padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -20px rgba(4, 18, 47, .55); color: var(--text); font-size: .92rem; line-height: 1.55; }
.vis-guide-step { font: 700 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.vis-guide-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vis-guide-items button { border: 1.5px solid #ffd2b3; background: #fff4ec; color: var(--orange-600); font: 700 .78rem/1 var(--head); padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.vis-guide-items button:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.vis-guide-items button::before { content: "● "; }
.vis-guide-act { display: flex; gap: 8px; align-items: center; margin-top: 14px; }

/* fiche */
.vis-card { position: absolute; z-index: 5; top: 18px; right: 20px; max-height: calc(100% - 36px); width: min(380px, calc(100% - 40px)); overflow-y: auto; padding: 24px 24px 22px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -24px rgba(4, 18, 47, .6); color: var(--text); animation: vis-in .3s ease-out; }
@keyframes vis-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.has-card .vis-progress { visibility: hidden; }
.vis-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--soft); color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.vis-card-kicker { font: 700 .68rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 40px 8px 0; }
.vis-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.vis-card-role { font-size: .92rem; line-height: 1.6; }
.vis-card h3 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.vis-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vis-parts li { font-size: .8rem; font-weight: 600; color: var(--navy); padding: 5px 10px; border-radius: 8px; background: #eef3fb; }
.vis-keep { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff4ec; border-left: 3px solid var(--orange); font-size: .88rem; line-height: 1.55; }
.vis-keep b { display: block; font: 700 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 6px; }
.vis-job { margin-top: 14px; font-size: .86rem; }
.vis-job span { color: var(--muted); }
.vis-job b { color: var(--ink); }
.vis-card-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vis-card-act > * { flex: 1 1 auto; }
/* carte déplaçable : poignée en haut, curseur de déplacement */
.is-movable { cursor: grab; }
.is-movable :is(button, a, input, label) { cursor: pointer; }
.is-movable.is-dragging { cursor: grabbing; user-select: none; box-shadow: 0 30px 60px -18px rgba(4, 18, 47, .75); }
.vis-grip { display: block; width: 44px; height: 5px; margin: -8px auto 8px; border-radius: 999px; background: #cfd6e4; cursor: grab; touch-action: none; }
.vis-grip::before { content: ""; display: block; height: 26px; translate: 0 -10px; }
.is-folded > .vis-grip { margin-bottom: 4px; }
/* voix des démonstrations : petit bouton à icône */
.ctd-voix { padding: 9px 11px; display: inline-grid; place-items: center; }
.ctd-voix svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctd-voix[aria-pressed="true"] { border-color: var(--orange); color: var(--orange-600); background: #fff4ea; }
/* lecture automatique : bouton de la fiche, et « Voir en détail » enfoncé pendant la rotation */
.vis-auto { flex-basis: 40%; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vis-auto svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vis-auto[aria-pressed="true"] { border-color: var(--orange); color: var(--orange-600); background: #fff4ea; }
.vis-btn.is-auto { transform: translateY(1px); box-shadow: 0 0 0 4px rgba(255, 106, 0, .3), inset 0 2px 6px rgba(0, 0, 0, .25); }

.vis-toast { position: absolute; z-index: 6; top: 90px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--navy); color: #fff; font: 700 .86rem/1.3 var(--head); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }

@media (max-width: 900px) {
  .vis { height: calc(100svh - 78px); }
  .vis-top { top: 10px; left: 10px; right: 10px; flex-direction: column; gap: 8px; }
  .vis-title, .vis-progress { padding: 10px 14px; }
  .vis-progress { min-width: 0; }
  .vis-bottom { left: 10px; right: 10px; bottom: 34px; }
  .vis-help { display: none; }
  .vis-card { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 62%; }
  .vis-guide { left: 10px; bottom: 120px; width: calc(100% - 20px); }
}
@media (max-width: 640px) {
  .vis-zones button { padding: 9px 10px; font-size: .76rem; }
}

/* accès aux TP de la salle */
.vis-tps { position: relative; pointer-events: auto; }
.vis-tps summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font: 700 .84rem/1 var(--head); color: #fff; padding: 12px 16px; border-radius: 12px; background: rgba(6, 26, 71, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); }
.vis-tps summary::-webkit-details-marker { display: none; }
.vis-tps summary b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .74rem; }
.vis-tps[open] summary { background: var(--navy); }
.vis-tps-list { position: absolute; right: 0; bottom: calc(100% + 10px); width: 300px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -20px rgba(4, 18, 47, .6); display: grid; gap: 8px; }
/* liste longue (14 TP) : elle ne dépasse pas le haut de la scène, elle défile */
.vis-tps-list { max-height: max(180px, calc(100vh - 290px)); max-height: max(180px, calc(100dvh - 290px)); overflow-y: auto; overscroll-behavior: contain; grid-auto-rows: max-content; scrollbar-width: thin; }
.vis-tps-list p { font-size: .8rem; color: var(--muted); margin: 0 2px 2px; }
.vis-tps-list a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 11px; background: #f3f6fc; color: var(--navy); text-decoration: none; transition: background-color .2s; }
.vis-tps-list a:hover { background: #fff0e5; }
.vis-tps-list a b { font: 800 .86rem/1.2 var(--head); }
.vis-tps-list a span { font-size: .76rem; color: var(--muted); }
@media (max-width: 900px) { .vis-tps-list { right: auto; left: 50%; transform: translateX(-50%); } }
/* téléphone : la liste prend la largeur de l'écran au lieu de déborder à droite */
@media (max-width: 560px) { .vis-tps { position: static; } .vis-tps-list { left: 12px; right: 12px; width: auto; transform: none; } }

/* ===== barre d'outils de la vue 3D ===== */
.vis:fullscreen { height: 100vh; min-height: 0; }
.vis-tools { position: absolute; z-index: 4; top: 104px; right: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(7, 20, 51, .78); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); transition: right .3s; }
.vis:has(.vis-card:not([hidden]):not(.is-folded)):not(.is-clean) .vis-tools { right: calc(min(380px, 100% - 40px) + 32px); }
.vis-tool { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #f3efe6; cursor: pointer; }
.vis-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vis-tool:hover, .vis-tool:focus-visible { border-color: #c9a24a; background: rgba(201, 162, 74, .22); outline: none; }
.vis-tool[aria-pressed="true"] { background: #c9a24a; border-color: #c9a24a; color: #071433; }
.vis-zoom { width: 110px; height: 22px; margin: 0 4px; accent-color: #c9a24a; cursor: pointer; }
.vis-zbar { order: 99; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(7, 20, 51, .78); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); pointer-events: auto; }
.vis-zbar .vis-tool { width: 32px; height: 32px; }

/* rotation automatique */
.vis-rot { position: absolute; z-index: 4; right: 20px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(6, 26, 71, .84); color: #fff; font: 700 .8rem/1 var(--head); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.vis-rot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9fb0cf; }
.vis-rot.is-on::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, .25); }
.vis-rot:hover { background: rgba(10, 42, 102, .96); }

/* cartes repliables */
.vis-fold { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 0; background: var(--soft); color: var(--navy); cursor: pointer; }
.vis-fold:hover { background: #e3eaf6; }
.vis-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s; }
.is-folded > .vis-fold .vis-chev { rotate: 180deg; }
.vis-card .vis-fold { right: 52px; }
.vis-card .vis-card-kicker { margin-right: 84px; }
.vis-guide.is-foldable .vis-guide-step, .tpv-task.is-foldable .tpv-step { margin-right: 42px; }
.vis-card.is-folded { padding-bottom: 16px; overflow: hidden; }
.vis-card.is-folded > :not(.vis-close, .vis-fold, .vis-card-kicker, h2) { display: none; }
.vis-card.is-folded h2 { margin-bottom: 0; }
.vis-guide.is-folded [data-g-text], .vis-guide.is-folded [data-g-items] { display: none; }
.vis-guide.is-folded .vis-guide-act { margin-top: 8px; }

/* barre des zones repliable */
.vis-zfold { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border: 0; border-radius: 14px; background: rgba(6, 26, 71, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #c9d4ea; font: 700 .82rem/1 var(--head); cursor: pointer; pointer-events: auto; }
.vis-zfold b { color: #fff; }
.vis-zfold:hover { color: #fff; }
.vis-zfold .vis-chev { rotate: 180deg; }
.vis-bottom.is-folded .vis-zfold .vis-chev { rotate: 0deg; }
.vis-bottom.is-folded .vis-zones, .vis-bottom.is-folded .vis-zwrap { display: none; }

/* étiquettes masquées, interface épurée */
.no-labels .vis-hots { visibility: hidden; }
.is-clean :is(.vis-top, .vis-bottom, .vis-card, .vis-guide, .vis-help, .tpv-task, .vis-rot) { display: none !important; }

@media (max-width: 900px) {
  .vis-tools { top: 222px; right: 10px; gap: 4px; padding: 4px; }
  .vis-tool { width: 34px; height: 34px; }
  .vis-zbar, .vis-tool[aria-label="Capture d’écran"] { display: none; }
  .vis-zones { min-width: 0; max-width: calc(100% - 54px); }
  .vis-zwrap { max-width: calc(100% - 54px); }
  .vis-zwrap .vis-zones { max-width: none; }
  .vis:has(.vis-card:not([hidden]):not(.is-folded)) .vis-tools, .vis:has(.vis-guide:not([hidden]):not(.is-folded)) .vis-tools { display: none; }
  .vis:has(.vis-card:not([hidden]):not(.is-folded)) .vis-tools { right: 10px; }
  .vis-bottom { bottom: 58px; }
  .vis-rot { right: auto; left: 50%; translate: -50% 0; bottom: 12px; padding: 8px 14px; font-size: .76rem; }
  .vis:has(.vis-card:not([hidden])) .vis-rot, .vis:has(.vis-guide:not([hidden])) .vis-rot { display: none; }
}
@media (min-width: 901px) { .vis:has(.vis-card.is-folded:not([hidden])):not(.is-clean) .vis-tools { top: 200px; } }

/* nom de la salle : carte légèrement transparente */
.vis-title, .vis-progress, .tpv-hud { background: rgba(6, 26, 71, .16); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.vis-progress, .tpv-hud { color: #eef2f9; }
.vis-title h1, .vis-progress, .tpv-hud { text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 1px 10px rgba(0, 0, 0, .45); }
.vis-progress .vis-bar, .tpv-hud .vis-bar { background: rgba(6, 26, 71, .3); }
.vis-title .vis-kicker { text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

/* enregistrement vidéo */
.vis-tool-rec .vis-rec-dot { fill: #e5484d; stroke: none; }
.vis-tool-rec[aria-pressed="true"] { background: #e5484d; border-color: #e5484d; color: #fff; }
.vis-tool-rec[aria-pressed="true"] .vis-rec-dot { fill: #fff; animation: vis-blink 1s steps(2, start) infinite; }
.vis-recbar { position: fixed; z-index: 60; top: 96px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; border: 0; background: rgba(6, 26, 71, .9); color: #fff; font: 700 .8rem/1 var(--head); cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.vis-recbar i { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: vis-blink 1s steps(2, start) infinite; }
.vis-recbar b { font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
.vis-recbar span { padding: 6px 10px; border-radius: 999px; background: #e5484d; }
@keyframes vis-blink { to { visibility: hidden; } }
@media (max-width: 900px) { .vis-recbar { top: auto; bottom: 12px; } .is-recording .vis-rot { display: none; } }
.vis-recbar[hidden] { display: none; }

/* ===== séance en direct (live.js) ===== */
.vlive .vis-progress { display: none; }
.vlive-student .vis-guide-btn, .vlive-student .vis-tps { display: none; }
.vlive-follow .vis-bottom { opacity: .45; pointer-events: none; }
.vlive-follow .vis-canvas { cursor: default; }
.live-dock { position: absolute; z-index: 6; top: 76px; left: 20px; width: min(340px, calc(100% - 40px)); max-height: calc(100% - 210px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.live-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 8px 7px 14px; border-radius: 14px; background: rgba(6, 26, 71, .9); color: #c9d4ea; font: 600 .8rem/1.2 var(--head); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.live-bar b { color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.live-bar.is-bad { background: #b3341b; color: #fff; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 4px rgba(255, 77, 79, .25); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 77, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-code { padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.live-mode { color: #ffd2b3; }
.live-btn, .live-count { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 700 .78rem/1 var(--head); padding: 9px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.live-btn:hover, .live-count:hover { background: rgba(255, 255, 255, .14); }
.live-btn.is-on { background: #c9a24a; border-color: #c9a24a; color: #071433; }
.live-btn.is-go { background: linear-gradient(135deg, #ff7a12, var(--orange-600)); border-color: transparent; }
.live-btn.is-end { border-color: rgba(255, 140, 120, .5); color: #ffb4a3; }
.live-btn:disabled { opacity: .5; cursor: default; }
.live-panel, .live-who, .live-prompt { padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 24px 50px -20px rgba(4, 18, 47, .6); font-size: .88rem; line-height: 1.5; display: grid; gap: 8px; }
.live-end { position: absolute; z-index: 7; left: 50%; width: min(420px, calc(100% - 40px)); padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 24px 50px -20px rgba(4, 18, 47, .6); font-size: .88rem; line-height: 1.5; display: grid; gap: 8px; }
.live-who { max-height: 180px; overflow-y: auto; }
.live-who ul { margin: 0; padding-left: 18px; }
.live-panel-k { font: 700 .7rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.live-panel-q, .live-prompt-q { font: 800 1.12rem/1.3 var(--head); color: var(--navy); }
.live-panel-n { font-weight: 700; color: var(--navy); }
.live-select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1.5px solid #cfd8e8; font: 600 .88rem/1.2 var(--body); color: var(--navy); background: #f8faff; }
.live-panel .live-btn, .live-end .live-btn { border-color: #c9d3e6; background: #fff; color: var(--navy); justify-self: start; }
.live-panel .live-btn.is-go, .live-end .live-btn.is-go { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff7a12, var(--orange-600)); }
.live-act { display: flex; flex-wrap: wrap; gap: 8px; }
.live-meter { height: 8px; border-radius: 6px; background: #e6ecf6; overflow: hidden; }
.live-meter i { display: block; height: 100%; background: linear-gradient(90deg, #1fa463, #48c98a); }
.live-answers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow-y: auto; }
.live-answers li { padding: 5px 9px; border-radius: 999px; font: 700 .74rem/1 var(--head); background: #eafaf1; color: #12804a; }
.live-answers li.is-ko { background: #fdeeea; color: #b3341b; }
.live-prompt { border: 3px solid var(--orange); }
.live-prompt.is-ok { border-color: #1fa463; }
.live-prompt.is-ko { border-color: #d2452a; }
.live-prompt-k { font: 700 .7rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.live-prompt-f { color: var(--muted); font-weight: 600; }
.live-prompt.is-ok .live-prompt-f { color: #12804a; }
.live-prompt.is-ko .live-prompt-f { color: #b3341b; }
.live-join { position: absolute; z-index: 7; top: 50%; left: 50%; translate: -50% -50%; width: min(520px, calc(100% - 40px)); padding: 28px 30px; border-radius: 22px; background: rgba(6, 26, 71, .94); color: #c9d4ea; text-align: center; display: grid; gap: 6px; justify-items: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.live-join-k { font: 700 .74rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; }
.live-join-url { font: 700 1.3rem/1.2 var(--head); color: #fff; }
.live-join-code { font: 800 clamp(2.6rem, 7vw, 4.2rem)/1 var(--head); letter-spacing: .12em; color: #fff; font-variant-numeric: tabular-nums; margin: 6px 0; }
.live-join-s { font-size: .86rem; margin-bottom: 8px; }
.live-end { top: 50%; translate: -50% -50%; text-align: left; }
@media (max-width: 900px) {
  .live-dock { top: 74px; left: 10px; width: calc(100% - 20px); max-height: 52%; }
  .live-bar { gap: 6px; padding: 6px 6px 6px 10px; }
  .vlive .vis-tools { top: 300px; }
}
.live-panel[hidden], .live-who[hidden], .live-prompt[hidden], .live-join[hidden] { display: none; }

/* centre de données : démonstrations animées et son (visite/ctd-demo.js) */
.ctd-son { border: 1px solid rgba(255, 255, 255, .25); background: rgba(6, 26, 71, .86); color: #fff; font: 700 .8rem/1 var(--head); padding: 12px 14px; border-radius: 12px; cursor: pointer; pointer-events: auto; }
.ctd-son[aria-pressed="true"] { background: #fff; color: var(--navy); }
.vis-guide-btn.ctd-open { background: linear-gradient(135deg, #1f62c4, var(--navy)); box-shadow: 0 12px 26px -12px rgba(10, 42, 102, .9); }
.is-demo .vis-guide-btn, .is-guided .ctd-son { display: none; }
.is-demo .vis-hots, .is-demo .vis-help { visibility: hidden; }
.ctd-menu, .ctd-demo { z-index: 5; }
.ctd-menu[hidden], .ctd-demo[hidden] { display: none; }
.ctd-demo { width: min(470px, calc(100% - 40px)); }
.ctd-intro { margin: 0 0 12px; }
.ctd-choice { display: block; width: 100%; text-align: left; border: 1.5px solid #dbe2ef; background: #fff; border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; cursor: pointer; transition: border-color .2s; }
.ctd-choice:hover { border-color: var(--orange); }
.ctd-choice b { display: block; font: 700 .92rem/1.2 var(--head); color: var(--navy); }
.ctd-choice span { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.ctd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.ctd-head .vis-guide-step { margin: 0; line-height: 1.35; }
/* panneau de démonstration repliable : plié, il garde l'étape, le titre et les boutons */
.ctd-demo.is-foldable .ctd-head { margin-right: 44px; }
.ctd-demo.is-folded :is(.ctd-text, .ctd-chips, .ctd-bar) { display: none; }
.ctd-demo.is-folded .ctd-title { margin-bottom: 0; }
.ctd-demo.is-folded .vis-guide-act { margin-top: 10px; }
.ctd-clock { flex: none; font: 800 .78rem/1 var(--head); color: var(--navy); background: #eef2f9; padding: 6px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.ctd-title { font: 800 1.05rem/1.25 var(--head); color: var(--navy); margin: 0 0 6px; }
.ctd-text { margin: 0; }
.ctd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ctd-chip { font: 600 .74rem/1 var(--head); padding: 6px 9px; border-radius: 999px; background: #eef2f9; color: #33415c; }
.ctd-chip b { font-weight: 800; }
.ctd-chip[data-s="ok"] { background: #e2f6ea; color: #0d6b37; }
.ctd-chip[data-s="bad"] { background: #fde4e1; color: #a3170f; }
.ctd-chip[data-s="warn"] { background: #fff0dc; color: #8a4a00; }
.ctd-chip[data-s="run"] { background: #e1eeff; color: #0f4fa8; }
.ctd-bar { height: 4px; border-radius: 4px; background: #e6ebf4; margin-top: 12px; overflow: hidden; }
.ctd-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
@media (max-width: 900px) {
  .ctd-demo, .ctd-menu { padding: 13px 15px; font-size: .85rem; line-height: 1.45; }
  .ctd-title { font-size: .96rem; }
  .ctd-chips { margin-top: 9px; gap: 5px; }
  .is-demo .vis-zwrap, .is-demo .vis-zfold { display: none; }
  .is-demo .ctd-demo { bottom: 84px; }
}

/* barre des zones : flèches aux extrémités quand tout ne tient pas, sans barre de défilement */
.vis-zwrap { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 5px; border-radius: 14px; background: rgba(6, 26, 71, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; }
.vis-zwrap .vis-zones { flex: 1 1 auto; min-width: 0; padding: 0; border-radius: 10px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; scrollbar-width: none; }
.vis-zwrap .vis-zones::-webkit-scrollbar { display: none; }
.vis-zarrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s, opacity .2s; }
.vis-zarrow:hover:not(:disabled) { background: var(--orange); }
.vis-zarrow:disabled { opacity: .3; cursor: default; }
.vis-zarrow[hidden] { display: none; }
.vis-zarrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* grand écran : la barre s'arrête avant la colonne d'outils ; les boutons passent toujours sur une seconde ligne, alignée sur « Lancer la rotation » */
@media (min-width: 901px) {
  .vis:not(.tpv) .vis-bottom { left: 86px; right: 86px; bottom: 12px; }
  .vis:not(.tpv) .vis-bottom::before { content: ""; flex-basis: 100%; height: 0; order: 1; margin-top: -10px; }
  .vis:not(.tpv) .vis-bottom > :not(.vis-zfold):not(.vis-zwrap) { order: 2; }
  .vis:not(.tpv) .vis-bottom > .vis-zbar:not(.vis-zfold):not(.vis-zwrap) { order: 3; } /* zoom au bout de la ligne des boutons */
  /* la ligne des boutons s'arrête avant « Lancer la rotation » ; la barre des zones garde toute la largeur */
  .vis:not(.tpv) .vis-bottom { padding-right: 130px; }
  .vis:not(.tpv) .vis-bottom > .vis-zwrap { max-width: calc(100% + 130px); margin-right: -130px; }
}
/* très grand écran : le zoom se range à gauche de « Lancer la rotation » (largeur du bouton dans --rotw) */
@media (min-width: 1600px) {
  .vis:not(.tpv) .vis-bottom > .vis-zbar { position: absolute; bottom: -2px; right: calc(var(--rotw, 190px) - 56px); }
  .vis.is-guided:not(.tpv) .vis-bottom > .vis-zbar { bottom: -48px; }
  .vis:not(.tpv) .vis-guide { bottom: 126px; }
  .vis.is-guided:not(.tpv) .vis-guide { bottom: 186px; } /* zones d'étude : la carte reste au-dessus de la barre des zones (TP et zoom restent dessous) */
  .vis.is-guided:not(.tpv) .vis-bottom { bottom: 58px; } /* visite guidée : plus de boutons sous la barre, elle reste au-dessus de « Lancer la rotation » */
}
.vis-zwrap.fade-l .vis-zones { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px); mask-image: linear-gradient(90deg, transparent 0, #000 16px); }
.vis-zwrap.fade-r .vis-zones { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 16px); mask-image: linear-gradient(270deg, transparent 0, #000 16px); }
.vis-zwrap.fade-l.fade-r .vis-zones { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }

/* ---------- Cours 3D (visite/cours.js) : lecteur, sous-titres, repères, encadrés, questions, quiz ---------- */
.vis.is-cours .vis-bottom, .vis.is-cours .vis-progress, .vis.is-cours .vis-hots, .vis.is-cours .vis-guide { display: none !important; }
.crs-top-kicker { margin: 0 0 2px; font: 800 .7rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); }
.crs { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.crs > * { pointer-events: auto; }
.crs [hidden] { display: none !important; }
.crs-head { position: absolute; left: 20px; top: 92px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(6, 26, 71, .78); color: #fff; backdrop-filter: blur(6px); }
.crs-head span { font: 700 .7rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #ffb36b; }
.crs-head b { font: 800 1rem/1.2 var(--head); }
.crs-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.crs-mark { position: absolute; left: 0; top: 0; transition: opacity .3s; will-change: transform; }
.crs-mark i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem/1 var(--head); font-style: normal; color: #fff; background: var(--orange-600); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 6px 16px rgba(0, 0, 0, .3); }
.crs-mark i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--orange); animation: crs-pulse 1.6s ease-out infinite; }
.crs-mark:not(.has-n) i { width: 18px; height: 18px; left: -9px; top: -9px; }
.crs-mark span { position: absolute; left: 24px; top: -15px; white-space: nowrap; padding: 6px 10px; border-radius: 9px; font: 700 .82rem/1.2 var(--head); color: var(--navy); background: #fff; box-shadow: 0 8px 20px -8px rgba(6, 26, 71, .5); }
@keyframes crs-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.crs-panel { position: absolute; right: 86px; top: 92px; width: min(340px, 40%); padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink, #1c2740); box-shadow: 0 24px 50px -24px rgba(6, 26, 71, .6); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.crs-panel.is-in { opacity: 1; transform: none; }
.crs-panel h3 { margin: 0 0 10px; font: 800 1rem/1.25 var(--head); color: var(--navy); }
.crs-panel ul, .crs-panel ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; line-height: 1.4; }
.crs-panel li::marker { color: var(--orange-600); font-weight: 800; }
.crs-gestes li { transition: color .3s; color: #8a93a6; }
.crs-gestes li.is-done { color: var(--navy); }
.crs-gestes li.is-now { color: var(--orange-600); font-weight: 800; }
.crs-chrono { margin: 12px 0 0; font: 700 .9rem/1 var(--head); color: var(--navy); }
.crs-chrono b { font-size: 1.8rem; color: var(--orange-600); }
.crs-chart { display: grid; gap: 12px; }
.crs-chart div { display: grid; gap: 4px; font: 700 .8rem/1.2 var(--head); color: var(--navy); }
.crs-chart i { position: relative; display: block; height: 26px; border-radius: 8px; background: #e8edf6; overflow: hidden; }
.crs-chart i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: 8px; background: #9aa9c4; transition: width 1.6s ease; }
.crs-chart i.is-after::before { background: linear-gradient(90deg, #ff8a2a, var(--orange-600)); }
.crs-chart i b { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #fff; font-size: .85rem; }
.crs-goal em { font-style: normal; font-weight: 800; color: #1a8f4c; }
.crs-note { margin: 12px 0 0; font-size: .82rem; color: #5a6478; }
.crs-sub { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); width: min(860px, calc(100% - 40px)); margin: 0; padding: 12px 18px; border-radius: 12px; text-align: center; font-size: 1.02rem; line-height: 1.45; color: #fff; background: rgba(6, 18, 44, .82); }
.crs-bar { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(920px, calc(100% - 40px)); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; background: rgba(6, 26, 71, .92); color: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.crs-ib { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; font: 800 .8rem/1 var(--head); }
.crs-ib:hover { background: rgba(255, 255, 255, .12); }
.crs-ib svg { width: 22px; height: 22px; fill: currentColor; }
.crs-voice svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.crs-voice[aria-pressed="false"] { opacity: .5; }
.crs-play { background: var(--orange-600); }
.crs-play:hover { background: #ff7a12; }
.crs-track { flex: 1; display: flex; gap: 4px; min-width: 60px; }
.crs-seg { height: 22px; padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.crs-seg i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.crs-seg i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--orange); }
.crs-seg.is-done i::after { width: 100%; }
.crs-seg.is-now i::after { width: var(--p, 0%); }
.crs-time { flex: none; font: 700 .8rem/1 var(--head); font-variant-numeric: tabular-nums; color: #c9d5ee; min-width: 78px; text-align: center; }
.crs-resume { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; }
.crs-resume svg { width: 18px; height: 18px; fill: currentColor; }
.crs-q, .crs-card { width: min(560px, calc(100% - 32px)); padding: 22px 24px; border-radius: 18px; background: #fff; color: var(--ink, #1c2740); box-shadow: 0 30px 70px -30px rgba(6, 26, 71, .7); }
.crs-q { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); }
.crs-kicker { margin: 0 0 6px; font: 800 .72rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); }
.crs-qtext { margin: 0 0 14px; font: 700 1.05rem/1.4 var(--head); color: var(--navy); }
.crs-choices { display: grid; gap: 8px; }
.crs-choices button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d3dcec; background: #f7f9fd; font: 600 .92rem/1.35 inherit; color: var(--navy); cursor: pointer; }
.crs-choices button:hover:not(:disabled) { border-color: var(--navy); }
.crs-choices button:disabled { cursor: default; }
.crs-choices button.is-ok { border-color: #1a8f4c; background: #e5f6ec; color: #11633a; }
.crs-choices button.is-ko { border-color: #d0342c; background: #fdeceb; color: #9c241e; }
.crs-why { margin: 12px 0; font-size: .9rem; line-height: 1.45; }
.crs-start { position: absolute; inset: 0; display: grid; place-items: center; padding: 90px 16px 24px; background: linear-gradient(180deg, rgba(6, 26, 71, .25), rgba(6, 26, 71, .55)); overflow: auto; }
.crs-card h2 { margin: 0 0 8px; font: 800 1.5rem/1.2 var(--head); color: var(--navy); }
.crs-card ul { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 5px; font-size: .92rem; }
.crs-meta { margin: 0; font-size: .86rem; color: #5a6478; }
.crs-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.crs-act a { text-decoration: none; display: inline-flex; align-items: center; }
.crs-src { margin: 14px 0 0; font-size: .78rem; line-height: 1.45; color: #6b7487; }
.crs-result h2 { font-size: 2.6rem; color: var(--orange-600); }
@media (max-width: 760px) {
  .crs-head { top: 78px; left: 12px; padding: 8px 10px; }
  .crs-head b { font-size: .88rem; }
  .crs-panel { left: 12px; right: 12px; top: auto; bottom: 150px; width: auto; max-height: 34%; overflow: auto; padding: 12px 14px; }
  .crs-panel ul, .crs-panel ol { font-size: .82rem; gap: 3px; }
  .crs-sub { bottom: 76px; font-size: .86rem; padding: 8px 12px; width: calc(100% - 24px); }
  .crs-bar { bottom: 12px; width: calc(100% - 24px); gap: 2px; padding: 6px 8px; }
  .crs-ib { width: 34px; height: 34px; }
  .crs-time { display: none; }
  .crs-q { bottom: 76px; }
  .crs-mark span { font-size: .72rem; padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) { .crs-mark i::after { animation: none; } .crs-panel, .crs-chart i::before { transition: none; } }
.crs-form { margin: -2px 0 8px; font-size: .86rem; color: #5a6478; }
.crs-form a { color: var(--orange-600); font-weight: 700; }
.crs-q.is-pick { bottom: auto; top: 150px; }
.crs-hint { margin: 0 0 10px; font-size: .9rem; color: #5a6478; }
.crs-hint b { color: #9c241e; }
@media (max-width: 760px) { .crs-q.is-pick { top: 74px; } }
/* question « cliquez » : sur grand écran, l'encadré se range à droite pour laisser l'équipement visé (au centre) visible */
@media (min-width: 1101px) { .crs-q.is-pick { left: auto; right: 84px; transform: none; width: min(400px, 34vw); } }
.vis.is-cours .vis-rot { display: none; }
/* leçon animée : état en direct et horloge, en haut au centre */
.crs-state { position: absolute; left: 20px; top: 236px; display: flex; align-items: center; gap: 8px; max-width: min(560px, calc(100% - 520px)); padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 16px 34px -20px rgba(6, 26, 71, .6); }
.crs-state .ctd-chips { margin: 0; }
.crs-clock { flex: none; font: 800 .82rem/1 var(--head); color: #fff; background: var(--navy); padding: 7px 10px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.crs-q.is-pick ~ .crs-state, .crs-q:not([hidden]) ~ .crs-state { opacity: .35; }
@media (max-width: 1100px) { .crs-state { top: 150px; left: 12px; max-width: calc(100% - 24px); } }
.live-who li.is-guest { color: var(--muted, #5b6b88); font-style: italic; }

/* séance en direct : voix et vidéo (Jitsi d'UMeet dans un cadre) */
.live-av-btn.is-on { background: var(--orange, #ff6a00); color: #fff; border-color: transparent; }
.live-av { position: absolute; right: 16px; bottom: 16px; z-index: 30; width: min(380px, calc(100% - 32px)); background: #0b1f4d; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(4, 18, 47, .7); color: #fff; }
.live-av.is-big { width: min(760px, calc(100% - 32px)); }
.live-av-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: .82rem; }
.live-av-h b { flex: 1; }
.live-av-b { font: 600 .74rem/1 inherit; color: #dbe4f7; background: rgba(255, 255, 255, .1); border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.live-av-b:hover { background: rgba(255, 255, 255, .2); }
.live-av-b.is-end { color: #ffb3a1; }
.live-av iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; background: #000; }
.live-av-n { margin: 0; padding: 8px 12px 10px; font-size: .74rem; line-height: 1.4; color: #c4d3f2; }
@media (max-width: 640px) { .live-av, .live-av.is-big { right: 8px; bottom: 8px; width: calc(100% - 16px); } }
