/* Layout: en-tête fin, l'outil EST le héros (écran noir + sous-titre jaune), puis contenu éditorial étroit */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #EEF1F4;
  --surface: #FFFFFF;
  --ink: #0D1117;
  --muted: #586271;
  --line: #D6DCE3;
  --screen: #0B0E13;
  --screen-line: #222833;
  --sub: #FFD60A;          /* le jaune des sous-titres : couleur de marque */
  --sub-ink: #141006;
  --focus: #2F6BFF;
  --danger: #C2362B;
  --ok: #1E7F4F;
  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1217; --surface: #161B22; --ink: #E9EDF2; --muted: #9AA5B4; --line: #29313C;
    --screen: #06080B; --screen-line: #1C222C; --focus: #7AA2FF; --danger: #FF7A6E; --ok: #4CC38A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1217; --surface: #161B22; --ink: #E9EDF2; --muted: #9AA5B4; --line: #29313C;
  --screen: #06080B; --screen-line: #1C222C; --focus: #7AA2FF; --danger: #FF7A6E; --ok: #4CC38A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }

/* ---------- En-tête ---------- */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--f-display); letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; display: block; flex: none; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumb { display: inline-flex; align-items: center; gap: 12px; font: 700 16px/1 var(--f-body); color: var(--muted); }
.crumb::before { content: ""; width: 1px; height: 20px; background: var(--line); }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---------- Héros ---------- */
.hero { padding-block: 12px 28px; }
.hero h1 {
  font: 800 clamp(34px, 5.4vw, 62px)/1.02 var(--f-display);
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.28em 0 var(--sub); padding: 0 0.04em; }
.hero p.lead { color: var(--muted); max-width: 58ch; margin: 14px 0 0; font-size: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sub); outline: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }

/* ---------- Outil ---------- */
.tool-wrap { padding-block: 8px 56px; }
.screen {
  position: relative;
  background: var(--screen);
  border-radius: 14px;
  color: #F4F6F8;
  overflow: hidden;
}
.drop {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  max-width: 100%;
  cursor: pointer;
  border: 1px solid var(--screen-line);
  transition: border-color .15s, background .15s;
  background-image:
    radial-gradient(ellipse at 50% 120%, rgba(255,214,10,0.10), transparent 60%),
    var(--grain, none);
}
.drop:hover, .drop.over { border-color: var(--sub); }
.drop.over { background-color: #12161D; }
.drop .tc { position: absolute; top: 16px; left: 18px; font-size: 12px; line-height: 1.5; color: #7D8796; }
.drop-cta { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px 16px 70px; }
.drop-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sub); color: var(--sub-ink); }
.drop-title { font: 800 clamp(22px, 3vw, 30px)/1.1 var(--f-display); letter-spacing: -0.02em; }
.drop-sub { color: #9AA5B4; font-size: 15px; }
.fake-sub {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); text-align: center;
  font: 700 clamp(15px, 2vw, 21px)/1.3 var(--f-body); color: var(--sub);
  text-shadow: 0 0 2px #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000;
}

.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stage { display: grid; gap: 14px; min-width: 0; }
.player { aspect-ratio: 16 / 9; max-width: 100%; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--screen); }
.player canvas { position: absolute; pointer-events: none; }
.filebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.filename { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.setup, .styles, .side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; align-items: end; }
.setup .btn { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
select, input[type="text"], input[type="number"], textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; min-width: 0;
}
textarea { resize: vertical; line-height: 1.4; }
input[type="range"] { width: 100%; accent-color: var(--ink); }
input[type="color"] { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--f-body); color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; cursor: pointer; transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--sub); border-color: var(--sub); color: var(--sub-ink); font-size: 16px; padding: 14px 20px; }
.btn.primary:hover { border-color: var(--sub-ink); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }

.status { display: grid; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.status-row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.status-meta { font-size: 13px; color: var(--muted); min-height: 1em; }
.bar { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; position: relative; }
.bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sub); border-right: 2px solid var(--sub-ink); transition: width .3s; }
.bar.indeterminate span { width: 30% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }

