/* Studio Revenue Lab — v2 (20/10) : studio sombre pro, plein écran, accent orange. Mêmes noms de classes que la v1. */
:root {
  --bg: #121212; --panel: #171719; --card: #1f1f22; --card-2: #252528; --line: #2a2a2e; --line-2: #36363c;
  --ink: #f4f4f0; --muted: #8f8f96; --faint: #5c5c63;
  --accent: #c8f25a; --accent-2: #d4f77a; --accent-soft: rgba(200, 242, 90, .13); --on-accent: #141a05;
  --green: #3ccf8a; --green-soft: rgba(60, 207, 138, .14); --yellow: #ffc44d; --yellow-soft: rgba(255, 196, 77, .13);
  --red: #ff5d5d; --red-soft: rgba(255, 93, 93, .14); --blue: #5c9dff; --blue-soft: rgba(92, 157, 255, .14); --tg: #2aa6e0;
  --paper: var(--panel);
  --f-title: "Plus Jakarta Sans", system-ui, sans-serif; --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --r-s: 10px; --ombre: 0 18px 50px -24px rgba(0, 0, 0, .7);
  --onde: #3ccf8a; --sel: rgba(200, 242, 90, .22);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 450 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
h2 { font: 650 17px/1.25 var(--f-body); margin: 0; letter-spacing: -.01em; }
h3 { font: 650 15.5px/1.3 var(--f-body); margin: 0; text-wrap: balance; }
.h1 { font: 800 38px/1.05 var(--f-title); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h1-long { font: 650 26px/1.25 var(--f-body); letter-spacing: -.02em; }
.label { font: 600 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.surtitre { font: 600 11.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.surtitre a { color: inherit; }
.err { color: var(--red); font-weight: 650; }
.lien { font-weight: 600; font-size: 14px; color: var(--accent-2); text-decoration: none; }
.lien:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── coque : barre du haut (ordinateur), barre du bas (téléphone) ── */
.shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 28px; height: 62px;
  padding-top: env(safe-area-inset-top, 0px); background: rgba(14, 14, 16, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 25px/1 var(--f-title); white-space: nowrap; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.brand span { font: 600 10.5px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; align-items: center; gap: 2px; margin-left: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; text-decoration: none;
  font: 550 14px var(--f-body); color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card-2); }
.pastille { font: 650 10.5px/1 var(--f-body); min-width: 19px; padding: 4px 6px; text-align: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.top-droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.creer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; text-decoration: none;
  font: 650 14px var(--f-body); background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px -8px rgba(200, 242, 90, .35); white-space: nowrap; }
.creer-btn:hover { background: var(--accent-2); }
.creer-btn.on { box-shadow: 0 0 0 3px var(--accent-soft); }
.out { font-size: 13px; color: var(--muted); text-decoration: none; }
.out:hover { color: var(--ink); }
.pc { margin: 0; font-size: 13px; font-weight: 550; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; }
.pc::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.pc.on::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.side, .top-mobile { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(21, 21, 24, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { position: relative; text-decoration: none; font: 600 11.5px/1 var(--f-body); color: var(--muted); text-align: center; padding: 17px 2px 15px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a i { position: absolute; top: 6px; right: calc(50% - 26px); font-style: normal; font-size: 10px; min-width: 17px; padding: 2px 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); }
.tabbar .tab-creer { display: grid; justify-items: center; gap: 5px; padding-top: 0; color: var(--ink); }
.tabbar .tab-creer b { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -20px; border-radius: 16px; background: var(--accent); color: var(--on-accent);
  font: 400 30px/1 var(--f-body); box-shadow: 0 10px 24px -8px rgba(255, 106, 61, .8); }
@media (max-width: 1099px) { .topbar { padding: 0 16px; } .topbar .top-droite .out, .topbar .top-droite .creer-btn { display: none; } }
@media (min-width: 1100px) { body { padding-bottom: 0; } .nav { display: flex; } .tabbar { display: none; } }

/* ── contenu : toute la largeur, centré ── */
.wrap { width: min(1640px, 100%); margin: 0 auto; padding: 22px 16px 40px; display: grid; gap: 22px; align-content: start; min-width: 0; }
@media (min-width: 1100px) { .wrap { padding: 34px 40px 60px; gap: 26px; } }
.page-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.page-tete > div { display: grid; gap: 6px; min-width: 0; flex: 1 1 320px; }
.page-tete p { margin: 0; }
.bloc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.bloc > p { margin: 0; }
.bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bloc-tete h2 { font: 650 17px/1.2 var(--f-body); }
.lignes { display: grid; gap: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.vide { margin: 0; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r-s); color: var(--muted); }
.vide a { color: var(--accent-2); }

/* ── éléments communs ── */
.btn { font: 600 14px/1 var(--f-body); color: var(--ink); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: #2b2b31; border-color: #45454e; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.primary, .btn.primary.grand { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.tg { background: rgba(42, 166, 224, .14); border-color: rgba(42, 166, 224, .4); color: #8fd3f4; }
.btn.ghost { background: transparent; border-style: dashed; color: var(--muted); width: fit-content; }
.btn.grand { font-size: 15.5px; padding: 14px 22px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font: 600 10.5px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--muted); }
.chip.s-a_poster, .chip.ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.chip.s-postee { background: var(--green); border-color: var(--green); color: #07130d; }
.chip.s-a_revoir, .chip.faible { background: var(--yellow-soft); border-color: transparent; color: var(--yellow); }
.chip.s-non { background: var(--red-soft); border-color: transparent; color: var(--red); }
.chip.ver { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters a { font-weight: 550; font-size: 13px; text-decoration: none; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters .n { color: var(--muted); }
select, input[type="search"], input[type="date"], input[type="url"], input[type="text"], input[type="number"], input:not([type]), textarea {
  font: 500 14px var(--f-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; max-width: 100%; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
textarea { width: 100%; min-height: 52px; resize: vertical; line-height: 1.5; }
details summary { cursor: pointer; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* ── accueil ── */
.chiffres, .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .chiffres, .stats { grid-template-columns: repeat(4, 1fr); } }
.chiffre, .stat { display: grid; gap: 4px; padding: 18px 20px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.chiffre:hover, .stat:hover { border-color: var(--line-2); background: var(--card-2); }
.chiffre strong, .stat strong { font: 400 42px/1 var(--f-title); font-variant-numeric: tabular-nums; }
.chiffre span, .stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.chiffre.alerte { border-color: rgba(200, 242, 90, .5); background: var(--card); }
.chiffre.alerte strong { color: var(--accent-2); }
.chiffre small { font-size: 12px; color: var(--green); }
.accueil { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1200px) { .accueil { grid-template-columns: minmax(0, 1fr) 380px; } }
.col-principale, .col-cote { display: grid; gap: 22px; min-width: 0; }
.vligne { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.vligne-corps { display: grid; gap: 5px; min-width: 0; }
.vligne-corps strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.vligne-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) { .vligne { grid-template-columns: 54px 1fr auto; } .vligne-actions { grid-column: auto; } }
.jour { display: grid; gap: 8px; }
.jour + .jour { padding-top: 14px; border-top: 1px solid var(--line); }
.jour-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jour-tete h3 { margin-right: auto; }
.count { font: 600 12.5px var(--f-body); padding: 4px 9px; border-radius: 7px; background: var(--card-2); font-variant-numeric: tabular-nums; }
.count.ok { background: var(--green-soft); color: var(--green); } .count.low { background: var(--red-soft); color: var(--red); }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan { display: grid; gap: 14px; }
@media (min-width: 900px) { .plan { grid-template-columns: repeat(2, 1fr); } }
.job-ligne { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.job-ligne:hover { border-color: var(--line-2); background: var(--card-2); }
.job-icone { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--card-2); font: 650 14px var(--f-body); }
.job-corps { display: grid; gap: 2px; min-width: 0; } .job-corps b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-ligne.st-en_cours .job-icone { background: var(--accent-soft); color: var(--accent-2); animation: pulse 1.4s ease-in-out infinite; }
.job-ligne.st-fait .chip.st { background: var(--green-soft); color: var(--green); border-color: transparent; }
.job-ligne.st-erreur .chip.st { background: var(--red-soft); color: var(--red); border-color: transparent; }
.job-ligne.st-en_cours .chip.st, .job-ligne.st-en_attente .chip.st { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }
.fil-actu { display: grid; gap: 8px; }
.fil-actu .job-ligne { grid-template-columns: 32px 1fr; } .fil-actu .job-ligne .chip.st { display: none; }
.fil-actu .job-icone { width: 32px; height: 32px; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .job-ligne.st-en_cours .job-icone, .roue, .anneau, .act-barre i { animation: none; } }

/* ── lignes et cartes vidéo ── */
.vrow { display: grid; grid-template-columns: auto 54px 1fr; gap: 12px; align-items: center; min-width: 0; }
.vrow:not(:has(.rang)) { grid-template-columns: 54px 1fr; }
.vrow input[type="date"] { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 560px) { .vrow { grid-template-columns: auto 54px 1fr auto; } .vrow:not(:has(.rang)) { grid-template-columns: 54px 1fr auto; } .vrow input[type="date"] { grid-column: auto; } }
.rang { font: 400 24px var(--f-title); width: 22px; text-align: center; color: var(--muted); }
.mini { width: 54px; aspect-ratio: 9 / 16; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: #000; cursor: pointer; overflow: hidden; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vrow-body { display: grid; gap: 5px; min-width: 0; }
.vrow-body strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px; min-width: 0; }
.vcard:hover { border-color: var(--line-2); }
@media (max-width: 420px) { .vcard { grid-template-columns: 1fr; } .thumb { max-width: 200px; } }
.thumb { width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 10px; background: #000; position: relative; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.thumb:hover img { transform: scale(1.04); }
.thumb .play { position: absolute; inset: auto 8px 8px auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; font-size: 12px; }
.thumb .duree { position: absolute; left: 6px; top: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 11px var(--f-body); padding: 3px 6px; border-radius: 5px; }
.vbody { display: grid; gap: 10px; min-width: 0; align-content: start; }
.vtete { display: grid; gap: 5px; } .vtete h3 { font-size: 15.5px; }
.genere { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hook { font-size: 13px; color: var(--muted); margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); width: fit-content; }
.seg button { font: 550 12px/1 var(--f-body); padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--ink); }
.seg button.s-a_poster[aria-pressed="true"], .seg button.t-valide[aria-pressed="true"], .seg button.h-confirmee[aria-pressed="true"] { background: var(--green); color: #07130d; }
.seg button.s-a_revoir[aria-pressed="true"], .seg button.t-peut_etre[aria-pressed="true"], .seg button.h-a_tester[aria-pressed="true"] { background: var(--yellow); color: #1a1405; }
.seg button.s-non[aria-pressed="true"], .seg button.t-rejete[aria-pressed="true"], .seg button.h-rejetee[aria-pressed="true"] { background: var(--red); color: #fff; }
.stars button { font-size: 20px; line-height: 1; padding: 0 1px; border: 0; background: none; color: #45444a; cursor: pointer; }
.stars button.on { color: var(--yellow); }
.date { font-weight: 550; font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.vcard .actions .date { margin-left: auto; }
.vcard .btn.ed-lien { background: var(--accent-soft); border-color: rgba(200, 242, 90, .45); color: var(--accent-2); }
.pub { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pub-item { display: grid; gap: 4px; margin-top: 8px; }
.pub-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pub-item p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.plus-infos summary { font-size: 13px; color: var(--muted); }
.plus-corps { display: grid; gap: 8px; margin-top: 10px; }
.plus-corps .btn { justify-self: start; }

/* onglets */
.onglets { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); }
.onglets a { text-decoration: none; font-weight: 550; font-size: 14px; padding: 11px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets a:hover { color: var(--ink); }
.onglets a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.onglets .n { color: var(--faint); margin-left: 4px; }
.onglets select { margin: 0 0 6px auto; }

/* sujets */
.slist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.scard details p { font-size: 14px; margin: 6px 0 0; }
.pot { font-weight: 650; letter-spacing: 1px; color: var(--yellow); }
.sujets-table td { vertical-align: top; }
.sujets-table .s-ligne { cursor: pointer; }
.sujets-table .s-ligne:hover td { background: var(--card-2); }
.sujets-table .s-titre { min-width: 220px; max-width: 380px; }
.sujets-table .s-titre b, .sujets-table .s-titre span { display: block; }
.sujets-table td.small { min-width: 160px; max-width: 280px; }
.sujets-table th a { color: inherit; }
.sujets-table .s-detail td { background: var(--panel); }
.sujets-table .s-detail textarea { width: 100%; min-height: 70px; margin-top: 8px; }
.note { display: inline-block; min-width: 34px; padding: 4px 6px; border-radius: 6px; font-weight: 650; text-align: center; background: var(--card-2); }
.note.n9, .note.n10 { background: var(--green); color: #07130d; }
.note.n8, .note.n7 { background: var(--green-soft); color: var(--green); }
.note.n6, .note.n5 { background: var(--yellow-soft); color: var(--yellow); }

/* bibliothèque : images, sons */
.search { display: flex; gap: 8px; } .search input { flex: 1; min-width: 0; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.acell { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 5px; cursor: pointer; text-align: center; font: 550 11px var(--f-body); color: var(--ink); min-width: 0; }
.acell:hover { border-color: var(--accent); }
.acell img { width: 100%; aspect-ratio: 1; object-fit: contain; background: repeating-conic-gradient(#232328 0 25%, #1c1c20 0 50%) 0 0 / 16px 16px; border-radius: 6px; }
.acell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acell .adate { font: 500 10px var(--f-body); color: var(--muted); }
.acell.archive { opacity: .55; border-style: dashed; }
.sound-cat { display: grid; gap: 6px; }
.srow { display: grid; grid-template-columns: 44px 1fr 40px 40px; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.srow.banni .sname { text-decoration: line-through; color: var(--muted); }
.playbtn { width: 40px; height: 40px; border: 0; border-radius: 9px; background: var(--accent); color: var(--on-accent); cursor: pointer; font-size: 13px; }
.playbtn.on { background: var(--green); color: #07130d; }
.sname { font-weight: 550; overflow-wrap: anywhere; }
.tog { height: 40px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; cursor: pointer; font-size: 16px; opacity: .45; color: var(--ink); }
.tog[aria-pressed="true"] { opacity: 1; background: var(--yellow-soft); }
.tog.ban[aria-pressed="true"] { background: var(--red-soft); }

/* plein écran */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, .94); backdrop-filter: blur(6px); display: grid; grid-template-rows: auto 1fr auto; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.lb-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb video, .lb img { max-height: 100%; max-width: 100%; border-radius: 12px; }
.lb video { height: 100%; background: #000; }
.lb img { background: repeating-conic-gradient(#2a2a2f 0 25%, #1f1f23 0 50%) 0 0 / 24px 24px; }
.lb-desc { color: var(--muted); font-size: 14px; text-align: center; }

#toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); z-index: 200;
  background: var(--ink); color: var(--bg); font-weight: 600; padding: 11px 18px; border-radius: 12px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--red); color: #fff; }
@media (min-width: 1100px) { #toast { bottom: 28px; } }

/* connexion */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; max-width: 400px; display: grid; gap: 12px; box-shadow: var(--ombre); }
.login-card h1 { font: 400 48px/1 var(--f-title); margin: 0; }
.login-card p { margin: 0; color: var(--muted); }

/* formulaires, questions, profil */
.form { display: grid; gap: 12px; max-width: 860px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form .btn { justify-self: start; }
.form p { margin: 0; }
.ask textarea { min-height: 110px; }
.fil { display: grid; gap: 14px; max-width: 980px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.qa .q { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; }
.qa .rep { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; color: #dcd9d2; }
textarea.doc { min-height: 64vh; font: 500 13.5px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; }
.hist { max-width: 860px; }
.hrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.demande { max-width: 860px; }
.demande > summary { list-style: none; width: fit-content; }
.demande > summary::-webkit-details-marker { display: none; }
.demande[open] > summary { margin-bottom: 12px; }
.jobs { display: grid; gap: 6px; }
.job { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.job.st-fait .chip { background: var(--green-soft); color: var(--green); } .job.st-erreur .chip { background: var(--red-soft); color: var(--red); }
.job.st-en_cours .chip { background: var(--yellow-soft); color: var(--yellow); }
.plus-liste { display: grid; gap: 10px; max-width: 680px; }
.plus-item { display: grid; gap: 3px; padding: 16px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.plus-item span { color: var(--muted); font-size: 14px; }
.plus-item:hover { border-color: var(--line-2); }

/* ── éditeur (page Revue) : prend tout l'écran ── */
.ed-wrap { width: min(1880px, 100%); margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
@media (min-width: 1100px) { .ed-wrap { padding: 20px 28px 32px; } }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ed-titre { font: 650 20px/1.25 var(--f-body); letter-spacing: -.01em; margin: 0; flex: 1 1 300px; min-width: 0; text-wrap: balance; }
.ed-ver { display: flex; align-items: center; gap: 8px; }
.ed-bandeau { margin: 0; padding: 11px 14px; border-radius: 10px; background: var(--yellow-soft); color: var(--yellow); font-weight: 550; }
.ed-bandeau.ok { background: var(--green-soft); color: var(--green); } .ed-bandeau.err { background: var(--red-soft); color: var(--red); }
.ed { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .ed { grid-template-columns: minmax(300px, auto) minmax(380px, 1fr); } }
.ed-player { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.ed-frame { position: relative; height: min(70vh, 860px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--ombre); border: 1px solid var(--line); }
.ed-frame video { width: 100%; height: 100%; display: block; }
.ed-overlay { position: absolute; inset: 0; cursor: crosshair; overflow: hidden; }
.ov-box { position: absolute; border: 2px dashed var(--yellow); border-radius: 4px; background: rgba(255, 196, 77, .1); pointer-events: none; }
.ov-box.choisi { border-style: solid; border-color: var(--accent); background: rgba(200, 242, 90, .12); }
.ov-box span { position: absolute; left: -2px; bottom: 100%; background: var(--bg); color: var(--ink); font: 600 11px/1 var(--f-body); padding: 4px 6px; border-radius: 4px 4px 0 0; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ov-pt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 12px var(--f-body); pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.ov-pt.nouveau { background: var(--green); color: #07130d; }
.ov-pt.s-traitee { background: var(--card-2); color: var(--muted); }
.ed-ctrl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.ed-time { font: 600 14px var(--f-body); font-variant-numeric: tabular-nums; min-width: 104px; text-align: center; }
.ed-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; max-height: calc(70vh + 60px); overflow: auto; }
.ed-aide { font-size: 14px; } .ed-aide ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 5px; color: #d6d3cc; } .ed-aide p { margin: 0; }
.ed-form { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.f-tete { display: flex; align-items: center; gap: 8px; } .f-tete b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.f-groupe { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; } .f-groupe legend { font: 600 13px var(--f-body); padding: 0; margin-bottom: 6px; }
.f-champ { display: grid; gap: 7px; font: 600 13px var(--f-body); align-content: start; }
.f-champ select, .f-champ input { width: 100%; }
.f-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.f-asset { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 4px; cursor: pointer; display: grid; gap: 2px; font: 550 10px var(--f-body); color: var(--ink); min-width: 0; }
.f-asset img { width: 100%; aspect-ratio: 1; object-fit: contain; } .f-asset span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-asset.on { border-color: var(--accent); background: var(--accent-soft); }
.f-depot { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; display: grid; gap: 2px; justify-items: center; cursor: pointer; text-align: center; background: var(--panel); }
.f-depot.sur { border-color: var(--accent); background: var(--accent-soft); }
.f-pieces { display: flex; flex-wrap: wrap; gap: 8px; }
.f-piece { display: grid; gap: 4px; width: 132px; } .f-piece img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; }
.f-piece select { font-size: 12px; padding: 4px; }
.f-contexte { margin: 0; } .f-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.f-rien { grid-column: 1 / -1; margin: 0; }
.ed-liste-tete h2 { font-size: 15px; }
.ed-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rq { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.rq.vu { border-color: var(--accent); } .rq.s-traitee { opacity: .65; }
.rq-num { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font: 700 12px var(--f-body); cursor: pointer; padding: 0; }
.rq-corps { display: grid; gap: 4px; min-width: 0; font-size: 14px; } .rq-corps p { margin: 0; overflow-wrap: anywhere; }
.rq-cible { font-weight: 600; }
.rq.s-envoyee .chip.st { background: var(--yellow-soft); color: var(--yellow); } .rq.s-traitee .chip.st { background: var(--green-soft); color: var(--green); }
.rq-asset { display: flex; align-items: center; gap: 6px; } .rq-asset img { width: 34px; height: 34px; object-fit: contain; }
.rq-pieces { display: flex; gap: 6px; flex-wrap: wrap; } .rq-pieces img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.rq-actions { display: flex; gap: 6px; }
.ed-envoyer { justify-self: start; } .ed-envoyer + p { margin: 0; }
.ed-ancienne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 196, 77, .4); background: var(--yellow-soft); }
.ed-ancienne p { margin: 0; } .ed-ancienne .muted { flex-basis: 100%; }
.ed-resume { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); } .ed-resume .msg-texte { margin-top: 8px; font-size: 14px; }
.ed-tl { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); min-width: 0; overflow: hidden; }
.tl-barre { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tl-corps { display: grid; grid-template-columns: 84px 1fr; }
.tl-noms { border-right: 1px solid var(--line); background: var(--panel); }
.tl-nom { font: 600 10.5px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tl-scroll { overflow-x: auto; overflow-y: hidden; min-width: 0; }
.tl-inner { position: relative; user-select: none; cursor: text; }
.tl-piste { position: relative; border-bottom: 1px solid var(--line); }
.tl-regle { background: var(--panel); cursor: col-resize; }
.tl-grad { position: absolute; top: 0; height: 6px; border-left: 1px solid var(--faint); }
.tl-grad.fort { height: 22px; font: 550 10px/1 var(--f-body); color: var(--muted); padding: 2px 0 0 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-images { background: #000; } .tl-img { position: absolute; top: 0; width: 36px; height: 64px; background-repeat: no-repeat; border-right: 1px solid #000; }
.tl-bloc { position: absolute; top: 3px; bottom: 3px; overflow: hidden; white-space: nowrap; font: 550 11px/1 var(--f-body); padding: 0 6px; display: flex; align-items: center; gap: 4px;
  border-radius: 5px; border: 1px solid rgba(255, 255, 255, .08); background: var(--card-2); color: var(--ink); cursor: pointer; }
.tl-bloc:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sc-jaune { background: #3a3220; } .sc-bleu { background: #1f2c40; } .sc-vert { background: #1d3328; } .sc-rouge { background: #3d2222; } .sc-gris { background: #2a2b2e; } .sc-decor { background: #362e24; }
.tl-visuels .tl-bloc { top: auto; height: 24px; bottom: auto; }
.tl-bloc img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.el-title, .el-card, .el-bubble { background: #34301f; } .el-char { background: #2c2540; } .el-object, .el-list { background: #1f3329; } .el-verdict { background: #3d2222; }
.tl-voix canvas { position: absolute; left: 0; top: 0; }
.tl-voix .tl-bloc { background: transparent; border-color: rgba(243, 241, 236, .25); color: var(--ink); text-shadow: 0 0 4px #000; align-items: flex-start; padding-top: 3px; }
.tl-voix .tl-bloc.mots i { position: absolute; top: 3px; font-style: normal; font-size: 10px; padding: 1px 2px; cursor: pointer; }
.tl-voix .tl-bloc.mots i:hover { background: var(--accent); color: var(--on-accent); }
.tl-subs .tl-bloc { background: #f3f1ec; color: #111; border-color: transparent; }
.tl-rq .tl-bloc { background: var(--accent); color: var(--on-accent); justify-content: center; font-weight: 700; }
.tl-rq .tl-bloc.s-traitee { background: var(--green-soft); color: var(--green); } .tl-rq .tl-bloc.s-envoyee { background: var(--yellow-soft); color: var(--yellow); }
.tl-tete { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; z-index: 3; }
.tl-tete::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--accent); }
.tl-selection { position: absolute; top: 0; bottom: 0; background: var(--sel); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); pointer-events: none; z-index: 2; }
.tl-retention { background: #121215; } .tl-retention canvas { position: absolute; left: 0; top: 0; }
.tl-chute { position: absolute; top: 2px; transform: translateX(-50%); font: 700 10px/1 var(--f-body); background: var(--red); color: #fff; padding: 2px 4px; border-radius: 3px; cursor: help; }
.tl-legende { position: absolute; left: 4px; bottom: 2px; font: 550 10px var(--f-body); color: var(--muted); }
.ed-frame.paysage { height: auto; width: min(100%, 1280px); aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .ed.ed-paysage { grid-template-columns: minmax(0, 1fr) 400px; } .ed.ed-paysage .ed-frame.paysage { width: 100%; } }
@media (max-width: 899px) { .ed-frame { height: min(56vh, 640px); } .ed-panel { max-height: none; } .tl-corps { grid-template-columns: 64px 1fr; } .tl-nom { font-size: 9px; padding: 0 5px; } }

/* ── création (ancien flux) et projet ── */
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.etapes li { display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 13px; color: var(--faint); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.etapes b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card-2); font-size: 11.5px; font-weight: 650; }
.etapes li.on { color: var(--ink); border-color: rgba(200, 242, 90, .55); } .etapes li.on b { background: var(--accent); color: var(--on-accent); }
.etapes li.fait { color: var(--muted); } .etapes li.fait b { background: var(--green); color: #07130d; }
.creer { display: grid; gap: 22px; }
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.format { position: relative; display: block; cursor: pointer; text-decoration: none; }
.format input { position: absolute; opacity: 0; }
.format-corps { height: 100%; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.format-corps b { font-size: 15.5px; font-weight: 650; } .format-corps span { font-size: 13.5px; color: #d0cdc6; } .format-corps i { font-size: 12.5px; color: var(--muted); }
.format:hover .format-corps { border-color: var(--line-2); }
.format input:checked + .format-corps { border-color: var(--accent); background: var(--panel); }
.format.bientot { cursor: not-allowed; } .format.bientot .format-corps { border-style: dashed; opacity: .6; }
.sujet-grille { display: grid; gap: 14px; }
@media (min-width: 900px) { .sujet-grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.sujet-options { display: grid; gap: 12px; }
.f-champ.large textarea { min-height: 150px; }
.creer-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.creer-bas p { margin: 0; max-width: 560px; }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ref { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 196, 77, .3); background: var(--yellow-soft); color: var(--ink); text-decoration: none; min-width: 0; }
.ref b { font-size: 15px; color: var(--yellow); } .ref span { font-size: 13px; line-height: 1.4; color: #d6d3cc; }
.creation { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1100px) { .creation { grid-template-columns: minmax(0, 1fr) 360px; } }
.fil-ia { gap: 14px; }
.msg { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); max-width: 920px; min-width: 0; }
.msg.hatim { background: var(--accent-soft); border-color: rgba(200, 242, 90, .3); justify-self: end; max-width: min(760px, 92%); }
.msg.ia { background: var(--panel); }
.msg-qui { margin: 0; font: 600 12.5px var(--f-body); color: var(--muted); }
.msg-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-texte a { color: var(--accent-2); }
.msg-info { margin: 0; justify-self: center; font-size: 12.5px; font-weight: 550; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--card-2); }
.points { display: inline-flex; gap: 3px; } .points i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
.points i:nth-child(2) { animation-delay: .2s; } .points i:nth-child(3) { animation-delay: .4s; }
.hooks { display: grid; gap: 8px; }
.hook-carte { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); display: grid; gap: 6px; }
.hook-carte.choisi { border-color: var(--green); background: var(--green-soft); }
.hook-texte { margin: 0; font: 600 16.5px/1.35 var(--f-body); } .hook-carte p { margin: 0; }
.script { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); }
.script p { margin: 0; } .script ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.script .qui { font: 650 10.5px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); margin-right: 6px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; position: sticky; bottom: 12px; padding: 10px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--ombre); }
.composer textarea { min-height: 54px; border: 0; background: transparent; box-shadow: none; }
@media (max-width: 1099px) { .composer { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.recap dt { font-weight: 550; color: var(--muted); } .recap dd { margin: 0; overflow-wrap: anywhere; }
.recap .btn { justify-self: start; }
@media (min-width: 1100px) { .recap { position: sticky; top: 84px; } }
.fabrique { gap: 16px; }
.chargement { display: flex; gap: 18px; align-items: center; }
.chargement h2 { font: 400 30px/1.1 var(--f-title); } .chargement p { margin: 4px 0 0; }
.etat-fab { font-weight: 600; color: var(--accent-2); }
.roue { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--card-2); border-top-color: var(--accent); animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.fab-etapes { margin: 0; padding-left: 22px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.v0 { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .v0 { grid-template-columns: auto 1fr; } }
.v0-video { height: min(64vh, 680px); aspect-ratio: 9 / 16; max-width: 100%; background: #000; border-radius: 14px; }
.v0-corps { display: grid; gap: 10px; align-content: start; } .v0-corps p, .v0-corps h2 { margin: 0; } .v0-corps h2 { font-size: 22px; }

/* ── stats, hypothèses ── */
.table-defile { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.stats-table th { text-align: left; font: 600 10.5px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stats-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-table .fort { font-weight: 650; background: var(--accent-soft); color: var(--accent-2); }
.t-video { display: flex; align-items: center; gap: 10px; min-width: 240px; } .t-video img { width: 30px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; }
.debrief { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.debrief-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .debrief-tete b { margin-right: auto; flex-basis: 100%; }
.hyp { display: grid; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.hyp.st-confirmee { border-color: rgba(60, 207, 138, .4); } .hyp.st-rejetee { opacity: .55; } .hyp.st-a_tester { border-color: rgba(255, 196, 77, .4); }
.hyp-quand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .perte { font-weight: 650; color: var(--red); }
.hyp-texte, .hyp-regle { margin: 0; } .hyp-regle { font-size: 14px; font-weight: 600; }
.hyp-reponse, .hyp-ajout input { min-width: 0; }
.hyp-ajout { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; }
@media (max-width: 600px) { .hyp-ajout { grid-template-columns: 1fr; } }
.hyps { display: grid; gap: 16px; }
.hcarte { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 760px) { .hcarte { grid-template-columns: 200px 1fr; } }
.hcarte.st-confirmee { border-color: rgba(60, 207, 138, .4); } .hcarte.st-rejetee { opacity: .6; } .hcarte.st-a_tester { border-color: rgba(255, 196, 77, .4); }
.hcarte-video { display: grid; gap: 6px; justify-items: start; align-content: start; }
.hcarte-video video { width: 200px; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; }
.hcarte-corps { display: grid; gap: 10px; align-content: start; min-width: 0; }
.hcarte-tete { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .hcarte-tete b { margin-right: auto; }
.hcarte-moment { display: flex; align-items: center; gap: 10px; }
.hcarte-moment .t { font: 400 30px/1 var(--f-title); }
.mini-courbe { width: 200px; max-width: 45%; height: 48px; color: var(--accent); background: var(--panel); border-radius: 8px; margin-left: auto; }
.hcarte p { margin: 0; } .hcarte .label { display: block; margin-bottom: 2px; }
.hcarte-ecran { font-size: 14px; color: var(--muted); }
.hcarte-hyp { font-size: 16px; font-weight: 600; }
.hcarte-exemple { padding: 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--panel); display: grid; gap: 4px; }
.hcarte-exemple .regle { font-weight: 650; }
.ab { padding: 12px; border-radius: 10px; background: var(--yellow-soft); display: grid; gap: 4px; font-size: 14px; }
.hcarte .seg button[disabled] { opacity: .45; cursor: not-allowed; }

/* ── en direct ── */
.activite { display: grid; gap: 8px; }
.activite[hidden] { display: none; }
.activite-titre { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.anneau { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--card-2); border-top-color: var(--accent); animation: tourne .9s linear infinite; flex: none; }
.act { display: grid; gap: 4px; padding: 10px 12px; text-decoration: none; border-radius: 12px; border: 1px solid rgba(200, 242, 90, .3); background: var(--card); }
.act:hover { background: var(--card-2); }
.act-nom { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.act-nom time { font-variant-numeric: tabular-nums; color: var(--muted); }
.act-sujet { font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-etape { font-size: 12px; color: var(--muted); }
.act-barre { height: 3px; border-radius: 3px; background: var(--card-2); overflow: hidden; position: relative; }
.act-barre i { position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--accent); animation: glisse 1.6s ease-in-out infinite; }
@keyframes glisse { 0% { left: -35%; } 100% { left: 100%; } }
.activite.flottante { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--ombre); padding: 8px; max-height: 46vh; overflow: auto; }
.activite.flottante:not(.ouvert) .act:not(:first-of-type) { display: none; }
.activite.flottante:not(.ouvert) .act-barre { display: none; }
.activite.cote { position: fixed; left: 20px; bottom: 20px; z-index: 30; width: 330px; max-height: 50vh; overflow: auto; padding: 10px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--ombre); }
@media (max-width: 1099px) { .activite.cote { display: none; } }
@media (min-width: 1100px) { .activite.flottante { display: none; } }
#notifs { position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 210; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); }
@media (min-width: 1100px) { #notifs { bottom: 20px; } }
.notif { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; border-radius: 12px; border: 1px solid rgba(60, 207, 138, .4); background: #13241b; box-shadow: var(--ombre); animation: entre .25s ease-out; transition: opacity .5s; }
.notif.err { border-color: rgba(255, 93, 93, .4); background: #2a1515; } .notif.part { opacity: 0; }
.notif span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes entre { from { transform: translateY(12px); opacity: 0; } }

/* ── vidéos longues → clips ── */
.rush-depot { position: relative; display: grid; place-items: center; min-height: 160px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--panel); text-align: center; cursor: pointer; padding: 18px; }
.rush-depot:hover { border-color: var(--accent); }
.rush-depot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rush-depot-texte { display: grid; gap: 6px; }
.rush-depot:has(input:valid) { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.envoi { display: grid; gap: 6px; width: min(100%, 560px); }
.envoi-barre, .barre { height: 6px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.envoi-barre i, .barre i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; border-radius: 6px; }
.job-ligne.moment { cursor: pointer; }
.job-ligne.moment input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ── frise ── */
.frise-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.frise-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.frise-legende .lg { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; font-size: 14px; }
.frise-legende .lg b { font-variant-numeric: tabular-nums; }
.frise-legende .lg i { width: 12px; height: 12px; border-radius: 3px; }
.frise-legende .postee i { background: var(--green); }
.frise-legende .prevue i { background: var(--blue); }
.frise-legende .relance i { background: var(--yellow-soft); border: 1px dashed var(--yellow); }
.frise-aide { flex: 1 1 260px; }
.frise { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); scrollbar-color: var(--line-2) var(--panel); }
.frise-piste { position: relative; display: flex; width: max-content; min-width: 100%; padding-top: 58px; min-height: 400px; }
.frise-arcs { position: absolute; top: 0; left: 0; height: 58px; overflow: visible; pointer-events: none; }
.frise-arcs path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .6; }
.frise-arcs path.on { stroke: var(--accent); stroke-width: 2.5; opacity: 1; }
.frise-arcs text { font: 600 11px var(--f-body); text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.fj { flex: 0 0 186px; display: flex; flex-direction: column; border-left: 1px solid var(--line); transition: background .15s; }
.fj.lundi { border-left-color: var(--line-2); }
.fj.passe { background: rgba(0, 0, 0, .18); }
.fj.auj { background: var(--accent-soft); }
.fj.cible { background: var(--blue-soft); }
.fj-tete { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "jour compte" "num compte" "rail rail"; align-items: end; padding: 0 10px; row-gap: 1px; }
.fj-jour { grid-area: jour; font: 600 10.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fj.auj .fj-jour { color: var(--accent-2); }
.fj-num { grid-area: num; font: 400 28px/1 var(--f-title); display: flex; align-items: baseline; gap: 5px; }
.fj-num small { font: 550 12px var(--f-body); color: var(--muted); }
.fj-compte { grid-area: compte; display: flex; gap: 4px; align-self: center; }
.fj-compte b { min-width: 22px; padding: 3px 6px; text-align: center; font: 650 11.5px/1 var(--f-body); border-radius: 5px; color: #fff; font-variant-numeric: tabular-nums; }
.fj-compte .c-postee { background: var(--green); color: #07130d; }
.fj-compte .c-prevue { background: var(--blue); }
.fj-compte .c-relance { background: var(--yellow-soft); color: var(--yellow); }
.fj-rail { grid-area: rail; position: relative; height: 22px; margin: 6px -10px 0; }
.fj-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line-2); }
.fj-rail i { position: absolute; left: 50%; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); }
.fj:not(.vide) .fj-rail i { background: var(--ink); border-color: var(--ink); }
.fj.auj .fj-rail i { width: 16px; height: 16px; top: 3px; margin-left: -8px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fj-cartes { display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 16px; flex: 1; }
.fc { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; padding: 7px; min-width: 0; cursor: pointer; text-align: left; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.fc:hover { border-color: var(--line-2); background: var(--card-2); }
.fc:focus-visible, .fc.choisie { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc.tiree { opacity: .45; }
.fc-vignette { width: 40px; aspect-ratio: 9 / 16; background: #000; border-radius: 5px; overflow: hidden; }
.fc-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-corps { display: grid; gap: 3px; min-width: 0; }
.fc-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; font: 650 9.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.fc-heure { color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-titre { font: 550 12.5px/1.3 var(--f-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fc-chiffres { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-lien { font: 600 11px var(--f-body); color: var(--accent-2); }
.fc.postee { border-left: 3px solid var(--green); } .fc.postee .fc-etat { color: var(--green); }
.fc.prevue { border-left: 3px solid var(--blue); } .fc.prevue .fc-etat { color: var(--blue); }
.fc.prevue[draggable=true], .fc.relance { cursor: grab; }
.fc.relance { background: var(--yellow-soft); border-style: dashed; }
.fc-suivi { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 550; }
.retard .vrow { border-top: 1px solid var(--line); padding-top: 8px; }
.tiroir-fond { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
.tiroir { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: var(--panel); border-top: 1px solid var(--line-2);
  border-radius: 18px 18px 0 0; padding: 0 18px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; align-content: start; }
@media (min-width: 760px) {
  .tiroir { left: auto; top: 0; max-height: none; width: min(460px, 100%); border-top: 0; border-left: 1px solid var(--line-2); border-radius: 0; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); padding-top: env(safe-area-inset-top, 0px); }
  .fj { flex-basis: 204px; } .fc { grid-template-columns: 46px 1fr; } .fc-vignette { width: 46px; }
}
.tiroir-barre { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.tiroir-corps { display: grid; gap: 14px; }
.tiroir-corps p { margin: 0; }
.ti-label { font: 600 10.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ti-type { font: 650 11.5px var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.ti-type.postee { color: var(--green); } .ti-type.prevue { color: var(--blue); } .ti-type.relance { color: var(--yellow); }
.ti-titre { font: 400 30px/1.05 var(--f-title); text-wrap: balance; margin: 0; }
.ti-video { position: relative; display: block; width: 140px; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 12px; background: #000; overflow: hidden; cursor: pointer; }
.ti-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-video .play { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.ti-table-wrap { overflow-x: auto; }
.ti-table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.ti-table th, .ti-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ti-table thead th { font: 600 10px var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: normal; vertical-align: bottom; }
.ti-table tbody th { text-align: left; }
.ti-lien { font-weight: 600; color: var(--accent-2); }
.ti-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-bloc { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ti-origine { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.ti-origine > div { display: grid; gap: 2px; min-width: 0; }
.ti-mini { width: 40px; aspect-ratio: 9 / 16; background: #000; overflow: hidden; border-radius: 5px; }
.ti-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-champ { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.ti-champ input, .ti-champ select, .ti-champ textarea { width: 100%; }
.ti-relance { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(255, 196, 77, .5); background: var(--yellow-soft); }
.ti-relance h3 { font: 400 24px/1 var(--f-title); }
.ti-relance p { margin: 0; }
.ti-delais { display: flex; flex-wrap: wrap; gap: 6px; }
.ti-delais [aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ti-etapes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: e; }
.ti-etapes li { counter-increment: e; font: 550 12px var(--f-body); padding: 5px 9px; border-radius: 7px; background: var(--card-2); }
.ti-etapes li::before { content: counter(e) ". "; }
.ti-etapes li.fait { background: var(--green-soft); color: var(--green); }
.ti-etapes li.en-cours { background: var(--accent-soft); color: var(--accent-2); }
.ti-annuler { justify-self: start; }
.tiroir[hidden], .tiroir-fond[hidden] { display: none; }
.page-tete > .frise-actions { flex: 0 0 auto; display: flex; }

/* ═════════ v2 : espace Créer (assistant en étapes) ═════════ */
.cr { display: grid; gap: 26px; }
.cr-hero { display: grid; gap: 10px; padding: 8px 0 4px; }
.cr-hero .h1 { font-size: clamp(40px, 5vw, 64px); }
.cr-hero p { margin: 0; max-width: 720px; color: var(--muted); font-size: 16px; }
.cr-section { display: grid; gap: 16px; }
.cr-section > header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cr-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); font: 650 13px var(--f-body); flex: none; }
.cr-section.ok .cr-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cr-section > header h2 { font: 400 28px/1.1 var(--f-title); letter-spacing: 0; }
.cr-section > header p { margin: 0; color: var(--muted); font-size: 14px; flex-basis: 100%; padding-left: 44px; }
.cr-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.cr-type { position: relative; display: block; cursor: pointer; }
.cr-type input { position: absolute; opacity: 0; pointer-events: none; }
.cr-type-corps { position: relative; height: 100%; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); overflow: hidden; transition: border-color .15s, transform .15s, background .15s; }
.cr-type-corps::after { content: none; }
.cr-type:hover .cr-type-corps { border-color: var(--line-2); transform: translateY(-2px); }
.cr-type input:checked + .cr-type-corps { border-color: var(--accent); background: var(--card); }
.cr-type input:checked + .cr-type-corps::after { opacity: 1; }
.cr-type input:focus-visible + .cr-type-corps { outline: 2px solid var(--accent); outline-offset: 3px; }
.cr-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--accent-2); }
.cr-ico svg { width: 22px; height: 22px; }
.cr-type b { font: 650 17px/1.25 var(--f-body); letter-spacing: -.01em; }
.cr-type span.d { font-size: 13.5px; color: #c9c6bf; line-height: 1.45; }
.cr-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cr-tags i { font: 550 11px var(--f-body); font-style: normal; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: var(--panel); }
.cr-type .badge { position: absolute; top: 16px; right: 16px; font: 650 10px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.cr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-pill { position: relative; cursor: pointer; }
.cr-pill input { position: absolute; opacity: 0; pointer-events: none; }
.cr-pill span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 550 14px var(--f-body); color: #d6d3cc; transition: all .15s; }
.cr-pill span small { color: var(--muted); font-size: 12px; }
.cr-pill:hover span { border-color: #4a4a54; }
.cr-pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.cr-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-ligne { display: grid; gap: 14px; }
@media (min-width: 900px) { .cr-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cr-champ { display: grid; gap: 8px; font: 600 13.5px var(--f-body); align-content: start; }
.cr-champ small { font-weight: 450; color: var(--muted); font-size: 12.5px; }
.cr-champ select, .cr-champ input, .cr-champ textarea { width: 100%; }
.cr-depot { position: relative; display: grid; place-items: center; gap: 8px; min-height: 170px; padding: 24px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 16px;
  background: var(--panel); cursor: pointer; transition: border-color .15s, background .15s; }
.cr-depot:hover, .cr-depot.sur { border-color: var(--accent); background: var(--panel); }
.cr-depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cr-depot b { font-size: 16px; font-weight: 650; }
.cr-depot .muted { font-size: 13.5px; }
.cr-medias { display: grid; gap: 8px; }
.cr-media { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.cr-media .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); font-size: 16px; }
.cr-media .nom { display: grid; gap: 6px; min-width: 0; }
.cr-media .nom b { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-media select { padding: 6px 8px; font-size: 13px; }
.cr-media .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 8px; }
.cr-media .x:hover { color: var(--red); background: var(--red-soft); }
.cr-media.ok .barre i { background: var(--green); }
.cr-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.cr-choix label { position: relative; cursor: pointer; }
.cr-choix input { position: absolute; opacity: 0; pointer-events: none; }
.cr-choix label > span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.cr-choix label > span b { font-weight: 650; } .cr-choix label > span i { font-style: normal; color: var(--muted); font-size: 13px; }
.cr-choix input:checked + span { border-color: var(--accent); background: var(--card); }
.cr-choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-bas { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 14, 16, .9); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
@media (max-width: 1099px) { .cr-bas { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 1100px) { .cr-bas { margin: 0 -40px; padding: 16px 40px; } }
.cr-resume { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; font-size: 13.5px; color: var(--muted); }
.cr-resume b { color: var(--ink); font-weight: 600; }
.cr-resume .sep { color: var(--faint); }
.cr-recentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.cr-masque { display: none !important; }

/* ═════════ v2 : page Projet ═════════ */
.pj { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1200px) { .pj { grid-template-columns: minmax(0, 1fr) 380px; } }
.pj-cote { display: grid; gap: 16px; }
@media (min-width: 1200px) { .pj-cote { position: sticky; top: 84px; } }
.pj-skills { display: grid; gap: 8px; }
.pj-skill { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.pj-skill .ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-2); font: 700 13px var(--f-body); }
.pj-skill b { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; font-weight: 600; }
.pj-skill span { display: block; color: var(--muted); font-size: 12.5px; }
.pj-skill.fait .ic { background: var(--green-soft); color: var(--green); }
.pj-skill.en_cours .ic { animation: pulse 1.2s ease-in-out infinite; }
.pj-medias { display: grid; gap: 6px; font-size: 13.5px; }
.pj-medias li { display: flex; gap: 8px; justify-content: space-between; color: #d6d3cc; }
.pj-medias ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pj-versions { display: grid; gap: 10px; }
.pj-version { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); align-items: start; }
.pj-version video { width: 150px; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; }
.pj-version.paysage video { width: 260px; aspect-ratio: 16 / 9; }
.pj-version .corps { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pj-version .corps p { margin: 0; }
.qualite { display: inline-flex; padding: 3px 8px; border-radius: 6px; font: 650 11px var(--f-body); letter-spacing: .04em; background: var(--card-2); color: var(--muted); }
.qualite.hd { background: var(--green-soft); color: var(--green); }
.pj-avance { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); border: 1px solid rgba(200, 242, 90, .35); background: var(--card); }
.pj-avance h2 { font: 400 26px/1.1 var(--f-title); }
.pj-avance p { margin: 0; }
