/* Vite & O — interface. Sombre, typographie forte, accents orange : le même langage que les vidéos. */
:root {
  --bg: #0b0a09; --panel: #141210; --panel-2: #1b1815; --line: #2b2622; --line-2: #3a342e;
  --ink: #f7f3ed; --muted: #a59c90; --o: #e6903d; --o-2: #ffb467; --ok: #62d08d; --bad: #ff7466; --warn: #f3c969;
  --display: "Anton", "Arial Narrow", Impact, sans-serif; --ui: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--ui); color: var(--ink); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 520px at 88% -8%, rgba(230,144,61,.20), transparent 62%), radial-gradient(700px 500px at -10% 108%, rgba(230,144,61,.09), transparent 60%); background-attachment: fixed; }
a { color: var(--o-2); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }
.wrap.narrow { max-width: 760px; }

/* En-tête */
header.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.brand { font: 400 30px/1 var(--display); letter-spacing: .02em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--o); }
nav.main { display: flex; gap: 6px; align-items: center; font-size: 14px; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
nav.main a:hover, nav.main a.on { color: var(--ink); background: var(--panel-2); }
.by { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.by img { height: 18px; display: block; }
.by a.onlux { display: inline-block; border-radius: 6px; padding: 4px 6px; margin: -4px -2px; transition: background .15s, transform .15s; }
.by a.onlux:hover { background: rgba(230,144,61,.14); transform: translateY(-1px); }

/* Titres */
.hero { padding: 14px 0 26px; }
.hero h1 { font: 400 clamp(40px, 6vw, 70px)/.98 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 0 0 18px; }
.hero h1 mark { background: var(--o); color: #14100b; padding: 0 .14em; display: inline-block; transform: skewX(-7deg); }
.hero h1 mark i { display: inline-block; transform: skewX(7deg); font-style: normal; }
.hero p { color: var(--muted); font-size: 17px; max-width: 58ch; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink); background: rgba(255,255,255,.02); }
.chip b { color: var(--o-2); font-weight: 600; }
h1.page { font: 400 clamp(34px, 5vw, 54px)/1 var(--display); text-transform: uppercase; margin: 14px 0 8px; }
h1.page em { font-style: normal; color: var(--o); }
p.lead { color: var(--muted); margin: 0 0 26px; }

/* Cartes */
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin-bottom: 18px; }
.card h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.01em; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.note.warn { color: var(--warn); }
.banner { border: 1px solid var(--line-2); background: rgba(243,201,105,.07); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.banner.ok { background: rgba(98,208,141,.08); color: var(--ok); }
.banner.bad, .errors { background: rgba(255,116,102,.09); color: var(--bad); border: 1px solid rgba(255,116,102,.35); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }

/* Formulaire */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } .aside { position: static; order: -1; } }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.progress button { all: unset; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--line-2); transition: .25s; }
.progress button.on { color: var(--ink); border-color: var(--o); }
.progress button.done { color: var(--o-2); border-color: rgba(230,144,61,.55); }
.step { animation: rise .35s cubic-bezier(.16,1,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
label.f { display: block; margin: 18px 0 0; font-weight: 600; font-size: 14px; }
label.f .count { float: right; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.count.over { color: var(--bad) !important; font-weight: 700 !important; }
input[type=text], input[type=email], input[type=password], textarea, select { width: 100%; margin-top: 8px; padding: 13px 14px; font: inherit; color: var(--ink); background: #0f0d0c; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #6f675d; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 4px rgba(230,144,61,.18); }
textarea { min-height: 96px; resize: vertical; }
input.filled, textarea.filled { animation: filled 1.4s ease-out; }
@keyframes filled { from { border-color: var(--o-2); box-shadow: 0 0 0 6px rgba(255,180,103,.35); } }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.formats input { position: absolute; opacity: 0; }
.formats label { border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 10px 14px; text-align: center; cursor: pointer; font-weight: 600; font-size: 14px; background: #0f0d0c; transition: .2s; }
.formats label:hover { border-color: var(--muted); transform: translateY(-2px); }
.formats label i { display: block; margin: 0 auto 12px; height: 64px; border-radius: 7px; border: 2px solid var(--line-2); transition: .2s; }
.formats label small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.formats input:checked + label { border-color: var(--o); background: rgba(230,144,61,.10); box-shadow: 0 0 0 4px rgba(230,144,61,.14); }
.formats input:checked + label i { background: var(--o); border-color: var(--o); }
.formats input:focus-visible + label { outline: 2px solid var(--ink); }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }
.ai { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 14px; padding: 16px 18px; margin: 20px 0 4px; background: linear-gradient(120deg, rgba(230,144,61,.18), rgba(230,144,61,.04)); border: 1px solid rgba(230,144,61,.4); }
.ai p { margin: 0; font-size: 14px; max-width: 40ch; }
.ai p b { display: block; font-size: 15px; }
.drop { margin-top: 10px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; display: block; transition: .2s; }
.drop:hover { border-color: var(--o); color: var(--ink); }
.drop input { display: none; }
#logoPreview { max-height: 64px; max-width: 220px; margin: 0 auto 8px; display: block; background: #fff; border-radius: 8px; padding: 8px; }
.color { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.color input[type=checkbox], .terms input { width: 18px; height: 18px; accent-color: var(--o); flex: none; }
input[type=color] { width: 52px; height: 40px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #0f0d0c; cursor: pointer; }
ul.rules { margin: 12px 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
ul.rules li { padding: 7px 0 7px 26px; position: relative; }
ul.rules li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; background: var(--o); transform: rotate(45deg); }
.terms { font-size: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.navs { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Boutons */
button, .btn { font: 700 15px/1 var(--ui); border: 0; border-radius: 999px; padding: 15px 26px; background: var(--o); color: #14100b; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background .15s, box-shadow .15s; }
button:hover, .btn:hover { background: var(--o-2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(230,144,61,.28); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-weight: 600; box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.03); }
button.danger { background: transparent; border: 1px solid rgba(255,116,102,.5); color: var(--bad); font-weight: 600; box-shadow: none; }
button.small { padding: 10px 16px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
button.busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Aperçu en direct */
.aside { position: sticky; top: 22px; min-width: 0; }
.aside h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.stage { display: flex; justify-content: center; align-items: center; min-height: 420px; }
.preview { --c: #e6903d; position: relative; overflow: hidden; border-radius: 16px; background: #0d0b0a; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.55); width: 100%; transition: aspect-ratio .35s, max-width .35s; container-type: inline-size; }
.preview[data-format=vertical] { aspect-ratio: 9/16; max-width: 250px; }
.preview[data-format=square] { aspect-ratio: 1; max-width: 320px; }
.preview[data-format=horizontal] { aspect-ratio: 16/9; max-width: 330px; }
.preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 58%, color-mix(in srgb, var(--c) 34%, transparent), transparent 60%); }
.preview .ring { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--c); opacity: .55; right: -12%; top: 34%; animation: spin 18s linear infinite; }
.preview .ring::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.preview .inner { position: absolute; inset: 0; padding: 9cqw; display: flex; flex-direction: column; justify-content: center; gap: 4cqw; }
.preview .who { font: 700 3.3cqw/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--c); display: flex; align-items: center; gap: 2cqw; }
.preview .who::before { content: ""; width: 1.6cqw; height: 1.6cqw; background: var(--c); }
.preview .who img { max-height: 11cqw; max-width: 38cqw; background: #fff; padding: 2cqw; border-radius: 2cqw; }
.preview .who.logo::before { display: none; }
.preview .title { font: 400 13cqw/1.04 var(--display); text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.preview .title em { font-style: normal; color: var(--c); }
.preview .bar { width: 24cqw; height: 1.2cqw; background: var(--c); }
.preview .tape { position: absolute; left: -10%; width: 120%; bottom: 7%; background: var(--c); color: #14100b; font: 700 2.4cqw/2.4 var(--ui); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; transform: rotate(-3deg); overflow: hidden; }
.preview .tape span { display: inline-block; animation: tape 14s linear infinite; }
@keyframes tape { to { transform: translateX(-50%); } }
.aside .note { text-align: center; }

/* Paiement */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; } }
table.amounts { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 18px; }
table.amounts td { padding: 11px 0; border-top: 1px solid var(--line); }
table.amounts td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.amounts tr.total td { border-top: 2px solid var(--ink); font-weight: 800; font-size: 20px; }
.secure { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

/* Suivi */
.steps { list-style: none; padding: 0; margin: 4px 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.steps li { padding: 12px 0 12px 44px; position: relative; color: var(--muted); }
.steps li small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.steps li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 700; font-size: 18px; }
.steps li.now::before { background: var(--o); border-color: var(--o); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230,144,61,.6); } 100% { box-shadow: 0 0 0 14px rgba(230,144,61,0); } }
.bar-p { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 10px; max-width: 320px; }
.bar-p i { display: block; height: 100%; background: linear-gradient(90deg, var(--o), var(--o-2)); width: 0; transition: width .5s; }
video { max-width: 100%; max-height: 72vh; border-radius: 14px; background: #000; display: block; margin: 0 auto; }

/* Administration */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line-2); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: rgba(255,255,255,.02); }
table.list img { height: 54px; border-radius: 6px; display: block; }
table.list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink); white-space: nowrap; }
.pill.a_approuver { background: var(--o); color: #14100b; }
.pill.livree { background: rgba(98,208,141,.16); color: var(--ok); }
.pill.echec, .pill.refusee { background: rgba(255,116,102,.14); color: var(--bad); }
.pill.paiement { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.stills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.stills img { height: 104px; border-radius: 6px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.checks { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.checks li { padding: 3px 0; }
.checks li.ok::before { content: "✓  "; color: var(--ok); font-weight: 700; }
.checks li.ko::before { content: "✗  "; color: var(--bad); font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.actions form { margin: 0; }
.status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.status span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status span.on { color: var(--ok); border-color: rgba(98,208,141,.4); }
.status span.off { color: var(--warn); border-color: rgba(243,201,105,.4); }
.toggle { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; margin-top: 16px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--o); }
footer.site { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Images du client */
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumbs figure { margin: 0; position: relative; width: 104px; }
.thumbs img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); display: block; background: repeating-conic-gradient(#3a342e 0% 25%, #2b2622 0% 50%) 50% / 16px 16px; }
.thumbs figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.thumbs button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 50%; background: var(--ink); color: #14100b; font-size: 14px; box-shadow: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

/* Bibliothèque de styles */
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 4px; }
.card.style { margin: 0; padding: 18px; }
.card.style video, .card.style .empty { width: 100%; aspect-ratio: 9/16; max-height: none; object-fit: cover; border-radius: 12px; margin-bottom: 14px; background: #000; }
.card.style .empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-2); background: transparent; }
.card.style h2 { font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card.style .actions { margin-top: 10px; gap: 6px; }
.card.style .recipe { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); vertical-align: middle; }
input[type=color] { width: 100%; height: 42px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }

/* Choix du style et aperçu en direct */
.aside h3 .count { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); opacity: .8; margin-left: 6px; }
.gallery { position: relative; margin: 0 -6px; min-width: 0; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 6px; padding: 4px 6px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.tile { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; align-items: stretch; background: none; border: 0; padding: 0; box-shadow: none; color: var(--ink); font-weight: 600; font-size: 13px; text-align: center; cursor: pointer; }
.tile:hover { background: none; transform: none; box-shadow: none; }
.tile .thumb { position: relative; display: block; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #0f0d0c; border: 2px solid var(--line-2); transition: border-color .2s, transform .2s; }
.tile:hover .thumb { border-color: var(--muted); transform: translateY(-2px); }
.tile.on .thumb { border-color: var(--o); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o) 30%, transparent); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; font: 400 22px/1 var(--display); text-transform: uppercase; color: var(--o); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--o) 22%, transparent), transparent 70%); }
.tile .ph small { font: 500 11px/1.3 var(--ui); text-transform: none; color: var(--muted); }
.tile .check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--o); color: #14100b; font: 700 12px/20px var(--ui); font-style: normal; opacity: 0; transform: scale(.6); transition: .2s; }
.tile.on .check { opacity: 1; transform: none; }
.tile.on .name { color: var(--o); }
.gallery .nav { position: absolute; top: calc(50% - 30px); z-index: 2; width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 1; background: rgba(15,13,12,.85); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.gallery .nav:hover { border-color: var(--o); background: rgba(15,13,12,.95); transform: none; }
.gallery .nav.prev { left: -8px; }
.gallery .nav.next { right: -8px; }
.gallery .nav[disabled] { opacity: 0; pointer-events: none; }
.styledesc { margin: 4px 0 0; min-height: 2.8em; font-size: 13px; line-height: 1.4; color: var(--muted); }
.aside .nextnote { color: var(--ink); opacity: .85; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
.player { width: 100%; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.55); background: #000; transition: max-width .3s; }
.player[data-format=vertical] { max-width: 270px; }
.player[data-format=square] { max-width: 340px; }
.player[data-format=horizontal] { max-width: 360px; }
.chef { border: 1px dashed var(--line-2); border-radius: 16px; padding: 28px 22px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 300px; }
.chef b { display: block; font: 400 30px/1.1 var(--display); text-transform: uppercase; color: var(--o); margin-bottom: 10px; }

/* Choix de la durée */
.durations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 620px) { .durations { grid-template-columns: repeat(2, 1fr); } }
.durations input { position: absolute; opacity: 0; }
.durations label { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 10px; text-align: center; cursor: pointer; background: #0f0d0c; transition: .2s; display: flex; flex-direction: column; gap: 4px; }
.durations label:hover { border-color: var(--muted); transform: translateY(-2px); }
.durations label b { font-size: 15px; }
.durations label span { font: 400 30px/1 var(--display); color: var(--o-2); }
.durations label small { color: var(--muted); font-size: 12px; }
.durations input:checked + label { border-color: var(--o); background: rgba(230,144,61,.10); box-shadow: 0 0 0 4px rgba(230,144,61,.14); }
.durations input:focus-visible + label { outline: 2px solid var(--ink); }
.thumbs video { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); display: block; background: #000; }
.thumbs figure.envoi img, .thumbs figure.envoi video { opacity: .45; }
.thumbs figure.erreur img, .thumbs figure.erreur video { outline: 2px solid var(--bad); }
.thumbs .file { width: 104px; height: 104px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); text-align: center; padding: 6px; }

/* Musique, versions à comparer */
.tracks { display: grid; gap: 8px; margin-top: 10px; }
.tracks label { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #0f0d0c; }
.tracks label[hidden] { display: none; }
.tracks label:has(input:checked) { border-color: var(--o); background: rgba(230,144,61,.10); }
.tracks input { width: 18px; height: 18px; accent-color: var(--o); flex: none; }
.tracks span { flex: 1; font-size: 14px; }
.tracks small { display: block; color: var(--muted); font-size: 12px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .versions { grid-template-columns: 1fr; } }
.chef textarea { margin-top: 10px; }

/* Musique : durées de vidéo couvertes par une piste */
.durpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.durpick label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; cursor: pointer; }
.durpick label.short { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.durs { display: flex; gap: 4px; flex-wrap: nowrap; }
.durs form { margin: 0; }
.dur { font: 600 12px/1 var(--ui); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); box-shadow: none; white-space: nowrap; }
.dur:hover { transform: none; box-shadow: none; border-color: var(--o); background: transparent; }
.dur.on { background: var(--o); border-color: var(--o); color: #14100b; }
.dur.short { display: inline-block; opacity: .35; text-decoration: line-through; }

/* Ajustement : ce qui est inclus ou non */
.scope { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.scope p { margin: 0; }
.scope p + p { margin-top: 8px; }
.scope b { color: var(--ink); }
.scope .yes b { color: var(--ok); }
.scope .no b { color: #e7a35b; }

.durpick label[hidden] { display: none; }
.stylesedit summary { cursor: pointer; color: var(--ink); font-size: 13px; }
.stylesedit form { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #0f0d0c; }
.stylesedit form button { margin-top: 6px; justify-self: start; }

.logout { margin: 0 0 0 6px; display: inline; }
