@font-face {
  font-family: "PP Neue Montreal";
  src: local("PP Neue Montreal Medium"), local("PPNeueMontreal-Medium"), url("assets/fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
}
@font-face {
  font-family: "PP Neue Montreal Mono";
  src: local("PP Neue Montreal Mono Medium"), local("PPNeueMontrealMono-Medium"), url("assets/fonts/PPNeueMontrealMono-Medium.otf") format("opentype");
  font-weight: 500;
}

:root {
  --bg: #fafafa;
  --shell: #f5f5f7;
  --surface: #fff;
  --line: #ebebeb;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --accent: #faa56c;
  --red: #df5151;
  --red-line: #cd3d3d;
  --tint: #763700;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }

/* Frame Figma 1200 × 800 */
.stage {
  position: relative;
  width: 1200px;
  height: 800px;
  margin: 0 auto;
}
.tint {
  position: fixed;
  inset: 0;
  background: var(--tint);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.mono {
  font-family: "PP Neue Montreal Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 16.028px;
  letter-spacing: -0.3206px;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  text-box: trim-both cap alphabetic;
}

/* Carte */
.card {
  position: absolute;
  left: 311.5px;
  top: 68.98px;
  width: 577px;
  display: flex;
  flex-direction: column;
  padding: 0 5.828px 5.828px;
  background: var(--shell);
  border-radius: 13.114px;
  filter: drop-shadow(0 8.742px 5.828px rgba(24, 39, 75, .12)) drop-shadow(0 11.657px 11.657px rgba(24, 39, 75, .08));
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46.626px;
  padding: 11.657px 23.313px;
}
.icon-btn { display: flex; }

.panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.457px solid var(--line);
  border-radius: 11.657px;
  overflow: hidden;
}
.panel-top {
  display: flex;
  flex-direction: column;
  gap: 34.97px;
  height: 163.192px;
  padding: 34.97px 23.313px 0;
}
.title-row { display: flex; align-items: center; justify-content: space-between; }
h1 {
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: 29.141px;
  letter-spacing: -0.2914px;
  line-height: normal;
  color: #000;
  opacity: .9;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.participants {
  display: flex;
  align-items: center;
  gap: 11.657px;
  height: 34.97px;
  padding: 11.657px 11.657px 11.657px 5.828px;
  background: var(--surface);
  border-radius: 87.424px;
}
.avatars { display: flex; align-items: center; }
.avatar {
  position: relative;
  width: 23.313px;
  height: 23.313px;
  flex-shrink: 0;
  overflow: hidden;
  background: #edeee3;
  border: 1.457px solid #fff;
  border-radius: 87.424px;
}
.avatar + .avatar { margin-left: -11.657px; }
.avatar img { position: absolute; max-width: none; object-fit: cover; }
.a1 img { left: -8.92px; top: -5.92px; width: 35.334px; height: 52.994px; }
.a2 .crop { position: absolute; left: -51px; top: -23.2px; width: 99.081px; height: 69.357px; overflow: hidden; }
.a2 img { left: -2.79%; top: 10.45%; width: 89.75%; height: 89.75%; }
.a3 img { left: -25.26px; top: -0.09px; width: 70.911px; height: 39.887px; }

.tabs {
  display: flex;
  align-items: center;
  gap: 34.97px;
  height: 61.197px;
  padding: 0 23.313px;
  border: 1.457px solid var(--line);
  border-radius: 11.657px;
  background: var(--surface);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5.828px;
  height: 58.283px;
  padding: 11.657px 0;
}
.tab.is-active {
  padding: 11.657px 5.828px;
  border-bottom: 2.914px solid var(--accent);
}
.tab.is-active .mono { color: var(--ink); }

/* Transcript */
.transcript {
  display: flex;
  height: 242.396px;
  padding: 0 23.313px 46.626px;
  overflow: hidden;
}
.lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 23.313px;
  padding-top: 1.457px;
}
.line { display: flex; align-items: flex-start; gap: 34.97px; }
.time { letter-spacing: -0.4808px; }
.time.is-hidden { color: rgba(138, 138, 138, 0); }
.line p {
  flex: 1;
  min-width: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 17.485px;
  letter-spacing: -0.5245px;
  text-box: trim-both cap alphabetic;
}
.fade {
  line-height: 26.227px;
  /* padding : évite que background-clip:text coupe les descendantes sous le trim */
  padding-bottom: 8px;
  margin-bottom: -8px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7) 0, rgba(26, 26, 26, .7) calc(100% - 8px));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live { line-height: 23.313px; color: var(--ink); }
.o8 { color: rgba(26, 26, 26, .8); }
.o6 { color: rgba(26, 26, 26, .6); }
.o4 { color: rgba(26, 26, 26, .4); }
.o2 { color: rgba(26, 26, 26, .2); }

/* Actions */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23.313px 23.313px;
}
.actions-left { display: flex; align-items: center; gap: 5.828px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5.828px;
  height: 40.798px;
  padding: 23.313px;
  border: 1.457px solid var(--line);
  border-radius: 11.657px;
}
.btn-copy { width: 90.338px; }
.btn-export { width: 109.28px; }
.btn-lang { padding: 23.313px 11.657px 23.313px 23.313px; }

/* Onde : 65 colonnes × 7 points, pilotée par wave.js */
.wave {
  display: grid;
  grid-template-rows: repeat(7, 5.828px);
  grid-auto-flow: column;
  grid-auto-columns: 5.828px;
  gap: 2.914px;
  justify-content: center;
  padding: 11.657px 0;
}
.wave i {
  border-radius: 50%;
  background: #e6e6e6;
  transition: background-color 90ms linear;
}
.wave i.on { background: #faa56c; }
.wave i.hot { background: #ba301e; }

/* Contrôles */
.controls { display: flex; align-items: center; justify-content: space-between; }
.elapsed {
  display: flex;
  align-items: center;
  height: 58.283px;
  padding: 0 11.657px 0 23.313px;
}
.controls-right { display: flex; align-items: center; gap: 5.828px; }
.pause {
  transition: background-color 120ms;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58.283px;
  height: 58.283px;
  background: var(--surface);
  border: 1.457px solid var(--line);
  border-radius: 11.657px;
}
.pause-icon { display: flex; align-items: center; justify-content: center; gap: 2.914px; width: 14.571px; height: 14.571px; }
.pause-icon i { width: 2.914px; height: 8.742px; background: #c5c5c5; }
.stop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11.657px;
  height: 58.283px;
  padding: 23.313px;
  background: var(--red);
  border: 1.457px solid var(--red-line);
  border-radius: 11.657px;
}
.stop-label { font-size: 17.485px; letter-spacing: -0.5245px; color: #fff; }
.stop-time { color: rgba(0, 0, 0, .3); }
.pause.is-paused .pause-icon i:last-child { display: none; }
.pause.is-paused .pause-icon i:first-child { width: 0; height: 0; background: none; border-left: 7px solid #c5c5c5; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
