/* ============ POLICES ============ */
@font-face { font-family: "Syne"; src: url("../assets/fonts/syne.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ============ VARIABLES ============ */
:root {
  --ink: #0B0B0B;
  --panel: #141414;
  --panel-2: #1B1B1B;
  --line: #2A2A2A;
  --line-2: #3A3A3A;
  --paper: #F2F2EE;
  --mute: #8C8C86;
  --dim: #5E5E5A;
  --lime: #C8FF2E;
  --cyan: #7CF5FF;
  --orange: #FF8A3D;
  --pink: #FF9EE6;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 6px;
  --track-h: 46px;
  --head-w: 112px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 14px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--ink); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot--lime { background: var(--lime); } .dot--orange { background: var(--orange); }
.dot--cyan { background: var(--cyan); } .dot--pink { background: var(--pink); }

/* ============ APP GRID ============ */
.app {
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 300px;
  grid-template-rows: 46px minmax(0, 1fr) minmax(210px, 34vh) 26px;
  grid-template-areas:
    "top top top"
    "bin mon insp"
    "tl tl tl"
    "status status status";
  gap: 1px; background: var(--line);
}

/* ============ TOP ============ */
.top { grid-area: top; display: flex; align-items: center; gap: 22px; padding: 0 12px 0 14px; background: var(--ink); min-width: 0; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; flex: none; }
.logo span { background: var(--lime); color: var(--ink); font: 800 14px/1 var(--display); padding: 5px 5px 4px; }
.logo b { font: 800 15px/1 var(--display); letter-spacing: -.01em; }
.menu { display: flex; gap: 2px; min-width: 0; }
.menu button { padding: 7px 10px; border-radius: 4px; font-size: 13px; color: #CFCFC9; white-space: nowrap; }
.menu button:hover { background: var(--panel-2); color: var(--paper); }
.top__file { color: var(--dim); margin: 0 auto 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top__file b { color: var(--lime); font-weight: 500; }
.top__right { display: flex; align-items: center; gap: 8px; flex: none; }
.iconbtn {
  min-width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line-2);
  display: inline-grid; place-items: center; font-family: var(--mono); font-size: 13px; color: #CFCFC9;
}
.iconbtn:hover { border-color: var(--paper); color: var(--paper); }
.iconbtn--wide { padding: 0 9px; font-size: 10px; }
.export {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px; border-radius: 4px;
  background: var(--lime); color: var(--ink); font-weight: 600; font-size: 13px;
  box-shadow: 0 0 0 0 rgba(200,255,46,.5); animation: pulse 2.6s infinite;
}
.export:hover { background: #D8FF6A; }
.export__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.export__sub { font-weight: 400; opacity: .7; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,255,46,.45); } 70% { box-shadow: 0 0 0 10px rgba(200,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,46,0); } }

/* ============ PANELS ============ */
.panel { background: var(--panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.bin { grid-area: bin; }
.inspector { grid-area: insp; }
.panel__tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); flex: none; }
.panel__tabs button {
  padding: 6px 10px 7px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--mute); border-bottom: 2px solid transparent;
}
.panel__tabs button.is-on { color: var(--paper); border-color: var(--lime); }
.panel__body { overflow: auto; flex: 1; min-height: 0; padding: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* --- Bin --- */
.bin__path { color: var(--dim); margin-bottom: 8px; }
.folder { margin-bottom: 6px; }
.folder__head {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #CFCFC9; text-align: left;
}
.folder__head:hover { background: var(--panel-2); }
.folder__head .chev { transition: transform .2s; color: var(--dim); }
.folder.is-closed .chev { transform: rotate(-90deg); }
.folder.is-closed .folder__items { display: none; }
.folder__head .n { margin-left: auto; color: var(--dim); }
.folder__ico { width: 12px; height: 9px; border-radius: 1px; position: relative; }
.folder__ico::before { content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 3px; background: inherit; border-radius: 1px 1px 0 0; }
.item {
  display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; width: 100%;
  padding: 5px 6px 5px 22px; border-radius: 4px; text-align: left;
}
.item:hover { background: var(--panel-2); }
.item.is-active { background: #232323; box-shadow: inset 2px 0 0 var(--lime); }
.item__thumb { width: 54px; height: 32px; border-radius: 2px; background: #000 center/cover no-repeat; position: relative; overflow: hidden; }
.item__thumb--card { display: grid; place-items: center; font: 800 13px/1 var(--display); color: var(--ink); text-transform: uppercase; letter-spacing: -.02em; }
.item__thumb--img b { position: absolute; right: 0; bottom: 0; font: 700 8px/1 var(--mono); background: var(--lime); color: var(--ink); padding: 2px 3px; }
.item__name { font-size: 12.5px; line-height: 1.2; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__meta { font-family: var(--mono); font-size: 9.5px; color: var(--dim); text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- FX --- */
.fx__hint { color: var(--dim); text-transform: none; letter-spacing: 0; line-height: 1.45; margin: 0 0 10px; font-size: 10.5px; }
.fxgroup { margin-bottom: 14px; }
.fxgroup__t { font-family: var(--mono); font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; padding: 0 6px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.fxitem {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px; border-radius: 4px; text-align: left; font-size: 13px;
}
.fxitem:hover { background: var(--panel-2); }
.fxitem .fxbadge { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--mute); }
.fxitem .n { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.fxitem small { display: block; font-size: 10.5px; color: var(--dim); }
.fxitem.is-on { background: rgba(200,255,46,.1); }
.fxitem.is-on .fxbadge { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tools { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 6px; }
.tools span { font-family: var(--mono); font-size: 10px; padding: 3px 7px; background: var(--lime); color: var(--ink); text-transform: uppercase; }

/* ============ MONITOR ============ */
.monitor { grid-area: mon; background: var(--ink); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.monitor__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--mute); flex: none; }
.monitor__seq { color: var(--paper); }
.monitor__spec { margin-left: auto; color: var(--dim); }
.monitor__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; }
.screen {
  position: relative; aspect-ratio: 16 / 9; height: 100%; max-width: calc(100% - 28px); max-height: 100%;
  background: #000; overflow: hidden; container-type: size; border-radius: 2px;
  box-shadow: 0 0 0 1px #222, 0 30px 80px -20px rgba(0,0,0,.8);
}
@supports not (container-type: size) { .screen { width: 100%; height: auto; } }
.screen__layers, .layer { position: absolute; inset: 0; }
.layer { opacity: 0; transition: opacity .38s ease; overflow: hidden; }
.layer.is-in { opacity: 1; }
.layer--cut { transition: none; }

/* Média */
.media__bg { position: absolute; inset: -40px; background: center/cover no-repeat; filter: blur(34px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform; transform-origin: 50% 50%; }
.media--mock .media__bg { filter: blur(60px) saturate(1.1) brightness(.35); }
.media--mock { background: radial-gradient(120% 90% at 50% 40%, #2a2a2a, #0b0b0b); }
.media--mock .media__img { inset: 7% 10% 14%; width: 80%; height: 79%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Lower third */
.lt { position: absolute; left: 5.5cqw; bottom: 7cqh; display: flex; flex-direction: column; align-items: flex-start; gap: .6cqh; pointer-events: none; }
.lt__tag { font: 600 1.15cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: .6cqw .9cqw; background: var(--c, var(--lime)); color: var(--ink); transform-origin: left; animation: ltIn .5s cubic-bezier(.2,.8,.2,1) .25s both; }
.lt__title { font: 800 3.6cqw/1 var(--display); letter-spacing: -.01em; background: var(--ink); padding: .7cqw 1.1cqw .5cqw; animation: ltIn .55s cubic-bezier(.2,.8,.2,1) .35s both; transform-origin: left; }
.lt__sub { font: 500 1.2cqw/1 var(--mono); text-transform: uppercase; background: var(--paper); color: var(--ink); padding: .5cqw .9cqw; animation: ltIn .55s cubic-bezier(.2,.8,.2,1) .45s both; transform-origin: left; }
@keyframes ltIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hide-titles .lt, .hide-titles .card__t { visibility: hidden; }

/* Cartes titres */
.card { position: absolute; inset: 0; display: flex; padding: 6cqh 6cqw; }
.card .k { font: 500 1.2cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.rise-2 { animation-delay: .12s; } .rise-3 { animation-delay: .24s; } .rise-4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(3cqh); } to { opacity: 1; transform: none; } }

.card--intro { flex-direction: column; justify-content: flex-end; }
.card--intro .card__bg { position: absolute; inset: 0; background: center/cover no-repeat; filter: grayscale(1) contrast(1.1) brightness(.45); }
.card--intro .card__in { position: relative; }
.card--intro h1 { margin: 1.5cqh 0 2cqh; font: 800 11.5cqw/.86 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.card--intro h1 em { font-style: normal; color: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: .7cqw; }
.chips span { font: 500 1.1cqw/1 var(--mono); text-transform: uppercase; padding: .7cqw 1.1cqw; border: .15cqw solid var(--paper); border-radius: 99px; }
.chips span.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.card--about { background: var(--paper); color: var(--ink); gap: 4cqw; align-items: center; }
.card--about .ph { position: relative; flex: none; width: 27cqw; height: 34cqw; }
.card--about .ph::before { content: ""; position: absolute; inset: 1.3cqw -1.3cqw -1.3cqw 1.3cqw; background: var(--lime); }
.card--about .ph img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; border: .2cqw solid var(--ink); display: block; }
.card--about h2 { font: 800 6.4cqw/.92 var(--display); letter-spacing: -.03em; margin: 1.2cqh 0 2.4cqh; }
.card--about p { font-size: 1.65cqw; line-height: 1.45; margin: 0 0 2.6cqh; max-width: 52cqw; }
.stats { display: flex; gap: 3.5cqw; border-top: .2cqw solid var(--ink); padding-top: 2.2cqh; }
.stats b { display: block; font: 800 4.2cqw/1 var(--display); letter-spacing: -.03em; }
.stats span { font: 500 1cqw/1.2 var(--mono); text-transform: uppercase; }

.card--chapter { background: var(--c, var(--lime)); color: var(--ink); flex-direction: column; justify-content: space-between; }
.card--chapter .num { font: 800 3cqw/1 var(--display); }
.card--chapter h2 { font: 800 12.5cqw/.84 var(--display); letter-spacing: -.045em; margin: 0; text-transform: uppercase; }
.card--chapter .foot { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; align-items: end; }
.card--chapter .lead { font: 700 2.2cqw/1.15 var(--display); margin: 0; }
.card--chapter .refs { font: 500 1.1cqw/1.5 var(--mono); text-transform: uppercase; margin: 0; }
.card--chapter .refs b { display: block; font-weight: 500; opacity: .6; }
.card--chapter .ctop { display: flex; justify-content: space-between; align-items: flex-start; }

.card--pour { background: var(--ink); flex-direction: column; justify-content: center; }
.card--pour .k { color: var(--lime); }
.card--pour h2 { font: 800 9.5cqw/.88 var(--display); letter-spacing: -.04em; margin: 2cqh 0 3cqh; text-transform: uppercase; }
.card--pour h2 span { display: inline-block; background: var(--lime); color: var(--ink); padding: 0 1.2cqw; }
.card--pour p { font-size: 2.1cqw; line-height: 1.35; max-width: 66cqw; margin: 0; }
.card--pour .grid4 { display: flex; gap: 1cqw; margin-top: 4cqh; }
.card--pour .grid4 span { font: 500 1.1cqw/1 var(--mono); text-transform: uppercase; padding: 1cqw 1.3cqw; border: .15cqw solid var(--line-2); }
.card--pour .grid4 span b { color: var(--lime); font-weight: 500; margin-right: .6cqw; }

.card--parcours { background: var(--panel); flex-direction: column; justify-content: center; }
.card--parcours h2 { font: 800 7cqw/.9 var(--display); letter-spacing: -.035em; margin: 1.5cqh 0 3.5cqh; text-transform: uppercase; }
.plist { display: grid; gap: 0; }
.plist div { display: grid; grid-template-columns: 17cqw 1fr auto; gap: 2cqw; align-items: baseline; padding: 1.3cqh 0; border-top: .12cqw solid var(--line-2); }
.plist .d { font: 500 1.1cqw/1 var(--mono); color: var(--mute); text-transform: uppercase; }
.plist .t { font: 700 1.9cqw/1.1 var(--display); }
.plist .o { font: 500 1.1cqw/1 var(--mono); color: var(--lime); text-transform: uppercase; }
.card__btn {
  margin-top: 3.5cqh; align-self: flex-start; font: 600 1.2cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  padding: 1.1cqw 1.6cqw; background: var(--lime); color: var(--ink); border-radius: .3cqw; pointer-events: auto;
}
.card__btn:hover { background: var(--paper); }

.card--contact { background: var(--ink); flex-direction: column; justify-content: space-between; }
.card--contact .bg { position: absolute; right: 0; top: 0; bottom: 0; width: 38cqw; background: center top/cover no-repeat; filter: grayscale(1); opacity: .9; }
.card--contact .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 50%); }
.card--contact h2 { position: relative; z-index: 2; font: 800 8cqw/.88 var(--display); letter-spacing: -.045em; margin: 0; text-transform: uppercase; }
.card--contact h2 em { font-style: normal; color: var(--lime); }
.clines { position: relative; display: grid; gap: 1.2cqh; }
.clines a, .clines span { display: flex; gap: 2cqw; align-items: baseline; text-decoration: none; font-size: 2cqw; pointer-events: auto; }
.clines a:hover { color: var(--lime); }
.clines i { font: 500 1cqw/1 var(--mono); font-style: normal; text-transform: uppercase; color: var(--mute); width: 11cqw; }

.card--job { background: var(--panel); gap: 4cqw; align-items: stretch; }
.card--job .jt { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.card--job .badge { align-self: flex-start; font: 600 1.1cqw/1 var(--mono); text-transform: uppercase; padding: .7cqw 1cqw; background: var(--c, var(--lime)); color: var(--ink); }
.card--job .dates { font: 500 1.4cqw/1 var(--mono); color: var(--mute); text-transform: uppercase; margin: 3cqh 0 1.5cqh; }
.card--job h2 { font: 800 5cqw/.95 var(--display); letter-spacing: -.03em; margin: 0 0 2cqh; }
.card--job .org { font-size: 2cqw; margin: 0 0 3cqh; color: var(--c, var(--lime)); }
.card--job ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.2cqh; }
.card--job li { font-size: 1.65cqw; line-height: 1.35; padding-left: 2.6cqw; position: relative; }
.card--job li::before { content: "→"; position: absolute; left: 0; color: var(--c, var(--lime)); }
.card--job .jimg { flex: none; width: 30cqw; background: center/cover no-repeat; filter: grayscale(.2); border: .15cqw solid var(--line-2); }

/* Repères de cadrage */
.safe { position: absolute; inset: 0; pointer-events: none; }
.safe i { position: absolute; border: 1px dashed rgba(255,255,255,.35); }
.safe i:nth-child(1) { inset: 5%; } .safe i:nth-child(2) { inset: 10%; }
.safe::before, .safe::after { content: ""; position: absolute; background: rgba(255,255,255,.35); }
.safe::before { left: 50%; top: 47%; width: 1px; height: 6%; } .safe::after { top: 50%; left: 48.3%; height: 1px; width: 3.4%; }

.screen__label { position: absolute; top: 10px; left: 12px; padding: 4px 7px; background: rgba(0,0,0,.55); color: #CFCFC9; font-size: 10px; border-radius: 3px; backdrop-filter: blur(6px); pointer-events: none; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen__live { position: absolute; top: 10px; right: 12px; padding: 4px 7px; background: rgba(0,0,0,.55); font-size: 10px; border-radius: 3px; display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.screen__live i { width: 7px; height: 7px; border-radius: 50%; background: #FF3B30; animation: blink 1s steps(2) infinite; }
.is-playing .screen__live { opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

.bigplay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqh;
  background: radial-gradient(circle at center, rgba(0,0,0,.35), rgba(0,0,0,.65)); transition: opacity .3s;
}
.bigplay__ico { width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 4cqw; padding-left: .8cqw; transition: transform .25s; box-shadow: 0 0 0 1.4cqw rgba(200,255,46,.18); }
.bigplay:hover .bigplay__ico { transform: scale(1.07); }
.bigplay__txt { font: 800 3cqw/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.bigplay__hint { color: #CFCFC9; font-size: max(10px, 1cqw); }
.bigplay.is-gone { opacity: 0; pointer-events: none; }

/* VU */
.vu { display: flex; gap: 3px; align-items: flex-end; height: 100%; max-height: 100%; padding: 6px 0; flex: none; position: relative; }
.vu__col { width: 6px; height: 100%; background: #161616; position: relative; overflow: hidden; border-radius: 1px; }
.vu__col i { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(to top, var(--lime) 0 70%, #FFD43B 70% 88%, #FF3B30 88%); transition: height .08s linear; }
.vu span { position: absolute; bottom: -12px; left: -2px; font-size: 8px; color: var(--dim); }

/* Transport */
.transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 14px 10px; flex: none; gap: 10px; }
.tc { font-size: 15px; color: var(--lime); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tc--dim { color: var(--mute); font-size: 12px; }
.transport__btns { display: flex; gap: 4px; align-items: center; }
.tbtn { width: 36px; height: 32px; border-radius: 4px; display: grid; place-items: center; color: #CFCFC9; font-size: 12px; letter-spacing: -2px; }
.tbtn:hover { background: var(--panel-2); color: var(--paper); }
.tbtn--play { width: 46px; height: 38px; background: var(--paper); color: var(--ink); font-size: 15px; letter-spacing: 0; margin: 0 4px; }
.tbtn--play:hover { background: var(--lime); color: var(--ink); }
.tbtn--sm { width: 28px; height: 28px; font-size: 14px; letter-spacing: 0; }
.tbtn[aria-pressed="true"] { color: var(--lime); }
.transport__right { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.rate { color: var(--mute); width: 30px; text-align: right; }

/* ============ INSPECTOR ============ */
.insp__head { padding: 2px 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.insp__type { display: inline-block; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; padding: 3px 6px; background: var(--c, var(--lime)); color: var(--ink); margin-bottom: 8px; }
.insp__title { font: 800 22px/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.insp__src { font-family: var(--mono); font-size: 10px; color: var(--dim); word-break: break-all; }
.sect { margin-bottom: 12px; }
.sect__t { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; padding: 4px 2px 6px; }
.sect__t::before { content: "▾"; color: var(--dim); }
.prop { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 5px 2px; font-size: 12.5px; border-bottom: 1px solid #1f1f1f; }
.prop dt { color: var(--mute); font-size: 11.5px; }
.prop dd { margin: 0; color: var(--paper); }
.prop dd.lime { color: var(--lime); }
.fxrow { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 12.5px; border-bottom: 1px solid #1f1f1f; }
.fxrow .fxbadge { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 2px 4px; border-radius: 3px; background: var(--lime); color: var(--ink); }
.fxrow .kf { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.fxrow .kf i { width: 7px; height: 7px; background: var(--c, var(--lime)); transform: rotate(45deg); display: block; opacity: .9; }
.fxrow .kf i:nth-child(2) { opacity: .45; }
.insp__text { font-size: 13px; line-height: 1.5; color: #D6D6D0; margin: 0; padding: 4px 2px; }
.clients { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 2px; font: 700 13px/1.5 var(--display); }
.clients span::after { content: " /"; color: var(--dim); font-weight: 400; }
.clients span:last-child::after { content: ""; }
.insp__cta { display: block; width: 100%; margin-top: 10px; padding: 10px; border-radius: 4px; background: var(--lime); color: var(--ink); font-weight: 600; text-align: center; }
.insp__cta:hover { background: #D8FF6A; }
.insp__portrait { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.insp__portrait img { width: 58px; height: 70px; object-fit: cover; object-position: top; border: 1px solid var(--line-2); }
.insp__portrait b { display: block; font: 800 17px/1.05 var(--display); }
.insp__portrait span { font-family: var(--mono); font-size: 10px; color: var(--mute); text-transform: uppercase; }
.avail { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--mono); font-size: 10px; color: var(--lime); text-transform: uppercase; }
.avail i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.4s steps(2) infinite; }

/* ============ TIMELINE ============ */
.timeline { grid-area: tl; background: var(--panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tl__bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 0 8px; border-bottom: 1px solid var(--line); flex: none; gap: 10px; }
.tl__seqs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tl__seqs button { padding: 6px 12px 8px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tl__seqs button.is-on { color: var(--paper); background: var(--panel-2); border-color: var(--lime); border-radius: 4px 4px 0 0; }
.tl__tools { display: flex; gap: 4px; padding-bottom: 6px; flex: none; }
.tl__body { flex: 1; min-height: 0; display: flex; }
.tl__heads { width: var(--head-w); flex: none; border-right: 1px solid var(--line); padding-top: 28px; background: var(--panel); }
.thead { height: var(--track-h); border-bottom: 1px solid #1f1f1f; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.thead b { font-family: var(--mono); font-size: 10px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); padding: 2px 4px; border-radius: 3px; }
.thead span { font-family: var(--mono); font-size: 9.5px; color: var(--mute); text-transform: uppercase; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thead button { width: 18px; height: 18px; display: grid; place-items: center; color: var(--mute); font-size: 11px; border-radius: 3px; }
.thead button:hover { color: var(--paper); background: var(--panel-2); }
.thead button.is-off { color: #444; text-decoration: line-through; }
.tl__scroll { flex: 1; overflow-x: auto; overflow-y: hidden; position: relative; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tl__inner { position: relative; height: 100%; min-width: 100%; }
.ruler { position: relative; height: 28px; border-bottom: 1px solid var(--line); cursor: ew-resize; background: var(--panel); user-select: none; }
.ruler .tick { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--line-2); }
.ruler .tick--major { height: 11px; background: #555; }
.ruler .tick span { position: absolute; left: 4px; bottom: 9px; font-family: var(--mono); font-size: 9px; color: var(--dim); white-space: nowrap; }
.ruler .marker { position: absolute; top: 2px; transform: translateX(-5px); width: 10px; height: 9px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); cursor: pointer; }
.ruler .marker:hover::after { content: attr(data-label); position: absolute; left: 12px; top: -2px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; color: var(--ink); background: var(--c); padding: 1px 4px; white-space: nowrap; }
.tracks { position: relative; }
.track { position: relative; height: var(--track-h); border-bottom: 1px solid #1f1f1f; }
.track:nth-child(odd) { background: rgba(255,255,255,.012); }
.clip {
  position: absolute; top: 4px; bottom: 4px; border-radius: 4px; overflow: hidden; text-align: left;
  background: var(--c); color: var(--ink); display: flex; align-items: flex-end;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); transition: filter .2s, opacity .2s, box-shadow .2s;
}
.clip:hover { filter: brightness(1.12); }
.clip.is-sel { box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 1px var(--ink); }
.clip.is-live::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--lime); border-radius: 4px; pointer-events: none; }
.clip__strip { position: absolute; inset: 0 0 13px; background-repeat: repeat-x; background-size: auto 100%; background-position: left center; opacity: .95; border-bottom: 1px solid rgba(0,0,0,.4); }
.clip__name { position: relative; display: block; width: 100%; font-family: var(--mono); font-size: 9.5px; font-weight: 600; line-height: 13px; height: 13px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.clip--media .clip__name { background: var(--c); }
.clip--title { align-items: center; }
.clip--title .clip__name { font-size: 10px; height: auto; line-height: 1.2; }
.clip--title .fxmark { position: absolute; top: 3px; right: 4px; font-family: var(--mono); font-size: 8px; font-weight: 700; opacity: .65; }
.clip--open { mask-image: linear-gradient(90deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); }
.clip--audio { background: #1d2a10; box-shadow: inset 0 0 0 1px #33461b; }
.clip--audio canvas { position: absolute; inset: 0 0 13px; width: 100%; height: calc(100% - 13px); }
.clip--audio .clip__name { color: var(--lime); }
.dimmed .clip:not(.is-hit) { opacity: .18; filter: grayscale(1); }
.dimmed .clip.is-hit { box-shadow: inset 0 0 0 2px var(--paper), 0 0 18px -2px var(--c); }
.playhead { position: absolute; top: 0; bottom: 0; width: 0; left: 0; pointer-events: none; z-index: 5; }
.playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: var(--lime); box-shadow: 0 0 8px rgba(200,255,46,.6); }
.playhead i { position: absolute; top: 2px; left: -7px; width: 14px; height: 16px; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); pointer-events: auto; cursor: grab; }
.is-scrubbing, .is-scrubbing * { cursor: grabbing !important; user-select: none; }

/* ============ STATUS ============ */
.status { grid-area: status; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px; background: var(--ink); color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; }
.status #statusMsg { color: #CFCFC9; }

/* ============ MODALS ============ */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: pop .35s cubic-bezier(.2,.8,.2,1); }
.modal__box--sm { width: min(440px, 100%); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); color: var(--mute); }
.modal__body { padding: 22px 22px 20px; }
.export__title { font: 800 clamp(38px, 7.4vw, 58px)/.88 var(--display); letter-spacing: -.045em; margin: 0 0 18px; text-transform: uppercase; }
.export__specs { margin: 0 0 16px; display: grid; gap: 0; }
.export__specs div { display: grid; grid-template-columns: 130px 1fr; padding: 7px 0; border-top: 1px solid var(--line); }
.export__specs dt { color: var(--mute); }
.export__specs dd { margin: 0; color: var(--paper); text-transform: none; letter-spacing: 0; font-size: 12px; }
.render { position: relative; height: 22px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.render i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(-45deg, var(--lime) 0 10px, #B4EB1A 10px 20px); transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.render span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--paper); transition: color .2s; }
.render.is-done span { color: var(--ink); font-weight: 700; }
.export__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cta { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border-radius: 6px; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.cta:hover { border-color: var(--paper); transform: translateY(-2px); }
.cta b { font: 800 18px/1 var(--display); }
.cta span { font-family: var(--mono); font-size: 10.5px; color: var(--mute); word-break: break-all; }
.cta--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cta--lime span { color: #33400A; }
.cta--lime:hover { background: #D8FF6A; border-color: #D8FF6A; }
.export__foot { color: var(--dim); margin: 16px 0 0; text-align: center; }
.keys { margin: 0; display: grid; }
.keys div { display: grid; grid-template-columns: 110px 1fr; padding: 7px 0; border-top: 1px solid var(--line); }
.keys dt { color: var(--lime); }
.keys dd { margin: 0; text-transform: none; letter-spacing: 0; color: var(--paper); }
.help__tip { color: var(--mute); font-size: 13px; margin: 14px 0 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1240px) {
  .app { grid-template-columns: 236px minmax(0, 1fr) 260px; }
  .menu button { padding: 7px 7px; font-size: 12.5px; }
  .top__file { display: none; }
  .export__sub { display: none; }
}
@media (max-width: 980px) {
  body { overflow: auto; }
  .app {
    height: auto; min-height: 100dvh;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto auto auto auto;
    grid-template-areas: "top" "mon" "tl" "insp" "bin" "status";
  }
  .top { position: sticky; top: 0; z-index: 20; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px 0; }
  .top__right { margin-left: auto; }
  .menu { order: 3; width: calc(100% + 24px); margin: 0 -12px; padding: 2px 8px 6px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
  .menu::-webkit-scrollbar { display: none; }
  .menu button { font-size: 12.5px; padding: 7px 9px; }
  .tl__bar { flex-wrap: wrap; padding-top: 4px; }
  .tl__seqs button { padding: 6px 9px 8px; font-size: 10px; }
  .tl__tools { margin-left: auto; }
  .top__file { display: block; margin-left: 4px; font-size: 9.5px; }
  .monitor__stage { padding: 0 8px; }
  .screen { width: 100%; height: auto; max-width: 100%; }
  .vu { display: none; }
  .monitor__spec { display: none; }
  .transport { padding: 8px 10px 12px; }
  .tc { font-size: 13px; }
  .tc--dim, #btnSafe { display: none; }
  .timeline { height: auto; }
  .tl__body { height: auto; }
  .tl__heads { --head-w: 64px; }
  :root { --head-w: 64px; --track-h: 42px; }
  .thead span { display: none; }
  .panel__body { overflow: visible; }
  .bin .panel__body { max-height: none; }
  .status { flex-wrap: wrap; justify-content: center; padding: 10px; height: auto; }
  .status__keys { display: none; }
}
@media (max-width: 560px) {
  .export { padding: 0 11px; font-size: 12.5px; }
  .top__file { display: none; }
  .transport { grid-template-columns: auto 1fr auto; }
  .tbtn { width: 32px; }
  #btnStart, #btnEnd { display: none; }
  .export__actions { grid-template-columns: 1fr; }
  .modal__body { padding: 18px 16px; }
  .export__specs div { grid-template-columns: 100px 1fr; }
  .lt__title { font-size: 4.6cqw; } .lt__tag, .lt__sub { font-size: 1.8cqw; }
  .bigplay__hint { display: none; }
  .bigplay__txt { font-size: 4cqw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Plein écran */
.screen:fullscreen { width: 100vw; height: 100vh; max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; }
.screen:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; max-height: none; }

/* Film YouTube */
.media--yt { background: #000; }
.media--yt .media__img { object-fit: cover; }
.film-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqh;
  background: radial-gradient(circle at center, rgba(0,0,0,.15), rgba(0,0,0,.55)); z-index: 2;
}
.film-play__ico { width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 3.6cqw; padding-left: .7cqw; box-shadow: 0 0 0 1.3cqw rgba(200,255,46,.2); transition: transform .25s; animation: filmPulse 1.8s ease-in-out infinite; }
.film-play:hover .film-play__ico { transform: scale(1.08); }
.film-play__txt { font: 800 2.8cqw/1 var(--display); text-transform: uppercase; }
.film-play__hint { font: 500 max(10px, 1cqw)/1 var(--mono); text-transform: uppercase; color: #CFCFC9; }
@keyframes filmPulse { 50% { box-shadow: 0 0 0 2.2cqw rgba(200,255,46,0); } }
.film-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.layer.is-film .lt { display: none; }
.clip__strip { background-color: #111; }
/* Short vertical : la miniature YouTube est en 4:3 avec bandes noires -> on ne garde que le centre 9:16 */
.media--vertical { background: #050505; }
.media--vertical .media__bg { inset: -10%; background-size: 260% auto; background-position: center; filter: blur(40px) saturate(1.3) brightness(.5); transform: none; }
.media--vertical::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 50%, transparent 30%, rgba(0,0,0,.65)); pointer-events: none; }
.media--vertical .media__img { inset: 0; margin: auto; height: 100%; width: calc(100cqh * 9 / 16); object-fit: cover; object-position: center; z-index: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.7); }
.media--vertical .film-play { background: none; }
.media--vertical .film-play__txt, .media--vertical .film-play__hint { text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.clip__strip--vertical { background-repeat: no-repeat !important; background-size: 260% auto !important; background-position: center !important; }
.film-frame--vertical { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); }
.lt { z-index: 3; }

/* Méthode */
.card--step { background: var(--ink); align-items: flex-end; overflow: hidden; }
.card--step .card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; filter: grayscale(1) contrast(1.1); }
.card--step::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 30%, transparent 85%); }
.card--step .sbig { position: absolute; right: 4cqw; top: -4cqh; font: 800 38cqw/1 var(--display); color: transparent; -webkit-text-stroke: .25cqw var(--c); letter-spacing: -.06em; z-index: 1; opacity: .9; }
.card--step .sin { position: relative; z-index: 2; max-width: 60cqw; }
.card--step .k { color: var(--c); }
.card--step h2 { font: 800 8.5cqw/.9 var(--display); letter-spacing: -.04em; margin: 1.6cqh 0 .6cqh; text-transform: uppercase; }
.card--step .ssub { font: 700 2.2cqw/1.1 var(--display); color: var(--c); margin: 0 0 2.4cqh; }
.card--step .stext { font-size: 1.7cqw; line-height: 1.45; margin: 0 0 2.6cqh; max-width: 52cqw; }
.card--clients { background: var(--c); color: var(--ink); flex-direction: column; justify-content: center; }
.card--clients h2 { font: 800 7.6cqw/.88 var(--display); letter-spacing: -.04em; margin: 1.6cqh 0 4cqh; text-transform: uppercase; }
.card--clients .cwall { display: flex; flex-wrap: wrap; gap: 1cqw; }
.card--clients .cwall span { font: 700 1.9cqw/1 var(--display); padding: 1.2cqw 1.6cqw; border: .2cqw solid var(--ink); }
.card--clients .cwall span:nth-child(3n+1) { background: var(--ink); color: var(--c); }

/* =====================================================================
   ESPACE DE TRAVAIL — panneaux détachés, comme dans un vrai logiciel
   ===================================================================== */
:root { --head-w: 150px; --ws: #070707; --pane: #121212; --pane-b: #222; --gap: 6px; --pr: 9px; }
.app {
  gap: var(--gap); background: var(--ws); padding: 0 var(--gap);
  grid-template-rows: 48px minmax(0, 1fr) minmax(230px, 36vh) 36px;
}
.top { margin: 0 calc(var(--gap) * -1); border-bottom: 1px solid #1a1a1a; background: #0A0A0A; }
.status { margin: 0 calc(var(--gap) * -1); border-top: 1px solid #1a1a1a; background: #0A0A0A; }
.panel, .monitor, .timeline {
  background: var(--pane); border: 1px solid var(--pane-b); border-radius: var(--pr); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px -18px rgba(0,0,0,.9);
  transition: border-color .3s, box-shadow .3s;
}
.panel:focus-within, .monitor:hover, .timeline:hover { border-color: #2e2e2e; }
.is-flash { animation: paneFlash .9s ease; }
@keyframes paneFlash { 0%, 40% { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 26px -6px rgba(200,255,46,.5); } }

/* En-têtes de panneaux */
.panel__tabs { background: #0F0F0F; padding: 0 6px; border-bottom: 1px solid var(--pane-b); height: 34px; align-items: stretch; position: relative; }
.panel__tabs::after { content: "≡"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 14px; pointer-events: none; }
.panel__tabs button { padding: 0 12px; display: flex; align-items: center; border-bottom-width: 2px; margin-bottom: -1px; }
.panel__tabs button.is-on { background: var(--pane); border-radius: 6px 6px 0 0; box-shadow: 1px 0 0 var(--pane-b), -1px 0 0 var(--pane-b); }
.panel__body { padding: 12px 12px 14px; }
.item { padding-top: 6px; padding-bottom: 6px; margin-bottom: 1px; }
.folder { margin-bottom: 10px; }
.sect { margin-bottom: 16px; }

/* Moniteur */
.monitor { background: #0C0C0C; }
.monitor__head { background: #0F0F0F; border-bottom: 1px solid var(--pane-b); height: 34px; padding: 0 12px; }
.monitor__head::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 8px rgba(255,59,48,.6); margin-right: 2px; opacity: .35; transition: opacity .2s; }
.is-playing .monitor__head::before { opacity: 1; animation: blink 1s steps(2) infinite; }
.monitor__stage { padding: 14px 16px 6px; background:
  radial-gradient(60% 70% at 50% 45%, #151515, #0b0b0b); }
.screen { border-radius: 3px; box-shadow: 0 0 0 1px #262626, 0 24px 60px -18px rgba(0,0,0,.95); }

/* Vumètres gradués */
.vu { padding: 2px 0 6px; gap: 2px; }
.vu__col { width: 7px; background: #0a0a0a; box-shadow: inset 0 0 0 1px #1d1d1d; }
.vu__col::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0 3px, rgba(0,0,0,.55) 3px 4px); pointer-events: none; }
.vu span { position: static; }
.vu__scale { display: flex; flex-direction: column; justify-content: space-between; height: 100%; margin-left: 3px; font-size: 7.5px; color: var(--dim); letter-spacing: 0; text-align: left; }
.vu__scale span:last-child { color: var(--mute); }

/* Mini barre de navigation sous l'écran */
.mini { padding: 8px 16px 2px; cursor: pointer; flex: none; touch-action: none; }
.mini__track { position: relative; height: 6px; background: #1c1c1c; border-radius: 3px; box-shadow: inset 0 0 0 1px #262626; }
.mini__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(200,255,46,.25), rgba(200,255,46,.7)); }
.mini__head { position: absolute; top: 50%; left: 0; width: 3px; height: 14px; margin-left: -1.5px; transform: translateY(-50%); background: var(--lime); border-radius: 2px; box-shadow: 0 0 8px rgba(200,255,46,.7); }
.mini:hover .mini__track { background: #222; }
.transport { padding: 8px 16px 12px; border-top: 0; }
.tc { background: #070707; border: 1px solid #222; border-radius: 4px; padding: 5px 8px; justify-self: start; }
.tc--dim { justify-self: end; }
.transport__btns { background: #0a0a0a; border: 1px solid #222; border-radius: 8px; padding: 3px; }

/* Timeline */
.tl__bar { background: #0F0F0F; height: 38px; padding: 0 10px 0 6px; border-bottom: 1px solid var(--pane-b); align-items: stretch; }
.tl__seqs { align-items: stretch; }
.tl__seqs button { display: flex; align-items: center; padding: 0 14px; margin-bottom: -1px; }
.tl__seqs button.is-on { background: var(--pane); border-radius: 6px 6px 0 0; box-shadow: 1px 0 0 var(--pane-b), -1px 0 0 var(--pane-b); }
.tl__tc { align-self: center; margin-left: auto; font-size: 13px; color: var(--lime); letter-spacing: .08em; font-variant-numeric: tabular-nums; padding: 4px 10px; background: #070707; border: 1px solid #222; border-radius: 4px; }
.tl__tools { align-self: center; padding: 0; }
.palette { flex: none; width: 38px; display: flex; flex-direction: column; gap: 4px; padding: 8px 5px; border-right: 1px solid var(--pane-b); background: #0F0F0F; }
.palette button { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; color: var(--mute); }
.palette button:hover { background: #1e1e1e; color: var(--paper); }
.palette button.is-on { background: var(--lime); color: var(--ink); }
.palette svg, .pages svg, .tsw svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.tl__heads { background: #101010; }
.ruler { background: #0F0F0F; }
.thead { gap: 5px; padding: 0 6px; border-bottom-color: #1c1c1c; }
.thead b { background: #1e1e1e; border-color: #333; min-width: 26px; text-align: center; }
.thead--a b { color: var(--lime); }
.thead .tctl { display: flex; gap: 3px; flex: none; }
.tsw { width: 18px !important; height: 18px !important; border-radius: 3px; border: 1px solid #2c2c2c !important; display: grid; place-items: center; font: 700 9px/1 var(--mono) !important; color: var(--mute); }
.tsw svg { width: 11px; height: 11px; }
.tsw.is-on { background: var(--orange); color: var(--ink); border-color: var(--orange) !important; }
.tsw--lock { border-color: transparent !important; color: #444; }
.tsw--lock.is-on { background: none; color: var(--orange); }
.thead button.tsw.is-off { color: #444; text-decoration: none; opacity: .6; }
.track { border-bottom-color: #1a1a1a; }
.track:nth-child(odd) { background: rgba(255,255,255,.018); }
.clip { top: 5px; bottom: 5px; border-radius: 5px; }
.clip.is-live::after { border-radius: 5px; }

/* Barre d'espaces de travail (façon DaVinci) */
.status { height: 36px; }
.pages { display: flex; gap: 2px; align-items: center; }
.pages button { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 5px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.pages button svg { width: 13px; height: 13px; }
.pages button:hover { color: var(--paper); background: #181818; }
.pages button.is-on { color: var(--lime); background: #161a0c; box-shadow: inset 0 0 0 1px rgba(200,255,46,.25); }

@media (max-width: 1240px) { .pages button { padding: 0 8px; } }
@media (max-width: 980px) {
  .app { padding: 0 var(--gap) var(--gap); grid-template-rows: auto; }
  .status { margin: 0; border: 1px solid var(--pane-b); border-radius: var(--pr); height: auto; }
  .palette { display: none; }
  .tl__tc { display: none; }
  .thead .tctl, .thead .tsw--lock { display: none; }
  .tl__bar { height: auto; flex-wrap: wrap; padding: 0 6px; }
  .tl__seqs button { padding: 9px 10px; }
  .tl__tools { margin-left: auto; padding: 5px 0; }
  :root { --head-w: 64px; }
  .mini { padding: 8px 10px 0; }
}
@media (max-width: 560px) { .pages button { font-size: 0; gap: 0; padding: 0 9px; } .pages button svg { width: 16px; height: 16px; } }

/* =====================================================================
   LOADER — écran de démarrage + amorce de film 3·2·1
   ===================================================================== */
.boot { position: fixed; inset: 0; z-index: 100; background: #070707; display: grid; place-items: center; overflow: hidden; transition: opacity .45s ease, visibility .45s; }
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__grain { position: absolute; inset: -50%; opacity: .07; pointer-events: none; animation: grain .5s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-1%,-2%); } }

.boot__splash { position: relative; width: min(560px, 86vw); padding: 34px 36px 28px; transition: opacity .35s, transform .35s; animation: splashIn .6s cubic-bezier(.2,.8,.2,1) both; }
.boot__splash.is-out { opacity: 0; transform: scale(.97); }
@keyframes splashIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.boot__crop i { position: absolute; width: 18px; height: 18px; border-color: var(--lime); border-style: solid; border-width: 0; }
.boot__crop i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.boot__crop i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.boot__crop i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.boot__crop i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.boot__head { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; margin-bottom: 30px; }
.boot__head span:last-child { color: var(--lime); font-variant-numeric: tabular-nums; }
.boot__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.boot__logo span { background: var(--lime); color: var(--ink); font: 800 clamp(34px, 7vw, 54px)/1 var(--display); padding: 10px 12px 7px; animation: logoIn .7s cubic-bezier(.2,.8,.2,1) .1s both; }
.boot__logo b { font: 800 clamp(34px, 7vw, 54px)/1 var(--display); letter-spacing: -.02em; animation: logoIn .7s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes logoIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.boot__file { font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin: 0 0 14px; word-break: break-all; }
.boot__bar { position: relative; height: 8px; background: #141414; border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px #222; }
.boot__bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #070707 calc(10% - 1px) 10%); pointer-events: none; }
.boot__bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--lime) 0 8px, #B4EB1A 8px 16px); background-size: 22.6px 100%; animation: barMove .6s linear infinite; transition: width .25s ease; box-shadow: 0 0 14px rgba(200,255,46,.5); }
@keyframes barMove { to { background-position: 22.6px 0; } }
.boot__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10px; color: var(--mute); }
.boot__meta span:last-child { color: var(--paper); font-variant-numeric: tabular-nums; }
.boot__list { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid #1c1c1c; height: 92px; overflow: hidden; font-size: 9.5px;
  mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.boot__list li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; color: #9a9a94; animation: liIn .25s ease both; }
.boot__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boot__list li span::before { content: "▸ "; color: var(--dim); }
.boot__list li b { color: var(--lime); font-weight: 500; }
@keyframes liIn { from { opacity: 0; transform: translateY(-6px); } }
.boot__hello { font: 800 24px/1.1 var(--display); margin: 14px 0 0; color: var(--lime); }

/* Amorce de film */
.boot__leader { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 26px; background: radial-gradient(circle at 50% 46%, #1a1a1a, #070707 70%); }
.boot__leader.is-out { opacity: 0; transition: opacity .1s; }
.leader { position: relative; width: min(46vh, 62vw); aspect-ratio: 1; display: grid; place-items: center; }
.leader__h, .leader__v { position: absolute; background: rgba(242,242,238,.22); }
.leader__h { left: -30%; right: -30%; top: 50%; height: 1px; }
.leader__v { top: -20%; bottom: -20%; left: 50%; width: 1px; }
.leader__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(242,242,238,.5); }
.leader__ring--in { inset: 9%; border-width: 1px; border-color: rgba(242,242,238,.25); }
.leader__sweep { position: absolute; inset: 9%; border-radius: 50%; background: conic-gradient(rgba(200,255,46,.32) var(--a, 0deg), transparent 0); }
.leader__sweep.is-run { animation: sweep .56s linear both; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { from { --a: 0deg; } to { --a: 360deg; } }
.leader__num { position: relative; font: 800 min(20vh, 27vw)/1 var(--display); color: var(--paper); letter-spacing: -.05em; text-shadow: 0 0 40px rgba(0,0,0,.6); }
.is-blip .leader__num { animation: blip .56s ease-out both; }
@keyframes blip { 0% { transform: scale(1.25); opacity: 0; filter: blur(6px); } 18% { transform: scale(1); opacity: 1; filter: none; } 92% { opacity: 1; } 100% { opacity: .2; } }
.leader__txt { color: var(--mute); font-size: 11px; text-align: center; margin: 0; }
.boot__flash { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }
.boot__flash.is-on { animation: flash .35s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
