/* =====================================================================
   Aicpic Workspace — thème « cinématique » (sombre, doré, animé)
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #0b0907;
  --bg-2: #14100c;
  --surface: rgba(30, 25, 20, 0.66);
  --surface-solid: #1b1611;
  --surface-2: rgba(255, 255, 255, 0.035);
  --surface-3: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 236, 205, 0.09);
  --border-strong: rgba(255, 236, 205, 0.16);
  --text: #f4ede3;
  --muted: #9a8e80;
  --accent: #e8a33c;
  --accent-2: #ffcf7a;
  --accent-dark: #f2b65a;
  --accent-soft: rgba(232, 163, 60, 0.14);
  --glow: 0 0 0 1px rgba(232, 163, 60, .35), 0 10px 40px -10px rgba(232, 163, 60, .45);
  --side: rgba(12, 10, 8, 0.72);
  --side-text: #c9bdaf;
  --red: #f0705a;    --red-soft: rgba(240, 112, 90, 0.14);
  --orange: #f2a14a; --orange-soft: rgba(242, 161, 74, 0.14);
  --green: #5cc486;  --green-soft: rgba(92, 196, 134, 0.13);
  --blue: #6fa3f0;   --blue-soft: rgba(111, 163, 240, 0.13);
  --purple: #b38df0; --purple-soft: rgba(179, 141, 240, 0.13);
  --radius: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; font-size: 14px; line-height: 1.45; background: var(--bg); min-height: 100%; }
body { overflow-x: hidden; }
a { color: inherit; }
::selection { background: rgba(232, 163, 60, .35); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, .brand, .kpi .value { font-family: var(--display); }

/* ---------- Décor cinématique : halos animés, grain, vignette ---------- */
.fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% -20%, #2a1d0f 0%, var(--bg) 60%); }
.fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.fx .o1 { width: 620px; height: 620px; background: #8a5713; top: -220px; left: -120px; animation: drift1 26s ease-in-out infinite alternate; }
.fx .o2 { width: 520px; height: 520px; background: #5b1f14; bottom: -220px; right: -120px; opacity: .45; animation: drift2 32s ease-in-out infinite alternate; }
.fx .o3 { width: 380px; height: 380px; background: #b07a24; top: 40%; left: 55%; opacity: .16; animation: drift3 38s ease-in-out infinite alternate; }
.fx::before { content: ''; position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
.fx::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .65) 100%); }
@keyframes drift1 { to { transform: translate(160px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-180px, -90px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-260px, 120px) scale(.85); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, 2%); } 80% { transform: translate(5%, 5%); } 100% { transform: translate(-2%, -3%); } }

/* ---------- Animations d'entrée ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } }
.page-enter > * { animation: rise .7s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: .06s; } .page-enter > *:nth-child(3) { animation-delay: .12s; }
.page-enter > *:nth-child(4) { animation-delay: .18s; } .page-enter > *:nth-child(5) { animation-delay: .24s; }
.page-enter > *:nth-child(n+6) { animation-delay: .3s; }
.stagger > * { animation: rise .65s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .05s; } .stagger > *:nth-child(2) { animation-delay: .1s; } .stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .2s; } .stagger > *:nth-child(5) { animation-delay: .25s; } .stagger > *:nth-child(6) { animation-delay: .3s; }
.stagger > *:nth-child(7) { animation-delay: .35s; } .stagger > *:nth-child(n+8) { animation-delay: .4s; }
.no-anim, .no-anim * { animation: none !important; }

/* ---------- Intro cinématique (après connexion) ---------- */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #050403; animation: introOut .7s var(--ease) 1.9s forwards; }
.intro .bars { position: absolute; inset: 0; }
.intro .bars::before, .intro .bars::after { content: ''; position: fixed; left: 0; right: 0; height: 12vh; background: #000; z-index: 2; animation: bars 1.2s var(--ease) both; }
.intro .bars::before { top: 0; } .intro .bars::after { bottom: 0; }
.intro .logo-wrap { position: relative; text-align: center; }
.intro img { width: 150px; filter: drop-shadow(0 0 40px rgba(232, 163, 60, .55)); animation: logoIn 1.4s var(--ease) both; }
.intro .title { margin-top: 22px; font-family: var(--display); letter-spacing: .5em; text-transform: uppercase; font-size: 13px; color: var(--accent-2);
  animation: track 1.6s var(--ease) .35s both; padding-left: .5em; }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.7); clip-path: inset(100% 0 0 0); filter: blur(12px) drop-shadow(0 0 0 transparent); }
  60% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0) drop-shadow(0 0 60px rgba(232, 163, 60, .8)); } 100% { transform: scale(1); } }
