/*




 */

:root {
  color-scheme: dark;
  --bg: #12151c;
  --bg-2: #181c25;
  --panel: #1e232e;
  --panel-2: #262c39;
  --line: #313849;
  --text: #e7e9ee;
  --muted: #8d95a8;
  --accent: #e8a317;
  --accent-2: #ffc34d;
  --danger: #ef4444;
  --ok: #22c55e;
  --blue: #5ea0ff;
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
small, .muted { color: var(--muted); }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------- barre du haut ---------- */
.topbar {
  height: 52px; display: flex; align-items: center; gap: 24px;
  padding: 0 18px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff6d8 0 18%, var(--accent) 45%, #7a4f00 100%);
  box-shadow: 0 0 14px rgba(232, 163, 23, .55);
}
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--muted); padding: 7px 12px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.topnav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.topnav a.active { color: var(--text); background: var(--panel-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-right form { margin: 0; }
.user-link { color: var(--muted); display: inline-block; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
@media (max-width: 1100px) {
  .topbar { gap: 14px; }
  .topnav { gap: 0; }
  .topnav a { padding: 7px 8px; }
}

/* menu burger (mobile) : mêmes liens que la barre, plus le compte */
.app-burger { display: none; }
.app-burger summary { list-style: none; cursor: pointer; padding: 10px 6px; display: grid; gap: 5px; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.app-burger summary::-webkit-details-marker { display: none; }
.app-burger summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.app-burger[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.app-burger[open] summary span:nth-child(2) { opacity: 0; }
.app-burger[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.app-burger nav {
  position: absolute; left: 0; right: 0; top: 52px; padding: 8px 16px 18px; display: grid;
  background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}
.app-burger nav > a { color: var(--text); padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
.app-burger nav > a:hover { text-decoration: none; color: var(--accent-2); }
.app-burger nav > a.active { color: var(--accent-2); }
.app-burger-account { display: grid; gap: 8px; margin-top: 14px; }
.app-burger-account .user-link { padding: 4px; max-width: none; }
.app-burger-account form { margin: 0; }
.app-burger-account .btn { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
@media (max-width: 1000px) {
  .topbar { gap: 12px; }
  .topnav, .topbar .topbar-wide { display: none; }
  .app-burger { display: block; margin-left: 0; } /* .topbar-right le pousse déjà à droite */
}

/* ---------- boutons & formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: 500 13px var(--font);
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: #2f3646; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a1205; font-weight: 600; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-danger { color: #fca5a5; border-color: #5b2b2b; background: transparent; }
.btn-danger:hover { background: #3a1d1d; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 7px; font-size: 11px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn[hidden] { display: none; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.btn-group .btn:last-child, .btn-group .btn:has(+ .btn[hidden]:last-child) { border-radius: 0 6px 6px 0; }
.btn-group .btn.active { background: var(--accent); color: #1a1205; border-color: var(--accent); }

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; font: 13px var(--font);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232,163,23,.2); }
input[type=color] { width: 100%; height: 32px; padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
input[type=checkbox] { accent-color: var(--accent); }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.form-errors { background: #3a1d1d; border: 1px solid #5b2b2b; color: #fecaca; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.form-errors ul { margin: 4px 0 0; padding-left: 18px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- mise en page ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 32px 24px 60px; }
.container-narrow { max-width: 460px; margin: 48px auto; padding: 0 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 18px; }

.flash {
  margin: 12px auto 0; max-width: 1180px; padding: 10px 16px; border-radius: 6px;
  background: #1d3324; border: 1px solid #2c5a3a; color: #bbf7d0; transition: opacity .4s;
}
.flash-alert { background: #3a1d1d; border-color: #5b2b2b; color: #fecaca; }
.flash-hide { opacity: 0; pointer-events: none; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
body.editor-page .flash { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: 600px; }

/* ---------- liste des plans ---------- */
.plot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.plot-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.plot-card:hover { border-color: #46506a; }
.plot-thumb {
  height: 120px; display: block; position: relative;
  background:
    radial-gradient(ellipse at 30% 0, rgba(255,195,77,.35), transparent 50%),
    radial-gradient(ellipse at 70% 0, rgba(94,160,255,.3), transparent 50%),
    linear-gradient(180deg, #1a1f2a, #0f1218);
}
.plot-thumb::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 18px; height: 22px; background: #2b2f38; border-top: 2px solid #4b5262; }
.plot-card-body { padding: 14px 16px; flex: 1; }
.plot-card-body h3 { font-size: 16px; margin-bottom: 4px; }
.plot-card-body h3 a { color: var(--text); }
.plot-meta { color: var(--muted); font-size: 12px; }
.plot-card-actions { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.plot-card-actions form { margin: 0; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.template-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-choice { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.template-choice:hover { border-color: var(--muted); }
.template-choice:has(input:checked) { border-color: var(--accent); background: rgba(232,163,23,.08); }
.template-choice:has(input[type=radio]:disabled) { opacity: .5; cursor: not-allowed; }
.template-choice > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.template-choice:has(input[type=radio]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.template-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--panel-2); font-size: 20px; color: var(--accent-2); }
.template-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.template-text small { font-size: 12px; line-height: 1.35; }
.template-file { margin-top: 6px; width: 100%; max-width: 100%; min-width: 0; font-size: 12px; }
.template-go { flex: none; color: var(--muted); font-size: 20px; }
a.template-choice { text-decoration: none; }
@media (max-width: 560px) {
  .template-choices { grid-template-columns: minmax(0, 1fr); }
}

/* Création d'un plan : choix de la salle */
.venue-search { display: grid; grid-template-columns: 1fr minmax(140px, 200px) auto; gap: 8px; margin-bottom: 16px; }
.venue-picks { display: grid; gap: 8px; }
.venue-pick { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.venue-pick:hover { border-color: var(--accent); background: rgba(232,163,23,.06); }
.venue-pick-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .venue-search { grid-template-columns: 1fr; }
}

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; background: var(--panel-2); }
.table th, .table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table td:nth-child(6) { white-space: nowrap; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions form { display: inline; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge-conventional { color: #ffd59a; border-color: #5c4a2a; }
.badge-led { color: #a7f3d0; border-color: #24533f; }
.badge-moving { color: #93c5fd; border-color: #263f66; }
.badge-effect { color: #f0abfc; border-color: #5b2a5f; }
.badge-sound { color: #c4b5fd; border-color: #3d3366; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input[type=search] { max-width: 280px; }
.filters a.badge { cursor: pointer; padding: 5px 12px; font-size: 12px; }
.filters a.badge.active { background: var(--accent); color: #1a1205; border-color: var(--accent); }

.import-box { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.import-box input[type=file] { color: var(--muted); }

/* ---------- authentification (Devise) ---------- */
.auth-card h2 { font-size: 22px; margin-bottom: 18px; }
.auth-card br { display: none; }
.auth-card em { font-size: 11px; color: var(--muted); font-style: normal; margin-left: 4px; }
.auth-card .field:has(input[type=checkbox]) { display: flex; gap: 8px; align-items: center; }
.auth-card .field:has(input[type=checkbox]) label { margin: 0; }
.auth-card .actions input[type=submit], .auth-card input[type=submit] {
  width: 100%; padding: 10px; border: 0; border-radius: 6px; background: var(--accent);
  color: #1a1205; font: 600 14px var(--font); cursor: pointer; margin-top: 4px;
}
.auth-card .actions input[type=submit]:hover { background: var(--accent-2); }
.auth-card > a, .auth-card a + br + a { font-size: 13px; }
.auth-card form + a, .auth-card form ~ a { display: inline-block; margin-top: 14px; margin-right: 12px; font-size: 13px; }
.auth-card h3 { font-size: 15px; margin-top: 24px; }
.auth-card form.button_to input[type=submit], .auth-card form.button_to button { background: transparent; border: 1px solid #5b2b2b; color: #fca5a5; width: auto; padding: 6px 12px; }
#error_explanation { background: #3a1d1d; border: 1px solid #5b2b2b; color: #fecaca; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
#error_explanation h2 { font-size: 13px; margin: 0 0 4px; }
#error_explanation ul { margin: 0; padding-left: 18px; font-size: 13px; }
.badge-video { color: #7dd3fc; border-color: #1e4a5f; }

.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plot-import { margin: 0; }
.plot-import label.btn { cursor: pointer; margin: 0; }

/* Webmaster · utilisateurs et abonnements */
.admin-users td { vertical-align: top; }
/* applications LightCraft Console : en rouge, une version sans mise à jour automatique */
.app-badge { margin: 0 4px 4px 0; color: var(--text); white-space: nowrap; }
.app-badge-old { color: #fecaca; border-color: var(--danger); background: rgba(239, 68, 68, .16); }
.admin-users td.apps { min-width: 190px; }
.admin-users td.last-sign-in { white-space: nowrap; }
.apps-downloads { display: block; font-size: 12px; }
.admin-user-apps { margin-bottom: 28px; }
.admin-apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.sub-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.sub-form select, .sub-form input[type=date] { width: auto; padding: 3px 6px; font-size: 12px; }
.sub-note { display: block; margin-top: 4px; font-size: 11px; }
.sub-note-expired { color: #fca5a5; }
.badge-status-admin { color: #ffd59a; border-color: #5c4a2a; }
.badge-status-vip { color: #f0abfc; border-color: #5b2a5f; }
.badge-status-subscribed { color: #a7f3d0; border-color: #24533f; }
.badge-status-expired { color: #fecaca; border-color: #5b2b2b; }
.report-count { font-weight: 600; }
.report-count-open { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; text-align: center; }
.admin-problem-reports td { vertical-align: top; }
.report-title { padding: 0; border: 0; background: none; color: var(--accent-2); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.report-title:hover { text-decoration: underline; }
.report-message { max-height: 55vh; overflow-y: auto; }
.report-message p { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.problem-report { display: contents; }

/* Mes plans · formule en cours */
.plan-usage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 22px; }
.plan-usage p { margin: 0; flex: 1; }

/* ---------- plans partagés (création d'un plan) ---------- */
.shared-plots { display: flex; flex-direction: column; gap: 10px; }
.shared-plots[hidden], .template-choices[hidden] { display: none; }
.shared-plots-list[busy] { opacity: .5; }
.shared-plots-head { display: flex; align-items: center; gap: 10px; }
.shared-plots-filters { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px; }
.shared-plots-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.shared-plot { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--text); font-size: 14px; margin: 0; font-weight: 400; }
.shared-plot input { margin-top: 3px; }
.shared-plot:has(input:checked) { border-color: var(--accent); background: rgba(232,163,23,.08); }
.shared-plot:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.shared-plot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shared-plot-desc { font-size: 13px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.shared-plots-empty { margin: 0; padding: 16px; text-align: center; font-size: 13px; }
@media (max-width: 560px) {
  .shared-plots-filters { grid-template-columns: 1fr; }
}

/* Bibliothèque : pagination et fiche détaillée d'une machine */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; }
.ft-link { color: inherit; text-decoration: none; }
.ft-link:hover strong { color: var(--accent); }
.ft-modes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.ft-modes a.badge { text-decoration: none; padding: 4px 10px; }
.ft-modes a.badge.active { background: var(--accent); color: #1a1205; border-color: var(--accent); }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.ft-grid .card + .card { margin-top: 0; }
.ft-grid h2, .ft-chart h2 { font-size: 15px; margin: 0 0 12px; }
.ft-specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.ft-specs dt { color: var(--muted); }
.ft-specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.small { font-size: 12px; }
.ft-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ft-swatch { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px 2px 3px; border: 1px solid var(--line); border-radius: 999px; }
.ft-swatch i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.ft-chart .table td { vertical-align: top; }
.ft-fn + .ft-fn { margin-top: 6px; }
.ft-range { display: inline-block; min-width: 62px; font-variant-numeric: tabular-nums; color: var(--accent); }
.ft-sets { font-size: 11px; color: var(--muted); margin-left: 66px; }
.ft-notes { white-space: pre-line; margin: 0; }
@media (max-width: 640px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-sets { margin-left: 0; }
}

/* Import de la bibliothèque (webmaster) */
.import-box label.btn { cursor: pointer; }
.import-progress { margin-top: 14px; }
.import-bar { position: relative; height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.import-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width .3s; }
.import-bar .sent { background: rgba(255,255,255,.18); }
.import-bar .done { background: var(--accent); }
.import-report { white-space: pre-wrap; font-size: 11px; color: var(--muted); max-height: 200px; overflow: auto; margin: 6px 0 0; }
.import-report:empty { display: none; }
.import-history { margin-top: 12px; }
.import-history ul { margin: 6px 0 0; padding-left: 18px; }
.ft-gobos { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ft-gobo { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.ft-gobo img, .ft-gobo i { width: 48px; height: 48px; border-radius: 50%; background: #000; border: 1px solid var(--line); }
.ft-gobo small { font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }

/* Salles (fiches techniques) */
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.venue-card h3 { margin: 0 0 4px; font-size: 16px; }
.venue-card .plot-meta { margin-bottom: 10px; }
.venue-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; margin: 0; }
.venue-specs dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.venue-specs dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.venue-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.venue-warnings { margin: 8px 0 0; padding-left: 18px; color: #fcd34d; font-size: 13px; }
.venue-room { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.venue-room h3 { margin: 0 0 6px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.venue-accordion > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.venue-accordion > summary::-webkit-details-marker { display: none; }
.venue-accordion > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.venue-accordion[open] > summary::before { transform: rotate(90deg); }
.venue-accordion > summary h2, .venue-accordion > summary h3 { margin: 0; }
.venue-accordion .venue-accordion { margin-top: 12px; }
.venue-accordion .venue-accordion > summary + .table-wrap { margin-top: 8px; }
.card.venue-accordion[open] > summary { margin-bottom: 4px; }

/* ---------- page Téléchargements ---------- */
.downloads-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; margin: 8px 0 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.downloads-tabs button { min-height: 42px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
.downloads-tabs button:hover { color: var(--text); }
.downloads-tabs button[aria-selected="true"] { background: var(--accent); color: #1a1205; }
.downloads-platform > summary { -webkit-tap-highlight-color: transparent; }
.downloads-platform > summary small { font-weight: 400; font-size: 13px; }
.downloads-platform[open] > summary { margin-bottom: 14px; }
.downloads-note { margin-top: 18px; }
.downloads .btn { white-space: normal; max-width: 100%; text-align: center; }
.match-exact { color: #86efac; }
.match-approx { color: #fcd34d; }
.inventory-table input, .inventory-table select { width: 100%; min-width: 0; }
.inventory-table td.qty { width: 80px; }
@media (max-width: 640px) {
  .venue-specs { grid-template-columns: 1fr 1fr; }
}
.venue-edit { margin-top: 12px; }
.venue-edit > summary { cursor: pointer; font-weight: 600; }
.venue-edit h4 { margin: 16px 0 6px; font-size: 13px; }
.venue-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 12px; align-items: start; }
.venue-edit-grid .field { margin: 0 0 6px; }
.venue-edit-grid .field small { display: block; font-size: 11px; }
.venue-edit-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px 2px; margin: 8px 0 0; }
.venue-edit-block legend { padding: 0 4px; }
.venue-edit .inventory-table td { padding: 4px 6px; }
.venue-edit .inventory-table select { min-width: 90px; }
/* fiches importées : champs lisibles, le tableau défile plutôt que d'écraser les colonnes */
.venue-edit .inventory-table td:first-child input[type=text] { min-width: 140px; }
.venue-edit .inventory-table td.qty input { min-width: 64px; }

/* Parc de matériel d'une salle : une carte par ligne sur téléphone */
.inventory-stack .inventory-remove { text-align: center; }
@media (max-width: 640px) {
  .table-wrap:has(.inventory-stack) { border: 0; overflow: visible; }
  .inventory-stack thead { display: none; }
  .inventory-stack, .inventory-stack tbody { display: block; }
  .inventory-stack tr {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 10px; padding: 12px;
    border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px;
  }
  .inventory-stack td, .inventory-stack td.qty { display: block; width: auto; padding: 0; border: 0; }
  .inventory-stack td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
  .inventory-stack td:nth-child(n+3) { grid-column: 1 / -1; }
  .inventory-stack .inventory-remove { display: flex; align-items: center; gap: 8px; text-align: left; }
  .inventory-stack .inventory-remove::before { margin: 0; font-size: 12px; }
  .inventory-stack .inventory-remove input[type=checkbox] { width: auto; }
  .inventory-stack .inventory-remove:not(:has(input[type=checkbox])) { display: none; }
}

/* Bibliothèque : nom de la machine lisible et toujours visible quand le tableau défile */
.ft-table td:first-child { min-width: 170px; }
.ft-table td:nth-child(3) { min-width: 110px; }
@media (max-width: 640px) {
  .ft-table th:first-child, .ft-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
  .ft-table th:first-child { background: var(--panel-2); }
  .ft-table td:first-child { min-width: 150px; max-width: 170px; }
}
.venue-room h3 label { font-size: 15px; font-weight: 600; color: var(--text, inherit); text-transform: none; letter-spacing: 0; margin: 0; }
.distance-source { display: block; font-size: 10.5px; margin-top: 2px; white-space: nowrap; }
.distance-plan, .distance-repartition { color: #fcd34d; }
.distance-saisie { color: #86efac; }
h4 .distance-source { display: inline; margin-left: 8px; font-weight: 400; }
/* Contrôles de la relecture : alertes, citations du modèle vérifiées dans le PDF */
.field-alert { display: block; color: #fcd34d; font-size: 11.5px; margin-top: 3px; }
.field.has-alert input { border-color: #b7791f; }
.cite { display: block; font-size: 11px; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.cite-verified, .cite-elsewhere { color: #86efac; }
.cite-mismatch, .cite-not_found { color: #fca5a5; }
.checks-summary { border-radius: var(--radius); padding: 8px 12px; margin: 10px 0; font-size: 13px; }
.checks-summary.warn { background: rgba(252, 211, 77, .08); border: 1px solid rgba(252, 211, 77, .35); }
.checks-summary.ok { background: rgba(134, 239, 172, .07); border: 1px solid rgba(134, 239, 172, .3); }
.check-row td { padding-top: 0 !important; border-top: 0; }
/* Suivi d'une analyse de fiche technique */
.import-progress-bar { height: 8px; background: var(--panel-2, rgba(255,255,255,.06)); border-radius: 4px; overflow: hidden; margin: 10px 0 14px; }
.import-progress-bar span { display: block; height: 100%; background: var(--accent, #e8a317); transition: width .6s; }
.import-steps { list-style: none; padding: 0; margin: 0 0 10px; }
.import-steps li { padding: 4px 0; color: var(--muted); }
.import-steps li.done { color: #86efac; }
.import-steps li.current { color: var(--text, #e7e9ee); font-weight: 600; }
.import-steps li small { font-weight: 400; }
/* Photo de la salle : choix à la relecture, cartes et fiche */
.venue-photo-choices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.venue-photo-choice { display: flex; flex-direction: column; gap: 4px; cursor: pointer; width: 180px; }
.venue-photo-choice img { width: 180px; height: 110px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.venue-photo-choice input:checked ~ img { border-color: var(--accent, #e8a317); }
.venue-photo-choice.none { justify-content: center; align-items: center; height: 110px; border: 1px dashed var(--line); border-radius: 6px; }
.venue-card-photo { display: block; margin: -22px -22px 14px; height: 150px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--panel-2, #1b1f29); }
.venue-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venue-hero { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; display: block; }
/* Aperçu 3D de la salle (fiche) */
.venue-preview { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0d12; }
.venue-preview-viewport { position: absolute; inset: 0; }
.venue-preview-viewport canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.venue-preview-caption { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 5px 12px; border-radius: 999px; font-size: 12px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(18, 21, 28, .78); color: var(--text); border: 1px solid var(--line); }
.venue-preview-actions { display: flex; justify-content: flex-end; margin: 12px 0 18px; }
@media (max-width: 640px) { .venue-preview { height: 300px; } .venue-preview-actions .btn { width: 100%; } }
@media (max-width: 640px) { .venue-photo-choice, .venue-photo-choice img { width: 140px; } .venue-photo-choice img { height: 90px; } }
.venue-pick-photo { width: 84px; height: 56px; flex: none; object-fit: cover; border-radius: 6px; background: var(--panel-2, #1b1f29); }
@media (max-width: 640px) { .venue-pick-photo { width: 64px; height: 44px; } }
/* Voile « conversion en cours » (import d'un projet Capture) */
.busy-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 18, .72); backdrop-filter: blur(2px); }
.busy-overlay[hidden] { display: none; }
.busy-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 34px; max-width: min(420px, calc(100vw - 32px)); text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.busy-box small { overflow-wrap: anywhere; }
.busy-spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(232, 163, 23, .2); border-top-color: var(--accent); animation: busy-spin .9s linear infinite; margin-bottom: 6px; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spinner { animation-duration: 3s; } }

/* ---------- programme bêta-testeurs ---------- */
.badge-status-beta { color: #fde68a; border-color: #6b5313; }
.beta-signup {
  margin: -6px 0 18px; padding: 10px 12px; border: 1px solid rgba(232, 163, 23, .45); border-radius: 6px;
  background: rgba(232, 163, 23, .08); font-size: 13px; color: #e9dcc0;
}
.beta-card { border-color: rgba(232, 163, 23, .45); background: linear-gradient(135deg, rgba(232, 163, 23, .10), transparent 55%), var(--panel); }
.venue-quota strong { color: var(--text); }
.venue-quota-full, .venue-quota-full strong { color: #fecaca; }
/* ================= Éditeur 3D ================= */

body.editor-page { overflow: hidden; }
.editor { position: fixed; inset: 52px 0 0 0; display: flex; flex-direction: column; }

/* barre d'outils */
.toolbar {
  height: 50px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.tb-title { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 300px; }
.tb-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.tb-title small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-group { display: flex; gap: 4px; align-items: center; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.grid-select { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--muted); }
.grid-select select { width: auto; padding: 4px 6px; font-size: 12px; }
/* menu déroulant (Rendu) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown[open] > summary { background: var(--panel-2); border-color: var(--accent); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 210px;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.dropdown-title { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-top: 6px; }
.dropdown-title:first-child { margin-top: 0; }
.dropdown-menu .toggle { color: var(--text); }
.dropdown-end .dropdown-menu { left: auto; right: 0; }
.toggle-range input[type=range] { flex: 1; min-width: 90px; }
.toggle-range output { min-width: 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.share-menu { width: 340px; max-height: calc(100vh - 80px); overflow-y: auto; }
/* titres des sections du menu Partager : Communauté, Lien technique, Live View */
.share-section {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text);
}
.share-section::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); flex: none; }
.share-section:first-child { margin-top: 0; padding-top: 2px; border-top: 0; }
.share-help { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.share-row { display: flex; gap: 6px; align-items: center; }
.share-row input { flex: 1; min-width: 0; font-size: 12px; padding: 5px 8px; }
.share-row form { margin: 0; }
.share-qr { display: flex; gap: 12px; align-items: center; }
.share-qr svg { flex: none; width: 112px; height: 112px; color: #000; border-radius: 4px; }
.toggle { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.btn.active { background: var(--accent); color: #1a1205; border-color: var(--accent); }
.save-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.save-status[data-state=pending]::before { background: var(--accent); }
.save-status[data-state=error] { color: #fca5a5; }
.save-status[data-state=error]::before { background: var(--danger); }

.editor-body { flex: 1; display: flex; min-height: 0; }

/* panneaux latéraux */
.panel { flex: none; background: var(--bg-2); overflow-y: auto; overflow-x: hidden; }
.panel-left { width: 260px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.panel-right { width: 320px; border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
/* poignée de redimensionnement de la bibliothèque (chevauche la bordure du panneau) */
.panel-resizer { flex: none; width: 6px; margin-left: -6px; position: relative; z-index: 5; cursor: col-resize; touch-action: none; }
.panel-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: transparent; transition: background .15s; }
.panel-resizer-right { margin-left: 0; margin-right: -6px; }
.panel-resizer-right::after { right: auto; left: 0; }
.panel-resizer:hover::after, .panel-resizer:focus-visible::after, .panel-resizer.dragging::after { background: var(--accent); }
.panel-resizer:focus { outline: none; }
body.panel-resizing { cursor: col-resize; user-select: none; }
body.panel-resizing .viewport { pointer-events: none; }
/* le tableau d'éléments reste fixe en tête, seules les propriétés défilent */
.pprops { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 14px 14px 30px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pprops::-webkit-scrollbar { width: 8px; }
.pprops::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.panel-loading { padding: 20px; color: var(--muted); }
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* bibliothèque */
.lib-search { padding: 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.lib-list { flex: 1; }
.lib-section { border-bottom: 1px solid var(--line); }
.lib-section-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px;
  background: none; border: 0; color: var(--text); font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .5px; cursor: pointer;
}
.lib-section-head::before { content: "▸"; margin-right: 6px; color: var(--muted); transition: transform .15s; }
.lib-section.open .lib-section-head::before { transform: rotate(90deg); }
.lib-section-head span:first-child { flex: 1; text-align: left; }
.lib-count { font-weight: 500; color: var(--muted); font-size: 11px; }
.lib-items { padding: 0 6px 8px; }
.lib-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: grab;
  border: 1px solid transparent; user-select: none;
}
.lib-item:hover { background: var(--panel); border-color: var(--line); }
.lib-item.placing { background: rgba(232,163,23,.14); border-color: var(--accent); }
.lib-icon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 6px;
  background: var(--panel-2); color: var(--accent-2); font-size: 16px;
}
.lib-text { min-width: 0; display: flex; flex-direction: column; }
.lib-label { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-help { padding: 10px 12px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.6; }
.lib-empty { padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }
kbd { background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; font: 11px ui-monospace, monospace; color: var(--text); }

/* viewport */
.viewport-wrap { flex: 1; position: relative; min-width: 0; display: flex; flex-direction: column; }
.viewport { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.viewport canvas { display: block; outline: none; }
.viewport-hint[hidden] { display: none; }
.viewport-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); pointer-events: none;
  background: rgba(10,12,18,.85); border: 1px solid var(--accent); color: var(--accent-2);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; white-space: nowrap;
}
.viewport-legend { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--muted); pointer-events: none; }
.viewport-wrap:has(.patch-drawer:not([hidden])) .viewport-legend { display: none; }

/* tiroir du patch */
.patch-drawer[hidden] { display: none; }
.patch-drawer { height: 42%; flex: none; background: var(--bg-2); border-top: 2px solid var(--accent); display: flex; flex-direction: column; }
.patch-head { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.patch-head h3 { margin: 0; font-size: 14px; }
.patch-head small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.patch-tools { margin-left: auto; display: flex; gap: 6px; }
.patch-scroll { overflow: auto; flex: 1; }
.patch-table td, .patch-table th { padding: 4px 10px; }
.patch-table thead th { position: sticky; top: 0; z-index: 1; }
.patch-table input { width: 72px; padding: 3px 6px; font-size: 12px; }
.patch-table tr { cursor: pointer; }
.patch-table tr.selected td { background: rgba(232,163,23,.1); }
.patch-table tr.conflict td { color: #fca5a5; }
.patch-table tr.conflict input { border-color: var(--danger); }

/* propriétés */
.phead { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.phead-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; font-size: 20px; color: var(--accent-2); flex: none; }
.phead h3 { margin: 0; font-size: 16px; word-break: break-word; }
.phead-sub { font-size: 12px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pfield { min-width: 0; }
.pfield.wide { grid-column: 1 / -1; }
.plink { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.pfield label { font-size: 11px; margin-bottom: 3px; }
.pfield label small { color: #6b7280; }
.pfield input, .pfield select { padding: 6px 8px; font-size: 13px; }
.pfield input[readonly] { opacity: .6; }
.pcalc { margin-top: 8px; }
.pcalc kbd { font-size: 10.5px; }
.pfield input.invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.phint { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* Fixture Type d'un groupe : zone où déposer une fixture de la bibliothèque */
.ptype-drop { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel-2); }
.ptype-drop strong { font-size: 13px; }
.ptype-drop span { font-size: 11px; color: var(--muted); }
.ptype-drop.over { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 1px var(--accent); }
.psection { padding: 12px 0; border-top: 1px solid var(--line); }
.psection:first-of-type { border-top: 0; padding-top: 0; }
.psection h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 10px; }
.psection h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.psection .pfield + .pfield { margin-top: 10px; }
.psection > .pfield.wide { margin-bottom: 10px; }
.pcount { margin: 4px 0 12px; padding: 10px; border-radius: 8px; background: rgba(232,163,23,.08); border: 1px solid rgba(232,163,23,.35); }
.pcount label { color: var(--accent-2); font-size: 12px; }
.pcount-row { display: flex; gap: 6px; }
.pcount-row input { text-align: center; font-size: 18px; font-weight: 700; padding: 5px; }
.pcount-row .btn { width: 40px; font-size: 18px; padding: 4px; }
.range-row { display: flex; gap: 8px; align-items: center; }
.pstep-row { display: flex; gap: 4px; align-items: center; }
.pstep-row input { flex: 1; min-width: 0; text-align: center; }
.pstep-row .btn { flex: none; width: 28px; padding: 4px 0; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row input[type=number] { width: 70px; flex: none; }
.range-row select { flex: 1; min-width: 0; }
.range-row .btn { flex: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatches input[type=color] { width: 32px; height: 26px; padding: 1px; }
.ppatch { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.ppatch th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11px; padding: 2px 4px; }
.ppatch td { padding: 2px 4px; }
.ppatch input { padding: 3px 5px; font-size: 12px; }
.ppatch .pend { color: var(--muted); font-variant-numeric: tabular-nums; }
.ppatch tr.conflict input { border-color: var(--danger); color: #fca5a5; }
.pautopatch { display: flex; gap: 4px; }
.pautopatch input { padding: 4px 6px; font-size: 12px; min-width: 0; }
.pinfo { font-size: 11px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); }
.pactions { display: flex; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.pstats div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 4px; text-align: center; }
.pstats strong { display: block; font-size: 17px; color: var(--accent-2); }
.pstats span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.pstats .over { border-color: #b91c1c; background: #3a1d1d; }
.pstats .over strong { color: #fca5a5; }
.pwarn { background: #3a1d1d; border: 1px solid #5b2b2b; color: #fecaca; padding: 6px 10px; border-radius: 6px; font-size: 12px; margin: 8px 0; }
.pwarn.inline { margin: 0; padding: 2px 8px; }
.pok { color: var(--ok); font-size: 12px; }
.paim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin: 4px 0 10px; }
.paim .phint { flex-basis: 100%; margin: 0; }
.paim.active { background: var(--panel); border: 1px solid var(--accent-2); border-radius: 6px; padding: 6px 10px; }
.phelp { margin-top: 18px; font-size: 12px; color: var(--muted); }
.phelp h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
.phelp ul { padding-left: 16px; margin: 0; line-height: 1.9; }

@media (max-width: 1100px) {
  .panel-left { width: 210px; }
  .panel-right { width: 270px; }
  /* tablette : la barre d'outils passe sur deux lignes plutôt que de couper Partager / Exporter */
  .toolbar { height: auto; min-height: 50px; flex-wrap: wrap; row-gap: 6px; column-gap: 10px; padding: 6px 12px; }
  .tb-title { max-width: 220px; }
}

/* Légende de la vue : souris ou tactile */
.legend-touch { display: none; }
@media (pointer: coarse) {
  .legend-mouse { display: none; }
  .legend-touch { display: inline; }
}

/* Tiroirs (écrans étroits) : bibliothèque et propriétés par-dessus la scène, un seul à la fois */
.drawer-toggles, .drawer-backdrop { display: none; }
@media (max-width: 900px), (max-width: 1100px) and (max-height: 500px) {
  .editor-body { position: relative; }
  .editor-body > .panel-resizer { display: none; }
  .editor-body > .panel {
    position: absolute; top: 0; bottom: 0; z-index: 20; width: min(340px, 88vw) !important;
    box-shadow: 0 0 40px rgba(0,0,0,.5); visibility: hidden; transition: transform .2s ease, visibility 0s .2s;
  }
  .editor-body > .panel-left { left: 0; transform: translateX(-100%); }
  .editor-body > .panel-right { right: 0; transform: translateX(100%); }
  .editor[data-drawer="library"] .panel-left,
  .editor[data-drawer="properties"] .panel-right { transform: none; visibility: visible; transition: transform .2s ease; }
  .editor[data-drawer] .drawer-backdrop { display: block; position: absolute; inset: 0; z-index: 15; background: rgba(0,0,0,.4); }

  .drawer-toggles {
    display: flex; justify-content: space-between; gap: 8px; pointer-events: none;
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6;
  }
  .drawer-toggles .btn { pointer-events: auto; padding: 8px 12px; background: rgba(21,25,34,.92); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
  .drawer-toggles .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-2); }
  .viewport-wrap:has(.patch-drawer:not([hidden])) .drawer-toggles { position: static; padding: 8px 10px; background: var(--bg-2); }
  .viewport-legend { bottom: 56px; }
}

/* Téléphone (et téléphone à l'horizontale) :
   en haut retour, titre, annuler / rétablir, état d'enregistrement et ⋯ (feuille d'actions) ;
   en bas bibliothèque, vues et propriétés, comme la vue partagée sur téléphone */
.tb-more, .dt-views { display: none; }
@media (max-width: 640px), (max-width: 1100px) and (max-height: 500px) {
  /* menu général masqué : toute la hauteur pour l'éditeur, le bouton ← ramène à Mes plans */
  body.editor-page .topbar { display: none; }
  .editor { inset: env(safe-area-inset-top, 0px) 0 0 0; }
  body.editor-page .flash.flash { top: calc(56px + env(safe-area-inset-top, 0px)); }
  .toolbar { flex-wrap: nowrap; height: 48px; min-height: 0; gap: 6px; padding: 0 8px; }
  .toolbar > [data-plot-editor-target="views"], .toolbar > .grid-select, .toolbar > .dropdown > summary, .tb-right .dropdown > summary,
  .toolbar > button[data-action="plot-editor#screenshot"], .toolbar > .btn-control, .tb-right > .btn:not(.tb-more):not([data-plot-editor-target="saveButton"]),
  .tb-title .btn-xs, .tb-title .badge, .tb-title small { display: none; }
  .tb-title { flex: 1; min-width: 0; max-width: none; }
  .tb-title > div { min-width: 0; }
  .tb-group .btn { padding: 6px 12px; font-size: 14px; }
  .tb-right { flex: none; gap: 6px; margin-left: 0; }
  .save-status { font-size: 0; gap: 0; }
  .save-status[data-state=error] { font-size: 11px; gap: 4px; max-width: 90px; }
  .tb-more { display: inline-flex; padding: 4px 12px; font-size: 20px; line-height: 1; }

  /* menus Rendu et Partager : feuilles du bas */
  .dropdown-menu, .share-menu {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 60; width: auto; min-width: 0;
    max-height: 80dvh; overflow-y: auto; border-radius: 14px 14px 0 0; border-width: 1px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.6);
  }
  .toolbar .dropdown[open]::before { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.5); }

  /* barre du bas */
  .drawer-toggles, .viewport-wrap:has(.patch-drawer:not([hidden])) .drawer-toggles {
    position: static; order: 3; flex: none; align-items: center; gap: 4px; pointer-events: auto;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line);
  }
  .drawer-toggles .btn { padding: 8px 12px; background: var(--panel-2); box-shadow: none; }
  .drawer-toggles .btn { padding: 8px 12px; }
  .drawer-toggles .dt-icon { display: none; }
  .dt-views { display: block; flex: 0 1 130px; width: auto; min-width: 0; margin: 0 auto; padding: 7px 8px; font-size: 13px; }

  .viewport-hint { max-width: calc(100% - 24px); white-space: normal; text-align: center; }
  .viewport-legend { display: none; }
  .patch-drawer { height: 55%; }
}

/* Panneau des propriétés : onglets réservés au téléphone */
.props-tabs { display: none; }
.panel-right-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* téléphone (portrait) : la moitié basse de l'écran, la scène reste visible et utilisable au-dessus */
@media (max-width: 640px) {
  .editor[data-drawer="properties"] .editor-body { flex-direction: column; }
  .editor[data-drawer="properties"] .viewport-wrap { min-height: 0; }
  .editor[data-drawer="properties"] .editor-body > .panel-right {
    position: static; order: 5; flex: none; width: 100% !important; height: 50%; transform: none; visibility: visible;
    border-left: 0; border-top: 2px solid var(--accent); box-shadow: 0 -8px 24px rgba(0,0,0,.4); animation: sheet-in .2s ease-out;
  }
  .editor[data-drawer="properties"] .drawer-backdrop { display: none; }
  .props-tabs { display: flex; flex: none; background: var(--panel); border-bottom: 1px solid var(--line); }
  .props-tabs [role=tab] {
    flex: 1; padding: 11px 8px; background: none; border: 0; border-bottom: 2px solid transparent;
    color: var(--muted); font: 600 14px var(--font); cursor: pointer;
  }
  .props-tabs [role=tab][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
  .props-tabs-close { flex: none; width: 48px; background: none; border: 0; border-left: 1px solid var(--line); color: var(--muted); font-size: 16px; cursor: pointer; }
  .panel-right[data-tab="props"] .ptree, .panel-right[data-tab="tree"] .pprops { display: none; }
  .panel-right[data-tab="tree"] .ptree { flex: 1; min-height: 0; display: flex; flex-direction: column; border-bottom: 0; }
  .panel-right[data-tab="tree"] .ptree-body { flex: 1; height: auto !important; max-height: none !important; }
  .panel-right .ptree-resize { display: none; }
}

/* feuille d'actions (téléphone) */
dialog.action-sheet {
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85dvh; padding: 0; color: var(--text); background: var(--panel);
  border: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0;
}
dialog.action-sheet::backdrop { background: rgba(0,0,0,.5); }
dialog.action-sheet[open] { animation: sheet-in .2s ease-out; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.action-sheet-body { display: flex; flex-direction: column; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); }
.action-sheet-grip { align-self: center; width: 40px; height: 4px; margin: 2px 0 12px; border-radius: 2px; background: var(--line); }
.action-sheet-main { padding: 12px; margin-bottom: 6px; font-size: 15px; }
.action-sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; margin: 0; padding: 0 6px;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 500 15px var(--font); text-align: left; cursor: pointer;
}
.action-sheet-item:hover { text-decoration: none; background: var(--panel-2); }
.action-sheet-item > span:first-child { width: 24px; flex: none; text-align: center; color: var(--accent-2); }
.action-sheet-item small { color: var(--muted); font-size: 12px; font-weight: 400; }
.action-sheet-item i { margin-left: auto; font-style: normal; font-size: 20px; color: var(--muted); }
.action-sheet-item select { width: auto; margin-left: auto; }
.action-sheet-close { margin-top: 10px; padding: 12px; font-size: 15px; }

/* arborescence des éléments en tête du panneau de propriétés */
.ptree { flex: none; padding: 8px 10px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ptree-top { display: flex; align-items: center; gap: 4px; }
.ptree-title { flex: 1; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ptree-title small, .ptree-label small { font-weight: 400; color: var(--muted); }
.ptree-body { position: relative; max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; font-size: 12.5px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ptree-body::-webkit-scrollbar { width: 8px; }
.ptree-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.ptree-body::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.ptree-resize { height: 10px; margin: 2px -10px -8px; cursor: ns-resize; touch-action: none; position: relative; }
.ptree-resize::after { content: ""; position: absolute; left: 50%; top: 3px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
.ptree-resize:hover::after, .ptree-resizing .ptree-resize::after { background: var(--accent); }
.ptree-resizing, .ptree-resizing * { cursor: ns-resize !important; user-select: none; }
.ptree-row { display: flex; align-items: center; gap: 2px; min-height: 26px; padding: 0 2px 0 4px; border-radius: 6px; }
.ptree-item { cursor: pointer; }
.ptree-item:hover { background: var(--panel); }
.ptree-item { user-select: none; }
.ptree-item.selected { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--blue); }
.ptree-item.selected.primary, .ptree-item.selected[data-id=""] { box-shadow: inset 2px 0 0 var(--accent); }
.pinfo { margin: 0 0 10px; padding: 7px 9px; border-radius: 6px; font-size: 12px; color: var(--text); background: color-mix(in srgb, var(--blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.ptree-item.is-hidden .ptree-label { opacity: .45; font-style: italic; }
.ptree-children .ptree-item { padding-left: 22px; }
.ptree-head .ptree-label { font-weight: 600; }
.ptree-rename { flex: 1; min-width: 0; padding: 2px 6px; font-size: 13px; height: 22px; }
.ptree-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.ptree-folder-icon { display: inline-flex; color: var(--accent); }
.ptree-fold { width: 18px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.ptree-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; opacity: .55; }
.ptree-btn:hover { opacity: 1; background: var(--panel-2); color: var(--text); }
.ptree-btn.active { opacity: 1; color: var(--accent); }
.ptree-btn.mixed { opacity: .9; }
.ptree-empty { padding: 4px 8px 4px 26px; font-size: 11.5px; color: var(--muted); font-style: italic; }
.ptree-new .ptree-empty { padding-left: 8px; margin-top: 6px; border: 1px dashed var(--line); border-radius: 6px; text-align: center; }
.ptree-folder.drop-over { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 6px; outline: 1px dashed var(--accent); }
.ppatch td:first-child { white-space: nowrap; }
.pradio { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.pradio label { display: flex; align-items: center; gap: 4px; color: var(--text); cursor: pointer; }
.pgels { display: flex; flex-direction: column; gap: 4px; margin: -4px 0 8px; font-size: 11px; color: var(--text); }
.pgel { display: flex; align-items: center; gap: 6px; }
.pgel .swatch { width: 14px; height: 14px; cursor: default; }
.pgel.unknown { color: #f59e0b; }
.pcheck { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--text); cursor: pointer; }
.toggle:has(input:disabled) { opacity: .45; cursor: default; }

/* ---------- console smartphone (bouton Control) ---------- */
.btn-control { display: inline-flex; align-items: center; gap: 6px; }
.control-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .6; }
.btn-control[data-state="console"] .control-dot { background: var(--ok); opacity: 1; box-shadow: 0 0 8px var(--ok); }
.btn-control[data-state="live"] .control-dot { background: #ff3b5c; opacity: 1; box-shadow: 0 0 8px #ff3b5c; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }

dialog.control-dialog {
  width: min(560px, 94vw); padding: 0; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
dialog.control-dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
dialog.control-dialog[open] { animation: control-in .18s ease-out; }
@keyframes control-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.control-dialog-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 18px; }
.control-dialog-head { display: flex; align-items: flex-start; gap: 12px; }
.control-dialog-head > div { flex: 1; }
.control-dialog-head h2 { margin: 0 0 2px; font-size: 19px; }
.control-dialog-head small { font-size: 13px; }
.control-dialog-main { display: flex; gap: 20px; align-items: center; }
.control-qr { flex: none; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 4px rgba(232,163,23,.25); }
.control-qr svg { display: block; width: 176px; height: 176px; color: #000; }
.control-dialog-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.control-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.control-status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.control-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.control-status[data-state="wait"] { color: var(--accent-2); }
.control-status[data-state="console"] { color: var(--ok); }
.control-status[data-state="live"] { color: #ff5c78; }
.control-status[data-state="error"] { color: var(--danger); }
.control-link-actions { display: flex; justify-content: flex-end; margin-top: -8px; }
.control-link-actions form { margin: 0; }
.control-artnet { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.control-artnet h3 { margin: 0; font-size: 14px; }
.control-dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.control-dialog-foot form { margin: 0; }
@media (max-width: 560px) {
  .control-dialog-main { flex-direction: column; }
}

.live-badge[hidden] { display: none; }
.live-badge {
  position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  background: rgba(40, 8, 16, .85); border: 1px solid #ff3b5c; color: #ffd0d8;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; animation: live-pulse 1.4s ease-in-out infinite; }
.live-badge button {
  border: 0; border-radius: 999px; padding: 3px 9px; font: inherit; font-weight: 600; letter-spacing: 0;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.live-badge button:hover { background: rgba(255,255,255,.22); }
.live-badge button[aria-pressed="true"] { background: #ff3b5c; }

/* propriétaire : personnes qui regardent la Live View */
.live-viewers {
  position: absolute; top: 12px; left: 12px; z-index: 5; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: rgba(40, 8, 16, .85); border: 1px solid #ff3b5c; color: #ffd0d8;
}
.live-viewers[hidden] { display: none; }
.live-viewers svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.viewport-fullscreen {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid #687080; border-radius: 8px; background: #151922; color: #fff; cursor: pointer;
}
.viewport-fullscreen[hidden] { display: none; }
.viewport-fullscreen svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.viewport-wrap:has(.viewport-fullscreen:not([hidden])) .live-badge { right: 58px; }
.viewport-wrap:fullscreen { width: 100%; height: 100%; background: #0b0d12; }
.editor-body > [inert] { opacity: .55; }

/* partage avec les autres utilisateurs (menu Partager) */
.share-community-btn { width: 100%; justify-content: center; }
.community-dialog .field { margin: 0; }
.community-dialog .field-row { grid-template-columns: 130px 1fr; }
.community-dialog textarea { resize: vertical; }
.lib-status { padding: 6px 12px 10px; font-size: 12px; color: var(--muted); margin: 0; }

/* Parc de la salle : matériel non relié à la bibliothèque, stock dépassé */
.lib-item.disabled { opacity: .55; cursor: help; }
.lib-item.over .lib-meta { color: #fca5a5; }

/* Points d'un contour (plateau libre, zones, murs) et ouvertures des murs */
.ppoints input { width: 100%; min-width: 0; }
.ppoints td.pbtns { white-space: nowrap; width: 1%; }
.ppoints td.pbtns .btn { padding: 1px 6px; min-width: 0; }
.ppoints td.pbtns .btn + .btn { margin-left: 2px; }
/* =========================================================
   Site public : accueil, fonctionnalités, démonstration, tarifs
   Convention : l'état de base de chaque élément animé est son état final,
   pour que tout reste lisible sans animation (prefers-reduced-motion).
   ========================================================= */

body.public { font-size: 15px; line-height: 1.6; }
body.public main { overflow-x: clip; }
.mk-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }
kbd {
  display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px; background: var(--panel-2); font: 600 12px var(--font); color: var(--text);
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.mk-lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.mk-more { text-align: center; margin: 32px 0 0; font-weight: 500; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 21, 28, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49, 56, 73, .7);
}
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); padding: 8px 12px; border-radius: 6px; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--text); text-decoration: none; }
.site-nav a.active { background: var(--panel); }
.site-header-actions { margin-left: auto; display: flex; gap: 8px; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 10px 6px; display: grid; gap: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
.mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav nav {
  position: absolute; left: 0; right: 0; top: 64px; padding: 12px 16px 20px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); display: grid; gap: 4px;
}
.mobile-nav nav a:not(.btn) { color: var(--text); padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav nav .btn { margin-top: 12px; padding: 12px; font-size: 15px; }

/* ---------- apparition au défilement ---------- */
.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.mk-hero { position: relative; padding: 88px 0 72px; text-align: center; }
.mk-hero-glow {
  position: absolute; inset: -120px 0 auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0, rgba(232, 163, 23, .20), transparent 70%),
    radial-gradient(ellipse 30% 40% at 20% 30%, rgba(94, 160, 255, .10), transparent 70%),
    radial-gradient(ellipse 30% 40% at 80% 30%, rgba(180, 120, 255, .08), transparent 70%);
}
.mk-hero .mk-container { position: relative; }
.mk-hero h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.06; letter-spacing: -.025em; max-width: 900px; margin: 0 auto 22px; }
.mk-hero .mk-lead { margin: 0 auto 32px; }
.mk-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mk-reassure { list-style: none; display: flex; justify-content: center; gap: 24px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.mk-reassure li::before { content: "✓"; color: var(--ok); margin-right: 7px; font-weight: 700; }
.mk-hero-visual { margin-top: 64px; }

/* fenêtre d'application (hero et démonstration) */
.window-bar {
  display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4152; }
.window-dots i:first-child { background: #ef6a5e; }
.window-dots i:nth-child(2) { background: #f4bf4f; }
.window-dots i:last-child { background: #61c554; }
.window-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-tabs { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.window-tabs span { padding: 3px 10px; border-left: 1px solid var(--line); }
.window-tabs span:first-child { border-left: 0; }
.window-tabs span.active { background: var(--accent); color: #1a1205; font-weight: 600; }
.window-save { color: var(--ok); white-space: nowrap; }

.app-mock {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0b0d12; text-align: left;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02), 0 -20px 80px -40px rgba(232, 163, 23, .35);
}
.app-mock-body { display: grid; grid-template-columns: 190px 1fr 210px; }
.app-mock-library, .app-mock-panel { background: var(--panel); padding: 14px 12px; font-size: 12px; }
.app-mock-library { border-right: 1px solid var(--line); }
.app-mock-panel { border-left: 1px solid var(--line); }
.app-mock-heading { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.app-mock-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; color: #c6cbd6; }
.app-mock-item.picked { background: rgba(232, 163, 23, .14); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-conventional { background: #ffd59a; }
.dot-moving { background: #93c5fd; }
.dot-effect { background: #f0abfc; }
.dot-sound { background: #c4b5fd; }
.app-mock-field { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.app-mock-field span { color: var(--muted); }
.app-mock-field b { font-weight: 600; text-align: right; }
.app-mock-swatches { display: flex; gap: 6px; margin-top: 14px; }
.app-mock-swatches i { width: 22px; height: 22px; border-radius: 5px; background: var(--c); }
.app-mock-swatches i:first-child { outline: 2px solid var(--text); outline-offset: 2px; }
.app-mock-scene { position: relative; }
.hero-svg { display: block; width: 100%; height: auto; }
.app-mock-tooltip {
  position: absolute; left: 51%; top: 14%; padding: 5px 10px; border-radius: 999px; font-size: 12px;
  background: var(--accent); color: #1a1205; box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  animation: mk-float 4s ease-in-out infinite;
}
@keyframes mk-float { 50% { transform: translateY(-5px); } }

/* scène 3D du hero */
.hs-truss { fill: none; stroke: #7c8598; stroke-width: 1.3; }
.hs-chain { stroke: #545c6c; stroke-width: 1.5; stroke-dasharray: 3 2; }
.hs-hoist { fill: #e8a317; }
.hs-head { fill: #2c313d; stroke: #8f98ab; stroke-width: 1; }
.hs-profile { fill: #3a404d; stroke: #8f98ab; stroke-width: .8; }
.hs-profile circle { fill: #ffe2b0; stroke: none; }
.hs-band { fill: #06070a; }
.hs-riser { fill: #1d212b; }
.hs-riser-top { fill: #272c37; }
.hs-mic { fill: none; stroke: #06070a; stroke-width: 2; }
.hs-beams { mix-blend-mode: screen; }
.hs-beam { transform-origin: 0 0; animation: hs-sweep var(--dur) ease-in-out var(--delay) infinite alternate; transform: rotate(var(--from)); }
@keyframes hs-sweep { from { transform: rotate(var(--from)); } to { transform: rotate(var(--to)); } }
.hs-cyc-top { stop-color: #2347a0; animation: hs-cyc 14s ease-in-out infinite; }
@keyframes hs-cyc { 0%, 100% { stop-color: #2347a0; } 33% { stop-color: #6b2390; } 66% { stop-color: #a8461d; } }
.hs-pulse { animation: hs-pulse 6s ease-in-out infinite; }
@keyframes hs-pulse { 50% { opacity: .55; } }

/* ---------- bandeau public visé ---------- */
.mk-audience { border-block: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; text-align: center; }
.mk-audience p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.mk-audience ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; font-weight: 600; color: #c6cbd6; }

/* ---------- sections ---------- */
.mk-section { padding: 96px 0; }
.mk-section-tight { padding-top: 24px; }
.mk-section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.mk-section h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; }
.mk-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.mk-section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 0; }
:where(.mk-section) p { color: #b9bfcc; }
.mk-page-head { padding: 80px 0 48px; position: relative; }
.mk-page-head::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse 45% 70% at 30% 0, rgba(232, 163, 23, .14), transparent 70%);
}
.mk-page-head .mk-container { position: relative; }
.mk-page-head h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.025em; line-height: 1.08; max-width: 820px; margin-bottom: 18px; }
.mk-page-head-center { text-align: center; }
.mk-page-head-center h1, .mk-page-head-center .mk-lead { margin-left: auto; margin-right: auto; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: #c6cbd6; font-size: 13px; background: var(--panel); }
.mk-chips a:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
section[id] { scroll-margin-top: 72px; }

.mk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mk-features-4 { grid-template-columns: repeat(4, 1fr); }
.mk-features + .mk-checks { max-width: 720px; margin: 32px auto 0; }
.mk-feature { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; transition: border-color .2s, transform .2s; }
.mk-feature:hover { border-color: #4a5470; }
.mk-feature h3 { font-size: 17px; margin: 16px 0 8px; }
.mk-feature p { margin: 0; color: var(--muted); }
.mk-icon {
  width: 42px; height: 42px; padding: 9px; border-radius: 10px;
  background: rgba(232, 163, 23, .12); fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.mk-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.mk-split-reverse > :first-child { order: 2; }
.mk-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.mk-checks li { position: relative; padding-left: 28px; color: #c6cbd6; }
.mk-checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(34, 197, 94, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.mk-gestures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mk-gestures h3 { font-size: 17px; margin: 18px 0 6px; }
.mk-gestures p { margin: 0; color: var(--muted); }

.mk-timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.mk-timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.mk-timeline li { display: flex; gap: 22px; padding: 0 0 30px; position: relative; }
.mk-timeline-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent-2); font-weight: 700;
}
.mk-timeline h3 { font-size: 17px; margin: 7px 0 4px; }
.mk-timeline p { margin: 0; color: var(--muted); }

.mk-price-teaser {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: center;
  padding: 40px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(232, 163, 23, .10), transparent 50%), var(--panel);
}
.mk-price-teaser h2 { margin-bottom: 10px; }
.mk-price-teaser p:last-child { margin: 0; color: var(--muted); }
.mk-price-teaser-plans { display: flex; gap: 10px; }
.mk-price-teaser-plans div { flex: 1; padding: 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); text-align: center; }
.mk-price-teaser-plans div.featured { border-color: var(--accent); }
.mk-price-teaser-plans span { display: block; color: var(--muted); font-size: 13px; }
.mk-price-teaser-plans strong { font-size: 24px; white-space: nowrap; }
.mk-price-teaser-plans small { display: block; color: var(--muted); font-size: 12px; }

.mk-final-cta { padding: 110px 0; text-align: center; position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.mk-final-cta::before {
  content: ""; position: absolute; inset: auto 0 -200px; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse 45% 60% at 50% 100%, rgba(232, 163, 23, .22), transparent 70%);
}
.mk-final-cta .mk-container { position: relative; }
.mk-final-cta h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; margin-bottom: 12px; }
.mk-final-cta p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

/* ---------- pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: 14px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer-brand p { color: var(--muted); max-width: 320px; margin: 12px 0 0; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.site-footer-inner > div:not(.site-footer-brand) { display: grid; gap: 8px; align-content: start; }
.site-footer-inner a:not(.brand) { color: #c6cbd6; }
.site-footer-legal { max-width: 1180px; margin: 40px auto 0; padding: 20px 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* =========================================================
   Démonstration animée : construction d'un plan de feux
   ========================================================= */
.builder { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.builder-detailed { grid-template-columns: 330px 1fr; }
.builder-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.builder-step {
  position: relative; overflow: hidden; width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 11px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--muted); font: inherit; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.builder-step:hover { background: var(--panel); color: var(--text); }
.builder-step.current { background: var(--panel); border-color: var(--line); color: var(--text); }
.builder-step-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; transition: all .25s;
}
.builder-step.done .builder-step-num { background: rgba(232, 163, 23, .16); border-color: transparent; color: var(--accent-2); }
.builder-step.current .builder-step-num { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.builder-step-body { display: grid; gap: 2px; padding-top: 2px; }
.builder-step-body strong { font-weight: 600; }
.builder-step-text { font-size: 14px; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease; }
.builder-step.current .builder-step-text { max-height: 140px; opacity: 1; }
.builder-step-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.builder-step.running .builder-step-progress { animation: builder-progress var(--duration) linear forwards; }
@keyframes builder-progress { to { transform: scaleX(1); } }

.builder-window { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0d1016; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.builder-canvas { position: relative; }
.builder-svg { display: block; width: 100%; height: auto; }
.builder-caption {
  position: absolute; left: 14px; top: 12px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(232, 163, 23, .14); color: var(--accent-2); border: 1px solid rgba(232, 163, 23, .3);
  opacity: 0; transition: opacity .3s;
}
.builder-caption.on { opacity: 1; }
.builder-controls { display: flex; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: var(--bg-2); }
.builder-toggle { min-width: 84px; }

.pb-grid-line { stroke: rgba(255, 255, 255, .045); stroke-width: 1; }
.pb-stage { fill: #1a1f29; stroke: #56607a; stroke-width: 2; }
.pb-axis { stroke: #3a4252; stroke-width: 1; stroke-dasharray: 8 4 2 4; }
.pb-dim { stroke: #6b7385; stroke-width: 1; fill: none; }
.pb-dim-text { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.pb-vertical { transform: rotate(90deg); transform-box: fill-box; transform-origin: center; }
.pb-public { fill: #5d6578; font-size: 13px; font-weight: 700; letter-spacing: 8px; text-anchor: middle; }
.pb-drape { fill: #6a6276; }
.pb-platform { fill: url(#pb-hatch); stroke: #5c667e; stroke-width: 1.2; }
.pb-hatch-line { stroke: #353d4e; stroke-width: 2; }
.pb-musician { fill: #262c39; stroke: #a7afc0; stroke-width: 1.5; }
.pb-musician-label { fill: #a7afc0; font-size: 9.5px; text-anchor: middle; }
.pb-truss { fill: #20252f; stroke: #a7afc0; stroke-width: 1.2; }
.pb-truss-lace { stroke: #5d6578; stroke-width: .8; }
.pb-hoist { fill: var(--accent); }
.pb-tower { fill: #1a1f29; stroke: #a7afc0; stroke-width: 1.5; }
.pb-truss-label { fill: #c2c8d4; font-size: 11px; }
.pb-light { mix-blend-mode: screen; }
.sym > * { fill: var(--c); stroke: #0b0d12; stroke-width: 1; }
.sym .sym-lens { fill: #0b0d12; opacity: .55; stroke: none; }
.sym .sym-cross { fill: none; stroke: #0b0d12; stroke-width: 1.6; }
.pb-patch rect { fill: #0b0d12; stroke: var(--accent); stroke-width: .8; }
.pb-unit { fill: var(--accent-2); font-size: 8px; font-weight: 700; text-anchor: middle; }
.pb-addr { fill: #c2c8d4; font-size: 6.5px; text-anchor: middle; }
.pb-frame { fill: none; stroke: #c2c8d4; stroke-width: 1.5; }
.pb-box { fill: #12151c; stroke: #6b7385; }
.pb-box-title { fill: var(--text); font-size: 9px; font-weight: 700; }
.pb-box-text { fill: var(--muted); font-size: 8px; }
.pb-scale { stroke: var(--text); stroke-width: 3; }

/* états des étapes (la classe .on est posée par plot_builder_controller) */
.pb-fade, .pb-pop, .pb-truss-group, .pb-fixture, .pb-patch { opacity: 0; }
.pb-fade { transition: opacity .6s ease; }
.pb-pop {
  transform: scale(.2); transform-box: fill-box; transform-origin: center;
  transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d) * 90ms);
}
.pb-truss-group {
  transform: scaleX(0); transform-box: fill-box; transform-origin: left center;
  transition: transform .8s cubic-bezier(.65, 0, .35, 1), opacity .3s; transition-delay: calc(var(--d) * 80ms);
}
.pb-fixture {
  transform: translateY(-46px);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .25s; transition-delay: calc(var(--d) * 55ms);
}
.pb-patch { transform: translateY(-5px); transition: opacity .3s, transform .3s; transition-delay: calc(var(--d) * 45ms); }
.builder-svg .on { opacity: 1; transform: none; }

/* =========================================================
   Mini-animations des fonctionnalités
   ========================================================= */
.demo-card { background: #0d1016; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.demo-svg { display: block; width: 100%; height: auto; }
.demo-truss { fill: #20252f; }
.demo-truss-lace { fill: none; stroke: #8a93a6; stroke-width: .9; }
.demo-label { fill: var(--muted); font-size: 11px; }
.demo-hint { fill: #5d6578; font-size: 10.5px; }
.demo-dim { stroke: #6b7385; stroke-width: 1; fill: none; }

/* magnétisme (cycle de 6 s) */
.mg-zone { fill: rgba(232, 163, 23, .07); stroke: var(--accent); stroke-dasharray: 4 3; opacity: 0; animation: mg-zone 6s infinite; }
.mg-guide { stroke: var(--accent); stroke-dasharray: 3 2; opacity: 0; animation: mg-guide 6s infinite; }
.mg-flash { fill: none; stroke: var(--accent-2); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mg-flash 6s infinite; }
.mg-fx { transform: translate(210px, 70px); animation: mg-fx 6s infinite; }
.mg-cursor { opacity: 0; animation: mg-cursor 6s infinite; }
.mg-cursor path { fill: #fff; stroke: #0b0d12; stroke-width: 1; }
.mg-tag { animation: mg-tag 6s infinite; }
.mg-tag rect { fill: var(--accent); }
.mg-tag text { fill: #1a1205; font-size: 11px; font-weight: 700; text-anchor: middle; }
@keyframes mg-fx {
  0% { transform: translate(90px, 190px); opacity: 0; }
  8% { transform: translate(90px, 190px); opacity: 1; }
  45% { transform: translate(205px, 108px); }
  52% { transform: translate(210px, 100px); animation-timing-function: cubic-bezier(.34, 1.8, .64, 1); }
  58%, 90% { transform: translate(210px, 70px); opacity: 1; }
  97%, 100% { transform: translate(210px, 70px); opacity: 0; }
}
@keyframes mg-cursor {
  0% { transform: translate(96px, 196px); opacity: 0; }
  8% { transform: translate(96px, 196px); opacity: 1; }
  45% { transform: translate(211px, 114px); }
  52%, 70% { transform: translate(216px, 106px); opacity: 1; }
  78%, 100% { transform: translate(216px, 106px); opacity: 0; }
}
@keyframes mg-zone { 0%, 35% { opacity: 0; } 45%, 56% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes mg-guide { 0%, 46% { opacity: 0; } 50%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes mg-flash { 0%, 57% { opacity: 0; transform: scale(1); } 58% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 0; transform: scale(4.5); } }
@keyframes mg-tag { 0%, 60% { opacity: 0; transform: translateY(6px); } 66%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* répartition (SMIL) */
.dt-anchor { fill: var(--accent); }
.dt-field { fill: #12151c; stroke: var(--line); }
.dt-btn { fill: #262c39; }
.dt-plus { fill: rgba(232, 163, 23, .3); stroke: var(--accent); }
.dt-btn-text { fill: var(--text); font-size: 17px; font-weight: 600; text-anchor: middle; }
.dt-count { fill: var(--text); font-size: 16px; font-weight: 700; text-anchor: middle; }

/* vues (cycle de 12 s, 3 s par vue) */
.vw-tab { fill: transparent; stroke: var(--line); animation: vw-tab 12s infinite; animation-delay: calc(var(--i) * 3s); }
.vw-tab-text { fill: var(--muted); font-size: 11.5px; font-weight: 600; text-anchor: middle; animation: vw-tab-text 12s infinite; animation-delay: calc(var(--i) * 3s); }
.vw-view { opacity: 0; animation: vw-view 12s infinite; animation-delay: calc(var(--i) * 3s); }
@keyframes vw-view { 0% { opacity: 0; } 3%, 23% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes vw-tab { 0%, 24% { fill: var(--accent); stroke: var(--accent); } 25%, 100% { fill: transparent; stroke: var(--line); } }
@keyframes vw-tab-text { 0%, 24% { fill: #1a1205; } 25%, 100% { fill: var(--muted); } }
.vw-stage { fill: #1a1f29; stroke: #56607a; stroke-width: 1.5; }
.vw-stage-side { fill: #2a2f3b; stroke: #56607a; }
.vw-truss { fill: #20252f; stroke: #a7afc0; stroke-width: 1.2; }
.vw-truss-active { stroke: var(--accent); }
.vw-truss3d { stroke: #a7afc0; stroke-width: 5; stroke-linecap: round; }
.vw-post { stroke: #5d6578; stroke-width: 2; }
.vw-fx { fill: #ffd9a0; }
.vw-fx-blue { fill: #5ea0ff; }
.vw-beam { fill: rgba(255, 217, 160, .14); }
.vw-beam-blue { fill: rgba(94, 160, 255, .18); }
.vw-person { fill: #3a4152; }
.vw-ray { stroke: rgba(255, 217, 160, .5); stroke-dasharray: 4 3; }
.vw-ray-blue { stroke: rgba(94, 160, 255, .65); }
.vw-handle { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.vw-lift { transform: translateY(-16px); animation: vw-lift 12s 9s infinite both; }
.vw-height-a { opacity: 0; animation: vw-height-a 12s 9s infinite both; }
.vw-height-b { animation: vw-height-b 12s 9s infinite both; }
@keyframes vw-lift { 0%, 6% { transform: none; } 14%, 100% { transform: translateY(-16px); } }
@keyframes vw-height-a { 0%, 8% { opacity: 1; } 10%, 100% { opacity: 0; } }
@keyframes vw-height-b { 0%, 8% { opacity: 0; } 10%, 100% { opacity: 1; } }

/* patch DMX (cycle de 8 s) */
.demo-patch { background: #0d1016; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.demo-patch-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.demo-patch-btn { padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #1a1205; font-size: 12px; animation: pt-press 8s infinite; }
@keyframes pt-press { 0%, 4% { transform: scale(1); } 2% { transform: scale(.92); } }
.demo-patch table { width: 100%; border-collapse: collapse; font-size: 14px; }
.demo-patch th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 16px; background: var(--panel); }
.demo-patch td { padding: 9px 16px; border-top: 1px solid var(--line); }
.demo-patch td.num { font-variant-numeric: tabular-nums; }
.demo-patch tbody tr { animation: pt-row 8s infinite both; animation-delay: calc(var(--i) * .25s); }
@keyframes pt-row { 0% { opacity: 0; transform: translateX(-10px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pt-addr { color: var(--accent-2); font-weight: 600; }
.pt-swap { display: inline-grid; }
.pt-swap > span { grid-area: 1 / 1; white-space: nowrap; }
.pt-conflict { color: #fecaca; background: #5b2b2b; padding: 0 8px; border-radius: 4px; font-weight: 600; opacity: 0; animation: pt-conflict 8s .75s infinite both; }
.pt-fixed { color: var(--ok); font-weight: 600; animation: pt-fixed 8s .75s infinite both; }
@keyframes pt-conflict { 0%, 4% { opacity: 0; } 8%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes pt-fixed { 0%, 44% { opacity: 0; } 48%, 100% { opacity: 1; } }

/* charges par pont */
.demo-loads { background: #0d1016; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 18px; }
.load-row { display: grid; grid-template-columns: 170px 1fr 112px; gap: 14px; align-items: center; }
.load-name strong { display: block; font-size: 14px; }
.load-name span { color: var(--muted); font-size: 12px; }
.load-track { height: 10px; border-radius: 999px; background: var(--panel-2); position: relative; overflow: hidden; }
.load-bar {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--ratio) * 100%); border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), var(--accent)); transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.3s + var(--i) * .15s);
}
.reveal-ready .demo-loads:not(.is-visible) .load-bar { transform: scaleX(0); }
.load-value { white-space: nowrap; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.load-value span { color: var(--muted); font-weight: 400; }
.load-total { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.load-total strong { color: var(--text); }

/* bibliothèque (cycle de 8 s) */
.demo-library { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; background: #0d1016; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.lb-drop { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: center; position: relative; min-height: 220px; }
.lb-drop-label { color: var(--muted); font-size: 12px; text-align: center; margin-top: 6px; }
.lb-file {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: #c6cbd6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  animation: lb-file 8s infinite both; animation-delay: calc(var(--i) * .35s);
}
.lb-file b { font-size: 10px; color: var(--accent-2); background: rgba(232, 163, 23, .14); padding: 1px 5px; border-radius: 3px; }
@keyframes lb-file {
  0% { opacity: 0; transform: translateY(-24px); }
  6%, 30% { opacity: 1; transform: none; }
  38% { opacity: 0; transform: translateX(30px) scale(.9); }
  100% { opacity: 0; transform: translateX(30px) scale(.9); }
}
.lb-list { display: grid; gap: 8px; align-content: center; }
.lb-row {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px;
  border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 13px;
  animation: lb-row 8s infinite both; animation-delay: calc(1.6s + var(--i) * .35s);
}
.lb-row .muted { grid-column: 1 / -1; font-size: 12px; }
@keyframes lb-row { 0% { opacity: 0; transform: translateX(-12px); } 5%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }

/* pages du PDF en éventail */
.pdf-fan { position: relative; height: 340px; }
.pdf-page {
  --spread: 74px;
  position: absolute; left: 50%; top: 50%; width: 210px; height: 149px; margin: -90px 0 0 -105px;
  background: #f5f3ee; border-radius: 4px; padding: 10px; color: #2b2b2b;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .2);
  transform:
    translate(calc((var(--i) - 2) * var(--spread)), calc((var(--i) - 2) * (var(--i) - 2) * 8px - var(--lift, 0px)))
    rotate(calc((var(--i) - 2) * 7deg));
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
  transition-delay: calc(var(--i) * 60ms);
  display: flex; flex-direction: column;
}
.reveal-ready .pdf-fan:not(.is-visible) .pdf-page { transform: rotate(calc((var(--i) - 2) * 1.5deg)); }
.pdf-page:hover { --lift: 16px; z-index: 5; transition-delay: 0s; }
.pdf-page figcaption { margin-top: auto; padding-top: 6px; font-size: 11px; font-weight: 600; color: #555; border-top: 1px solid #ddd8cc; }
.pdf-cover {
  flex: 1; border-radius: 2px; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px;
  background: radial-gradient(ellipse at 30% 0, rgba(255, 195, 77, .7), transparent 55%), radial-gradient(ellipse at 75% 0, rgba(94, 160, 255, .6), transparent 55%), #14171f;
}
.pdf-cover span { color: #fff; font-weight: 800; letter-spacing: .1em; font-size: 15px; }
.pdf-cover small { color: #c6cbd6; font-size: 9px; }
.pdf-plan { width: 100%; flex: 1; min-height: 0; }
.pdf-plan .p-stage { fill: none; stroke: #444; stroke-width: 1.2; }
.pdf-plan .p-truss { stroke: #555; stroke-width: 3; }
.pdf-plan .p-warm { fill: #e8a317; }
.pdf-plan .p-blue { fill: #3b6fd8; }
.pdf-plan .p-white { fill: #fff; stroke: #333; }
.pdf-plan .p-box { fill: none; stroke: #444; }
.pdf-plan .p-beam { fill: rgba(232, 163, 23, .3); }
.pdf-plan .p-node { fill: #555; }
.pdf-table { flex: 1; display: grid; align-content: start; gap: 5px; padding-top: 2px; }
.pdf-table i { display: block; height: 6px; width: var(--w); background: #d9d5ca; border-radius: 1px; }
.pdf-table i:first-child { background: #9b968a; }
.pdf-bars i { height: 12px; background: linear-gradient(90deg, #22c55e, #e8a317); margin-bottom: 4px; }

/* modèles de départ */
.templates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.templates figure { margin: 0; background: #0d1016; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.templates figure:hover { border-color: var(--accent); }
.templates svg { display: block; width: 100%; }
.templates figcaption { display: grid; margin-top: 8px; }
.templates figcaption span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.templates .p-stage { fill: #1a1f29; stroke: #56607a; stroke-width: 1.5; }
.templates .p-axis { stroke: #3a4252; stroke-dasharray: 5 3; }
.templates .p-truss { stroke: #a7afc0; stroke-width: 3; }
.templates .p-plat { fill: #262c39; stroke: #5c667e; }
.templates .p-person { fill: #262c39; stroke: #a7afc0; stroke-width: 1.2; }
.templates .p-box { fill: #3a4152; }
.templates .p-cyc { stroke: #5ea0ff; stroke-width: 3; }
.templates .p-drape { stroke: #6a6276; stroke-width: 4; }
.templates .p-check { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Tarifs
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; max-width: 1020px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.plan h2 { font-size: 20px; margin: 0 0 6px; }
.plan-pitch { color: var(--muted); font-size: 14px; margin: 0 0 20px; min-height: 66px; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { color: var(--text); font-size: 42px; letter-spacing: -.03em; line-height: 1; }
.plan-price > span { color: var(--muted); font-size: 14px; }
.plan-billing { color: var(--muted); font-size: 13px; margin: 8px 0 20px; min-height: 20px; }
.plan .btn { padding: 11px; font-size: 14px; }
.plan-limits { font-size: 13px; color: #c6cbd6; font-weight: 600; margin: 18px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan-features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: 14px; color: #c6cbd6; }
.plan-features li { padding-left: 24px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.plan-features li.plan-features-head { padding-left: 0; color: var(--muted); font-weight: 600; }
.plan-features li.plan-features-head::before { content: none; }
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(232, 163, 23, .09), transparent 40%), var(--panel);
  box-shadow: 0 30px 80px -40px rgba(232, 163, 23, .5);
}
.plan-badge {
  position: absolute; top: -12px; left: 24px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: #1a1205; font-size: 12px; font-weight: 700;
}
.plan-free { background: transparent; border-style: dashed; }

.plans-note { text-align: center; color: var(--muted); font-size: 13px; margin: 24px auto 0; max-width: 720px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--panel-2); }
.compare tbody th { text-align: left; font-weight: 500; color: #c6cbd6; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .featured { background: rgba(232, 163, 23, .06); }
.compare thead .featured { color: var(--accent-2); }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: #4b5368; }

.mk-faq-wrap { max-width: 820px; }
.mk-faq details { border-bottom: 1px solid var(--line); }
.mk-faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 16px; position: relative;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.mk-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.mk-faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- mentions légales ---------- */
.legal { max-width: 820px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 20px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.legal h2 { font-size: 24px; margin: 48px 0 16px; scroll-margin-top: 88px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal ul { padding-left: 20px; color: #b9bfcc; display: grid; gap: 8px; }
.legal dl { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 10px 24px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal-updated { margin-top: 48px; font-size: 13px; }
@media (max-width: 640px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
.site-footer-legal a { color: #c6cbd6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .plan-pitch { min-height: 0; }
  .app-mock-body { grid-template-columns: 170px 1fr; }
  .app-mock-panel { display: none; }
  .mk-price-teaser { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .mk-section { padding: 72px 0; }
  .mk-split, .builder, .builder-detailed { grid-template-columns: 1fr; gap: 32px; }
  .mk-split-reverse > :first-child { order: 0; }
  .mk-features, .mk-features-4, .mk-gestures { grid-template-columns: 1fr 1fr; }
  .builder-steps { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .builder-steps li { flex: none; }
  .builder-step { padding: 8px 12px; border-color: var(--line); }
  .builder-step-text { display: none; }
  .builder-detailed .builder-steps { display: grid; overflow: visible; }
  .builder-detailed .builder-step-text { display: block; }
  .builder-detailed .builder-step:not(.current) .builder-step-text { display: none; }
  .builder-detailed .builder-steps li:not(:has(.current)) { display: none; }
  .app-mock-library { display: none; }
  .app-mock-body { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-nav, .site-header-actions { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 640px) {
  .mk-container, .site-header-inner, .site-footer-inner { padding: 0 16px; }
  .mk-hero { padding: 56px 0 48px; }
  .mk-hero-visual { margin-top: 40px; }
  .mk-lead { font-size: 16px; }
  .mk-cta .btn { width: 100%; }
  .mk-features, .mk-features-4, .mk-gestures, .plans, .templates { grid-template-columns: 1fr; }
  .window-title, .window-save { display: none; }
  .app-mock-tooltip { display: none; }
  .mk-price-teaser { padding: 24px; }
  .mk-price-teaser-plans strong { font-size: 19px; }
  .demo-library { grid-template-columns: 1fr; }
  .lb-drop { min-height: 0; }
  .load-row { grid-template-columns: 1fr 84px; }
  .load-track { grid-column: 1 / -1; grid-row: 2; }
  .pdf-fan { height: 280px; }
  .pdf-page { --spread: 38px; width: 160px; height: 113px; margin: -70px 0 0 -80px; padding: 7px; }
  .pdf-page figcaption { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .vw-view.vw-default { opacity: 1; }
  .vw-tab-default .vw-tab { fill: var(--accent); stroke: var(--accent); }
  .vw-tab-default .vw-tab-text { fill: #1a1205; }
  .vw-height-a { opacity: 0; }
  .ca-view.ca-default { opacity: 1; }
  .ca-tab-default .ca-tab { fill: var(--accent); stroke: var(--accent); }
  .ca-tab-default .ca-tab-text { fill: #1a1205; }
}

/* ---------- partage (liens simples, sans script tiers) ---------- */
.share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.share-kit { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; }
.share-btn {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: #5b6474; transition: transform .15s, background .15s;
}
.share-btn[hidden] { display: none; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover, .share-btn:focus-visible { transform: translateY(-2px); color: #fff; }
.share-facebook { background: #0866ff; }
.share-whatsapp { background: #25d366; }
.share-sms { background: #34b37a; }
.share-messenger { background: linear-gradient(45deg, #0866ff, #a033ff 60%, #ff5c87); }
.share-linkedin { background: #0a66c2; }
.share-x { background: #000; box-shadow: inset 0 0 0 1px #3a4152; }
.share-copy-link.copied { background: var(--ok); }
.share-native { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-native svg { width: 22px; height: 22px; }
.mk-share { display: flex; justify-content: center; margin-top: 28px; }
.site-footer-share { max-width: 1180px; margin: 32px auto 0; padding: 0 24px; }

/* plans partagés (liste de la création d'un plan) */
.community-demo { display: grid; gap: 8px; }
.community-demo-head { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.community-demo-head span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--muted); background: #12151c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community-demo-head .community-demo-select { color: var(--text); border-color: var(--accent); }
.community-demo-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.community-demo-item.selected { border-color: var(--accent); background: rgba(232,163,23,.08); }
.community-demo-item > div { display: grid; gap: 1px; min-width: 0; }
.community-demo-item strong { font-size: 14px; }
.community-demo-item small { color: var(--muted); font-size: 12px; }
.community-demo-item p { margin: 2px 0; font-size: 13px; color: #c6cbd6; }
.community-demo-radio { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid #56607a; }
.community-demo-item.selected .community-demo-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px #0d1016; background: var(--accent); }

/* console et Art-Net (cycle de 8 s) — sans animation, l'état « allumé » reste affiché */
.ct-phone { fill: #0b0d12; stroke: #3a4252; stroke-width: 1.5; }
.ct-screen { fill: #12151c; }
.ct-title { fill: var(--text); font-size: 10px; font-weight: 700; }
.ct-small { fill: var(--muted); font-size: 9px; }
.ct-bo { fill: #262c39; stroke: #4a5266; animation: ct-bo 8s infinite; }
.ct-bo-text { fill: var(--text); font-size: 6.5px; font-weight: 700; text-anchor: middle; }
.ct-chip { fill: #262c39; stroke: #4a5266; }
.ct-chip-on { fill: var(--accent); stroke: var(--accent); }
.ct-chip-text { fill: #1a1205; font-size: 7.5px; font-weight: 700; text-anchor: middle; }
.ct-chip-text-off { fill: var(--muted); }
.ct-track { fill: #262c39; }
.ct-level { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; animation: ct-level 8s infinite; }
.ct-knob { fill: #e7e9ee; stroke: #0b0d12; transform: translateY(-80px); animation: ct-knob 8s infinite; }
.ct-swatch { stroke: #0b0d12; stroke-width: 1; }
.ct-ring { fill: none; stroke: #fff; stroke-width: 1.6; animation: ct-ring 8s infinite; }
.ct-artnet { fill: rgba(34, 197, 94, .15); stroke: var(--ok); }
.ct-artnet-text { fill: var(--ok); font-size: 8px; font-weight: 700; text-anchor: middle; }
.ct-link { stroke: #3a4252; stroke-width: 1.5; stroke-dasharray: 3 3; }
.ct-flow { animation: ct-flow 8s infinite; }
.ct-packet { fill: var(--accent-2); animation: ct-packet 1.2s linear infinite; }
.ct-window { fill: #0d1016; stroke: var(--line); }
.ct-live { fill: #ff3b5c; animation: hs-pulse 1.4s ease-in-out infinite; }
.ct-floor { stroke: #3a4252; stroke-width: 2; }
.ct-node { fill: #1e232e; stroke: #56607a; }
.ct-node-text { fill: var(--text); font-size: 10px; font-weight: 700; text-anchor: middle; }
.ct-cable { fill: none; stroke: #56607a; stroke-width: 1.5; }
.ct-beam { fill: #ffc061; opacity: .55; animation: ct-beam 8s infinite; }
.ct-beam-real { opacity: .45; animation-name: ct-beam-real; }
@keyframes ct-knob { 0%, 12% { transform: none; } 36%, 92% { transform: translateY(-80px); } 100% { transform: none; } }
@keyframes ct-level { 0%, 12% { transform: scaleY(.1); } 36%, 92% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes ct-ring { 0%, 44% { transform: none; } 48%, 62% { transform: translateY(24px); } 66%, 96% { transform: translateY(48px); } 100% { transform: none; } }
@keyframes ct-bo { 0%, 79% { fill: #262c39; stroke: #4a5266; } 80%, 92% { fill: var(--danger); stroke: var(--danger); } 93%, 100% { fill: #262c39; stroke: #4a5266; } }
@keyframes ct-flow { 0%, 10% { opacity: 0; } 14%, 78% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes ct-packet { from { transform: none; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(62px); opacity: 0; } }
@keyframes ct-beam {
  0%, 12% { opacity: 0; fill: #ffc061; }
  36%, 44% { opacity: .55; fill: #ffc061; }
  48%, 62% { opacity: .55; fill: #4f7bff; }
  66%, 79% { opacity: .55; fill: #d04bff; }
  80%, 100% { opacity: 0; fill: #d04bff; }
}
@keyframes ct-beam-real {
  0%, 14% { opacity: 0; fill: #ffc061; }
  38%, 46% { opacity: .45; fill: #ffc061; }
  50%, 64% { opacity: .45; fill: #4f7bff; }
  68%, 80% { opacity: .45; fill: #d04bff; }
  81%, 100% { opacity: 0; fill: #d04bff; }
}
.mk-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* console : onglets de la fiche DMX (cycle de 12 s, 3 s par onglet) — sans animation, l'onglet Couleur reste affiché */
.ca-tab { fill: #262c39; stroke: #4a5266; animation: vw-tab 12s infinite; animation-delay: calc(var(--i) * 3s); }
.ca-tab-text { fill: var(--muted); font-size: 7.5px; font-weight: 700; text-anchor: middle; animation: vw-tab-text 12s infinite; animation-delay: calc(var(--i) * 3s); }
.ca-view { opacity: 0; animation: vw-view 12s infinite; animation-delay: calc(var(--i) * 3s); }
.ca-sep { stroke: #262c39; }
.ca-label { fill: var(--muted); font-size: 7.5px; }
.ca-ring { fill: none; stroke: #fff; stroke-width: 1.6; }
.ca-fill { fill: var(--accent); }
.ca-gobo { fill: #262c39; stroke: #4a5266; }
.ca-gobo-on { stroke: var(--accent); stroke-width: 1.6; }
.ca-gobo-mark { fill: none; stroke: #c3c8d4; stroke-width: 1.4; }
.ca-gobo-dot { fill: #c3c8d4; }
.ca-gobo-spot { fill: #f2f4f8; opacity: .8; }
.ca-beam { opacity: .45; }
.ca-beam-soft { opacity: .25; }
.ca-pool { opacity: .5; }
.ca-bar { fill: #20252f; stroke: #56607a; }
.ca-cell { fill: #d04bff; animation: ca-cell 1.2s linear infinite; }
@keyframes ca-cell { 0%, 100% { fill: #2a2f3b; } 20% { fill: #ff5a5a; } 45% { fill: #d04bff; } 70% { fill: #4f7bff; } }

/* sorties Art-Net (cycle de 8 s) — sans animation, l'émission reste active et les projecteurs allumés */
.ao-option { fill: rgba(232, 163, 23, .1); stroke: var(--accent); }
.ao-radio { fill: var(--accent); stroke: #0b0d12; stroke-width: 1.5; }
.ao-option-text { fill: var(--text); font-size: 7.5px; font-weight: 700; }
.ao-option-small { fill: var(--muted); font-size: 6.5px; }
.ao-row { fill: #181c25; stroke: #2e3442; }
.ao-row-text { fill: var(--text); font-size: 7px; font-weight: 600; }
.ao-button { animation: ao-button 8s infinite; }
.ao-button-text { animation: ao-button-text 8s infinite; }
.ao-flow { animation: ct-flow 8s infinite; }
.ao-wave { fill: none; stroke: var(--accent-2); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ao-wave 1.8s ease-out infinite; }
.ao-packet { animation: ao-packet 1.2s linear infinite; }
.ao-packet-short { animation-name: ao-packet-short; }
.ao-port { animation: ao-port 8s infinite; }
.ao-port-text { fill: #0b0d12; font-size: 6.5px; font-weight: 800; text-anchor: middle; }
.ao-beam { opacity: .5; animation: ao-beam 8s infinite; }
.ao-laptop-base { stroke: #3a4252; stroke-width: 3; stroke-linecap: round; }
.ao-meter { transform-box: fill-box; transform-origin: bottom; animation: ao-meter 1s ease-in-out infinite alternate; }
@keyframes ao-button { 0%, 9% { fill: #262c39; stroke: #4a5266; } 12%, 84% { fill: rgba(34, 197, 94, .15); stroke: var(--ok); } 88%, 100% { fill: #262c39; stroke: #4a5266; } }
@keyframes ao-button-text { 0%, 9% { fill: var(--muted); } 12%, 84% { fill: var(--ok); } 88%, 100% { fill: var(--muted); } }
@keyframes ao-wave { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes ao-packet { from { transform: none; opacity: 0; } 15%, 85% { opacity: 1; } to { transform: translateX(30px); opacity: 0; } }
@keyframes ao-packet-short { from { transform: none; opacity: 0; } 15%, 85% { opacity: 1; } to { transform: translateX(22px); opacity: 0; } }
@keyframes ao-port { 0%, 16% { opacity: .2; } 20%, 84% { opacity: 1; } 88%, 100% { opacity: .2; } }
@keyframes ao-beam { 0%, 18% { opacity: 0; } 26%, 82% { opacity: .5; } 88%, 100% { opacity: 0; } }
@keyframes ao-meter { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* Live View (cycle de 8 s, synchronisé avec la console) — sans animation, la scène reste allumée */
.lvd-viewers { animation: lvd-viewers 8s infinite; }
.lvd-viewers-pill { fill: rgba(255, 59, 92, .18); stroke: #ff3b5c; }
.lvd-eye { fill: none; stroke: #ffd0d8; stroke-width: 1.2; }
.lvd-eye-dot { fill: #ffd0d8; }
.lvd-viewers-text { fill: #ffd0d8; font-size: 8.5px; font-weight: 700; text-anchor: middle; }
.lvd-role { fill: var(--muted); font-size: 8.5px; font-weight: 600; }
.lvd-device { fill: #0b0d12; stroke: #3a4252; stroke-width: 1.5; }
.lvd-screen { fill: #07080c; }
.lvd-live { fill: #ef4444; animation: lvd-live 8s infinite; }
.lvd-live-dot { fill: #fff; animation: hs-pulse 1.4s ease-in-out infinite; }
.lvd-live-text { fill: #fff; font-size: 6px; font-weight: 800; letter-spacing: .3px; text-anchor: middle; }
.lvd-musician { fill: #8d95a8; animation: lvd-musician 8s infinite; }
.lvd-musician-1 { fill: #9aa3b5; }
@keyframes lvd-viewers { 0%, 4% { opacity: 0; } 8%, 100% { opacity: 1; } }
@keyframes lvd-live { 0%, 12% { fill: #3a4252; } 16%, 80% { fill: #ef4444; } 84%, 100% { fill: #3a4252; } }
@keyframes lvd-musician {
  0%, 12% { fill: #3a4252; }
  36%, 44% { fill: #ffd28a; }
  48%, 62% { fill: #a9bcff; }
  66%, 79% { fill: #ecb2ff; }
  84%, 100% { fill: #3a4252; }
}

/* ---------- évolutions ---------- */
.evo-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.evo-stats li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 14px; }
.evo-stats strong { color: var(--accent-2); font-size: 16px; margin-right: 4px; }
.evo-day { margin: 0 0 40px; scroll-margin-top: 80px; }
.evo-day h2 { font-size: 20px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.evo-day h2 span { font-size: 13px; font-weight: 500; color: var(--muted); }
.evo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.evo-table th, .evo-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.evo-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--panel-2); }
.evo-table tbody tr:last-child td { border-bottom: 0; }
.evo-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.evo-body strong { display: block; font-size: 15px; margin-bottom: 6px; }
.evo-body ul { margin: 0; padding-left: 18px; color: #c6cbd6; }
.evo-body li + li { margin-top: 3px; }
.evo-tags { width: 190px; }
.evo-tag {
  display: inline-block; margin: 0 4px 4px 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 35%, transparent);
}
.evo-tag-editeur { --c: #5ea0ff; }
.evo-tag-rendu { --c: #c79bff; }
.evo-tag-console { --c: #e8a317; }
.evo-tag-android { --c: #4ade80; }
.evo-tag-ordinateur { --c: #38bdf8; }
.evo-tag-artnet { --c: #fb923c; }
.evo-tag-salles { --c: #f472b6; }
.evo-tag-bibliotheque { --c: #a3e635; }
.evo-tag-partage { --c: #2dd4bf; }
.evo-tag-pdf { --c: #f87171; }
.evo-tag-site { --c: #cbd5e1; }
.evo-tag-admin { --c: #94a3b8; }
.evo-commits { width: 90px; }
.evo-commits code { display: block; font-size: 12px; color: var(--muted); }

/* téléphone : chaque ligne devient une carte */
@media (max-width: 720px) {
  .evo-table thead { display: none; }
  .evo-table, .evo-table tbody, .evo-table tr, .evo-table td { display: block; width: auto; }
  .evo-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .evo-table tbody tr:last-child { border-bottom: 0; }
  .evo-table td { padding: 0; border: 0; }
  .evo-tags { margin-top: 10px; }
  .evo-commits code { display: inline; margin-right: 8px; }
}

/* =========================================================
   Programme bêta-testeurs : lien de navigation, annonce, page, pass
   ========================================================= */
.site-nav a.nav-beta { color: var(--accent-2); }
.site-nav a.nav-beta::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 2px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* annonce du programme en tête de l'accueil et des tarifs */
.mk-announce {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 5px 14px 5px 5px;
  border: 1px solid rgba(232, 163, 23, .45); border-radius: 999px; background: rgba(232, 163, 23, .08);
  color: #e9dcc0; font-size: 14px; font-weight: 500; max-width: 100%;
}
.mk-announce:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.mk-announce strong { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #1a1205; font-size: 12px; font-weight: 700; }

.mk-cta form.button_to { display: contents; }
.beta-state { margin: 0 auto 20px; color: #c6cbd6; font-size: 16px; }
.beta-hero .mk-hero-visual { margin-top: 56px; }
.beta-hero .mk-share { margin-top: 40px; }

.beta-pass {
  position: relative; max-width: 420px; margin: 0 auto; padding: 28px 30px; border-radius: 20px; text-align: left;
  background: linear-gradient(150deg, rgba(232, 163, 23, .22), transparent 45%), linear-gradient(#1b2030, #141823);
  border: 1px solid rgba(232, 163, 23, .55);
  box-shadow: 0 30px 80px -30px rgba(232, 163, 23, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotate(-2deg);
}
.beta-pass-head { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.beta-pass-head .brand-mark { width: 24px; height: 24px; }
.beta-pass-tag {
  margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #1a1205;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.beta-pass-title { margin: 26px 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.beta-pass-sub { margin: 0; color: var(--accent-2); font-weight: 600; }
.beta-pass-perks {
  list-style: none; margin: 22px 0; padding: 20px 0 0; display: grid; gap: 8px;
  border-top: 1px dashed rgba(232, 163, 23, .4); color: #c6cbd6;
}
.beta-pass-perks li::before { content: "✦"; color: var(--accent); margin-right: 10px; }
.beta-pass-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.beta-pass-foot span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: #d4d8e0; font-size: 13px; font-weight: 600; }
.beta-pass-foot .accent { border-color: var(--accent); color: var(--accent-2); }

@media (max-width: 640px) {
  .mk-announce { font-size: 13px; text-align: left; }
  .beta-pass { padding: 22px; transform: none; }
  .beta-pass-title { font-size: 26px; }
}
/* ================= Lien public d'un plan (mobile d'abord) ================= */

body.viewer-page { height: 100dvh; overflow: hidden; background: var(--bg); overscroll-behavior: none; }
.viewer { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

/* en-tête */
.vw-head {
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.vw-head .brand-mark { flex: none; }
.vw-title { flex: 1; min-width: 0; }
.vw-title h1 { margin: 0; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-title small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-pdf { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding-inline: 12px; }
.vw-pdf[aria-busy] { opacity: .7; pointer-events: none; }

/* vue 3D */
.vw-stage { position: relative; min-height: 0; overflow: hidden; }
.vw-viewport { position: absolute; inset: 0; }
.vw-viewport canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.vw-caption, .vw-hint {
  position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vw-caption { top: 10px; background: rgba(18, 21, 28, .78); color: var(--text); border: 1px solid var(--line); }
.vw-hint { bottom: 12px; background: var(--accent); color: #1a1205; font-weight: 600; }
.vw-hint[hidden] { display: none; }

/* barre du bas : vues + rendu (zone du pouce) */
.vw-bar {
  display: flex; gap: 8px; align-items: stretch;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--panel); border-top: 1px solid var(--line);
}
.vw-tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--line); }
.vw-tabs button {
  min-height: 42px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font: 600 14px var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vw-tabs button.active { background: var(--accent); color: #1a1205; }
.vw-tabs button[hidden] { display: none; }
.vw-render-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text);
  font: 600 14px var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
}

/* feuilles (rendu, détail) : panneau du bas sur mobile, fenêtre centrée sur grand écran */
dialog.vw-sheet {
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; padding: 0;
  border: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  background: var(--panel); color: var(--text); overflow: hidden;
}
dialog.vw-sheet[open] { animation: vw-up .22s ease-out; }
dialog.vw-sheet::backdrop { background: rgba(0, 0, 0, .55); }
@keyframes vw-up { from { transform: translateY(40px); opacity: 0; } }
.vw-sheet-body {
  max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.vw-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vw-sheet-head > div { flex: 1; min-width: 0; }
.vw-sheet-head h2 { flex: 1; margin: 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.vw-sheet-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.vw-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.vw-swatch { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); box-shadow: 0 0 14px rgba(255, 220, 160, .35); }
.vw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.25); }

/* options de rendu */
.vw-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.vw-segment label { margin: 0; }
.vw-segment input { position: absolute; opacity: 0; pointer-events: none; }
.vw-segment span { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.vw-segment input:checked + span { background: var(--accent); color: #1a1205; }
.vw-segment input:focus-visible + span { outline: 2px solid var(--blue); }
.vw-options { display: flex; flex-direction: column; }
.vw-switch { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); cursor: pointer; }
.vw-switch:last-child { border-bottom: 0; }
.vw-switch input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.vw-switch small { color: var(--muted); }
.vw-switch:has(input:disabled) { opacity: .45; cursor: default; }

/* détail d'un groupe / d'un pont */
.vw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vw-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.vw-stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.vw-stats dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.vw-stats dd small { font-weight: 400; color: var(--muted); }
.vw-section { margin-top: 18px; }
.vw-section h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.vw-section p { margin: 0; font-size: 15px; line-height: 1.45; }
.vw-muted { color: var(--muted); }
.vw-warn { background: #3a1d1d; border: 1px solid #5b2b2b; color: #fecaca; padding: 8px 10px; border-radius: 8px; margin-bottom: 8px !important; font-size: 14px !important; }
.vw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.vw-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.vw-table th { position: sticky; top: 0; background: var(--panel-2); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; }
.vw-table th, .vw-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vw-table th:first-child, .vw-table td:first-child { text-align: left; font-weight: 700; }
.vw-table tbody tr:nth-child(even) { background: var(--bg-2); }
.vw-table tbody tr:last-child td { border-bottom: 0; }
.vw-table tr.conflict td { color: #fca5a5; }
.vw-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vw-list li + li { border-top: 1px solid var(--line); }
.vw-list button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 12px;
  border: 0; background: none; color: var(--text); font: 15px var(--font); text-align: left; cursor: pointer;
}
.vw-list button span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-list button small { color: var(--muted); }

/* téléphone à l'horizontale : on rend la hauteur à la vue */
@media (max-height: 500px) and (orientation: landscape) {
  .vw-head { padding-top: calc(4px + env(safe-area-inset-top)); padding-bottom: 4px; }
  .vw-title small { display: none; }
  .vw-pdf { min-height: 32px; }
  .vw-bar { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .vw-tabs button { min-height: 34px; }
  .vw-render-btn { min-height: 40px; }
  .vw-caption { display: none; }
}

/* tablette et ordinateur */
@media (min-width: 720px) {
  .vw-title h1 { font-size: 17px; }
  .vw-bar { justify-content: center; }
  .vw-tabs { flex: 0 1 440px; }
  dialog.vw-sheet { margin: auto; width: min(560px, 92vw); max-height: 84vh; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  .vw-sheet-body { max-height: 84vh; padding: 20px 22px 22px; }
  .vw-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================= Live View : vue 3D seule, pilotée en direct par la console ================= */
.live-view { position: fixed; inset: 0; background: #000; }
.live-view .vw-viewport { inset: 0; }
.lv-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: flex-start; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0, 0, 0, .6), transparent);
}
.lv-title { flex: 1; min-width: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.lv-title h1 { margin: 0; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-title small { display: block; color: #c3c8d4; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-status {
  flex: none; display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(18, 21, 28, .78); color: var(--muted); border: 1px solid var(--line);
}
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.lv-status[data-state="wait"] .lv-dot { background: var(--accent); }
.lv-status[data-state="live"] { color: #fff; background: rgba(239, 68, 68, .9); border-color: transparent; }
.lv-status[data-state="live"] .lv-dot { background: #fff; animation: lv-pulse 1.4s ease-in-out infinite; }
@keyframes lv-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lv-status[data-state="live"] .lv-dot { animation: none; } }
.lv-fullscreen {
  flex: none; pointer-events: auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(18, 21, 28, .78); color: var(--text); cursor: pointer;
}
.lv-fullscreen[hidden] { display: none; }
.lv-regie {
  flex: none; pointer-events: auto; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(18, 21, 28, .78); color: var(--text); font: 600 12px var(--font);
}
.lv-regie[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.lv-regie[hidden] { display: none; }
.lv-brand {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  right: max(12px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(231, 233, 238, .6);
}
.lv-brand .brand-mark { width: 12px; height: 12px; box-shadow: none; }
@media (min-width: 720px) { .lv-title h1 { font-size: 17px; } }
