Refonte complète du design (desktop + mobile)

- Nouvelle identité visuelle : thème sombre soigné, dégradés d'accent, cartes,
  ombres, bouton d'enregistrement en pilule avec point animé, badges d'état
- Mise en page responsive mobile-first : la liste des réunions devient un
  tiroir latéral (bouton ☰ + voile), contrôles empilés et tactiles, vumètre
  pleine largeur, bouton Démarrer proéminent
- Page de connexion redessinée dans le même style
- Étiquettes de locuteurs en pastilles colorées
- Cache-busting des assets (?v=2)
Aucun changement de logique : tous les identifiants/hooks JS préservés.

https://claude.ai/code/session_01YHMp3EKzr4s6o8w1ygxuUe
This commit is contained in:
Claude committed 2026-06-13 16:12:50 +00:00
1 parent b8018a5eaf
commit db7575a8b0
4 files changed
+286 -220

No files matched your search

+8 -3
View File
@@ -140,7 +140,7 @@ async function startRecording() {
state.heardSound = false; state.heardSound = false;
state.silentWarned = false; state.silentWarned = false;
state.timerInterval = setInterval(updateTimer, 500); state.timerInterval = setInterval(updateTimer, 500);
$('record-btn').textContent = '■ Arrêter'; $('record-btn').querySelector('.rec-label').textContent = 'Arrêter';
$('record-btn').classList.add('recording'); $('record-btn').classList.add('recording');
$('pause-btn').classList.remove('hidden', 'paused'); $('pause-btn').classList.remove('hidden', 'paused');
$('pause-btn').textContent = '⏸ Pause'; $('pause-btn').textContent = '⏸ Pause';
@@ -203,7 +203,7 @@ function stopRecording(abrupt = false) {
setStatus('idle', 'Prêt'); setStatus('idle', 'Prêt');
} }
$('record-btn').textContent = '● Démarrer'; $('record-btn').querySelector('.rec-label').textContent = 'Démarrer';
$('record-btn').classList.remove('recording'); $('record-btn').classList.remove('recording');
$('pause-btn').classList.add('hidden'); $('pause-btn').classList.add('hidden');
state.paused = false; state.paused = false;
@@ -323,7 +323,7 @@ async function loadMeetings() {
const date = new Date(m.created_at).toLocaleString('fr-FR', { dateStyle: 'short', timeStyle: 'short' }); const date = new Date(m.created_at).toLocaleString('fr-FR', { dateStyle: 'short', timeStyle: 'short' });
li.innerHTML = `<span class="m-title"></span><span class="m-meta">${date} · ${fmtTs(m.duration)}</span>`; li.innerHTML = `<span class="m-title"></span><span class="m-meta">${date} · ${fmtTs(m.duration)}</span>`;
li.querySelector('.m-title').textContent = m.title; li.querySelector('.m-title').textContent = m.title;
li.onclick = () => openMeeting(m.id); li.onclick = () => { openMeeting(m.id); document.body.classList.remove('drawer-open'); };
if (m.id === state.currentMeetingId) li.classList.add('active'); if (m.id === state.currentMeetingId) li.classList.add('active');
ul.appendChild(li); ul.appendChild(li);
} }
@@ -433,6 +433,11 @@ window.addEventListener('focus', () => { if (!state.recording) loadMeetings(); }
// rafraîchit régulièrement la liste (réunions faites depuis un autre appareil) // rafraîchit régulièrement la liste (réunions faites depuis un autre appareil)
setInterval(() => { if (!state.recording) loadMeetings(); }, 20000); setInterval(() => { if (!state.recording) loadMeetings(); }, 20000);
// tiroir latéral (mobile)
const closeDrawer = () => document.body.classList.remove('drawer-open');
if ($('menu-btn')) $('menu-btn').onclick = () => document.body.classList.toggle('drawer-open');
if ($('scrim')) $('scrim').onclick = closeDrawer;
$('record-btn').onclick = () => (state.recording ? stopRecording() : startRecording()); $('record-btn').onclick = () => (state.recording ? stopRecording() : startRecording());
$('pause-btn').onclick = togglePause; $('pause-btn').onclick = togglePause;
$('logout-btn').onclick = async () => { await fetch('/api/logout', { method: 'POST' }); location.href = '/login'; }; $('logout-btn').onclick = async () => { await fetch('/api/logout', { method: 'POST' }); location.href = '/login'; };
+38 -26
View File
@@ -2,48 +2,60 @@
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="theme-color" content="#0b0d12">
<title>LiveFlow — Transcription de réunions</title> <title>LiveFlow — Transcription de réunions</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%8E%99%EF%B8%8F%3C/text%3E%3C/svg%3E"> <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%8E%99%EF%B8%8F%3C/text%3E%3C/svg%3E">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css?v=2">
</head> </head>
<body> <body>
<header> <header class="topbar">
<h1>🎙️ LiveFlow</h1> <button id="menu-btn" class="icon-btn" aria-label="Réunions">☰</button>
<div class="brand"><span class="brand-logo">🎙️</span><span>LiveFlow</span></div>
<span id="status" class="badge idle">Prêt</span> <span id="status" class="badge idle">Prêt</span>
<button id="logout-btn" title="Se déconnecter">Déconnexion</button> <button id="logout-btn" class="icon-btn ghost" title="Se déconnecter">Déconnexion</button>
</header> </header>
<div class="layout"> <div class="layout">
<aside> <aside id="sidebar" class="sidebar">
<h2>Réunions</h2> <div class="sidebar-head">Réunions</div>
<ul id="meeting-list"></ul> <ul id="meeting-list" class="meeting-list"></ul>
</aside> </aside>
<div id="scrim" class="scrim"></div>
<main> <main class="main">
<section class="controls"> <section class="controls card">
<input id="title" type="text" placeholder="Titre de la réunion (optionnel)"> <input id="title" type="text" placeholder="Titre de la réunion (optionnel)">
<select id="mic-select" title="Choix du micro">
<option value="">Micro par défaut</option> <div class="control-row">
</select> <select id="mic-select" title="Choix du micro">
<button id="record-btn" class="record">● Démarrer</button> <option value="">Micro par défaut</option>
<button id="pause-btn" class="pause hidden">⏸ Pause</button> </select>
<span id="timer">00:00</span> <label id="diarization-toggle" class="toggle" title="Identifier qui parle (Locuteur 1, 2...)">
<div id="vu" title="Niveau du micro"><div id="vu-bar"></div></div> <input type="checkbox" id="diarization-cb" checked>
<label id="diarization-toggle" class="toggle" title="Identifier qui parle (Locuteur 1, 2...)"> <span>Locuteurs</span>
<input type="checkbox" id="diarization-cb" checked> Locuteurs </label>
</label> </div>
<div class="record-row">
<button id="record-btn" class="record">
<span class="rec-dot"></span><span class="rec-label">Démarrer</span>
</button>
<button id="pause-btn" class="pause hidden">⏸ Pause</button>
<span id="timer">00:00</span>
<div id="vu" title="Niveau du micro"><div id="vu-bar"></div></div>
</div>
</section> </section>
<section id="transcript-panel"> <section id="transcript-panel" class="card">
<div class="panel-head"> <div class="panel-head">
<h2 id="transcript-title">Transcription</h2> <h2 id="transcript-title">Transcription</h2>
<div id="export-bar" class="hidden"> <div id="export-bar" class="hidden">
<button id="copy-btn" title="Copier le texte">📋 Copier</button> <button id="copy-btn" title="Copier le texte">📋 Copier</button>
<a id="export-txt" download>TXT</a> <a id="export-txt" class="chip" download>TXT</a>
<a id="export-md" download>MD</a> <a id="export-md" class="chip" download>MD</a>
<a id="export-srt" download>SRT</a> <a id="export-srt" class="chip" download>SRT</a>
<a id="export-json" download>JSON</a> <a id="export-json" class="chip" download>JSON</a>
<button id="delete-btn" title="Supprimer la réunion">🗑️</button> <button id="delete-btn" title="Supprimer la réunion">🗑️</button>
</div> </div>
</div> </div>
@@ -54,6 +66,6 @@
</main> </main>
</div> </div>
<script src="app.js"></script> <script src="app.js?v=2"></script>
</body> </body>
</html> </html>
+30 -24
View File
@@ -2,39 +2,45 @@
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="theme-color" content="#0b0d12">
<title>LiveFlow — Connexion</title> <title>LiveFlow — Connexion</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%8E%99%EF%B8%8F%3C/text%3E%3C/svg%3E"> <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%8E%99%EF%B8%8F%3C/text%3E%3C/svg%3E">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css?v=2">
<style> <style>
body { align-items: center; justify-content: center; } body { align-items: center; justify-content: center; overflow: auto; }
.login-box { .login-card {
background: var(--panel); background: var(--panel);
border: 1px solid #262b3a; border: 1px solid var(--border);
border-radius: 14px; border-radius: var(--radius);
padding: 32px; box-shadow: var(--shadow);
width: min(360px, 90vw); padding: 32px 28px;
display: flex; width: min(380px, 92vw);
flex-direction: column; display: flex; flex-direction: column; gap: 16px;
gap: 14px;
} }
.login-box h1 { font-size: 1.3rem; text-align: center; margin-bottom: 6px; } .login-brand { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.login-box input { .login-sub { text-align: center; color: var(--muted); font-size: .88rem; margin-top: -8px; }
background: var(--panel-2); .login-card input {
border: 1px solid #2c3245; background: var(--bg-2); color: var(--text);
color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 11px 14px; padding: 13px 15px; font-size: .98rem;
border-radius: 10px;
font-size: 0.95rem;
} }
.login-box input:focus { outline: none; border-color: var(--accent); } .login-card input:focus { outline: none; border-color: var(--accent); }
.login-box button { background: var(--accent); font-weight: 600; padding: 11px; } .login-card button {
#login-error { color: #ff8589; font-size: 0.85rem; text-align: center; min-height: 1.2em; } border: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 1rem;
padding: 13px; border-radius: var(--radius-sm);
background: linear-gradient(135deg, var(--accent), var(--accent-2));
box-shadow: 0 6px 20px rgba(91,140,255,.35);
transition: transform .12s;
}
.login-card button:hover { transform: translateY(-1px); }
#login-error { color: #ff9398; font-size: .85rem; text-align: center; min-height: 1.2em; }
</style> </style>
</head> </head>
<body> <body>
<form class="login-box" id="login-form"> <form class="login-card" id="login-form">
<h1>🎙️ LiveFlow</h1> <div class="login-brand"><span>🎙️</span><span>LiveFlow</span></div>
<p class="login-sub">Transcription de réunions en direct</p>
<input id="username" type="text" placeholder="Utilisateur" autocomplete="username" required autofocus> <input id="username" type="text" placeholder="Utilisateur" autocomplete="username" required autofocus>
<input id="password" type="password" placeholder="Mot de passe" autocomplete="current-password" required> <input id="password" type="password" placeholder="Mot de passe" autocomplete="current-password" required>
<button type="submit">Se connecter</button> <button type="submit">Se connecter</button>
+210 -167
View File
@@ -1,207 +1,250 @@
* { box-sizing: border-box; margin: 0; } /* ===================== LiveFlow — thème & base ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { :root {
--bg: #0f1117; --bg: #0b0d12;
--panel: #181b24; --bg-2: #11141c;
--panel-2: #1f2330; --panel: #161a24;
--text: #e8eaf0; --panel-2: #1d222e;
--muted: #8b91a3; --border: #262c3a;
--accent: #4f7cff; --text: #e9ecf3;
--rec: #e5484d; --muted: #9aa3b6;
--faint: #6b7384;
--accent: #5b8cff;
--accent-2: #7b5bff;
--rec: #ef4d54;
--ok: #3dd68c;
--warn: #ffd166;
--radius: 16px;
--radius-sm: 10px;
--shadow: 0 8px 30px rgba(0,0,0,.35);
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
} }
html, body { height: 100%; }
body { body {
background: var(--bg); background:
radial-gradient(1200px 600px at 80% -10%, rgba(91,140,255,.10), transparent 60%),
radial-gradient(900px 500px at -10% 0%, rgba(123,91,255,.08), transparent 55%),
var(--bg);
color: var(--text); color: var(--text);
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100dvh;
overflow: hidden;
-webkit-font-smoothing: antialiased;
} }
header { /* ===================== Barre du haut ===================== */
.topbar {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 12px;
padding: 14px 20px; padding: calc(10px + var(--safe-top)) 16px 10px;
background: var(--panel); background: rgba(13,16,22,.85);
border-bottom: 1px solid #262b3a; backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
z-index: 30;
flex-shrink: 0;
} }
.brand {
header h1 { font-size: 1.2rem; } display: flex; align-items: center; gap: 9px;
font-weight: 700; font-size: 1.12rem; letter-spacing: .2px;
}
.brand-logo { font-size: 1.25rem; }
.badge { .badge {
font-size: 0.78rem; font-size: .76rem; font-weight: 600;
padding: 3px 10px; padding: 4px 11px; border-radius: 999px;
border-radius: 999px; background: var(--panel-2); color: var(--muted);
background: var(--panel-2); border: 1px solid var(--border); white-space: nowrap;
color: var(--muted);
} }
.badge.rec { background: #3a181a; color: #ff8589; } .badge.idle { color: var(--muted); }
.badge.busy { background: #2a2410; color: #ffd166; } .badge.rec { background: rgba(239,77,84,.14); color: #ff9398; border-color: rgba(239,77,84,.4); animation: pulse 1.6s ease-in-out infinite; }
.badge.error { background: #3a181a; color: #ff8589; } .badge.busy { background: rgba(255,209,102,.12); color: var(--warn); border-color: rgba(255,209,102,.35); }
.badge.error{ background: rgba(239,77,84,.14); color: #ff9398; border-color: rgba(239,77,84,.45); }
@keyframes pulse { 50% { opacity: .55; } }
#logout-btn { .icon-btn {
margin-left: auto; background: var(--panel-2); color: var(--text);
font-size: 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 6px 12px; padding: 8px 12px; font-size: .85rem; cursor: pointer;
color: var(--muted); transition: background .15s, border-color .15s;
} }
#logout-btn:hover { color: var(--text); } .icon-btn:hover { background: #232a38; }
.icon-btn.ghost { background: transparent; color: var(--muted); }
.icon-btn.ghost:hover { color: var(--text); background: var(--panel-2); }
#logout-btn { margin-left: auto; }
#menu-btn { display: none; font-size: 1.1rem; line-height: 1; padding: 8px 11px; }
.layout { display: flex; flex: 1; min-height: 0; } /* ===================== Mise en page ===================== */
.layout { flex: 1; display: flex; min-height: 0; position: relative; }
aside { .sidebar {
width: 260px; width: 280px; flex-shrink: 0;
background: var(--panel); background: var(--bg-2);
border-right: 1px solid #262b3a; border-right: 1px solid var(--border);
padding: 16px; display: flex; flex-direction: column;
overflow-y: auto; overflow-y: auto;
} }
aside h2 { font-size: 0.85rem; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; } .sidebar-head {
aside ul { list-style: none; padding: 0; } font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
aside li { color: var(--faint); padding: 18px 18px 10px;
padding: 8px 10px;
border-radius: 8px;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 2px;
} }
aside li:hover { background: var(--panel-2); } .meeting-list { list-style: none; padding: 0 10px 16px; display: flex; flex-direction: column; gap: 4px; }
aside li.active { background: #20294a; } .meeting-list li {
.m-title { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } padding: 11px 12px; border-radius: var(--radius-sm);
.m-meta { font-size: 0.74rem; color: var(--muted); } cursor: pointer; display: flex; flex-direction: column; gap: 3px;
border: 1px solid transparent; transition: background .15s, border-color .15s;
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); } .meeting-list li:hover { background: var(--panel); }
.meeting-list li.active { background: rgba(91,140,255,.12); border-color: rgba(91,140,255,.35); }
.m-title { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-meta { font-size: .74rem; color: var(--faint); }
.controls select { .scrim {
background: var(--panel-2); display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
border: 1px solid #2c3245; z-index: 18; opacity: 0; transition: opacity .2s;
color: var(--text);
padding: 10px 12px;
border-radius: 10px;
font-size: 0.88rem;
max-width: 200px;
} }
.controls select:focus { outline: none; border-color: var(--accent); }
button, .controls a { .main {
border: none; flex: 1; min-width: 0;
border-radius: 10px; display: flex; flex-direction: column; gap: 14px;
padding: 10px 18px; padding: 16px;
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); }
button.pause { background: var(--panel-2); font-weight: 600; }
button.pause.paused { background: #2a2410; color: #ffd166; }
button.pause.hidden { display: none; }
.toggle {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.82rem;
color: var(--muted);
cursor: pointer;
white-space: nowrap;
}
.toggle input { accent-color: var(--accent); }
.speaker {
font-size: 0.72rem;
font-weight: 600;
padding: 2px 8px;
border-radius: 999px;
align-self: flex-start;
margin-top: 2px;
flex-shrink: 0;
}
.speaker-0 { background: #1d3a5f; color: #7cb8ff; }
.speaker-1 { background: #1f4a2c; color: #6fdc8c; }
.speaker-2 { background: #4a2a1f; color: #ffab70; }
.speaker-3 { background: #3d1f4a; color: #d8a6ff; }
.speaker-4 { background: #4a1f2e; color: #ff9bb3; }
.speaker-5 { background: #1f4a47; color: #6fd9d2; }
.speaker-6 { background: #4a431f; color: #e3d56f; }
.speaker-7 { background: #2e2e4a; color: #a3a8ff; }
#timer { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; }
#vu {
width: 70px;
height: 8px;
border-radius: 999px;
background: var(--panel-2);
overflow: hidden; overflow: hidden;
} }
#vu-bar {
height: 100%;
width: 0%;
border-radius: 999px;
background: linear-gradient(90deg, #3dd68c, #ffd166 70%, #e5484d);
transition: width 80ms linear;
}
#transcript-panel { .card {
flex: 1;
display: flex;
flex-direction: column;
background: var(--panel); background: var(--panel);
border: 1px solid #262b3a; border: 1px solid var(--border);
border-radius: 14px; border-radius: var(--radius);
min-height: 0; box-shadow: var(--shadow);
} }
/* ===================== Contrôles ===================== */
.controls { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
#title {
width: 100%; background: var(--bg-2); color: var(--text);
border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 12px 14px; font-size: .95rem;
}
#title:focus { outline: none; border-color: var(--accent); }
#title:disabled { opacity: .6; }
.control-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#mic-select {
flex: 1; min-width: 160px;
background: var(--bg-2); color: var(--text);
border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 10px 12px; font-size: .88rem;
}
#mic-select:focus { outline: none; border-color: var(--accent); }
.toggle {
display: inline-flex; align-items: center; gap: 8px;
font-size: .85rem; color: var(--muted); cursor: pointer;
background: var(--bg-2); border: 1px solid var(--border);
padding: 9px 13px; border-radius: var(--radius-sm); user-select: none;
}
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.record-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
button.record {
display: inline-flex; align-items: center; gap: 10px;
border: none; cursor: pointer;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
color: #fff; font-weight: 700; font-size: 1rem;
padding: 13px 26px; border-radius: 999px;
box-shadow: 0 6px 20px rgba(91,140,255,.35);
transition: transform .12s, box-shadow .2s, background .2s;
}
button.record:hover { transform: translateY(-1px); }
button.record:active { transform: translateY(0); }
button.record .rec-dot {
width: 11px; height: 11px; border-radius: 50%; background: #fff;
}
button.record.recording {
background: linear-gradient(135deg, #ef4d54, #b5232a);
box-shadow: 0 6px 20px rgba(239,77,84,.4);
}
button.record.recording .rec-dot { border-radius: 3px; animation: pulse 1.3s infinite; }
button.pause {
background: var(--panel-2); color: var(--text); font-weight: 600;
border: 1px solid var(--border); border-radius: 999px;
padding: 11px 18px; cursor: pointer; font-size: .9rem;
}
button.pause.paused { background: rgba(255,209,102,.14); color: var(--warn); border-color: rgba(255,209,102,.4); }
button.pause.hidden { display: none; }
#timer { font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 600; color: var(--muted); min-width: 52px; }
#vu { flex: 1; min-width: 80px; max-width: 220px; height: 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
#vu-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--ok), var(--warn) 70%, var(--rec)); transition: width .08s linear; }
/* ===================== Panneau de transcription ===================== */
#transcript-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel-head { .panel-head {
display: flex; display: flex; align-items: center; justify-content: space-between; gap: 10px;
align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
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; } .panel-head h2 { font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#export-bar { display: flex; gap: 8px; align-items: center; } #export-bar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
#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; } #export-bar.hidden { display: none; }
#export-bar .chip, #export-bar button {
font-size: .78rem; font-weight: 600;
padding: 6px 11px; border-radius: 999px;
background: var(--panel-2); color: var(--text);
border: 1px solid var(--border); text-decoration: none; cursor: pointer;
transition: background .15s;
}
#export-bar .chip:hover, #export-bar button:hover { background: #232a38; }
#delete-btn { border-color: rgba(239,77,84,.35); }
#transcript { flex: 1; overflow-y: auto; padding: 18px; } #transcript { flex: 1; overflow-y: auto; padding: 18px 16px; scroll-behavior: smooth; }
.placeholder { color: var(--muted); font-style: italic; } .placeholder { color: var(--faint); font-style: italic; }
.segment { display: flex; gap: 12px; margin-bottom: 12px; line-height: 1.55; }
.segment .ts { .segment { display: flex; gap: 12px; margin-bottom: 14px; line-height: 1.6; align-items: flex-start; }
color: var(--muted); .segment .ts { color: var(--faint); font-size: .74rem; font-variant-numeric: tabular-nums; padding-top: 4px; flex-shrink: 0; min-width: 42px; }
font-size: 0.78rem; .segment .text { flex: 1; font-size: .98rem; }
font-variant-numeric: tabular-nums;
padding-top: 3px; /* étiquettes de locuteurs (classes utilisées par app.js) */
flex-shrink: 0; .speaker { font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; align-self: flex-start; margin-top: 3px; flex-shrink: 0; white-space: nowrap; }
.speaker-0 { background: #173a5e; color: #8ec5ff; }
.speaker-1 { background: #1c4a2e; color: #79e3a0; }
.speaker-2 { background: #4a2f1c; color: #ffb27a; }
.speaker-3 { background: #3f1d4d; color: #dca9ff; }
.speaker-4 { background: #4c1d2c; color: #ff9db4; }
.speaker-5 { background: #1d4a47; color: #7adcd5; }
.speaker-6 { background: #46421c; color: #e6d873; }
.speaker-7 { background: #2c2c50; color: #aab0ff; }
/* ===================== Mobile ===================== */
@media (max-width: 760px) {
#menu-btn { display: inline-flex; }
.main { padding: 12px; gap: 12px; }
.sidebar {
position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 320px;
transform: translateX(-100%); transition: transform .25s ease;
z-index: 20; padding-top: var(--safe-top);
box-shadow: var(--shadow);
}
body.drawer-open .sidebar { transform: translateX(0); }
body.drawer-open .scrim { display: block; opacity: 1; }
.record-row { gap: 10px; }
button.record { flex: 1; justify-content: center; padding: 15px 20px; font-size: 1.05rem; }
#vu { order: 5; flex-basis: 100%; max-width: none; }
.brand span:last-child { display: none; } /* garde juste le logo, place pour le badge */
.panel-head { padding: 12px; }
} }
@media (max-width: 720px) { @media (max-width: 380px) {
.layout { flex-direction: column; } #timer { min-width: 46px; font-size: .95rem; }
aside { width: 100%; max-height: 30vh; border-right: none; border-bottom: 1px solid #262b3a; } .badge { font-size: .7rem; padding: 3px 8px; }
.controls { flex-wrap: wrap; }
.controls input { width: 100%; flex: none; }
} }