@keyframes track { from { opacity: 0; letter-spacing: 1.4em; filter: blur(6px); } }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes bars { from { transform: scaleY(0); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ---------- Connexion ---------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; }
.login-card { width: 100%; max-width: 400px; background: rgba(22, 18, 14, .72); border: 1px solid var(--border-strong); border-radius: 22px; padding: 42px 32px 32px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 163, 60, .06) inset; text-align: center; backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%); animation: pop .9s var(--ease) both; position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.login-card img { width: 92px; margin-bottom: 18px; filter: drop-shadow(0 0 28px rgba(232, 163, 60, .45)); animation: logoIn 1.3s var(--ease) both, float 6s ease-in-out 1.3s infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.login-card h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; animation: rise .8s var(--ease) .2s both; }
.login-card p.sub { color: var(--muted); margin: 0 0 26px; animation: rise .8s var(--ease) .3s both; }
.login-card form { text-align: left; display: grid; gap: 14px; animation: rise .8s var(--ease) .4s both; }
.login-card .btn { width: 100%; justify-content: center; padding: 12px; }
.form-error { background: var(--red-soft); color: var(--red); padding: 9px 12px; border-radius: 10px; font-size: 13px; border: 1px solid rgba(240, 112, 90, .25); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* ---------- Champs ---------- */
label.field { display: grid; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
label.field .hint { text-transform: none; letter-spacing: 0; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, .28);
  color: var(--text); font-weight: 400; font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
  text-transform: none; letter-spacing: 0; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: rgba(0, 0, 0, .4); }
select option { background: var(--surface-solid); }
textarea { resize: vertical; min-height: 80px; }
input[type=color] { width: 52px; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: rgba(0, 0, 0, .3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
code { color: var(--accent-2); }

/* ---------- Boutons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; color: #1a1209; text-decoration: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, #c9831f); box-shadow: 0 8px 24px -10px rgba(232, 163, 60, .7);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(232, 163, 60, .85); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.secondary, .btn.ghost, .btn.danger { background: var(--surface-2); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.secondary::after, .btn.ghost::after, .btn.danger::after { display: none; }
.btn.secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--accent-2); background: var(--surface-2); }
.btn.danger { color: var(--red); border-color: rgba(240, 112, 90, .3); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn { border: none; background: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 16px; line-height: 1; transition: background .2s, color .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); transform: scale(1.08); }

/* ---------- Mise en page ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-text); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 24px; color: #fff; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.brand img { width: 36px; filter: drop-shadow(0 0 14px rgba(232, 163, 60, .5)); }
.nav { display: grid; gap: 3px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500;
  color: var(--side-text); transition: background .25s, color .25s, transform .25s var(--ease); animation: slideIn .6s var(--ease) both; }
.nav a:nth-child(2) { animation-delay: .04s; } .nav a:nth-child(3) { animation-delay: .08s; } .nav a:nth-child(4) { animation-delay: .12s; }
.nav a:nth-child(5) { animation-delay: .16s; } .nav a:nth-child(6) { animation-delay: .2s; } .nav a:nth-child(7) { animation-delay: .24s; }
.nav a:hover { background: var(--surface-2); color: #fff; transform: translateX(3px); }
.nav a.active { background: linear-gradient(90deg, rgba(232, 163, 60, .2), rgba(232, 163, 60, .03)); color: var(--accent-2); }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav a .ico { width: 20px; text-align: center; }
.nav .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; font-weight: 700; box-shadow: 0 0 14px rgba(240, 112, 90, .55); }
.nav .count.neutral { background: rgba(255, 255, 255, .12); box-shadow: none; }
.sidebar .spacer { flex: 1; }
.user-box { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 4px; }
.user-box .who { display: flex; align-items: center; gap: 10px; padding: 0 6px 6px; }
.user-box .who b { color: #fff; display: block; }
.user-box .who small { color: var(--muted); }
.user-box button, .user-box a.lnk { background: none; border: none; text-align: left; color: var(--side-text); padding: 8px 10px; border-radius: 9px;
  cursor: pointer; text-decoration: none; font-size: 13px; transition: background .2s, color .2s; }
.user-box button:hover, .user-box a.lnk:hover { background: var(--surface-2); color: #fff; }

.main { padding: 30px 36px 70px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; margin: 0; letter-spacing: -.025em; font-weight: 700;
  background: linear-gradient(180deg, #fff 30%, #d8c6ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; display: block; text-decoration: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topbar { display: none; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); position: relative; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 10px; }
.card-head h2 { font-size: 15px; margin: 0; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 20px; }
.empty { color: var(--muted); padding: 26px 20px; text-align: center; font-size: 13.5px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { padding: 20px 22px; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.kpi:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.kpi::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 60, .22), transparent 70%); }
.kpi.red::after { background: radial-gradient(circle, rgba(240, 112, 90, .28), transparent 70%); }
.kpi.orange::after { background: radial-gradient(circle, rgba(242, 161, 74, .25), transparent 70%); }
.kpi .label { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.kpi .value { font-size: 40px; font-weight: 700; margin-top: 8px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi.red .value { color: var(--red); text-shadow: 0 0 30px rgba(240, 112, 90, .4); }
.kpi.orange .value { color: var(--orange); text-shadow: 0 0 30px rgba(242, 161, 74, .35); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }

/* ---------- Alertes stock ---------- */
.alert { display: flex; gap: 12px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); transition: background .2s; }
.alert:last-child { border-bottom: none; }
.alert[data-client]:hover { background: var(--surface-2); }
.alert .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.alert .txt { flex: 1; min-width: 0; }
.alert .txt b { display: block; }
.alert .txt span { color: var(--muted); font-size: 13px; }
.alert.critique .dot { background: var(--red); animation: pulse 1.6s infinite; }
.alert.alerte .dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 112, 90, .6); } 70% { box-shadow: 0 0 0 10px rgba(240, 112, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 112, 90, 0); } }
.banner { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(240, 112, 90, .2), rgba(240, 112, 90, .05)); color: #ffd7cf; border: 1px solid rgba(240, 112, 90, .35); font-weight: 500; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .08) 50%, transparent 60%); animation: sheen 4s ease-in-out infinite; }
@keyframes sheen { from { transform: translateX(-100%); } 60%, to { transform: translateX(100%); } }
.banner.orange { background: linear-gradient(90deg, rgba(242, 161, 74, .18), rgba(242, 161, 74, .04)); color: #ffe2bf; border-color: rgba(242, 161, 74, .32); }

/* ---------- Listes de tâches ---------- */
.task-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background .2s, padding-left .3s var(--ease); }
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--surface-2); padding-left: 24px; }
.task-row .t-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .t-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; color: var(--muted); font-size: 12.5px; }
.task-row.done .t-title { text-decoration: line-through; color: var(--muted); }
.check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; cursor: pointer; display: grid; place-items: center;
  color: #0b0907; font-size: 12px; font-weight: 800; padding: 0; transition: all .3s var(--ease); }
