/* EVS SIMULATOR — habillage du simulateur (HUD, overlays) */
.sim-root { position: fixed; inset: 0; background: #0b1220; color: #fff; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; overflow: hidden; user-select: none; z-index: 100; }
.sim-canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud.hidden > *:not(.btnbar):not(.toasts):not(.warn) { display: none !important; }
.hud button, .touch .zone { pointer-events: auto; }

.hud-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 96vw; }
.chip { background: rgba(10, 18, 30, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.chip.ok { border-color: #34d399; color: #a7f3d0; } .chip.bad { border-color: #ef4444; color: #fecaca; } .chip.warn { border-color: #fbbf24; color: #fde68a; } .chip.info { border-color: #60a5fa; color: #bfdbfe; }
.chip.blink { animation: blink 0.8s steps(2) infinite; } @keyframes blink { 50% { opacity: 0.35; } }
.bat { display: inline-block; width: 38px; height: 10px; border: 1px solid #fff; border-radius: 2px; overflow: hidden; } .bat i { display: block; height: 100%; }
.warr { display: inline-block; font-weight: 800; color: #fbbf24; }

.mission-panel { position: absolute; top: 56px; left: 12px; width: min(340px, 44vw); background: rgba(10, 18, 30, 0.74); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(6px); }
.mission-panel h4 { margin: 0 0 6px; font-size: 14px; } .mission-panel ul { list-style: none; padding: 0; margin: 6px 0; font-size: 12.5px; }
.mission-panel li { padding: 2px 0; color: #9fb0c8; } .mission-panel li.cur { color: #fff; font-weight: 600; } .mission-panel li.done { color: #34d399; } .mission-panel em { color: #22d3ee; font-style: normal; }
.mrow { display: flex; justify-content: space-between; font-size: 12px; color: #cbd5e1; gap: 8px; } .mrow.small { font-size: 11px; color: #94a3b8; } .badt { color: #f87171; }

.telemetry { position: absolute; left: 12px; bottom: 56px; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 14px; background: rgba(10, 18, 30, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.telemetry div { display: flex; flex-direction: column; } .telemetry label { font-size: 9.5px; color: #8aa0bd; letter-spacing: 0.08em; } .telemetry b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pip-frame { position: absolute; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); pointer-events: none; }
.pip-frame span { position: absolute; left: 6px; top: 4px; font-size: 11px; text-shadow: 0 1px 3px #000; }
.minimap { position: absolute; right: 12px; bottom: 56px; width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); } .minimap.big { width: 340px; height: 340px; }
.sticks { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); opacity: 0.85; width: 260px; height: 120px; }
.horizon { position: absolute; left: 12px; top: 50%; transform: translateY(-20%); width: 110px; height: 110px; opacity: 0.92; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 50%; display: none; } .crosshair::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #ff5a1f; border-radius: 50%; }

.warn { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); background: rgba(185, 28, 28, 0.88); color: #fff; padding: 10px 22px; border-radius: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.04em; animation: blink 0.9s steps(2) infinite; text-align: center; max-width: 90vw; }
.toasts { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { background: rgba(10, 18, 30, 0.85); border: 1px solid rgba(255, 255, 255, 0.2); padding: 7px 14px; border-radius: 8px; font-size: 14px; animation: tin 0.2s ease-out; max-width: 92vw; text-align: center; }
.toast.ok { border-color: #34d399; color: #bbf7d0; } .toast.bad { border-color: #ef4444; background: rgba(127, 29, 29, 0.9); } .toast.warn { border-color: #fbbf24; color: #fde68a; }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.btnbar { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.btnbar button { background: rgba(10, 18, 30, 0.8); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; padding: 7px 12px; font-size: 13px; cursor: pointer; } .btnbar button:hover { background: rgba(255, 90, 31, 0.8); }

.touch { position: absolute; inset: auto 0 70px 0; display: flex; justify-content: space-between; padding: 0 24px; pointer-events: none; }
.touch .zone { width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, 0.10); border: 2px solid rgba(255, 255, 255, 0.35); display: flex; align-items: center; justify-content: center; touch-action: none; }
.touch .knob { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 90, 31, 0.85); }

.overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(5, 10, 20, 0.72); backdrop-filter: blur(4px); padding: 16px; overflow: auto; z-index: 5; }
.overlay.show { display: flex; }
.card { background: #101a2b; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 22px 24px; width: min(860px, 100%); max-height: 94vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.card h2 { margin: 2px 0 8px; font-size: 26px; } .card h4 { margin: 4px 0 6px; color: #ff9b6b; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.kicker { color: #ff9b6b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; } .muted { color: #8aa0bd; } .small { font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } .telemetry { grid-template-columns: repeat(2, auto); bottom: 100px; } .minimap { width: 130px; height: 130px; bottom: 100px; } .minimap.big { width: 220px; height: 220px; } .sticks, .horizon { display: none; } .mission-panel { top: 50px; } }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .pill { padding: 3px 9px; border-radius: 999px; background: #1c2a42; font-size: 12px; } .pill.on { background: #ff5a1f; }
.obj { padding-left: 18px; margin: 4px 0; font-size: 14px; } .obj li { margin: 3px 0; }
.row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn { background: #1c2a42; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 10px 18px; font-size: 14px; cursor: pointer; font-weight: 600; } .btn:hover { filter: brightness(1.2); }
.btn.primary { background: #ff5a1f; border-color: #ff5a1f; } .btn.danger { background: #7f1d1d; border-color: #b91c1c; }
details { margin-top: 10px; } summary { cursor: pointer; color: #9fb0c8; }
table.help { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; } table.help td { padding: 3px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); } table.help td:first-child { white-space: nowrap; }
kbd { background: #1c2a42; border: 1px solid #334766; border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; font-family: inherit; font-size: 12px; }
.field { display: block; margin: 10px 0; font-size: 14px; } .field select, .field input[type=range] { width: 100%; margin-top: 4px; } .field select { background: #1c2a42; color: #fff; border: 1px solid #334766; border-radius: 8px; padding: 6px; } .field.chk { display: flex; gap: 8px; align-items: center; }
.score { display: flex; align-items: center; gap: 22px; margin: 8px 0 12px; padding: 12px 16px; border-radius: 12px; background: #16233a; } .score .big { font-size: 56px; font-weight: 800; line-height: 1; } .score .big small { font-size: 18px; color: #8aa0bd; } .score.ok .big { color: #34d399; } .score.ko .big { color: #f87171; } .stars { font-size: 34px; color: #fbbf24; letter-spacing: 4px; }
table.bk { width: 100%; border-collapse: collapse; font-size: 14px; } table.bk td { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } table.bk td:last-child { text-align: right; font-weight: 700; }
.cert { margin: 12px 0; padding: 12px 14px; background: linear-gradient(90deg, #0f5132, #14532d); border: 1px solid #34d399; border-radius: 10px; font-weight: 600; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; } .photos img { height: 70px; border-radius: 6px; border: 2px solid #475569; } .photos img.ok { border-color: #34d399; }
