/* MotionLover — espace client et administration (même charte que le site : style.css) */

:root {
  --ok: #16a34a; --ok-soft: #e4f6ea; --ok-line: #bfe8cc;
  --ko: #e11d48; --ko-soft: #fdecef; --ko-line: #f8c3cf;
  --wait: #d97706; --wait-soft: #fff3de; --wait-line: #f8dcae;
  --work: #6273ff; --work-soft: #eceeff;
  --off: #8489a6; --off-soft: #eef0f6;
  --card: #fff;
  --r-lg: 24px;
}
body.app { background: var(--bg); min-height: 100vh; }
.app #app { min-height: 100vh; }
#app.is-in .amain > *, #app.is-in .auth-card, #app.is-in .auth-side > * { animation: rise 0.55s var(--ease) both; }
#app.is-in .auth-side > *:nth-child(2) { animation-delay: 0.04s; }
#app.is-in .auth-side > *:nth-child(3) { animation-delay: 0.08s; }
#app.is-in .auth-side > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.i3d { display: block; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(13, 17, 48, 0.14)); }
.muted { color: var(--muted); font-size: 14px; }
.help { color: var(--text); font-size: 15px; margin: 0 0 18px; max-width: 720px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; font-weight: 700; font-size: 13.5px; color: var(--accent); cursor: pointer; }
.link-btn svg { width: 14px; height: 14px; }
.link-btn.is-on { color: var(--ko); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 12px; gap: 8px; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 12px 26px -12px rgba(22, 163, 74, 0.8); }
.btn-ok:hover { background: #12913f; border-color: #12913f; }
.btn-ko { background: #fff; border-color: var(--ko-line); color: var(--ko); }
.btn-ko:hover { border-color: var(--ko); background: var(--ko-soft); }
.btn:disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }
.field { font-family: inherit; }
textarea.field { height: auto; min-height: 46px; line-height: 1.5; padding: 11px 15px; }

/* ------------------------------------------------ barre du haut */
.abar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 28px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.abar-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 18px; letter-spacing: -0.04em; color: var(--ink); }
.abar-logo img { width: 28px; height: 28px; }
.abar-logo i { color: var(--accent); font-style: normal; }
.abar-role { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.abar-role.is-admin { background: var(--navy); color: #c7ceff; }
.abar-nav { display: flex; gap: 4px; margin-left: 10px; }
.abar-nav a { height: 38px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--text); transition: background 0.2s, color 0.2s; }
.abar-nav a:hover { background: var(--bg); color: var(--ink); }
.abar-nav a.is-on { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.abar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.abar-lang { height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; color: var(--ink); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: border-color 0.2s, scale 0.4s var(--ease); }
.icon-btn:hover { border-color: #c9cde0; scale: 1.05; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.dot-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ko); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.dd-wrap { position: relative; }
.dd { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 17, 48, 0.06), 0 24px 60px -20px rgba(13, 17, 48, 0.35); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.dd-wrap.is-open .dd { opacity: 1; transform: none; pointer-events: auto; }
.dd-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; }
.dd-head b { color: var(--ink); }
.dd-head button { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.dd-empty { padding: 18px 10px; color: var(--muted); font-size: 14px; text-align: center; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 4px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.me-btn svg { width: 13px; height: 13px; color: var(--muted); }
.me-dd { width: 280px; }
.me-card { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.me-card b { display: block; color: var(--ink); }
.me-card small { color: var(--muted); font-size: 12.5px; }
.me-dd a, .me-dd button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 10px; border: 0; border-radius: 11px; background: none; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.me-dd a:hover, .me-dd button:hover { background: var(--bg); }
.me-dd svg { width: 17px; height: 17px; color: var(--muted); }

/* avatars */
.av { --c: #6273ff; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: 0.02em; overflow: hidden; }
.av.lg { width: 44px; height: 44px; font-size: 14px; }
.av.xl { width: 64px; height: 64px; font-size: 20px; border-radius: 20px; }
.av.is-img { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.av.is-img img { width: 100%; height: 100%; object-fit: contain; }
.av.is-admin { background: var(--grad); }
.av.is-voice { background: linear-gradient(135deg, #0f766e, #22c55e); }

/* pastille « démo » */
.demo-pill { display: flex; align-items: center; gap: 4px; margin-left: 16px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--navy); color: #c7ceff; font-size: 12px; }
.demo-pill b { color: #fff; margin-right: 4px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25); }
.demo-pill button { height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.08); color: #dfe3ff; font-weight: 700; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; }
.demo-pill button:hover { background: rgba(255, 255, 255, 0.16); }
.demo-pill button.is-on { background: #fff; color: var(--navy); }
.demo-pill svg { width: 13px; height: 13px; }
.demo-pill .s, .dd-nav { display: none; }
.dd-nav a { font-weight: 700; }
.dd-nav a.is-on { background: var(--bg); }

/* message éphémère */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 400; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 20px 50px -18px rgba(11, 16, 45, 0.8); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease), opacity 0.3s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: #4ade80; }
.toast.is-info svg { color: #fbbf24; }

/* ------------------------------------------------ contenu */
.amain { max-width: 1320px; margin: 0 auto; padding: 30px 32px 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-title { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.04em; }
.page-sub { margin-top: 8px; color: var(--text); font-size: 16px; }
.page-sub a { color: var(--accent); font-weight: 700; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.02em; margin: 34px 0 14px; }
.sec-title em { font-style: normal; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--bg-2); color: var(--text); font-size: 13px; display: grid; place-items: center; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 14px; transition: color 0.2s, gap 0.3s var(--ease); }
.back:hover { color: var(--ink); gap: 11px; }
.back svg { width: 16px; height: 16px; }

/* statuts */
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st svg { width: 12px; height: 12px; }
.st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-ko { background: var(--ko-soft); color: var(--ko); }
.st-wait { background: var(--wait-soft); color: var(--wait); }
.st-wait i { animation: pulse-w 1.8s infinite; }
@keyframes pulse-w { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(217, 119, 6, 0); } }
.st-work { background: var(--work-soft); color: var(--work); }
.st-off { background: var(--off-soft); color: var(--off); }
.sdot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--off-soft); box-shadow: inset 0 0 0 1.5px #d6d9e6; }
.sdot svg { width: 12px; height: 12px; color: #fff; }
.sdot.d-ok { background: var(--ok); box-shadow: none; }
.sdot.d-ko { background: var(--ko); box-shadow: none; }
.sdot.d-wait { background: #fff; box-shadow: inset 0 0 0 2px var(--wait); position: relative; }
.sdot.d-wait::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.sdot.d-work { background: var(--work); box-shadow: 0 0 0 3px rgba(98, 115, 255, 0.2); }
.sdot.d-work::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.msteps { display: flex; align-items: flex-start; }
.ms { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 50px; }
.ms small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ms-line { flex: 1; height: 2px; margin-top: 10px; background: var(--line); min-width: 8px; }

/* lignes d'événements */
.ev { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background 0.2s; }
.ev:hover { background: var(--bg); }
.ev-thumb { position: relative; width: 58px; height: 38px; border-radius: 10px; overflow: visible; flex-shrink: 0; }
.ev-thumb > img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ev-thumb > .av { width: 38px; height: 38px; margin: 0 10px; }
.ev.is-compact .ev-thumb { width: 46px; height: 30px; }
.ev-kind { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; }
.ev-kind svg { width: 10px; height: 10px; }
.k-ok { background: var(--ok); } .k-ko { background: var(--ko); } .k-wait { background: var(--wait); } .k-todo { background: var(--accent); } .k-msg { background: var(--navy-3); }
.ev-txt { min-width: 0; }
.ev-txt b { display: block; font-size: 14px; color: var(--ink); line-height: 1.35; font-weight: 700; }
.ev-txt small { color: var(--muted); font-size: 12.5px; }
.ev.is-unread .ev-txt b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }

/* ------------------------------------------------ connexion */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; padding: 44px 56px; background: var(--navy); color: #c2cbff; display: flex; flex-direction: column; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 500px at 90% 110%, rgba(122, 142, 255, 0.45), transparent 60%), radial-gradient(600px 420px at -10% -10%, rgba(155, 123, 255, 0.32), transparent 60%); pointer-events: none; }
.auth-side > * { position: relative; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; color: #aab3e6; font-weight: 700; font-size: 14px; }
.auth-back svg { width: 16px; height: 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-top: 60px; color: #fff; font-weight: 900; font-size: 22px; letter-spacing: -0.04em; }
.auth-brand img { width: 34px; height: 34px; }
.auth-brand i { color: #8fa0ff; font-style: normal; }
.auth-side h1 { color: #fff; font-size: clamp(34px, 3.4vw, 50px); letter-spacing: -0.045em; margin-top: 22px; max-width: 520px; }
.auth-side > p { margin-top: 14px; font-size: 17px; max-width: 460px; }
.auth-visual { position: relative; flex: 1; min-height: 330px; margin-top: 30px; }
.av-card { position: absolute; margin: 0; border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); color: var(--ink); animation: floaty 6s ease-in-out infinite; }
.av-card img { display: block; width: 100%; border-radius: 12px; }
.av-card figcaption { padding: 9px 6px 3px; font-weight: 700; font-size: 13px; }
.av-card .chip-ok { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ok); color: #fff; font-weight: 700; font-size: 12px; }
.av-card .chip-ok svg { width: 12px; height: 12px; }
.av-card.c1 { width: 60%; left: 0; top: 0; transform: rotate(-3deg); }
.av-card.c2 { width: 46%; right: 0; top: 24%; transform: rotate(4deg); animation-delay: -2s; }
.av-card.c3 { width: 64%; left: 10%; bottom: 0; transform: rotate(-1.5deg); animation-delay: -4s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.mini-line { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px; font-size: 13px; color: var(--text); }
.mini-play { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.mini-play svg { width: 13px; height: 13px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(440px, 100%); }
.tabs { display: flex; padding: 5px; border-radius: 16px; background: #e8eaf3; margin-bottom: 24px; }
.tabs button { flex: 1; height: 42px; border: 0; border-radius: 12px; background: none; font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(13, 17, 48, 0.35); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.fld .err { display: none; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ko); }
.fld.is-bad .field { border-color: #f43f5e; background: #fff5f7; }
.fld.is-bad .err { display: block; }
.form-err { padding: 11px 14px; border-radius: 12px; background: var(--ko-soft); color: var(--ko); font-weight: 700; font-size: 13.5px; }
.auth-submit { width: 100%; margin-top: 4px; }
.note { font-size: 12.5px; color: var(--muted); }
.demo-box { margin-top: 28px; padding-top: 22px; border-top: 1.5px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.demo-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.demo-acc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.3s, scale 0.5s var(--ease); }
.demo-acc:hover { border-color: #cfd4ff; box-shadow: var(--shadow); scale: 1.015; }
.demo-acc b { display: block; color: var(--ink); font-size: 14.5px; }
.demo-acc small { color: var(--muted); font-size: 12.5px; }
.demo-acc > svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.demo-acc .av { width: 40px; height: 40px; }

/* ------------------------------------------------ tableau de bord client */
.todo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.todo-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; border: 1.5px solid transparent; transition: border-color 0.3s, scale 0.5s var(--ease), box-shadow 0.4s; }
.todo-card:hover { scale: 1.02; border-color: #dfe3ff; box-shadow: 0 0 0 1px rgba(143, 160, 255, 0.25), 0 26px 60px -30px rgba(98, 115, 255, 0.5); }
.tm { position: relative; height: 150px; background: linear-gradient(160deg, #eef0fb, #e4e7f7); overflow: hidden; display: grid; place-items: center; }
.tm img { display: block; }
.tm-fan { position: relative; width: 78%; height: 100px; }
.tm-fan img { position: absolute; width: 62%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 3px solid #fff; box-shadow: 0 12px 24px -12px rgba(13, 17, 48, 0.5); }
.tm-fan img:nth-child(1) { left: 0; top: 14px; transform: rotate(-6deg); }
.tm-fan img:nth-child(2) { left: 19%; top: 0; z-index: 2; }
.tm-fan img:nth-child(3) { right: 0; top: 14px; transform: rotate(6deg); }
.tm-strip { display: flex; gap: 6px; padding: 0 14px; }
.tm-strip img { width: 25%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 8px 18px -10px rgba(13, 17, 48, 0.5); }
.tm-voice { display: flex; align-items: center; gap: 14px; }
.wave { display: flex; align-items: center; gap: 3px; height: 50px; }
.wave i { width: 4px; height: var(--h); border-radius: 3px; background: linear-gradient(#22c55e, #0f766e); }
.tm-poster { position: absolute; inset: 0; }
.tm-poster img { width: 100%; height: 100%; object-fit: cover; }
.tm-poster i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; }
.tm-poster i svg { width: 18px; height: 18px; margin-left: 3px; }
.todo-txt { padding: 16px 18px 6px; }
.todo-txt small { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.todo-txt b { display: block; margin-top: 4px; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.todo-card .btn { margin: 12px 18px 18px; align-self: flex-start; }
.proj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 18px; }
.proj-card { display: grid; grid-template-columns: 44% 1fr; gap: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; border: 1.5px solid transparent; transition: border-color 0.3s, scale 0.5s var(--ease), box-shadow 0.4s; }
.proj-card:hover { scale: 1.012; border-color: #dfe3ff; box-shadow: 0 0 0 1px rgba(143, 160, 255, 0.22), 0 26px 60px -30px rgba(98, 115, 255, 0.45); }
.pc-poster { position: relative; background: var(--navy); min-height: 190px; }
.pc-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-empty { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #eef0fb, #e2e5f6); }
.pc-badge { position: absolute; left: 12px; top: 12px; }
.pc-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.pc-head b { display: block; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }
.pc-meta { font-size: 13px; color: var(--text); font-weight: 500; }
.pc-last { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--text); }
.pc-last span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-last .av { width: 24px; height: 24px; font-size: 10px; }
.proj-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 190px; border-radius: var(--r-lg); border: 2px dashed #d3d7e8; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: border-color 0.3s, background 0.3s, scale 0.5s var(--ease); }
.proj-new:hover { border-color: var(--accent); background: #fff; scale: 1.012; }
.proj-new b { font-size: 17px; color: var(--ink); }
.proj-new small { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------ page projet */
.pv-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; }
.pv-head .back { grid-column: 1 / -1; margin-bottom: 4px; }
.pv-title { display: flex; align-items: center; gap: 14px; }
.pv-title h1 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.035em; }
.pv-title p { margin-top: 3px; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.pv-actions { display: flex; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 0; margin: 22px 0 22px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow-x: auto; }
.sp { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; flex-shrink: 0; transition: background 0.25s; }
.sp:hover { background: var(--bg); }
.sp.is-cur { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px #cdd3ff; }
.sp-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--off-soft); color: var(--off); flex-shrink: 0; }
.sp-ico svg { width: 15px; height: 15px; }
.s-ok .sp-ico { background: var(--ok); color: #fff; }
.s-ko .sp-ico { background: var(--ko); color: #fff; }
.s-wait .sp-ico { background: #fff; color: var(--wait); box-shadow: inset 0 0 0 2px var(--wait); }
.s-work .sp-ico { background: var(--work); color: #fff; box-shadow: 0 0 0 3px rgba(98, 115, 255, 0.2); }
.s-work .sp-txt small { color: var(--work); }
.sp-txt b { display: block; font-size: 14px; color: var(--ink); }
.sp-txt small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.s-ok .sp-txt small { color: var(--ok); }
.s-ko .sp-txt small { color: var(--ko); }
.s-wait .sp-txt small { color: var(--wait); }
.sp-line { flex: 1; min-width: 12px; height: 2px; background: var(--line); }
.sp-files { margin-left: 14px; }
.sp-files .sp-ico { background: var(--bg); color: var(--ink); }
.pv-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.pv-main { min-width: 0; padding: 26px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.pv-side { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: 22px; }
.pv-side .brief-meter { background: #fff; box-shadow: var(--shadow); border-radius: 22px; }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.step-head .kicker { margin-bottom: 4px; font-size: 11.5px; }
.step-head .kicker::before { display: none; }
.sh-txt h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; }
.sh-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.sh-right small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.banner svg { width: 18px; height: 18px; flex-shrink: 0; }
.b-ok { background: var(--ok-soft); color: #11772f; }
.b-ko { background: var(--ko-soft); color: #b0123a; }
.b-wait { background: var(--wait-soft); color: #9a5800; }
.b-work { background: var(--work-soft); color: #3f4fd8; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--text); }
.empty.sm { padding: 26px 10px; }
.admin-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 18px; border-radius: 16px; background: var(--bg); }
.admin-bar .ab-hint { margin-right: auto; font-weight: 700; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.admin-bar .ab-hint::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--off); flex-shrink: 0; }
.a-ok .ab-hint::before { background: var(--ok); } .a-ko .ab-hint::before { background: var(--ko); } .a-wait .ab-hint::before { background: var(--wait); } .a-work .ab-hint::before { background: var(--work); }
.said { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: var(--ko-soft); color: #9c1233; font-size: 13.5px; font-weight: 500; }
.said svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.tc { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #fff; color: var(--ko); font-style: normal; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.tc-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.tc-note svg { width: 14px; height: 14px; }
.ko-note { margin-top: 8px; border-color: var(--ko-line); background: #fffafb; }

/* boutons ✓ / ✗ */
.vt { display: inline-flex; gap: 6px; flex-shrink: 0; }
.vt button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: #b3b8cc; transition: background 0.2s, border-color 0.2s, color 0.2s, scale 0.35s var(--ease); }
.vt button svg { width: 17px; height: 17px; }
.vt button:hover:not(:disabled) { scale: 1.1; }
.vt-ok:hover:not(:disabled) { color: var(--ok); border-color: var(--ok-line); }
.vt-ko:hover:not(:disabled) { color: var(--ko); border-color: var(--ko-line); }
.vt-ok.is-on { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 8px 18px -8px rgba(22, 163, 74, 0.8); }
.vt-ko.is-on { background: var(--ko); border-color: var(--ko); color: #fff; box-shadow: 0 8px 18px -8px rgba(225, 29, 72, 0.8); }
.vt button:disabled { cursor: default; }
.vt button:disabled:not(.is-on) { opacity: 0.45; }

/* barre d'envoi (reste visible en bas) */
.submit-bar.is-static { position: static; }
.submit-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 12px 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(13, 17, 48, 0.07), 0 20px 50px -20px rgba(13, 17, 48, 0.35); }
.sb-progress { flex: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.sb-progress b { color: var(--ink); }
.bar { flex: 1; min-width: 120px; height: 7px; border-radius: 7px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width 0.5s var(--ease); }

/* ------------------------------------------------ brief */
.brief-grid { display: block; }
.brief-form, .fiche { display: flex; flex-direction: column; gap: 14px; }
.fiche-sec { padding: 20px; border-radius: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; }
.fiche-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.02em; }
.fiche-sec h3 span { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 13px; display: grid; place-items: center; }
.fiche-sec h3 em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fiche-sec .field { background: #fff; }
.fiche dl { display: grid; grid-template-columns: 190px 1fr; gap: 10px 18px; margin: 0; }
.fiche dt { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.fiche dd { margin: 0; color: var(--ink); font-size: 15px; }
.fiche dd a { color: var(--accent); font-weight: 700; }
.msgs { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; color: var(--text); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, scale 0.35s var(--ease); }
.chip:hover { border-color: #c9cde0; scale: 1.04; }
.chip svg { width: 13px; height: 13px; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .i3d { width: 20px; height: 20px; filter: none; }
span.chip { cursor: default; height: 30px; }
.fld .field + .field { margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts span { padding: 12px 14px; border-radius: 14px; background: #fff; }
.facts small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.facts b { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.img-grid figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(13, 17, 48, 0.06), 0 10px 24px -16px rgba(13, 17, 48, 0.35); }
.img-grid figure > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.img-grid figure > i { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-weight: 900; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.img-grid figcaption { padding: 7px 10px; font-size: 12.5px; color: var(--text); }
.img-grid.is-insp figure > img { aspect-ratio: 16 / 10; }
.img-grid.is-edit figure { cursor: grab; }
.img-grid.is-edit figure.is-drag { opacity: 0.4; }
.img-grid .x { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(11, 16, 45, 0.75); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.img-grid .x svg { width: 12px; height: 12px; }
.img-grid figure:hover .x { opacity: 1; }
.img-grid .cap { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 8px 10px; font: inherit; font-size: 12.5px; color: var(--ink); outline: none; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px; padding: 14px; border-radius: 14px; border: 2px dashed #cfd3e3; background: rgba(255, 255, 255, 0.6); color: var(--muted); font-weight: 700; font-size: 13px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fff; color: var(--accent); }
.drop svg { width: 22px; height: 22px; }
.strength { display: flex; flex-direction: column; gap: 8px; }
.strength > span { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.strength b { color: var(--accent); }
.strength input { width: 100%; accent-color: var(--accent); }
.lv { display: flex; justify-content: space-between; }
.lv small { font-size: 12px; color: var(--muted); font-weight: 700; }
.lv small.is-on { color: var(--accent); }
.brief-meter { margin-bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 20px; background: var(--bg); text-align: center; }
.meter { position: relative; width: 120px; height: 120px; }
.meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter circle { fill: none; stroke: #e2e5ef; stroke-width: 10; }
.meter .m-val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; transition: stroke-dashoffset 0.5s var(--ease); }
.meter b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: var(--ink); }
.meter-l { font-weight: 700; color: var(--ink); }
.brief-meter .help { margin: 0; font-size: 13px; }
.need { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.need li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.need li > i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d3d7e6; flex-shrink: 0; }
.need li > svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; flex-shrink: 0; }
.need li.is-ok { color: var(--ink); }
.brief-meter .btn { width: 100%; margin-top: 6px; }
.saved { opacity: 0; color: var(--ok); font-weight: 700; font-size: 12px; }
.saved.is-on { animation: saved 1.8s ease; }
@keyframes saved { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.decide { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.decide.big .btn { flex: 1; height: 56px; font-size: 13.5px; }
.decide.big .btn svg { width: 18px; height: 18px; }
.ask-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; padding: 14px; border-radius: 16px; background: var(--ko-soft); }
.ask-box .field { background: #fff; }
.ask-box > .btn { align-self: flex-end; }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ------------------------------------------------ slides */
.srows { display: flex; flex-direction: column; gap: 14px; }
.srow { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 20px; background: var(--bg); border: 1.5px solid transparent; transition: border-color 0.3s, background 0.3s; }
.srow.is-ok { border-color: var(--ok-line); background: #f5fbf7; }
.srow.is-ko { border-color: var(--ko-line); background: #fff8f9; }
.srow-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.srow-n { font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.srow-info b { color: var(--ink); font-size: 16px; }
.srow-info p { font-size: 13px; color: var(--text); line-height: 1.45; margin-bottom: 4px; }
.srow-vars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.srow-note { grid-column: 2; }
.srow-note .ko-note { margin-top: 0; }
.var { margin: 0; min-width: 0; }
.var-img { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(13, 17, 48, 0.08), 0 12px 26px -16px rgba(13, 17, 48, 0.45); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color 0.25s, scale 0.45s var(--ease), box-shadow 0.3s; }
.var-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.var.is-pickable { cursor: pointer; }
.var.is-pickable:hover .var-img { scale: 1.03; box-shadow: 0 0 0 1px rgba(143, 160, 255, 0.35), 0 20px 40px -18px rgba(98, 115, 255, 0.6); }
.var.is-pickable:focus-visible { outline: none; }
.var.is-pickable:focus-visible .var-img { outline-color: var(--accent); }
.var.is-chosen .var-img { outline-color: var(--ok); }
.var-key { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(11, 16, 45, 0.85); color: #fff; font-style: normal; font-weight: 900; font-size: 12.5px; display: grid; place-items: center; }
.var-pick, .var-setpick { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: #fff7d6; color: #a16207; font-weight: 700; font-size: 11.5px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.3); }
.var-pick svg, .var-setpick svg { width: 11px; height: 11px; color: #f59e0b; }
.var-setpick { border: 0; background: rgba(255, 255, 255, 0.92); color: var(--text); cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.var:hover .var-setpick { opacity: 1; }
.var-chosen { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ok); color: #fff; font-weight: 700; font-size: 12px; animation: pop 0.45s var(--ease); }
.var-chosen svg { width: 12px; height: 12px; }
@keyframes pop { from { scale: 0.6; opacity: 0; } to { scale: 1; opacity: 1; } }
.var figcaption { padding: 9px 2px 0; }
.var figcaption b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.var figcaption small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------------ montage */
.player { position: relative; border-radius: 18px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.scenes-wrap { margin-top: 12px; }
.scenes { display: flex; gap: 4px; }
.scene { position: relative; min-width: 0; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--navy); outline: 2.5px solid transparent; outline-offset: -2.5px; transition: outline-color 0.2s, translate 0.3s var(--ease); }
.scene:hover { translate: 0 -2px; }
.scene img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.scene.is-sel { outline-color: var(--accent); }
.scene.is-ok { outline-color: var(--ok); }
.scene.is-ko { outline-color: var(--ko); }
.scene.is-sel.is-ok, .scene.is-sel.is-ko { box-shadow: 0 0 0 3px rgba(98, 115, 255, 0.35); }
.scene-n, .scene-d { position: absolute; bottom: 5px; height: 18px; padding: 0 6px; border-radius: 6px; background: rgba(11, 16, 45, 0.82); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.scene-n { left: 5px; }
.scene-d { right: 5px; }
.scene-st { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.is-ok .scene-st { background: var(--ok); }
.is-ko .scene-st { background: var(--ko); }
.scene-st svg { width: 10px; height: 10px; }
.scenes-track { position: relative; height: 10px; margin-top: 6px; border-radius: 6px; background: var(--bg-2); }
.scenes-track .ph { position: absolute; top: -3px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); left: 0; }
.scenes-track .mk { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ko); box-shadow: 0 0 0 2px #fff; }
.scene-panel { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bg); }
.spn-head { display: flex; align-items: center; gap: 12px; }
.spn-n { font-weight: 900; font-size: 26px; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spn-head b { display: block; color: var(--ink); font-size: 16px; }
.spn-head small { color: var(--muted); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spn-head .vt { margin-left: auto; }

/* ------------------------------------------------ voix */
.voice-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.vbox { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--bg); border: 1.5px solid transparent; }
.vbox small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vbox b { display: block; font-size: 18px; color: var(--ink); }
.vbox p { font-size: 13px; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vbox > div { flex: 1; min-width: 0; }
.vbox .btn { flex-shrink: 0; }
.mcard.is-ok { border-color: var(--ok-line); background: #f5fbf7; }
.mcard.is-ko { border-color: var(--ko-line); background: #fff8f9; }
.vplay { position: relative; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(98, 115, 255, 0.9); transition: scale 0.35s var(--ease); }
.vplay:hover { scale: 1.08; }
.vplay > svg:first-child { width: 16px; height: 16px; }
.vplay .ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.vplay .ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 126; stroke-dashoffset: 126; opacity: 0; }
.is-playing .vplay .ring circle, .mcard .ring circle[style] { opacity: 1; }
.vlines { display: flex; flex-direction: column; gap: 8px; }
.vline { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 18px; background: var(--bg); border: 1.5px solid transparent; transition: border-color 0.3s, background 0.3s; }
.vline.is-playing { background: var(--accent-soft); }
.vline.is-ok { border-color: var(--ok-line); background: #f5fbf7; }
.vline.is-ko { border-color: var(--ko-line); background: #fff8f9; }
.vtxt { flex: 1; min-width: 0; }
.vtxt small { color: var(--muted); font-size: 12px; font-weight: 700; }
.vtxt p { margin-top: 2px; color: var(--ink); font-size: 16px; line-height: 1.45; }
.vtxt strong { color: var(--accent); font-weight: 900; }
.tones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tone { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--text); }
.tone::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9b7bff; }
.t-excited::before { background: #f97316; } .t-confident::before { background: #2563eb; } .t-happy::before { background: #eab308; }
.t-warm::before { background: #e11d48; } .t-calm::before { background: #14b8a6; } .t-awe::before { background: #a855f7; }

/* ------------------------------------------------ rendu */
.ver-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin-top: 12px; }
.ver { min-width: 0; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color 0.2s, scale 0.35s var(--ease); }
.ver:hover { scale: 1.03; }
.ver.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98, 115, 255, 0.15); }
.ver img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; display: block; }
.ver b { display: block; margin-top: 6px; font-size: 13px; color: var(--ink); }
.ver small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-info { margin: 14px 0; font-size: 14px; color: var(--text); }
.ver-info b { color: var(--ink); }
.downloads { margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--bg); }
.downloads h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.downloads h3 svg { width: 18px; height: 18px; color: var(--accent); }
.downloads.is-locked { opacity: 0.8; }
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dl { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); transition: border-color 0.2s, scale 0.35s var(--ease); }
.dl:not(.is-off):hover { border-color: var(--accent); scale: 1.02; }
.dl span { flex: 1; min-width: 0; }
.dl b { display: block; color: var(--ink); font-size: 14px; }
.dl small { display: block; color: var(--muted); font-size: 12px; }
.dl em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.dl svg { width: 16px; height: 16px; color: var(--accent); }
.dl.is-off { opacity: 0.55; }

/* ------------------------------------------------ fichiers */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.drop.is-file { min-height: 100%; aspect-ratio: auto; }
.fcard { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 16px; background: var(--bg); transition: scale 0.35s var(--ease), box-shadow 0.3s; }
.fcard:hover { scale: 1.03; box-shadow: var(--shadow); }
.file-media { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; background: #fff; }
.file-media { background: repeating-conic-gradient(#f1f2f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.file-media img, .file-media video { width: 100%; height: 100%; object-fit: contain; }
.file-ico svg { width: 30px; height: 30px; color: var(--accent); }
.fcard b { font-size: 13px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fcard small { font-size: 11.5px; color: var(--muted); }
.temp { font-style: normal; font-size: 11px; color: var(--wait); font-weight: 700; }

/* ------------------------------------------------ échanges */
.thread { display: flex; flex-direction: column; max-height: calc(100vh - 110px); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.thread h3 { display: flex; align-items: center; gap: 8px; padding: 16px 18px; font-size: 16px; border-bottom: 1px solid var(--line); }
.thread h3 svg { width: 18px; height: 18px; color: var(--accent); }
.thread h3 small { color: var(--muted); font-weight: 700; font-size: 13px; }
.msgs-list { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.msg { display: flex; align-items: flex-end; gap: 8px; }
.msg .av { width: 28px; height: 28px; font-size: 10.5px; }
.mbubble { max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 5px; background: var(--bg); }
.mbubble small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.mbubble p { font-size: 14px; color: var(--ink); line-height: 1.45; white-space: pre-wrap; }
.msg.is-mine { justify-content: flex-end; }
.msg.is-mine .mbubble { border-radius: 16px 16px 5px 16px; background: var(--grad); }
.msg.is-mine .mbubble small { color: rgba(255, 255, 255, 0.78); }
.msg.is-mine .mbubble p { color: #fff; }
.msg-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.msg-form .field { flex: 1; min-height: 44px; max-height: 140px; resize: vertical; font-size: 14px; }
.send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, scale 0.3s var(--ease); }
.send:hover { background: var(--navy-2); scale: 1.05; }
.send svg { width: 18px; height: 18px; }

/* ------------------------------------------------ administration */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.kpi .i3d { grid-row: 1 / 3; }
.kpi b { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.kpi span { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi.k-r b { color: var(--ko); }
.kpi.k-y b { color: var(--wait); }
.kpi.k-g b { color: var(--ok); }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 8px; align-items: start; }
.panel { padding: 4px 18px 16px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.panel .sec-title { margin: 16px 0 8px; font-size: 17px; }
.inbox-row { display: flex; align-items: center; gap: 6px; }
.inbox-row .ev { flex: 1; min-width: 0; }
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { padding: 12px; border-radius: 20px; background: #e9ebf4; min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.col h4 { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink); padding: 2px 4px; }
.col h4 em { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--text); font-size: 12px; display: grid; place-items: center; }
.kcard { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(13, 17, 48, 0.06), 0 10px 22px -16px rgba(13, 17, 48, 0.35); transition: scale 0.4s var(--ease), box-shadow 0.3s; }
.kcard:hover { scale: 1.03; box-shadow: 0 0 0 1px rgba(143, 160, 255, 0.3), 0 18px 34px -18px rgba(98, 115, 255, 0.55); }
.k-img { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: linear-gradient(160deg, #eef0fb, #e2e5f6); }
.k-img img { width: 100%; height: 100%; object-fit: cover; }
.k-body { display: flex; align-items: center; gap: 8px; }
.k-body .av { width: 26px; height: 26px; font-size: 10px; }
.k-body b { display: block; font-size: 13.5px; color: var(--ink); }
.k-body small { display: block; font-size: 11.5px; color: var(--muted); }
.kcard .st { align-self: flex-start; }
.ctable { border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.c-head, .crow { display: grid; grid-template-columns: minmax(260px, 1.5fr) 90px minmax(280px, 1.5fr) 140px 40px; align-items: center; gap: 16px; padding: 14px 20px; }
.c-head { background: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crow { border-top: 1px solid var(--line); transition: background 0.2s; }
.crow:hover { background: #fafbfe; }
.c-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-id b { display: block; color: var(--ink); }
.c-id small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-n { font-weight: 900; font-size: 18px; color: var(--ink); }
.c-last { font-size: 13px; color: var(--text); }
.c-go svg { width: 18px; height: 18px; color: var(--muted); }
.tag { font-style: normal; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--wait-soft); color: var(--wait); font-size: 11px; vertical-align: 2px; }
.client-id { display: flex; align-items: center; gap: 16px; }

/* ------------------------------------------------ fenêtres */
.modal-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(11, 16, 45, 0.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade 0.25s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: 26px; background: #fff; box-shadow: 0 40px 90px -30px rgba(11, 16, 45, 0.6); display: flex; flex-direction: column; gap: 14px; animation: rise 0.4s var(--ease) both; }
.modal h2 { font-size: 24px; letter-spacing: -0.03em; }
.modal .help { margin: -6px 0 0; }
.m-form { display: flex; flex-direction: column; gap: 14px; }
.m-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.m-items { display: flex; flex-wrap: wrap; gap: 10px; }
.m-item { display: flex; flex-direction: column; gap: 4px; width: 120px; }
.m-item img, .m-item i { width: 120px; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; background: var(--bg); display: grid; place-items: center; }
.m-item i svg { width: 22px; height: 22px; color: var(--accent); }
.m-item small { font-size: 11.5px; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.drop.is-modal { min-height: 96px; }
.check-line { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--ok); }
.creds { display: flex; flex-direction: column; gap: 8px; }
.creds span { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.creds small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.creds code { font-size: 13px; color: var(--ink); word-break: break-all; }
.modal > .i3d { align-self: center; }

/* ------------------------------------------------ tableau de bord admin : clients + suivi */
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 14px; }
.sec-row .sec-title { margin: 0; }
.sec-sum { color: var(--muted); font-size: 14px; font-weight: 700; }
.btn-suivi em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--ko); color: #fff; font-size: 11px; display: inline-grid; place-items: center; letter-spacing: 0; }
.abar-nav a .nav-n { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px; border-radius: 999px; background: var(--ko); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; }
.tag.t-todo { background: var(--work-soft); color: var(--work); }
.c-last { display: flex; align-items: center; gap: 10px; }
.c-msg { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--ko-soft); color: var(--ko); font-style: normal; font-size: 11.5px; font-weight: 700; }
.c-msg svg { width: 12px; height: 12px; }
.th-all { margin-left: auto; font-size: 12.5px; }

/* ------------------------------------------------ discussion */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 6px rgba(122, 142, 255, 0.16), 0 16px 34px -12px rgba(98, 115, 255, 0.9); transition: scale 0.5s var(--ease), background 0.3s; }
.chat-fab:hover { scale: 1.06; }
.chat-fab > svg { width: 24px; height: 24px; }
.chat-fab.is-open { background: var(--navy); box-shadow: 0 16px 34px -12px rgba(11, 16, 45, 0.8); }
.chat-fab .dot-count { top: -2px; right: -2px; }
.chat-dr { position: fixed; right: 22px; bottom: 92px; z-index: 70; width: 392px; height: min(640px, calc(100vh - 180px)); display: flex; flex-direction: column; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 17, 48, 0.06), 0 40px 90px -30px rgba(11, 16, 45, 0.55); overflow: hidden; transform-origin: bottom right; animation: chat-in 0.35s var(--ease) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.chat-hd { display: flex; align-items: center; gap: 11px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.chat-hd > div { flex: 1; min-width: 0; }
.chat-hd b { display: block; color: var(--ink); font-size: 15.5px; }
.chat-hd small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.chat-hd .av { width: 38px; height: 38px; }
.chat-hd-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.chat-hd-ico svg { width: 19px; height: 19px; }
.chat-proj { height: 38px; margin: 10px 14px 0; width: auto; font-size: 13.5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: #fafbfe; }
.chat-empty { margin: auto; padding: 20px; max-width: 280px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cday { display: flex; justify-content: center; margin: 4px 0 2px; }
.cday span { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cmsg { display: flex; align-items: flex-end; gap: 8px; }
.cmsg .av { width: 28px; height: 28px; font-size: 10.5px; }
.cmsg.is-mine { justify-content: flex-end; }
.cbub { max-width: 80%; padding: 9px 12px 7px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 1px 2px rgba(13, 17, 48, 0.07); }
.cmsg.is-mine .cbub { border-radius: 16px 16px 5px 16px; background: var(--grad); box-shadow: none; }
.cbub p { font-size: 14px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmsg.is-mine .cbub p { color: #fff; }
.cbub small { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.cmsg.is-mine .cbub small { color: rgba(255, 255, 255, 0.8); text-align: right; }
.cchips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.cchip { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
a.cchip:hover { text-decoration: underline; text-underline-offset: 2px; }
.cchip.is-topic { background: var(--wait-soft); color: #9a5800; }
.cmsg.is-mine .cchip { background: rgba(255, 255, 255, 0.22); color: #fff; }
.cimg img { display: block; max-width: 220px; max-height: 180px; border-radius: 10px; margin-bottom: 5px; }
.cfile { display: flex; align-items: center; gap: 7px; padding: 7px 9px; margin-bottom: 5px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.cfile svg { width: 15px; height: 15px; flex-shrink: 0; }
.cmsg.is-mine .cfile { background: rgba(255, 255, 255, 0.18); color: #fff; }
.chat-form { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: #fff; }
.chat-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.ctopic { height: 28px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.ctopic:hover { border-color: #c9cde0; }
.ctopic.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chat-att { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 12px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.chat-att img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.chat-att > svg { width: 18px; height: 18px; color: var(--accent); }
.chat-att span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-input { display: flex; align-items: flex-end; gap: 6px; }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; font-size: 14px; }
.chat-clip { width: 38px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color 0.2s, background 0.2s; }
.chat-clip:hover { color: var(--accent); background: var(--accent-soft); }
.chat-clip svg { width: 19px; height: 19px; }
.chat-list { flex: 1; overflow-y: auto; padding: 6px; }
.chat-conv { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background 0.2s; }
.chat-conv:hover { background: var(--bg); }
.cc-txt { flex: 1; min-width: 0; }
.cc-txt b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-txt b small { font-weight: 500; color: var(--muted); }
.cc-txt em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv.is-unread .cc-txt em { color: var(--ink); font-weight: 700; }
.cc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.cc-meta time { font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.cc-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ko); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
/* la colonne « Échanges » d'une étape laisse la place au bouton de discussion */
.pv-side { max-height: calc(100vh - 190px); }
.thread { max-height: calc(100vh - 200px); }

/* ------------------------------------------------ envois de l'app de création (administrateur) */
.sp-app { position: relative; margin-left: 8px; }
.sp-app .sp-ico { background: var(--navy); color: #c7ceff; }
.sp-app.is-cur .sp-ico { background: var(--grad); color: #fff; }
.sp-app.has-new .sp-ico { background: var(--grad); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.sp-app.has-new .sp-txt small { color: var(--accent); }
.ast { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ast svg { width: 11px; height: 11px; }
.ast b { margin-left: 3px; font-weight: 900; }
.ast-new { background: var(--work-soft); color: var(--work); }
.ast-changed { background: var(--wait-soft); color: var(--wait); }
.ast-shared { background: var(--ok-soft); color: var(--ok); }
.app-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -2px 0 6px; }
.app-sum .ast { height: 30px; padding: 0 12px; font-size: 12.5px; }
.app-sum .link-btn { margin-left: auto; }
.app-sec { margin-top: 28px; }
.app-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-sec-h h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.02em; }
.app-sec-h h3 em { font-style: normal; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg-2); color: var(--text); font-size: 12px; display: grid; place-items: center; }
.app-sec-h .link-btn, .app-uptodate { margin-left: auto; }
.app-uptodate { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; font-size: 12.5px; }
.app-uptodate svg { width: 13px; height: 13px; }
/* coche ronde de sélection */
.app-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, 0.94); box-shadow: inset 0 0 0 2px #cfd3e6; color: transparent; transition: background 0.2s, box-shadow 0.2s, color 0.2s, scale 0.35s var(--ease); }
.app-check svg { width: 14px; height: 14px; }
.is-sel .app-check, .app-selbtn.is-on .app-check { background: var(--accent); box-shadow: none; color: #fff; scale: 1.08; }
/* slides */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.app-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px 8px 12px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 0.25s, box-shadow 0.3s, scale 0.45s var(--ease); }
.app-card:hover { border-color: #c9cde0; scale: 1.015; }
.app-card.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 18px 36px -22px rgba(98, 115, 255, 0.8); }
.app-card:focus-visible, .app-line:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ac-media { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--bg); }
.ac-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ac-media .app-check { position: absolute; right: 8px; top: 8px; }
.ac-thumbs { display: flex; gap: 4px; }
.ac-thumbs img { flex: 1; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; opacity: 0.55; }
.ac-thumbs img.is-pick { opacity: 1; box-shadow: 0 0 0 1.5px #f5b73b; }
.ac-txt { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.ac-txt b { font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.ac-txt small { font-size: 12px; color: var(--muted); font-weight: 700; }
.ac-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
/* montage et versions */
.app-wides { display: flex; flex-direction: column; gap: 12px; }
.app-wide { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr); gap: 16px; padding: 10px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; transition: border-color 0.25s, box-shadow 0.3s; }
.app-wide.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.aw-video { border-radius: 14px; overflow: hidden; background: var(--navy); }
.aw-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.aw-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 6px 4px 4px; }
.aw-side b { font-size: 16px; color: var(--ink); }
.aw-side small { font-size: 13px; color: var(--muted); font-weight: 700; }
.aw-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 100%; }
.aw-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.app-selbtn { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 9px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.app-selbtn:hover { border-color: #c9cde0; }
.app-selbtn.is-on { background: var(--accent-soft); border-color: #cdd3ff; color: var(--accent); }
/* voix off et musique */
.app-lines { display: flex; flex-direction: column; gap: 8px; }
.app-line { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1.5px solid transparent; background: var(--bg); cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.app-line:hover { border-color: var(--line); }
.app-line.is-playing { background: #eef0ff; }
.app-line.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.app-line .vplay { width: 40px; height: 40px; }
.al-txt { flex: 1; min-width: 0; }
.al-txt small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.al-txt small svg { width: 12px; height: 12px; }
.al-txt p { margin-top: 2px; font-size: 14px; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-txt strong { color: var(--accent); }
/* barre d'envoi : 1re ligne = ce qui est choisi + validation, 2e ligne = message + bouton */
.app-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; margin-top: 28px; padding: 12px 12px 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(13, 17, 48, 0.07), 0 20px 50px -20px rgba(13, 17, 48, 0.35); }
.apb-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.apb-info b { font-size: 14px; color: var(--ink); white-space: nowrap; }
.apb-info small { min-width: 0; font-size: 12.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar:not(.is-on) .apb-info b { color: var(--muted); }
.apb-ask { order: 2; flex-shrink: 0; font-size: 13px; white-space: nowrap; }
.apb-ask .s { display: none; }
.app-bar.is-on::after { content: ''; order: 3; flex-basis: 100%; height: 0; } /* passage à la ligne */
.app-bar.is-on .apb-msg, .app-bar.is-on .apb-go { margin-top: 10px; }
.apb-msg { order: 4; flex: 1 1 0; min-width: 0; height: 44px; }
.apb-go { order: 5; flex-shrink: 0; }
.apb-go em { min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.24); font-style: normal; font-size: 12px; display: grid; place-items: center; }
/* les messages éphémères passent au-dessus des barres collées en bas */
.app:has(.app-bar) .toast, .app:has(.submit-bar:not(.is-static)) .toast { bottom: 104px; }
/* colonne de droite et liste des envois */
.app-aside { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.app-aside h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.app-aside h3 svg { width: 18px; height: 18px; color: var(--accent); }
.app-src { display: flex; align-items: center; gap: 12px; }
.app-src img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.app-src b { display: block; font-size: 14.5px; color: var(--ink); }
.app-src small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.app-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.app-kinds li { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--text); }
.app-aside .link-btn { align-self: flex-start; }
.app-how { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px 14px 14px 32px; border-radius: 16px; background: var(--bg); font-size: 13px; line-height: 1.5; color: var(--text); }
.app-how li::marker { font-weight: 900; color: var(--accent); }
.app-pkgs { display: flex; flex-direction: column; gap: 10px; }
.app-pkg { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--bg); }
.app-pkg > img, .app-pkg-ph { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #fff; display: grid; place-items: center; }
.ae-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ae-txt b { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-txt small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.ae-link { display: flex; align-items: center; gap: 8px; }
.ae-link select { height: 40px; width: 240px; font-size: 13.5px; background-color: #fff; }
.app-panel { margin-top: 18px; }
.tag.t-app { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------ onglets de versions différentes */
.oldtab { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 9px 16px; background: var(--wait-soft); border-bottom: 1px solid var(--wait-line); color: #92400e; font-size: 13.5px; font-weight: 700; text-align: center; }
.oldtab svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--wait); }
.outdated { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.outdated h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.outdated p { max-width: 440px; color: var(--text); }

/* ------------------------------------------------ tailles d'écran */
@media (max-width: 1180px) {
  .app:has(.submit-bar) .chat-fab, .app:has(.app-bar) .chat-fab { bottom: 96px; }
  .demo-pill b { display: none; }
  .pv-body { grid-template-columns: 1fr; }
  .pv-side { position: static; }
  .thread { max-height: none; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-meter { position: static; }
  .proj-list { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px 34px; }
  .auth-brand { margin-top: 28px; }
  .auth-visual { display: none; }
  .ctable { overflow-x: auto; }
  .c-head, .crow { min-width: 820px; }
}
@media (max-width: 760px) {
  .chat-dr { inset: 0; width: auto; height: auto; border-radius: 0; z-index: 90; }
  .chat-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .sec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .abar { padding: 0 14px; gap: 10px; }
  .abar-role, .me-name, .abar-lang, .abar-logo span, .abar-nav { display: none; }
  .dd-nav { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
  .demo-pill .l { display: none; }
  .demo-pill .s { display: inline; }
  .demo-pill button { padding: 0 10px; }
  .vline .vtxt { flex-basis: calc(100% - 60px); }
  .dd { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
  .amain { padding: 20px 14px 110px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .pv-main { padding: 16px; }
  .pv-head { grid-template-columns: 1fr; }
  .step-head { flex-wrap: wrap; }
  .sh-right { margin-left: 0; align-items: flex-start; width: 100%; flex-direction: row; gap: 10px; }
  .srow { grid-template-columns: 1fr; }
  .srow-note { grid-column: 1; }
  .srow-vars { grid-auto-columns: 78%; }
  .proj-card { grid-template-columns: 1fr; }
  .pc-poster { aspect-ratio: 16 / 9; min-height: 0; }
  .voice-top { grid-template-columns: 1fr; }
  .vline { flex-wrap: wrap; }
  .vline .vt { margin-left: 60px; }
  .fiche dl { grid-template-columns: 1fr; gap: 4px; }
  .fiche dd { margin-bottom: 8px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .submit-bar { flex-wrap: wrap; bottom: 10px; }
  .submit-bar .btn { flex: 1; }
  .scene { height: 48px; }
  .scene-d { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .demo-pill b, .demo-dot { display: none; }
  .demo-pill { margin-left: 0; padding-left: 4px; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-wide { grid-template-columns: 1fr; }
  .app-bar { bottom: 10px; padding: 12px; }
  .apb-info { flex-direction: column; align-items: flex-start; gap: 0; }
  .apb-ask .l { display: none; }
  .apb-ask .s { display: inline; }
  .apb-go { padding: 0 14px; }
  .apb-go .l { display: none; }
  .app:has(.app-bar) .toast { bottom: 150px; }
  .app:has(.app-bar.is-on) .chat-fab { bottom: 150px; }
  .app-pkg { flex-wrap: wrap; }
  .ae-link, .app-pkg > .btn { width: 100%; }
  .ae-link select { flex: 1; width: auto; }
  .app-line { flex-wrap: wrap; }
  .app-line .al-txt { flex-basis: calc(100% - 100px); }
}

.confirm-txt { font-size: 16px; font-weight: 700; color: var(--ink); text-align: center; }
.modal > .i3d:first-child { align-self: center; }

/* chargement de l'espace (après connexion) */
.outdated.is-loading img { animation: pulse-logo 1.2s ease-in-out infinite; border-radius: 14px; }
.outdated.is-loading p { color: var(--muted); font-weight: 700; }
@keyframes pulse-logo { 50% { transform: scale(0.92); opacity: 0.7; } }