.check:hover { border-color: var(--green); transform: scale(1.1); }
.check.on { background: var(--green); border-color: var(--green); box-shadow: 0 0 14px rgba(92, 196, 134, .5); }
.right-meta { display: flex; align-items: center; gap: 8px; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .1em; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr { transition: background .2s; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.click { cursor: pointer; }
.tbl select { padding: 6px 9px; font-size: 13px; width: auto; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.client { border: none; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: rgba(240, 112, 90, .3); }
.badge.orange { background: var(--orange-soft); color: var(--orange); border-color: rgba(242, 161, 74, .3); }
.badge.green { background: var(--green-soft); color: var(--green); border-color: rgba(92, 196, 134, .3); }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(111, 163, 240, .3); }
.badge.purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(179, 141, 240, .3); }
.badge.accent { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(232, 163, 60, .3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px;
  color: #fff; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 0 3px rgba(255, 255, 255, .08); }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }

/* ---------- Filtres ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters select, .filters input { width: auto; min-width: 140px; padding: 8px 11px; font-size: 13px; }
.filters input[type=search] { min-width: 210px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.seg button { border: none; background: none; padding: 6px 13px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--muted); transition: all .25s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-soft); color: var(--accent-2); box-shadow: 0 0 0 1px rgba(232, 163, 60, .3) inset; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chk input { accent-color: var(--accent); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.col { background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 220px; transition: border-color .25s, background .25s; }
.col.drop { border-color: var(--accent); background: rgba(232, 163, 60, .07); box-shadow: var(--glow); }
.col h3 { font-size: 12px; margin: 2px 4px 12px; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.col h3 span { color: var(--text); }
.kcard { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; margin-bottom: 9px; cursor: grab;
  border-left: 3px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; animation: pop .5s var(--ease) both; }
.kcard:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8); border-color: var(--border-strong); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .4; transform: scale(.97); }
.kcard .t-title { font-weight: 600; margin-bottom: 7px; }
.kcard .t-meta { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.client-card { padding: 22px; cursor: pointer; overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.client-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9), 0 0 50px -25px var(--c, var(--accent)); }
.client-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--accent)); box-shadow: 0 0 20px var(--c, var(--accent)); }
.client-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, var(--c, var(--accent)), transparent 55%); opacity: .12; pointer-events: none; transition: opacity .4s; }
.client-card:hover::after { opacity: .22; }
.client-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.client-card .row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 10px; }
.client-card .row b { color: var(--text); }
.gauge { height: 6px; background: rgba(255, 255, 255, .07); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.gauge > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3c9b62, var(--green)); box-shadow: 0 0 12px rgba(92, 196, 134, .6);
  transform-origin: left; animation: grow 1.4s var(--ease) .3s both; }
.gauge.alerte > div { background: linear-gradient(90deg, #c77a22, var(--orange)); box-shadow: 0 0 12px rgba(242, 161, 74, .6); }
.gauge.critique > div { background: linear-gradient(90deg, #c4442e, var(--red)); box-shadow: 0 0 12px rgba(240, 112, 90, .7); }
@keyframes grow { from { transform: scaleX(0); } }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: none; background: none; padding: 11px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; font-size: 13.5px; transition: color .2s, border-color .3s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent-2); border-bottom-color: var(--accent); }
.tabs button .n { background: var(--surface-3); border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 5px; }

.content-block { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.content-block:last-child { border-bottom: none; }
.content-block pre { white-space: pre-wrap; font-family: inherit; margin: 0; background: rgba(0, 0, 0, .3); border: 1px solid var(--border);
  padding: 11px 13px; border-radius: 10px; font-size: 13.5px; max-height: 240px; overflow: auto; border-left: 2px solid var(--accent); }

.stock-head { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.stock-head > div { padding: 14px 20px; border-right: 1px solid var(--border); }
.stock-head > div:last-child { border-right: none; }
.stock-head small { color: var(--muted); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.stock-head b { font-size: 20px; font-family: var(--display); letter-spacing: -.02em; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.member-card { padding: 22px; cursor: pointer; transition: transform .45s var(--ease), border-color .3s; }
.member-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.member-card .top { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.member-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 12px 4px; }
.member-card .stats b { display: block; font-size: 22px; font-family: var(--display); }
.member-card .stats small { color: var(--muted); font-size: 11px; }

/* ---------- Calendrier ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-title { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; min-width: 200px; text-transform: capitalize; }
.cal { overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.cal-head div { padding: 11px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { min-width: 0; min-height: 118px; padding: 7px 7px 9px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background .25s; position: relative; animation: fade .5s ease both; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { opacity: .38; }
.cal-day.weekend { background: rgba(0, 0, 0, .15); }
.cal-day.sel { background: rgba(232, 163, 60, .08); box-shadow: inset 0 0 0 1px rgba(232, 163, 60, .45); }
.cal-day.drop { background: rgba(232, 163, 60, .14); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day .num { font-size: 12.5px; font-weight: 600; color: var(--muted); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 4px; }
.cal-day.today .num { background: var(--accent); color: #1a1209; box-shadow: 0 0 18px rgba(232, 163, 60, .7); }
.cal-day .add { position: absolute; top: 7px; right: 7px; opacity: 0; transition: opacity .2s; font-size: 15px; color: var(--accent-2); border: none; background: none; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.cal-day:hover .add { opacity: 1; }
.cal-day .add:hover { background: var(--accent-soft); }
.ev { display: block; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c, #888) 22%, transparent); border-left: 2px solid var(--c, #888); color: var(--text); cursor: pointer;
  transition: transform .2s var(--ease), background .2s; }
.ev:hover { transform: translateX(2px); background: color-mix(in srgb, var(--c, #888) 38%, transparent); }
.ev.done { opacity: .5; text-decoration: line-through; }
.ev.late { box-shadow: inset 0 0 0 1px rgba(240, 112, 90, .6); }
.ev.stock { border-left-style: dashed; font-style: italic; }
.ev.shoot { background: rgba(232, 163, 60, .16); border-left-color: var(--accent); }
.ev.runout { background: var(--red-soft); border-left-color: var(--red); color: #ffd2c9; font-weight: 600; }
.ev[draggable=true] { cursor: grab; }
.more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }
.agenda .day-title { font-family: var(--display); font-size: 18px; text-transform: capitalize; margin: 0; }
.agenda .item { display: flex; gap: 10px; padding: 11px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .2s; align-items: flex-start; }
.agenda .item:hover { background: var(--surface-2); }
.agenda .item .bar { width: 3px; align-self: stretch; border-radius: 3px; flex: none; }
.agenda .item b { display: block; font-size: 13.5px; }
.agenda .item small { color: var(--muted); }

/* ---------- Modale ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 4, 3, .62); display: grid; place-items: center; padding: 16px; z-index: 50;
  animation: fade .3s ease; overflow-y: auto; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal { background: rgba(26, 21, 17, .94); border: 1px solid var(--border-strong); border-radius: 20px; width: 100%; max-width: 560px;
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(232, 163, 60, .05) inset;
  max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: modalIn .5s var(--ease) both; position: relative; overflow: hidden; }
.modal::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.modal-bg.closing { animation: fadeOut .22s ease forwards; }
.modal-bg.closing .modal { animation: modalOut .22s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(6px); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fadeOut { to { opacity: 0; } }
.modal.wide { max-width: 840px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.modal-body { padding: 20px 22px; overflow-y: auto; display: grid; gap: 15px; }
.modal-foot { display: flex; justify-content: space-between; gap: 8px; padding: 15px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; background: rgba(0, 0, 0, .2); }
.modal-foot .r { display: flex; gap: 8px; margin-left: auto; }

.comments { display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; animation: rise .4s var(--ease) both; }
.comment .bubble { background: rgba(0, 0, 0, .28); border: 1px solid var(--border); border-radius: 12px; padding: 9px 13px; flex: 1; }
.comment .bubble small { color: var(--muted); }
.comment .bubble p { margin: 3px 0 0; white-space: pre-wrap; }
.comment-form { display: flex; gap: 8px; }
.comment-form textarea { min-height: 44px; }
.section-title { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .2em; margin: 6px 0 -4px; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(26, 21, 17, .95); color: var(--text); padding: 12px 20px;
  border-radius: 12px; z-index: 400; font-weight: 500; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); border: 1px solid rgba(232, 163, 60, .35);
  animation: toastIn .5s var(--ease) both; backdrop-filter: blur(14px); }
.toast.err { border-color: rgba(240, 112, 90, .6); color: #ffd2c9; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.95); } }

.loading { display: grid; place-items: center; min-height: 100vh; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }
.loading::before { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(232, 163, 60, .2); border-top-color: var(--accent);
  animation: spin .9s linear infinite; margin-bottom: 14px; }
.loading { grid-auto-flow: row; align-content: center; justify-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(232, 163, 60, .4); }
::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.4); cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .dash-grid, .cal-wrap { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .45s var(--ease); background: rgba(12, 10, 8, .96); }
  .sidebar.open { transform: none; box-shadow: 0 0 80px rgba(0, 0, 0, .8); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: rgba(12, 10, 8, .8); color: #fff; position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); font-family: var(--display); }
  .topbar img { width: 28px; }
  .topbar button { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 2px 6px; }
  .main { padding: 20px 16px 50px; }
  .page-head h1 { font-size: 25px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stock-head { grid-template-columns: 1fr 1fr; }
  .stock-head > div:nth-child(2) { border-right: none; }
  .stock-head > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .filters select, .filters input, .filters input[type=search] { min-width: 0; flex: 1 1 140px; }
  .task-row { grid-template-columns: 22px 1fr; }
  .task-row .right-meta { grid-column: 2; }
  .kpi .value { font-size: 32px; }
  .cal-day { min-height: 58px; padding: 4px; }
  .cal-day .num { width: 22px; height: 22px; font-size: 11.5px; margin: 0 auto 3px; }
  .cal-day .ev { font-size: 0; padding: 0; height: 5px; border-left: none; background: var(--c, #888); margin: 0 2px 2px; border-radius: 3px; }
  .cal-day .ev.shoot { background: var(--accent); } .cal-day .ev.runout { background: var(--red); }
  .cal-day .more, .cal-day .add { display: none; }
  .cal-head div { padding: 8px 2px; text-align: center; letter-spacing: .05em; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro { display: none; }
}

/* =====================================================================
   Flux de contenu : planning, validation, visuels, CM, modération
   ===================================================================== */
.nav-label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #6f6458; font-weight: 700; padding: 16px 12px 6px; }
.brand { position: relative; }
.brand .bell { margin-left: auto; }
.bell { position: relative; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; width: 36px; height: 36px; cursor: pointer;
  font-size: 15px; display: grid; place-items: center; transition: background .2s, transform .2s; color: #fff; }
.bell:hover { background: var(--surface-3); transform: scale(1.06); }
.bell.ring { animation: ring .9s var(--ease); }
@keyframes ring { 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 12px rgba(240, 112, 90, .7); font-family: 'Inter', sans-serif; letter-spacing: 0; }
.notif-list { display: grid; gap: 4px; margin: 0 -8px; }
.notif { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: none; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; width: 100%; transition: background .2s; }
.notif:hover { background: var(--surface-2); }
.notif .ndot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; }
.notif.unread .ndot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.notif.unread .ntext { color: #fff; font-weight: 500; }
.notif .ntext { color: var(--muted); font-size: 13.5px; }
.notif small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; font-weight: 400; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border); background: var(--surface-2);
  text-decoration: none; font-weight: 600; font-size: 13px; color: var(--muted); transition: all .25s var(--ease); }
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on { color: #fff; background: var(--accent-soft); border-color: rgba(232, 163, 60, .45); box-shadow: 0 0 24px -8px rgba(232, 163, 60, .6); }
.owners { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.owners b { color: var(--text); font-weight: 600; }

.strategy { margin-bottom: 16px; border-color: rgba(92, 196, 134, .3); }
.strategy::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; background: var(--green); box-shadow: 0 0 16px var(--green); }
.strategy.pending { border-color: var(--border); }
.strategy.pending::before { background: var(--muted); box-shadow: none; }
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.strat-grid small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.strat-grid p { margin: 6px 0 0; white-space: pre-wrap; }

.progress-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.progress-row > div { padding: 16px 20px; border-right: 1px solid var(--border); }
.progress-row > div:last-child { border-right: none; }
.progress-row small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.progress-row b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -.03em; margin: 2px 0 8px; }
.progress-row b span { font-size: 14px; color: var(--muted); font-weight: 500; }
.bar { height: 5px; background: rgba(255, 255, 255, .07); border-radius: 5px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 5px; box-shadow: 0 0 10px rgba(232, 163, 60, .6); transform-origin: left; animation: grow 1.3s var(--ease) .2s both; }
.bar.green > div { background: linear-gradient(90deg, #3c9b62, var(--green)); box-shadow: 0 0 10px rgba(92, 196, 134, .6); }
.bar.blue > div { background: linear-gradient(90deg, #4877c0, var(--blue)); box-shadow: 0 0 10px rgba(111, 163, 240, .6); }

.post-list { overflow: hidden; }
.post-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .2s, padding-left .3s var(--ease); }
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--surface-2); padding-left: 24px; }
.post-row.today { background: rgba(232, 163, 60, .07); }
.post-row.late .pday b { color: var(--red); }
.pday { text-align: center; line-height: 1.1; }
.pday b { display: block; font-family: var(--display); font-size: 20px; }
.pday small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.post-row.today .pday b { color: var(--accent-2); text-shadow: 0 0 14px rgba(232, 163, 60, .6); }
.ptitle { font-weight: 600; }
.phook { color: #d9c9b4; font-style: italic; font-size: 13px; margin-top: 2px; }
.pmain { min-width: 0; }
.pmain .ptitle, .pmain .phook { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmain .t-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted); align-items: center; }
.pbadges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.val-group { margin-bottom: 26px; }
.val-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.val-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.val-card { padding: 18px; display: grid; gap: 9px; align-content: start; }
.val-card.late { border-color: rgba(240, 112, 90, .4); }
.val-card h3 { margin: 0; font-size: 16px; }
.val-card pre { white-space: pre-wrap; font-family: inherit; margin: 0; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); padding: 10px 12px;
  border-radius: 10px; font-size: 13px; max-height: 200px; overflow: auto; }
.val-card .t-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.val-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.val-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.reject-inline textarea { min-height: 60px; }
.brief { background: var(--accent-soft); border: 1px solid rgba(232, 163, 60, .25); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
details summary { cursor: pointer; }
details pre { margin-top: 8px !important; }
.excerpt { margin: 12px 0 0; font-size: 13px; color: #d4c6b4; white-space: pre-wrap; position: relative; z-index: 1; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mod-card { padding: 20px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.mod-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); }
.mod-card.a_jour { border-color: rgba(92, 196, 134, .28); }
.mod-card.retard { border-color: rgba(240, 112, 90, .45); box-shadow: var(--shadow), 0 0 40px -20px rgba(240, 112, 90, .7); }
.mod-top { display: flex; justify-content: space-between; align-items: center; }
.mod-top h3 { margin: 0; font-size: 18px; }
.mod-state { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); }
.mod-state .big { font-family: var(--display); font-size: 20px; font-weight: 700; }
.mod-state .ok { color: var(--green); text-shadow: 0 0 20px rgba(92, 196, 134, .45); }
.mod-state .late { color: var(--red); text-shadow: 0 0 20px rgba(240, 112, 90, .45); }
.mod-state .none { color: var(--muted); }
.mod-state .delay { color: #ffc9bd; font-weight: 600; }
.hist { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }

.work-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); text-decoration: none;
  transition: background .2s, padding-left .3s var(--ease); position: relative; }
.work-item:last-child { border-bottom: none; }
.work-item:hover { background: var(--surface-2); padding-left: 25px; }
.work-item::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.work-item.orange::before { background: var(--orange); } .work-item.red::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.work-item.purple::before { background: var(--purple); }
.work-item .wico { font-size: 17px; }
.work-item .arrow { margin-left: auto; color: var(--muted); transition: transform .25s var(--ease); }
.work-item:hover .arrow { transform: translateX(4px); color: var(--accent-2); }

input:disabled, textarea:disabled, select:disabled { opacity: .75; cursor: default; }

@media (max-width: 800px) {
  .strat-grid, .progress-row { grid-template-columns: 1fr; }
  .progress-row > div { border-right: none; border-bottom: 1px solid var(--border); }
  .post-row { grid-template-columns: 44px 1fr; }
  .post-row .pbadges { grid-column: 2; justify-content: flex-start; }
  .owners { margin-left: 0; }
  .val-grid { grid-template-columns: 1fr; }
}

/* ---------- Rôles : réactions, tournages, espace client ---------- */
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.react { border: 1px solid var(--border); background: var(--surface-2); border-radius: 20px; padding: 4px 10px; cursor: pointer; font-size: 15px;
  display: inline-flex; align-items: center; gap: 4px; transition: transform .2s var(--ease), background .2s, border-color .2s; filter: grayscale(.6); opacity: .75; }
.react:hover { transform: translateY(-2px) scale(1.08); opacity: 1; filter: none; }
.react.has { opacity: 1; filter: none; }
.react.on { background: var(--accent-soft); border-color: rgba(232, 163, 60, .55); opacity: 1; filter: none; box-shadow: 0 0 14px -4px rgba(232, 163, 60, .7); }
.react b { font-size: 11.5px; color: var(--text); }
.react.pop { animation: reactPop .45s var(--ease); }
@keyframes reactPop { 40% { transform: scale(1.35); } }
.reacts-mini { font-size: 12.5px; letter-spacing: 1px; }
.shoot-card .sdate { text-align: center; line-height: 1.05; min-width: 42px; }
.shoot-card .sdate b { font-family: var(--display); font-size: 24px; display: block; }
.shoot-card .sdate small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.shoot-card .val-top { flex-wrap: nowrap; align-items: flex-start; }
.shoot-count { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); }
.shoot-count b { color: var(--text); font-size: 16px; }
.shoot-count b.warn { color: var(--orange); } .shoot-count b.okc { color: var(--green); }
.creator-comment { background: rgba(111, 163, 240, .1); border: 1px solid rgba(111, 163, 240, .25); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.portal-post { padding: 22px; display: grid; gap: 10px; }
.portal-post .pp-date { display: flex; align-items: center; gap: 12px; }
.portal-post .pp-date .day { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; }
.portal-post h3 { margin: 0; font-size: 18px; }
.portal-post pre { white-space: pre-wrap; font-family: inherit; margin: 0; font-size: 14px; color: #e9dfd2; }
.portal-post .tags { color: var(--blue); font-size: 13px; }
.portal-report { padding: 24px; display: grid; gap: 18px; }
.portal-report section h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.portal-report section p { margin: 0; white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; }
.client-hero { display: flex; align-items: center; gap: 12px; padding: 0 8px 14px; color: var(--muted); font-size: 12.5px; }
.client-hero i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Publicité (Ads manager) ---------- */
.camp-card { padding: 20px; display: grid; gap: 10px; align-content: start; cursor: pointer; overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.camp-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.camp-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12; }
.camp-card.meta::after { background: radial-gradient(circle at 100% 0%, #3b82f6, transparent 55%); }
.camp-card.tiktok::after { background: radial-gradient(circle at 100% 0%, #ff2d6f, transparent 50%), radial-gradient(circle at 0% 100%, #25f4ee, transparent 45%); }
.camp-card h3 { margin: 0; font-size: 17px; }
.camp-card .t-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.plat { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .02em; }
.plat.meta { background: rgba(59, 130, 246, .16); color: #8db8ff; border: 1px solid rgba(59, 130, 246, .35); }
.plat.tiktok { background: rgba(255, 45, 111, .14); color: #ff8fb1; border: 1px solid rgba(37, 244, 238, .35); }
.budget-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.budget-line b { color: var(--text); }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden; position: relative; z-index: 1; }
.mgrid > div { background: rgba(14, 11, 9, .85); padding: 8px 10px; }
.mgrid small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mgrid b { font-family: var(--display); font-size: 15px; }
.stat-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
@media (max-width: 800px) { .stat-form { grid-template-columns: 1fr 1fr; } }

/* ---------- Correctifs : menu défilable, logo cliquable, sélection multiple ---------- */
.sidebar { overflow-y: auto; overscroll-behavior: contain; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar .user-box { padding-bottom: 6px; }
a.brand { text-decoration: none; cursor: pointer; border-radius: 12px; transition: opacity .2s; }
a.brand:hover { opacity: .85; }
.topbar a.home { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.post-row { grid-template-columns: 26px 54px 1fr auto; }
.psel { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.bulk-bar { position: sticky; top: 12px; z-index: 15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px;
  border-radius: 14px; background: rgba(30, 24, 18, .92); border: 1px solid rgba(232, 163, 60, .45); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px); animation: pop .35s var(--ease); }
.bulk-bar b { color: var(--accent-2); }
.done-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); border: 1px solid rgba(92, 196, 134, .3); cursor: pointer; }
.done-check input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 1px; }
@media (max-width: 800px) {
  .sidebar { overflow-y: auto; }
  .post-row { grid-template-columns: 22px 40px 1fr; }
  .post-row .pbadges { grid-column: 3; }
  .topbar { top: 0; }
}

/* =====================================================================
   VERSION TÉLÉPHONE (correctifs)
   ===================================================================== */
.stack, .dash-grid > *, .cal-wrap > * { min-width: 0; }
.stack { grid-template-columns: minmax(0, 1fr); }
.menu-backdrop { display: none; }

@media (max-width: 800px) {
  html, body { overflow-x: hidden; }
  .main { padding: 16px 14px 90px; }
  .page-head { margin-bottom: 18px; align-items: flex-start; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 13px; }
  .page-head .actions { width: 100%; }
  .page-head .actions > .btn { flex: 1; justify-content: center; }

  /* iPhone : pas de zoom quand on touche un champ */
  input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea { font-size: 16px; }

  /* Barre du haut + menu latéral */
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .topbar a.home b { font-size: 15px; }
  .sidebar { height: 100dvh; width: min(84vw, 300px); padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
  .sidebar.open + .menu-backdrop, .menu-backdrop.on { opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px; }

  /* Boutons segmentés et onglets : défilement horizontal au lieu de déborder */
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; flex: none; padding: 8px 12px; }
  .filters { gap: 8px; }
  .filters > .seg { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .tabs { margin-left: -14px; margin-right: -14px; padding: 0 14px; scrollbar-width: none; }
  .cal-toolbar { gap: 8px; }
  .cal-title { min-width: 0; font-size: 20px; }
  .cal-toolbar .filters { width: 100%; margin: 0 !important; }
  .cal-toolbar .filters select { flex: 1 1 140px; }

  /* Cartes */
  .card-head { flex-wrap: wrap; padding: 14px 16px; }
  .card-head h2 { flex-wrap: wrap; }
  .card-body, .empty { padding-left: 16px; padding-right: 16px; }
  .kpis { gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 14px 16px; }
  .kpi .label { font-size: 10px; letter-spacing: .08em; }
  .kpi .value { font-size: 30px; }
  .alert { flex-wrap: wrap; padding: 12px 16px; }
  .alert .btn { margin-left: 22px; }
  .banner { padding: 12px 14px; font-size: 13px; }
  .task-row { padding: 12px 14px; }
  .task-row:hover, .post-row:hover, .work-item:hover { padding-left: 14px; }
  .work-item { padding: 12px 16px; font-size: 13.5px; }
  .post-row { padding: 12px 14px; gap: 10px; }
  .val-grid, .client-grid, .member-grid, .mod-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .val-card, .client-card, .member-card, .mod-card, .camp-card { padding: 16px; }
  .val-actions { justify-content: stretch; }
  .val-actions .btn { flex: 1 1 auto; justify-content: center; }
  .progress-row { grid-template-columns: repeat(3, 1fr); }
  .progress-row > div { padding: 12px; border-bottom: none; border-right: 1px solid var(--border); }
  .progress-row b { font-size: 20px; }
  .progress-row small { font-size: 9.5px; letter-spacing: .06em; }
  .stock-head > div { padding: 12px 14px; }
  .stock-head b { font-size: 17px; }
  .owners { font-size: 12px; gap: 6px 12px; }
  .strat-grid { gap: 12px; }
  .mgrid > div { padding: 7px 8px; }
  .mgrid b { font-size: 13.5px; }

  /* Tableaux → lignes empilées lisibles */
  .table-wrap { overflow: visible; }
  table.tbl, .tbl tbody { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .tbl tr:last-child { border-bottom: none; }
  .tbl td { display: block; padding: 0; border: none; font-size: 13px; }
  .tbl td:first-child { flex: 1 1 100%; font-size: 14px; }
  .tbl td:empty { display: none; }
  .tbl tbody tr:hover td { background: none; }

  /* Fenêtres : plein écran depuis le bas, boutons toujours visibles */
  .modal-bg { padding: 0; place-items: end center; }
  .modal, .modal.wide { max-width: 100%; width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; animation: sheetIn .45s var(--ease) both; }
  .modal-bg.closing .modal { animation: sheetOut .22s ease forwards; }
  .modal-head { padding: 16px 18px; }
  .modal-head h2 { font-size: 16px; }
  .modal-body { padding: 16px 18px; }
  .modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .modal-foot > .btn { flex: 1 1 auto; justify-content: center; }
  .modal-foot .r { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .modal-foot .r .btn { flex: 1 1 auto; justify-content: center; }
  .comment-form { flex-direction: column; }
  .stat-form { grid-template-columns: 1fr 1fr; }
  .bulk-bar { top: calc(60px + env(safe-area-inset-top)); padding: 10px 12px; gap: 8px; }
  .bulk-bar .btn { flex: 1 1 auto; justify-content: center; }
  .bulk-bar > span[style] { display: none; }
  .toast { left: 14px; right: 14px; transform: none; bottom: calc(20px + env(safe-area-inset-bottom)); text-align: center; animation: fade .3s; }
  .login-card { padding: 34px 22px 26px; }
  .reacts { gap: 5px; }
  .react { padding: 5px 9px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }

/* ---------- Prestation & paiements ---------- */
.service { font-size: 12.5px; color: var(--accent-2); font-weight: 500; margin-bottom: 8px; position: relative; z-index: 1; }
.pay-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) 120px minmax(170px, auto) auto; gap: 12px; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--border); transition: background .2s; }
.pay-row.client { grid-template-columns: minmax(0, 2fr) 120px minmax(170px, auto) auto; }
.pay-row:last-child { border-bottom: none; }
.pay-row:hover { background: var(--surface-2); }
.pay-row.due { background: rgba(242, 161, 74, .06); }
.pay-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pay-row .pmain { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.pay-row .amt { font-family: var(--display); font-weight: 700; font-size: 15px; text-align: right; white-space: nowrap; }
.pay-row .acts { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.kpi .hint { margin-top: 4px; }
.pay-row.member { grid-template-columns: minmax(0, 2fr) 120px minmax(170px, auto); }
.pay-row.client.member { grid-template-columns: minmax(0, 2fr) minmax(170px, auto); }

/* =====================================================================
   AFFICHAGE TÉLÉPHONE (corrections)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
.local-tag { position: fixed; right: 12px; bottom: 12px; z-index: 200; background: rgba(20, 16, 12, .92); color: #f0c27a; font: 600 11.5px Inter, system-ui, sans-serif;
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(232, 163, 60, .3); pointer-events: none; }
.local-tag .lt-short { display: none; }
.filters .chk input { flex: none; min-width: 0; width: auto; }

@media (max-width: 800px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .local-tag { right: 8px; bottom: 8px; padding: 4px 9px; font-size: 10.5px; opacity: .85; }
  .local-tag .lt-long { display: none; } .local-tag .lt-short { display: inline; }
  /* champs à 16px : évite le zoom automatique sur iPhone */
  input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea { font-size: 16px; }
  .main { padding: 16px 14px 70px; }
  .page-head { margin-bottom: 16px; gap: 10px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 13px; }
  .page-head .actions { width: 100%; }
  .page-head .actions > .btn { flex: 1 1 auto; justify-content: center; }
  .actions .seg { max-width: 100%; overflow-x: auto; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg button { white-space: nowrap; flex: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .banner { padding: 10px 12px; font-size: 12.5px; margin-bottom: 10px; border-radius: 12px; }
  .kpis { gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 14px; }
  .kpi .label { font-size: 10px; letter-spacing: .08em; }
  .kpi .value { font-size: 28px; }
  .card-head { padding: 13px 14px; }
  .card-head h2 { font-size: 14px; }
  .task-row, .post-row, .work-item, .alert, .agenda .item { padding-left: 14px; padding-right: 14px; }
  .task-row:hover, .post-row:hover, .work-item:hover { padding-left: 14px; }
  .alert { flex-wrap: wrap; }
  .alert .btn { margin-left: 22px; }
  .cal-toolbar { gap: 8px; }
  .cal-title { font-size: 19px; min-width: 0; }
  .cal-toolbar .filters { width: 100%; margin: 0 !important; }
  .owners { font-size: 12px; gap: 8px 12px; }
  .stock-head > div { padding: 10px 14px; }
  .val-card, .camp-card, .mod-card, .client-card, .member-card { padding: 16px; }
  .val-actions { justify-content: stretch; }
  .val-actions .btn { flex: 1 1 auto; justify-content: center; }
  .bulk-bar { top: 62px; padding: 10px 12px; }
  .bulk-bar .btn { flex: 1 1 auto; justify-content: center; }
  .tbl th, .tbl td { padding: 9px 10px; font-size: 13px; }
  /* sidebar : voile sombre derrière le menu ouvert */
  .sidebar.open { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  /* fenêtres : plein écran en bas, faciles à utiliser au pouce */
  .modal-bg { padding: 0; align-items: end; }
  .modal { max-width: 100% !important; border-radius: 20px 20px 0 0; max-height: 94vh; animation: sheetIn .45s var(--ease) both; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .r { width: 100%; }
  .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
  .modal-foot > .btn.danger { width: 100%; justify-content: center; }
  .comment-form { flex-direction: column; }
  .stat-form { grid-template-columns: 1fr 1fr; }
  .reacts { gap: 5px; }
  .react { padding: 5px 9px; }
  /* paiements : lignes empilées */
  .pay-row, .pay-row.client, .pay-row.member, .pay-row.client.member { grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px 14px; }
  .pay-row .who { grid-column: 1 / -1; }
  .pay-row .pmain { grid-column: 1; }
  .pay-row .pmain .hint { display: block; width: 100%; }
  .pay-row .amt { grid-column: 2; }
  .pay-row .st, .pay-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .pay-row .acts .btn { flex: 1 1 auto; justify-content: center; }
  .hist { grid-template-columns: 1fr; gap: 2px; }
  .intro img { width: 110px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi .value { font-size: 24px; }
}
/* application installée (iPhone : encoche) */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar { padding-top: calc(11px + env(safe-area-inset-top)); }
  .sidebar { padding-top: calc(22px + env(safe-area-inset-top)); }
}

/* ---------- Tournages : contenus validés à filmer ---------- */
.film-group { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.film-group:last-child { border-bottom: none; }
.film-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.film-line { font-size: 13px; padding: 4px 0; color: var(--muted); }
.film-line b { color: var(--text); font-weight: 600; }
.pl-day { display: inline-block; min-width: 52px; color: var(--accent-2); font-weight: 600; font-size: 12px; }
.film-list { background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; }
.pick-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.pick { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13px; transition: background .2s, border-color .2s; }
.pick:hover { background: var(--surface-2); }
.pick input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pick:has(input:checked) { border-color: rgba(232, 163, 60, .5); background: var(--accent-soft); }
.shoot-card.soon { border-color: rgba(232, 163, 60, .55); box-shadow: var(--shadow), 0 0 40px -18px rgba(232, 163, 60, .8); }
.soon-tag { font-weight: 700; color: var(--accent-2); font-size: 13px; animation: pulseTxt 1.6s ease-in-out infinite; }
@keyframes pulseTxt { 50% { opacity: .55; } }
@media (max-width: 800px) { .film-group { padding: 12px 14px; } .pl-day { min-width: 46px; } }

/* ---------- Statistiques & analyse ---------- */
.delta { font-size: 12px; font-weight: 700; white-space: nowrap; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); } .delta.flat { color: var(--muted); }
.kpi-delta { margin-top: 6px; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.net-rows { padding: 6px 20px 12px; }
.net-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.net-row:last-child { border-bottom: none; }
.net-row span:first-child { color: var(--muted); }
.net-row b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.best { margin: 0 20px 16px; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(232, 163, 60, .25); font-size: 13px; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 16px 20px 12px; }
.mb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.mb-bar { width: 100%; max-width: 34px; background: var(--accent); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growUp 1s var(--ease) both; transition: filter .2s; }
.mb:hover .mb-bar { filter: brightness(1.25); }
.mb-v { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-l { font-size: 11px; color: var(--muted); text-transform: capitalize; }
@keyframes growUp { from { transform: scaleY(0); } }
.analysis-card .pre, .pre { white-space: pre-wrap; margin: 0; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) { .net-rows { padding: 4px 14px 10px; } .best { margin: 0 14px 14px; } .mini-bars { gap: 6px; padding: 12px 14px; } .mb-v { font-size: 10px; } }
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 12px; }
.section-h h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.shoot-card.just { border-color: var(--accent); box-shadow: var(--glow); animation: pop .6s var(--ease) both; }
.overdue-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 18px 0; padding: 10px 14px; border-radius: 10px;
  background: var(--orange-soft); border: 1px solid rgba(242, 161, 74, .3); color: #ffe2bf; font-size: 13px; }
.overdue-bar .btn { margin-left: auto; }