.styles { padding: 16px; display: grid; gap: 14px; }
.styles-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.styles h3, .side h3 { font: 800 18px/1.2 var(--f-display); letter-spacing: -0.01em; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.preset {
  display: grid; gap: 8px; justify-items: center; padding: 10px 6px 9px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: 700 13px/1.2 var(--f-body); color: var(--ink);
}
.preset[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.preset-sample { width: 100%; height: 42px; border-radius: 6px; background: #2A3240; display: grid; place-items: center; font-size: 20px; }
.preset-classic { font-family: var(--f-body); color: #fff; text-shadow: 0 0 2px #000, 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.preset-box { font-family: var(--f-body); color: #fff; }
.preset-impact { font-family: var(--f-display); color: var(--sub); text-shadow: 0 0 3px #000, 0 2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; }
.preset-pop { font-family: var(--f-display); color: var(--sub-ink); }
.preset-sample.preset-box, .preset-sample.preset-pop { background: #2A3240; }
.preset-sample.preset-box { box-shadow: inset 0 0 0 12px #2A3240, inset 0 0 0 40px rgba(8,10,14,.9); }
.preset-sample.preset-pop { box-shadow: inset 0 0 0 11px #2A3240, inset 0 0 0 40px var(--sub); }
.lock { font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: var(--bg); vertical-align: 1px; }
.is-pro .lock { display: none; }
.sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.badge { font: 800 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; background: var(--sub); color: var(--sub-ink); padding: 6px 8px; border-radius: 5px; }
.link { background: none; border: 0; padding: 0; font: 700 14px var(--f-body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--sub); text-decoration-thickness: 3px; text-underline-offset: 3px; cursor: pointer; }

/* Liste des sous-titres */
.side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(86vh, 920px); min-width: 0; position: sticky; top: 12px; }
.side-head { display: grid; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.count { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.shift { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.shift input { width: 80px; padding: 6px 8px; }
.cues { list-style: none; margin: 0; padding: 8px; overflow-y: auto; display: grid; gap: 6px; align-content: start; min-height: 120px; }
.cue { display: grid; gap: 6px; padding: 10px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.cue:hover { background: var(--bg); }
.cue.active { border-color: var(--sub); background: color-mix(in srgb, var(--sub) 12%, var(--surface)); }
.cue-times { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cue-times input { width: 82px; padding: 4px 6px; font: 12px var(--f-mono); background: transparent; border-color: transparent; }
.cue-times input:hover, .cue-times input:focus { border-color: var(--line); background: var(--bg); }
.icon-btn { margin-left: auto; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.icon-btn + .icon-btn { margin-left: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn.del:hover { color: var(--danger); border-color: var(--danger); }
.cue textarea { background: transparent; border-color: transparent; padding: 4px 6px; font-size: 16px; }
.cue textarea:focus, .cue textarea:hover { background: var(--bg); border-color: var(--line); }

.exports { display: grid; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.export-group { display: grid; gap: 8px; }
.export-group h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.export-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.error { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--danger); color: var(--danger); background: var(--surface); font-weight: 700; }

/* Dialogue Pro */
.pro-dialog { border: 0; padding: 0; border-radius: 14px; max-width: min(460px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.pro-dialog::backdrop { background: rgba(5,7,10,.62); }
.pro-inner { display: grid; gap: 14px; padding: 24px; }
.pro-inner h2 { font: 800 28px/1.1 var(--f-display); letter-spacing: -0.02em; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price { font-size: 22px; background: var(--sub); color: var(--sub-ink); padding: 4px 10px; border-radius: 6px; }
.pro-inner .lead { margin: 0; color: var(--muted); }
.pro-inner ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pro-inner li { padding-left: 26px; position: relative; }
.pro-inner li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 9px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.pro-needed { margin: 0; font-weight: 700; color: var(--danger); }
.key { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.key label { font-size: 14px; color: var(--muted); }
.key-row { display: flex; gap: 8px; }
.key-msg { margin: 0; font-size: 14px; min-height: 1.2em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- Contenu ---------- */
.section { padding-block: 56px; border-top: 1px solid var(--line); }
.section h2 { font: 800 clamp(26px, 3.4vw, 38px)/1.08 var(--f-display); letter-spacing: -0.03em; margin-bottom: 22px; max-width: 22ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 13px var(--f-mono); color: var(--muted); }
.steps h3 { font: 800 20px/1.2 var(--f-display); }
.steps p { margin: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.prose p { margin: 0 0 14px; max-width: 62ch; }
.srt-sample { margin: 0; padding: 18px 20px; background: var(--screen); color: #C9D1DB; border-radius: var(--r); font: 14px/1.6 var(--f-mono); overflow-x: auto; }
.srt-sample b { color: var(--sub); font-weight: 400; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.plan.pro { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan h3 { font: 800 22px/1.1 var(--f-display); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan .amount { font: 800 30px/1 var(--f-display); }
.plan .amount small { font: 400 14px var(--f-body); color: var(--muted); }
.plan ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; }

.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--f-mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 66ch; }

.foot { padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.legal { padding-block: 24px 64px; }
.legal h1 { font: 800 clamp(28px, 4vw, 42px)/1.1 var(--f-display); letter-spacing: -0.03em; margin-bottom: 20px; }
.legal h2 { font: 800 20px/1.2 var(--f-display); margin: 28px 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.todo { background: color-mix(in srgb, var(--sub) 35%, transparent); padding: 0 4px; border-radius: 3px; }

/* ---------- Accueil Atelyo ---------- */
.hub-hero { padding-block: 28px 44px; }
.hub-hero h1 { font: 800 clamp(38px, 6.6vw, 80px)/0.98 var(--f-display); letter-spacing: -0.045em; max-width: 13ch; }
.hub-hero h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.26em 0 var(--sub); padding: 0 0.04em; }
.hub-hero .lead { color: var(--muted); max-width: 56ch; margin: 18px 0 0; font-size: 19px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.tool-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.tool-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool-card .preview { position: relative; aspect-ratio: 16 / 8; background: var(--screen); display: grid; place-items: end center; padding-bottom: 9%; max-width: 100%; }
.tool-card .preview .line { font: 700 clamp(15px, 2.2vw, 22px)/1.25 var(--f-body); color: var(--sub); text-align: center; padding: 0 16px; text-shadow: 0 0 2px #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000; }
.tool-card .preview .tc { position: absolute; top: 12px; left: 14px; font: 12px/1.4 var(--f-mono); color: #7D8796; }
.tool-card .preview.illu { display: block; padding: 0; }
.tool-card .preview.illu img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.tool-card:hover .preview.illu img { transform: scale(1.03); }
.tool-card .preview.illu img { transition: transform .25s ease; }
.tool-card .preview.clips { place-items: center; }
.tool-card .preview.clips .frames { display: flex; gap: 10px; height: 72%; }
.tool-card .preview.clips .frames span { aspect-ratio: 9 / 16; height: 100%; border-radius: 6px; border: 2px dashed #3A4352; }
.tool-card .body { min-width: 0; display: grid; gap: 10px; padding: 20px 22px 22px; align-content: start; }
.tool-card h3 { font: 800 24px/1.1 var(--f-display); letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 700 12px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.tag.free { border-color: var(--ok); color: var(--ok); }
.tag.soon { background: var(--bg); }
.go { font-weight: 700; text-decoration: underline; text-decoration-color: var(--sub); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tool-card.soon { opacity: .78; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.facts h3 { font: 800 20px/1.2 var(--f-display); margin-bottom: 6px; }
.facts p { margin: 0; color: var(--muted); }

/* ---------- Outil Vidéo en MP3 ---------- */
.convert-box { display: grid; gap: 14px; max-width: 760px; }
.setup.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result { display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result-head strong { font: 800 22px/1.1 var(--f-display); }
.result-meta { font-size: 13px; color: var(--muted); }
.result audio { width: 100%; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-card .preview.wave { place-items: center; }
.wave .bars { display: flex; align-items: center; gap: 4px; height: 56%; }
.wave .bars span { width: 6px; border-radius: 3px; background: var(--sub); }
.wave .label { position: absolute; bottom: 12px; right: 14px; font: 12px/1 var(--f-mono); color: #7D8796; }
.tool-card .preview.formats { place-items: center; }
.conv-rows { display: grid; gap: 10px; font: 700 clamp(15px, 1.8vw, 19px)/1 var(--f-mono); color: #E9EDF2; }
.conv-rows b { color: var(--sub); font-weight: 400; padding: 0 8px; }
.related { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.related p { margin: 0; }

/* ---------- Convertisseur ---------- */
.panel { display: grid; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.field-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fmts { display: grid; gap: 10px; }
.fmt-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fmt-label { width: 56px; font-size: 14px; color: var(--muted); }
.fmt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt { font: 700 14px/1 var(--f-mono); letter-spacing: .02em; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.fmt:hover { border-color: var(--ink); }
.fmt[aria-pressed="true"] { background: var(--sub); border-color: var(--sub); color: var(--sub-ink); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opts:not(:has(.field:not([hidden]))) { display: none; }
.trim { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trim label { font-size: 14px; color: var(--muted); }
.trim input { width: 110px; }
.preview-slot video, .preview-slot img { display: block; max-width: 100%; max-height: 420px; border-radius: 8px; background: var(--screen); }
.preview-slot audio { width: 100%; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shortcuts a { font-size: 14px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.shortcuts a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
  .cues { max-height: 60vh; }
}
@media (max-width: 720px) {
  .setup, .setup.two-col, .sliders, .opts { grid-template-columns: minmax(0, 1fr); }
  .fmt-label { width: 100%; }
  .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .two, .plans, .tools, .facts { grid-template-columns: minmax(0, 1fr); }
  .crumb { font-size: 14px; }
  .drop { aspect-ratio: auto; min-height: 340px; }
  .drop .tc { display: none; }
  .key-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
