* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #1a1a1a; background: #f5f5f3; }
a { color: #2f5bb7; }
.bar { background: #1a1a1a; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.bar a { color: #ddd; text-decoration: none; }
.brand { font-weight: 700; color: #ff8a5c !important; padding: 14px 0; }
.bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.bar nav a { padding: 14px 12px; }
.bar nav a:hover, .bar nav a.on { color: #fff; box-shadow: inset 0 -3px 0 #ff8a5c; }
.page { max-width: 1200px; margin: 0 auto; padding: 24px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
h1 { margin: 0; font-size: 26px; } h2 { font-size: 18px; margin: 28px 0 10px; } h3 { margin: 24px 0 8px; font-size: 16px; }
.flash { background: #e6f4ea; border: 1px solid #b6dfc2; padding: 10px 14px; border-radius: 6px; }
.err { color: #b3261e; }
.hint, .muted, small { color: #777; }
small { display: inline-block; font-size: 12px; }
.btn { display: inline-block; background: #fff; border: 1px solid #ccc; border-radius: 6px; padding: 8px 14px; font: inherit; color: #1a1a1a; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #888; }
.btn.primary { background: #d9552b; border-color: #d9552b; color: #fff; }
.btn.primary:hover { background: #c04820; }
.btn.danger { color: #b3261e; border-color: #e3b4b0; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats div { background: #fff; border-radius: 8px; padding: 16px; border: 1px solid #e5e5e5; }
.stats b { display: block; font-size: 30px; } .stats span { color: #777; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e5e5e5; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #777; background: #fafafa; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
.tbl tr.off td { opacity: .5; } .tbl tr.past td { color: #888; }
.tbl td small { display: block; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.mini { width: 64px; height: 36px; object-fit: cover; border-radius: 3px; display: block; background: #eee; }
.num { width: 70px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eee; }
.pill.tour { background: #d9552b; color: #fff; }
.st-confirmed { background: #e6f4ea; color: #1e6b3a; } .st-soldout { background: #1a1a1a; color: #fff; }
.st-cancelled { background: #fbe4e2; color: #b3261e; } .st-postponed { background: #fff1d6; color: #8a5a00; }
.tgl { margin: 0; }
.switch { font: inherit; font-size: 11px; font-weight: 700; border: 0; border-radius: 99px; padding: 4px 10px; cursor: pointer; background: #ddd; color: #666; min-width: 48px; }
.switch.on.visible { background: #2f5bb7; color: #fff; } .switch.on.available { background: #2f8f5b; color: #fff; }
.form { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px 24px; }
.form.narrow { max-width: 720px; }
.form label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 14px; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .filterbar select, .login input {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
.form input.num { width: 110px; }
.form textarea.mono, code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.form input[type=file] { display: block; margin-top: 6px; font-weight: 400; }
.form label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.form label.inline input:not([type=checkbox]) { display: inline-block; width: 180px; margin: 0; }
.form label.pad { margin-top: 26px; }
.checks { border: 1px solid #eee; border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .tbl { display: block; overflow-x: auto; } }
.preview { max-width: 100%; max-height: 220px; border-radius: 6px; margin: 4px 0 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.danger { margin-top: 18px; }
.filterbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filterbar select { width: auto; margin: 0; }
.login { max-width: 360px; margin: 12vh auto; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 28px; }
.login label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.login .btn { width: 100%; }

/* Réordonnancement des artistes */
.ordcol { width: 110px; }
.handle { cursor: grab; font-size: 20px; color: #999; padding: 4px 8px 4px 2px; user-select: none; vertical-align: middle; }
.handle:hover { color: #1a1a1a; }
.arrow { border: 1px solid #ddd; background: #fff; border-radius: 4px; font-size: 10px; line-height: 1; padding: 5px 6px; margin-left: 2px; cursor: pointer; color: #555; vertical-align: middle; }
.arrow:hover { border-color: #888; color: #000; }

tr.dragging { opacity: .35; }
tr.drop-before td { box-shadow: inset 0 3px 0 #d9552b; }
tr.drop-after td { box-shadow: inset 0 -3px 0 #d9552b; }
tr.moved td { animation: flashrow 1s ease; }
@keyframes flashrow { from { background: #fff1d6; } to { background: transparent; } }
.saved { min-height: 1.4em; margin: 0 0 8px; font-size: 13px; color: #1e6b3a; }
.saved.err { color: #b3261e; }
.tbl tr.group-head td { background: #f1f1ee; color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 10px; border-top: 2px solid #ddd; }
tbody tr[data-id]:first-child .arrow.up, tr.group-head + tr .arrow.up, tbody tr:last-child .arrow.down { visibility: hidden; }

/* --- Hub multi-sites --- */
:root { --rh: #d9552b; --cap: #2f5bb7; --ve: #c0392b; }
.tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: #555; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; font-weight: 600; }
.tabs a.on { background: #fff; border-color: #ddd; color: #1a1a1a; margin-bottom: -1px; }
.tabs a.t-rockethouse.on { box-shadow: inset 0 3px 0 var(--rh); } .tabs a.t-capitane.on { box-shadow: inset 0 3px 0 var(--cap); } .tabs a.t-verite.on { box-shadow: inset 0 3px 0 #E23220; }
.presence { display: flex; gap: 4px; }
.presence .switch { min-width: 0; padding: 4px 9px; font-size: 11px; }
.switch.on.s-rockethouse { background: var(--rh); color: #fff; } .switch.on.s-capitane { background: var(--cap); color: #fff; } .switch.on.s-verite { background: #E23220; color: #fff; }
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; }
.sdot.s-rockethouse { background: var(--rh); } .sdot.s-capitane { background: var(--cap); } .sdot.s-verite { background: #E23220; }
h2.sec { margin-top: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.sitebox { border: 1px solid #e5e5e5; border-radius: 8px; padding: 0 16px; margin: 16px 0; background: #fcfcfb; }
.sitebox[open] { padding-bottom: 8px; }
.sitebox summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 10px; }
.sitebox summary small { font-weight: 400; color: #888; }
.sitebox summary .dot { width: 12px; height: 12px; border-radius: 50%; }
.sitebox.s-rockethouse summary .dot { background: var(--rh); } .sitebox.s-capitane summary .dot { background: var(--cap); } .sitebox.s-verite summary .dot { background: #E23220; }
.multi { border: 1px solid #ccc; border-radius: 6px; margin: 4px 0 14px; background: #fff; }
.multi-filter { border: 0 !important; border-bottom: 1px solid #eee !important; border-radius: 6px 6px 0 0 !important; margin: 0 !important; }
.multi-list { max-height: 220px; overflow: auto; padding: 6px 10px; columns: 2; }
.multi-list label { display: block; font-weight: 400; margin: 0 0 4px; font-size: 14px; break-inside: avoid; }
.multi-list label[hidden] { display: none; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cover { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.cover.off { opacity: .45; } .cover small { color: #888; }
.actions.sticky { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid #eee; }
.nocover { width: 100%; aspect-ratio: 1; border: 2px dashed #e0b4a4; border-radius: 4px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; text-align: center; color: #c0392b; font-size: 12px; background: #fff7f3; }
.cover { position: relative; }
.preo { position: absolute; top: 14px; left: 14px; background: #1a1a1a; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; }
.rel-ctl { display: flex; align-items: center; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.rel-ctl form { margin: 0; }
.fmt { width: 26px; height: 26px; border: 1px solid #e3e3e3; background: #fff; border-radius: 5px; padding: 3px; color: #bbb; cursor: pointer; display: flex; }
.fmt svg { width: 100%; height: 100%; } .fmt.on { color: #1a1a1a; border-color: #1a1a1a; }
.rel-ctl .vis { margin-left: auto; } .rel-ctl .switch { font-size: 10px; padding: 4px 8px; min-width: 0; }
.cover.off { opacity: .55; } .cover.off .rel-ctl { opacity: 1; }
/* Fiche sortie */
.rel-top { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
@media (max-width: 800px) { .rel-top { grid-template-columns: 1fr; } }
.rel-cover { position: relative; }
.rel-cover img, .rel-cover .nocover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.rel-cover .preo { top: 10px; left: 10px; }
.fmt-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; }
.fmt-pick label { display: flex !important; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 10px 6px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; color: #aaa; font-weight: 400 !important; margin: 0 !important; }
.fmt-pick label.on { border-color: #1a1a1a; color: #1a1a1a; background: #fafaf8; }
.fmt-pick input { display: none; } .fmt-pick svg { width: 30px; height: 30px; } .fmt-pick span { font-size: 12px; }
.tracks td { padding: 4px 6px; } .tracks input { width: 100%; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; font: inherit; font-size: 13px; }
.tracks input.xs { width: 82px; } .tracks input.num.xs { width: 46px; } .tracks input.sm { width: 130px; }
.tracks td.handle { cursor: grab; color: #aaa; font-size: 18px; width: 20px; }
.tracks tr.new input { background: #fcfcfb; } .tracks tr.removed { opacity: .35; } .tracks tr.dragging { opacity: .4; }
.cover-link { color: inherit; text-decoration: none; } .cover-link:hover { text-decoration: underline; }
.mini.sq { width: 40px; height: 40px; }
h2 .btn { vertical-align: middle; margin-left: 10px; }
.tracks td.ttl { width: 34%; } .tracks input.sm { width: 120px; }
.tracks input::placeholder { color: #c8c8c8; }
