* { box-sizing: border-box; margin: 0; } :root { --bg: #0f1117; --panel: #181b24; --panel-2: #1f2330; --text: #e8eaf0; --muted: #8b91a3; --accent: #4f7cff; --rec: #e5484d; } body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; height: 100vh; display: flex; flex-direction: column; } header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--panel); border-bottom: 1px solid #262b3a; } header h1 { font-size: 1.2rem; } .badge { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); } .badge.rec { background: #3a181a; color: #ff8589; } .badge.busy { background: #2a2410; color: #ffd166; } .badge.error { background: #3a181a; color: #ff8589; } .layout { display: flex; flex: 1; min-height: 0; } aside { width: 260px; background: var(--panel); border-right: 1px solid #262b3a; padding: 16px; overflow-y: auto; } aside h2 { font-size: 0.85rem; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; } aside ul { list-style: none; padding: 0; } aside li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; } aside li:hover { background: var(--panel-2); } aside li.active { background: #20294a; } .m-title { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-meta { font-size: 0.74rem; color: var(--muted); } main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 20px; gap: 16px; } .controls { display: flex; gap: 12px; align-items: center; } .controls input { flex: 1; background: var(--panel-2); border: 1px solid #2c3245; color: var(--text); padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; } .controls input:focus { outline: none; border-color: var(--accent); } #mic-select { background: var(--panel-2); border: 1px solid #2c3245; color: var(--text); padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; cursor: pointer; max-width: 200px; } #mic-select:focus { outline: none; border-color: var(--accent); } #mic-select option { background: var(--panel); color: var(--text); } button, .controls a { border: none; border-radius: 10px; padding: 10px 18px; font-size: 0.95rem; cursor: pointer; background: var(--panel-2); color: var(--text); } button.record { background: var(--accent); font-weight: 600; min-width: 130px; } button.record.recording { background: var(--rec); } #timer { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; } #transcript-panel { flex: 1; display: flex; flex-direction: column; background: var(--panel); border: 1px solid #262b3a; border-radius: 14px; min-height: 0; } .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #262b3a; } .panel-head h2 { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #export-bar { display: flex; gap: 8px; align-items: center; } #export-bar a, #export-bar button { font-size: 0.8rem; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); color: var(--text); text-decoration: none; } #export-bar.hidden { display: none; } #transcript { flex: 1; overflow-y: auto; padding: 18px; } .placeholder { color: var(--muted); font-style: italic; } .segment { display: flex; gap: 12px; margin-bottom: 12px; line-height: 1.55; } .segment .ts { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; padding-top: 3px; flex-shrink: 0; } /* --- Diarisation : badges locuteurs --- */ .speaker { font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; flex-shrink: 0; white-space: nowrap; } .speaker-0 { background: #1a2440; color: #4f7cff; } .speaker-1 { background: #3a181a; color: #e5484d; } .speaker-2 { background: #132a1e; color: #30a46c; } .speaker-3 { background: #2a2410; color: #f5a623; } .speaker-4 { background: #2a1a3a; color: #8e4ec6; } .speaker-5 { background: #0f2a28; color: #12a594; } .speaker-6 { background: #3a1a2a; color: #e54666; } .speaker-7 { background: #1e2024; color: #889096; } /* Toggle diarisation */ .toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.85rem; color: var(--muted); user-select: none; padding: 6px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid #2c3245; transition: border-color 0.2s, color 0.2s; } .toggle:hover { border-color: var(--accent); } .toggle input { display: none; } .toggle:has(input:checked) { border-color: var(--accent); color: var(--text); } /* Indicateur de volume micro */ .volume-container { width: 60px; height: 8px; background: var(--panel-2); border: 1px solid #2c3245; border-radius: 4px; overflow: hidden; display: flex; align-items: center; padding: 1px; } .volume-bar { width: 0%; height: 100%; background: #30a46c; /* Vert */ border-radius: 2px; transition: width 0.1s ease; } /* Bouton Pause */ button.pause { background: #2a2410; color: #ffd166; font-weight: 600; min-width: 110px; } button.pause.paused { background: var(--accent); color: var(--text); } @media (max-width: 720px) { .layout { flex-direction: column; } aside { width: 100%; max-height: 30vh; border-right: none; border-bottom: 1px solid #262b3a; } .controls { flex-wrap: wrap; } .controls input { width: 100%; flex: none; } }