/* BMG v11 : les polices ne sont plus figées ici. Elles sont pilotées par /font_css.php. */
:root{--yellow:#ffd800;--black:#070707;--ink:#171717;--muted:#697386;--line:#eceff3;--bg:#f5f6f8;--card:#fff;--danger:#b42318}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:var(--font-main),Arial,Helvetica,sans-serif;color:var(--ink)}a{color:inherit;text-decoration:none}.topbar{background:#050505;color:#fff;min-height:98px;padding:10px 26px;border-bottom:5px solid var(--yellow);display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:nowrap}.brand{display:flex;align-items:center;gap:14px;min-width:360px;white-space:nowrap;flex:0 0 auto}.brand img{height:78px;width:245px;object-fit:contain;object-position:left center;display:block;filter:none}.brand span{font-size:13px;letter-spacing:.42em;text-transform:uppercase;color:var(--yellow);font-weight:800;display:block}.topbar nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1 1 auto;flex-wrap:wrap;margin:0}.topbar nav a{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:8px 11px;border-radius:999px;font-size:13px;color:#fff;vertical-align:middle;line-height:1.2}.topbar nav a.on,.topbar nav a:hover{background:var(--yellow);color:#000}.profile-link{display:inline-flex;align-items:center}.top-avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;border:2px solid var(--yellow);margin-right:7px;background:#fff;flex:0 0 auto}.profile-link span{display:inline-block;line-height:1.2}.wrap{max-width:1240px;margin:28px auto;padding:0 18px}.hero{background:linear-gradient(135deg,#050505 0%,#242424 65%,#ffd800 65%,#ffd800 100%);color:#fff;border-radius:24px;padding:26px;margin-bottom:22px;box-shadow:0 16px 40px rgba(0,0,0,.12)}.hero h1{margin:0 0 6px;font-size:30px}.hero p{margin:0;color:#ececec}.card{background:var(--card);border:1px solid #eef0f4;border-radius:20px;padding:20px;margin-bottom:20px;box-shadow:0 10px 28px rgba(15,23,42,.06)}.card h2{margin:0 0 14px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{margin-bottom:12px}label{display:block;font-weight:700;margin-bottom:6px;font-size:13px}input,select,textarea{width:100%;border:1px solid #d7dce5;border-radius:12px;padding:11px 12px;background:#fff;font-size:14px;font-family:var(--font-main),Arial,Helvetica,sans-serif}textarea{min-height:94px}.btn{display:inline-block;border:0;border-radius:999px;padding:10px 15px;font-weight:800;cursor:pointer;background:#111;color:#fff;margin:2px;font-family:var(--font-main),Arial,Helvetica,sans-serif}.btn.primary{background:var(--yellow);color:#000}.btn.alt{background:#111;color:#fff}.btn.light{background:#eef1f5;color:#151515}.btn.danger{background:#fee4e2;color:#912018}.actions{white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat{background:#fff;border-radius:18px;padding:18px;border-left:6px solid var(--yellow);box-shadow:0 8px 22px rgba(15,23,42,.06)}.stat b{font-size:24px;display:block;margin-top:5px}table{width:100%;border-collapse:collapse}th,td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#667085;background:#fbfcfe}.pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#fff7bd;color:#111;font-weight:700;font-size:12px}.alert{padding:12px;border-radius:14px;margin-bottom:15px}.ok{background:#ecfdf3;border:1px solid #abefc6;color:#067647}.err{background:#fff1f0;border:1px solid #fecdca;color:#b42318}.login{min-height:100vh;background:#050505;display:table;width:100%}.login-inner{display:table-cell;vertical-align:middle}.login-card{width:430px;max-width:92%;margin:auto;background:#fff;border-radius:24px;padding:30px;box-shadow:0 20px 80px rgba(0,0,0,.35);border-top:8px solid var(--yellow)}.login-logo-wrap{background:#fff;border:1px solid #eef0f4;border-radius:18px;padding:14px 16px;margin:0 auto 18px;text-align:center}.login-card img.login-logo{max-width:320px;width:100%;height:auto;display:block;margin:0 auto;object-fit:contain}.totals{max-width:430px;margin-left:auto}.remove{background:#fff1f0;color:#b42318;border:0;border-radius:10px;padding:8px 10px;cursor:pointer}.foot{text-align:center;color:#777;font-size:12px;padding:22px}.small{font-size:12px;color:#697386}.right{text-align:right}.currency{font-weight:800;color:#111}@media(max-width:980px){.grid,.grid2,.stats{display:block}.topbar{display:block;padding:10px 18px}.brand{display:block;min-width:0}.brand img{width:220px;max-width:100%;height:auto}.brand span{display:block;margin-top:8px}.topbar nav{display:block;margin-top:12px}.topbar nav a{margin:3px}.profile-link{display:inline-flex}.items{font-size:12px}.hero h1{font-size:24px}}
code{background:#111;color:var(--yellow);border-radius:7px;padding:2px 6px;font-size:12px}.badge{display:inline-block;background:#111;color:var(--yellow);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700}

/* v23 — hiérarchie typographique renforcée avec les polices uploadées */
h1,h2,h3,.hero h1,.card h2{font-weight:900;letter-spacing:-.02em}
.stat b,.brand span,.btn,th,label,.pill{font-weight:800}
.card h2{font-size:20px}.hero h1{font-size:32px}

/* v24 — utilisation plus nette de la police grasse dans l’administration */
.topbar nav a,.hero h1,.card h2,.stat b,.btn,th,label,.pill,.badge,.currency{font-weight:900}
input,select,textarea,td,p,.small{font-weight:400}
.topbar nav a.on{font-weight:900}

/* v25 — police grasse réellement séparée et visible dans toute l’administration */
h1,h2,h3,h4,.hero h1,.card h2,.login-card h1,.login-card h2,.topbar nav a,.brand span,.btn,button,th,label,.pill,.badge,.currency,.stat b,.actions a{font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-weight:900!important}
.hero h1{font-size:34px;line-height:1.05}.card h2{font-size:21px;line-height:1.2}.login-card h1{font-size:30px;margin:8px 0 8px}.topbar nav a{letter-spacing:.01em}.btn{letter-spacing:.01em}.card h2:after{content:"";display:block;width:46px;height:4px;background:var(--yellow);border-radius:99px;margin-top:8px}.login-card h1:after{content:"";display:block;width:48px;height:4px;background:var(--yellow);border-radius:99px;margin-top:10px}.hero p,.card p,td,input,select,textarea{font-family:var(--font-main),Arial,Helvetica,sans-serif!important}.login-logo-wrap{box-shadow:0 12px 30px rgba(15,23,42,.08)}
.checkline{display:block;margin:10px 0;font-family:var(--font-main),Arial,Helvetica,sans-serif!important;font-weight:600!important}.meta-preview{max-width:360px;border-radius:16px;border:1px solid #e7eaf0;box-shadow:0 8px 22px rgba(15,23,42,.06);display:block;margin:10px 0;background:#fff}

/* v26 — forçage visuel de la police grasse uploadée */
:root{font-synthesis-weight:none;}
body{font-family:var(--font-main),Arial,Helvetica,sans-serif!important;}
.hero h1,.wrap h1,main h1,section.hero h1,.card h2,main h2,main h3,.page-title,.topbar nav a,.brand span,.stat b,.btn,button,th,label,.pill,.badge,.currency,.actions a,strong,b{
  font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;
  font-weight:900!important;
  font-synthesis-weight:none!important;
}
.hero h1,.wrap h1,section.hero h1{letter-spacing:-.015em;text-rendering:geometricPrecision;}
.hero p,.card p,td,input,select,textarea,li,.small{font-family:var(--font-main),Arial,Helvetica,sans-serif!important;font-weight:400!important;}


/* v27 — alignement équipe et meilleure visibilité des photos de profil */
.topbar nav{display:block;line-height:34px}.profile-link{padding:6px 10px!important}.top-avatar{width:34px!important;height:34px!important;border-radius:50%;object-fit:cover;border:3px solid var(--yellow);vertical-align:middle;margin-right:8px;box-shadow:0 0 0 2px rgba(255,255,255,.18)}
.team-table{table-layout:fixed}.team-table th,.team-table td{vertical-align:middle!important}.team-table th:nth-child(1){width:24%}.team-table th:nth-child(2){width:22%}.team-table th:nth-child(3){width:13%}.team-table th:nth-child(4){width:13%}.team-table th:nth-child(5){width:28%}.team-profile{display:table;width:100%;min-height:54px}.team-avatar-wrap{display:table-cell;width:58px;vertical-align:middle}.team-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;display:block;border:3px solid var(--yellow);background:#111;box-shadow:0 4px 12px rgba(0,0,0,.14)}.team-avatar-placeholder{width:48px;height:48px;border-radius:50%;display:block;background:#111;color:var(--yellow);text-align:center;line-height:48px;font-family:var(--font-bold, var(--font-main, Arial, sans-serif));font-weight:900;border:3px solid var(--yellow)}.team-name{display:table-cell;vertical-align:middle;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-weight:900!important}.team-actions{white-space:nowrap}.team-actions .btn{margin-right:6px}.team-card{padding-bottom:16px}
@media(max-width:980px){.team-table{table-layout:auto}.team-table,.team-table thead,.team-table tbody,.team-table th,.team-table td,.team-table tr{display:block}.team-table thead{display:none}.team-table tr{border-bottom:1px solid var(--line);padding:12px 0}.team-table td{border-bottom:0;padding:8px 0}.team-actions{white-space:normal}.top-avatar{width:32px!important;height:32px!important}}

/* v31 : menu principal */
.brand-kicker, .brand-kicker strong, .topbar .brand-subtitle, .app-brand .brand-subtitle { font-family: var(--font-bold, var(--font-main)) !important; font-weight: 900 !important; }

/* v32 : menu principal */
.brand span.brand-title{font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-weight:950!important;color:var(--yellow)!important;text-shadow:0 0 .01px currentColor;}

/* v41 - settings spacing improvements */
.card h2{margin:26px 0 16px;font-size:20px;line-height:1.25}
.card h2:first-child{margin-top:0}
.grid,.grid2{gap:18px 18px}
.field{margin-bottom:18px}
.checkline{margin:16px 0 18px}
.small{display:block;margin-top:8px;line-height:1.5}
.card form > p.small{margin:6px 0 18px}
.meta-preview{margin:14px 0 14px}
.badge{display:inline-block;margin:8px 0 14px}
input[type="file"]{padding:10px 12px;min-height:44px}
button.btn.primary,button.btn.alt{margin-top:8px}
.card form > .grid + .grid,
.card form > .grid2 + .grid,
.card form > .grid + .field,
.card form > .field + h2,
.card form > .grid2 + h2,
.card form > .grid + h2,
.card form > .checkline + .grid{margin-top:6px}

.money-lines{display:block;margin-top:5px}.money-line{display:block;font-size:24px;line-height:1.1;font-family:var(--font-main)Bold,BintoMediaApp,Arial,Helvetica,sans-serif;font-weight:900}.money-line+.money-line{margin-top:4px;font-size:18px}
.inline-form{display:inline-block;margin:0}.inline-form .btn{vertical-align:middle}


/* Animation logo login : version claire vers version sombre */
.login-logo-switch{
  position:relative;
  overflow:hidden;
  min-height:118px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  transition:background .45s ease, box-shadow .45s ease, transform .45s ease;
}
.login-logo-switch::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at 50% 50%, rgba(255,216,0,.22), transparent 42%);
  opacity:0;
  transform:scale(.78);
  transition:opacity .45s ease, transform .55s ease;
  pointer-events:none;
}
.login-logo-switch .login-logo{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(1);
  max-width:320px;
  width:82%;
  height:auto;
  margin:0;
  transition:opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.login-logo-switch .login-logo-light{
  opacity:1;
  filter:none;
}
.login-logo-switch .login-logo-dark{
  opacity:0;
  transform:translate(-50%,-50%) scale(.94);
  filter:blur(2px);
}
.login-logo-switch:hover,
.login-logo-switch:focus-within{
  background:#050505;
  box-shadow:0 16px 38px rgba(0,0,0,.18);
  transform:translateY(-2px);
}
.login-logo-switch:hover::before,
.login-logo-switch:focus-within::before{
  opacity:1;
  transform:scale(1);
}
.login-logo-switch:hover .login-logo-light,
.login-logo-switch:focus-within .login-logo-light{
  opacity:0;
  transform:translate(-50%,-50%) scale(1.06);
  filter:blur(2px);
}
.login-logo-switch:hover .login-logo-dark,
.login-logo-switch:focus-within .login-logo-dark{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
  filter:none;
}

.login-title{
  text-align:left;
  margin-top:18px;
  margin-bottom:8px;
}
.login-card > .small{
  text-align:left;
}


/* Ajustement v66 : logo login non coupé */
.login-logo-wrap.login-logo-switch{
  min-height:150px;
  padding:24px 22px;
}
.login-logo-switch .login-logo{
  max-width:360px;
  width:88%;
  max-height:112px;
  object-fit:contain;
}
.login-card{
  overflow:visible;
}


/* Espace de travail */
.workspace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.work-file-card{background:#fff;border:1px solid #e8ebf0;border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.06)}
.work-file-card strong{display:block;margin-bottom:6px}
.thread{display:grid;gap:12px;margin-bottom:16px}
.thread-msg{border-radius:18px;padding:14px 16px;border:1px solid #e8ebf0;background:#fff}
.thread-msg strong{display:inline-block;margin-right:8px}
.thread-msg span{font-size:12px;color:#667085}
.thread-msg.admin{border-left:6px solid var(--yellow)}
.thread-msg.client{border-left:6px solid #111;background:#fbfcfe}
.client-topbar{border-bottom-color:#ffd800}
.client-hero{background:linear-gradient(135deg,#050505 0%,#202020 62%,#ffd800 62%,#ffd800 100%)}
.profile-preview{max-width:120px;max-height:120px;border-radius:50%;border:4px solid var(--yellow);object-fit:cover}

.client-topbar .profile-link span{font-weight:900}

.work-preview-thumb{display:block;margin:10px 0;border-radius:14px;overflow:hidden;border:1px solid #e8ebf0;background:#f6f7f9;min-height:120px}
.work-preview-thumb img{display:block;width:100%;height:180px;object-fit:cover}
.work-preview-pdf{display:block;margin:10px 0;padding:18px;border-radius:14px;background:#111;color:#ffd800;font-weight:900;text-align:center}
.notif-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:15px;padding:0 5px;border-radius:999px;background:#ff3434;color:#fff;font-size:10px;font-weight:800;margin-left:4px;line-height:15px}
.notif-list{display:grid;gap:10px}
.notif-item{display:block;border:1px solid #e8ebf0;border-left:6px solid #ddd;border-radius:16px;padding:14px;background:#fff}
.notif-item.unread{border-left-color:#ffd800;background:#fffdf0}
.notif-item span{display:block;color:#667085;font-size:12px;margin-top:4px}


/* Menu admin simplifié avec groupes */
.topbar nav.main-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1 1 auto;flex-wrap:wrap;margin:0}
.nav-group{position:relative;display:inline-flex;align-items:center}
.nav-group-btn{border:0;border-radius:999px;background:transparent;color:#fff;padding:8px 11px;font-family:var(--font-main)Bold,BintoMediaApp,Arial,Helvetica,sans-serif;font-weight:900;cursor:pointer;font-size:13px;line-height:1.2}
.nav-group-btn.on,.nav-group:hover .nav-group-btn{background:var(--yellow);color:#000}
.nav-dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:210px;background:#080808;border:1px solid rgba(255,216,0,.35);border-radius:16px;padding:8px;box-shadow:0 18px 40px rgba(0,0,0,.25);display:none;z-index:50}
.nav-group:hover .nav-dropdown,.nav-group:focus-within .nav-dropdown{display:block}
.topbar .nav-dropdown a{display:block;margin:0 0 4px 0;padding:10px 12px;border-radius:12px;color:#fff;white-space:nowrap}
.topbar .nav-dropdown a:hover,.topbar .nav-dropdown a.on{background:var(--yellow);color:#000}
@media(max-width:980px){.topbar nav.main-nav{display:block}.nav-group{display:block}.nav-dropdown{position:static;display:block;margin:4px 0 8px 8px;box-shadow:none}.nav-group-btn{margin:3px}}
.message-template-box{border:1px solid #e8ebf0;background:#fbfcfe;border-radius:16px;padding:14px;margin-bottom:14px}
.message-template-box select{max-width:460px}


/* Chat direct admin/client */
.bcg-chat-widget{position:fixed;right:22px;bottom:22px;z-index:9999;font-family:var(--font-main),Arial,Helvetica,sans-serif}
.bcg-chat-toggle{border:0;border-radius:999px;background:#050505;color:#fff;border-bottom:4px solid #ffd800;padding:13px 18px;font-weight:900;box-shadow:0 14px 34px rgba(0,0,0,.25);cursor:pointer}
.bcg-chat-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#22c55e;margin-right:8px;box-shadow:0 0 0 4px rgba(34,197,94,.16)}
.bcg-chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;margin-left:8px;padding:0 6px}
.bcg-chat-panel{position:absolute;right:0;bottom:58px;width:370px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 110px);background:#fff;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.28);border:1px solid #e8ebf0;display:none;overflow:hidden}
.bcg-chat-panel.on{display:flex;flex-direction:column}
.bcg-chat-head{background:#050505;color:#fff;border-bottom:5px solid #ffd800;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}
.bcg-chat-head button{border:0;background:transparent;color:#fff;font-size:24px;cursor:pointer;line-height:1}
.bcg-chat-clients{display:flex;gap:6px;overflow-x:auto;padding:8px;background:#f6f7f9;border-bottom:1px solid #e8ebf0}
.bcg-chat-clients button{border:0;border-radius:999px;padding:8px 10px;background:#fff;white-space:nowrap;cursor:pointer;font-weight:800}
.bcg-chat-clients button.on{background:#ffd800;color:#000}
.bcg-chat-clients b{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;margin-left:4px}
.online-dot{display:inline-block;width:8px;height:8px;background:#22c55e;border-radius:50%;margin-right:5px}
.bcg-chat-messages{flex:1;overflow-y:auto;padding:14px;background:#f3f4f6}
.bcg-chat-msg{max-width:82%;margin:0 0 10px 0;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #e8ebf0}
.bcg-chat-msg.admin{margin-left:auto;background:#050505;color:#fff;border-color:#050505}
.bcg-chat-msg.client{margin-right:auto;background:#fff}
.bcg-chat-msg strong{font-size:12px;display:block;margin-bottom:4px}
.bcg-chat-msg p{margin:0;line-height:1.35;font-size:14px}
.bcg-chat-msg span{display:block;font-size:10px;opacity:.65;margin-top:4px}
.bcg-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e8ebf0;background:#fff}
.bcg-chat-form input{flex:1;border:1px solid #d0d5dd;border-radius:999px;padding:10px 12px}
.bcg-chat-form button{border:0;background:#ffd800;border-radius:999px;font-weight:900;padding:10px 12px;cursor:pointer}
@media(max-width:640px){.bcg-chat-widget{right:12px;bottom:12px}.bcg-chat-panel{width:calc(100vw - 24px);height:70vh}}


/* Notifications visuelles et sonores du chat */
.bcg-chat-widget.has-new-message .bcg-chat-toggle{
  background:#ffd800;
  color:#050505;
  box-shadow:0 0 0 0 rgba(255,216,0,.85), 0 18px 42px rgba(255,216,0,.35);
  animation:bcgChatGlow 1.15s ease-in-out infinite;
}
.bcg-chat-widget.has-new-message .bcg-chat-dot{
  background:#ef4444;
  box-shadow:0 0 0 5px rgba(239,68,68,.22);
}
.bcg-chat-toggle.pulse{
  animation:bcgChatPulse .55s ease-in-out 4;
}
.bcg-chat-count{
  animation:bcgChatBadge .8s ease-in-out infinite alternate;
}
.bcg-chat-clients button.has-unread{
  background:#fff1a6;
  color:#111;
  box-shadow:inset 0 0 0 2px #ffd800;
}
.bcg-chat-msg.incoming{
  animation:bcgIncomingMsg .55s ease;
}
@keyframes bcgChatGlow{
  0%{box-shadow:0 0 0 0 rgba(255,216,0,.85),0 18px 42px rgba(255,216,0,.35)}
  70%{box-shadow:0 0 0 14px rgba(255,216,0,0),0 18px 42px rgba(255,216,0,.35)}
  100%{box-shadow:0 0 0 0 rgba(255,216,0,0),0 18px 42px rgba(255,216,0,.35)}
}
@keyframes bcgChatPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.08)}
}
@keyframes bcgChatBadge{
  from{transform:scale(1)}
  to{transform:scale(1.18)}
}
@keyframes bcgIncomingMsg{
  from{transform:translateY(8px);opacity:.25}
  to{transform:translateY(0);opacity:1}
}


/* v76 : compteur non lu persistant et alerte renforcée */
.bcg-chat-widget.has-new-message .bcg-chat-toggle{
  position:relative;
  outline:3px solid rgba(255,216,0,.35);
}
.bcg-chat-widget.has-new-message .bcg-chat-toggle::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:999px;
  border:2px solid rgba(255,216,0,.9);
  animation:bcgChatRing 1.2s ease-out infinite;
  pointer-events:none;
}
.bcg-chat-widget.has-new-message .bcg-chat-count{
  display:inline-flex !important;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  min-width:24px;
  height:24px;
  box-shadow:0 0 0 4px rgba(239,68,68,.18);
}
@keyframes bcgChatRing{
  0%{transform:scale(.96);opacity:.9}
  100%{transform:scale(1.18);opacity:0}
}


/* v77 : dates lisibles et invitation chat */
.bcg-chat-msg span{
  font-variant-numeric:tabular-nums;
  letter-spacing:.01em;
}
.bcg-chat-msg.invitation{
  border-color:#ffd800;
  box-shadow:0 0 0 2px rgba(255,216,0,.25);
}
.bcg-chat-widget.has-chat-invitation .bcg-chat-toggle{
  background:#ef4444;
  color:#fff;
  border-bottom-color:#ffd800;
  animation:bcgChatInvite 0.75s ease-in-out infinite;
}
.bcg-chat-widget.has-chat-invitation .bcg-chat-toggle::before{
  content:"Invitation";
  position:absolute;
  right:10px;
  bottom:calc(100% + 8px);
  background:#ef4444;
  color:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:900;
  box-shadow:0 10px 28px rgba(239,68,68,.28);
}
.bcg-chat-invite{
  border:0;
  background:#ffd800;
  color:#111;
  font-weight:900;
  padding:9px 12px;
  cursor:pointer;
  border-bottom:1px solid #e8ebf0;
}
@keyframes bcgChatInvite{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-3px) scale(1.04)}
}

.login-help{
  margin-top:14px;
  padding:10px 12px;
  border-left:4px solid #ffd800;
  background:#fffbea;
  border-radius:12px;
}

.client-access-request{
  margin-top:18px;
  border:1px solid #e8ebf0;
  border-radius:16px;
  background:#fbfcfe;
  padding:12px 14px;
}
.client-access-request summary{
  cursor:pointer;
  font-family:var(--font-main)Bold,BintoMediaApp,Arial,Helvetica,sans-serif;
  font-weight:900;
}
.client-access-form{
  margin-top:14px;
}


/* v81 : avatars dans le chat */
.bcg-chat-msg{
  display:block;
}
.bcg-chat-msg-row{
  display:flex;
  align-items:flex-start;
  gap:9px;
}
.bcg-chat-msg.admin .bcg-chat-msg-row{
  flex-direction:row-reverse;
}
.bcg-chat-msg-body{
  min-width:0;
  flex:1;
}
.bcg-chat-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 32px;
  border:2px solid #ffd800;
  background:#fff;
}
.bcg-chat-msg.admin .bcg-chat-avatar{
  border-color:#ffd800;
}
.bcg-chat-avatar-fallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:13px;
  color:#111;
}
.bcg-chat-msg.admin .bcg-chat-avatar-fallback{
  background:#ffd800;
}
.bcg-chat-msg.client .bcg-chat-avatar-fallback{
  background:#111;
  color:#ffd800;
}

.file-meta{display:block;margin-top:4px;color:#111;font-weight:900}
.replace-file-box{margin:10px 0;border:1px dashed #d0d5dd;border-radius:14px;padding:10px;background:#fbfcfe}
.replace-file-box summary{cursor:pointer;font-weight:900}


/* v83 : aperçu workspace dans la même page */
.workspace-preview-opened{overflow:hidden}
.workspace-preview-modal[hidden]{display:none}
.workspace-preview-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px}
.workspace-preview-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(3px)}
.workspace-preview-dialog{position:relative;width:min(1180px,96vw);height:min(840px,90vh);background:#fff;border-radius:22px;box-shadow:0 24px 80px rgba(0,0,0,.38);overflow:hidden;border:4px solid #ffd800}
.workspace-preview-dialog iframe{width:100%;height:100%;border:0;background:#fff}
.workspace-preview-close{position:absolute;right:12px;top:10px;z-index:5;width:40px;height:40px;border:0;border-radius:50%;background:#050505;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.work-preview-thumb{display:flex;align-items:center;justify-content:center;margin:10px 0;border-radius:14px;overflow:hidden;border:1px solid #e8ebf0;min-height:180px;background:#f5f5f5;background-image:linear-gradient(45deg,#e7e7e7 25%,transparent 25%),linear-gradient(-45deg,#e7e7e7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7e7e7 75%),linear-gradient(-45deg,transparent 75%,#e7e7e7 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}
.work-preview-thumb img{display:block;width:100%;height:180px;object-fit:contain}

/* v86 : recadrage photo de profil */
.profile-cropper .crop-stage{margin-top:12px;display:inline-block;background:#fff;border:1px solid #e8ebf0;border-radius:18px;padding:14px}
.profile-cropper canvas{display:block;border-radius:16px;cursor:grab;background:#f5f5f5}
.profile-cropper canvas:active{cursor:grabbing}
.crop-controls{display:flex;align-items:center;gap:10px;margin-top:10px}
.crop-controls input{width:180px}
.mini-stats .stat b{font-size:24px}
.bcg-chat-clients em{font-style:normal;font-size:10px;opacity:.65;margin-left:4px}

.bcg-chat-loading,.bcg-chat-empty{padding:18px;text-align:center;color:#667085;font-size:13px}

.profile-cropper .crop-stage[hidden]{display:none !important}
.profile-cropper .crop-stage{margin-top:12px}


/* Binto Media Group edition */
:root{--bmg-red:#ef3129;--bmg-dark:#151515;--bmg-soft:#fff4f3;--bmg-border:#ead7d5;--bmg-blue:#0f6e8d;}
.topbar{background:#fff;border-bottom:1px solid rgba(239,49,41,.18);box-shadow:0 8px 30px rgba(20,20,20,.06)}
.brand img{max-height:48px;width:auto}.brand-title{color:var(--bmg-red);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.main-nav a.on,.nav-group-btn.on{background:var(--bmg-red);color:#fff}.btn.primary,.btn.alt{background:var(--bmg-red);border-color:var(--bmg-red);color:#fff}.btn.alt{background:#151515;border-color:#151515}.hero{background:linear-gradient(135deg,#ef3129 0%,#ff544c 48%,#fff 48.3%,#fff 100%);color:#151515;border:0;position:relative;overflow:hidden}.hero h1{color:#151515}.hero p{max-width:920px;color:#2d2d2d}.card h2{color:#ef3129}.stat b{color:#ef3129}.pill{background:#fff1ef;color:#b71f19;border:1px solid #ffd1cc}.bmg-media-strip{display:flex;align-items:center;gap:18px;overflow:hidden;padding:14px 0}.bmg-media-strip img{max-height:54px;width:auto;object-fit:contain}.bmg-alert-blue{border-left:4px solid var(--bmg-blue);background:#eef8fb;padding:14px 16px;border-radius:14px}.bmg-payroll-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.bmg-doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.bmg-template-card{border:1px solid var(--bmg-border);border-radius:18px;padding:18px;background:#fff}.bmg-table-tight td,.bmg-table-tight th{padding:8px 10px}.bmg-danger{color:#b71f19}.bmg-ok{color:#137333}.bmg-muted{color:#666;font-size:.92em}.login-panel .brand-login img{max-height:115px}.login-panel h1::after{content:'Binto Media Group';display:block;color:#ef3129;font-size:14px;text-transform:uppercase;letter-spacing:.12em;margin-top:8px}

/* v2 BMG — interface recentrée sur la rédaction, les journalistes et la paie */
:root{--bmg-red:#ef3129;--bmg-red-dark:#c51622;--bmg-yellow:#ffe11a;--bmg-ink:#17171d;--bmg-blue:#0d6b8b;--yellow:var(--bmg-yellow);--black:#161618;--bg:#f7f4f2;--card:#fff;--line:#eee2df;--muted:#776b67}
body{background:radial-gradient(circle at 8% 0%,rgba(239,49,41,.12),transparent 32%),linear-gradient(180deg,#fff7f3 0,#f7f4f2 340px,#f7f4f2 100%);color:var(--bmg-ink)}
.topbar{background:linear-gradient(135deg,#ef3129 0%,#d71f2d 56%,#991828 100%);border-bottom:6px solid var(--bmg-yellow);box-shadow:0 18px 36px rgba(97,24,20,.18)}
.brand{min-width:310px}.brand img{height:82px;width:210px;object-fit:contain}.brand span.brand-title{color:#fff!important;letter-spacing:.22em;font-size:11px}.topbar nav a,.nav-group-btn{color:#fff}.topbar nav a.on,.topbar nav a:hover,.nav-group-btn.on,.nav-group:hover .nav-group-btn{background:#fff;color:var(--bmg-red)!important}.nav-dropdown{background:#fff;border:1px solid rgba(239,49,41,.18)}.topbar .nav-dropdown a{color:#301b19}.topbar .nav-dropdown a:hover,.topbar .nav-dropdown a.on{background:var(--bmg-red);color:#fff!important}.wrap{max-width:1360px}.hero.bmg-hero,.hero{background:linear-gradient(135deg,#ef3129 0%,#d7192e 50%,#b90d27 72%,#ffe11a 72%,#ffe11a 100%);border-radius:30px;padding:34px 38px;min-height:170px;display:flex;align-items:center;box-shadow:0 24px 55px rgba(154,27,28,.22)}.hero h1{font-size:38px;max-width:820px}.hero p{max-width:760px;color:#fff7f0;font-size:16px;line-height:1.55}.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:900;color:#ffe11a;margin-bottom:10px}.card{border:1px solid rgba(239,49,41,.12);border-radius:26px;box-shadow:0 18px 42px rgba(99,28,24,.07)}.card h2:after{background:var(--bmg-red)}.stat{border-left:0;border-top:6px solid var(--bmg-red);border-radius:24px;background:linear-gradient(180deg,#fff 0%,#fffaf8 100%)}.stat b{color:var(--bmg-red);font-size:30px}.pill{background:#fff0ec;color:var(--bmg-red);border:1px solid rgba(239,49,41,.18)}.btn.primary{background:var(--bmg-red);color:#fff}.btn.alt{background:var(--bmg-ink);color:#fff}.btn.light{background:#fff0ec;color:var(--bmg-red)}th{background:#fff4f0;color:#8f221d}tr:hover td{background:#fffdfb}.bmg-command-center{background:linear-gradient(135deg,#fff 0%,#fff7f2 100%)}.command-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:22px;align-items:stretch}.payroll-tile{background:var(--bmg-ink);color:#fff;border-radius:24px;padding:22px;display:flex;flex-direction:column;justify-content:center}.payroll-tile span{text-transform:uppercase;font-size:11px;letter-spacing:.12em;color:#ffe11a;font-weight:900}.payroll-tile b{font-size:34px;margin:8px 0}.payroll-tile small{color:#d8d8d8}.compact-billing{border-top:5px solid #1f2937}.workspace-focus{border-top:6px solid var(--bmg-red)}.journalist-thread-list{display:grid;gap:12px}.journalist-thread{border:1px solid rgba(239,49,41,.15);border-left:7px solid var(--bmg-red);background:#fff;border-radius:20px;padding:15px 16px}.journalist-thread.high{border-left-color:#f59e0b}.journalist-thread.urgent{border-left-color:#dc2626;background:#fff7f5}.journalist-thread div{display:flex;justify-content:space-between;gap:12px;align-items:start}.journalist-thread strong{font-size:15px}.journalist-thread span,.journalist-thread footer span{font-size:12px;color:#7b6f6a}.journalist-thread p{margin:10px 0;color:#3f3a38;line-height:1.45}.journalist-thread footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0e1dd;padding-top:10px}.login{background:linear-gradient(135deg,#ef3129,#b90d27)}.login-card{border-top:8px solid var(--bmg-yellow)}.login-logo-switch:hover,.login-logo-switch:focus-within{background:#ef3129}.bcg-chat-head{background:var(--bmg-red);border-bottom-color:var(--bmg-yellow)}.bcg-chat-toggle{background:var(--bmg-red);border-bottom-color:var(--bmg-yellow)}.bcg-chat-form button{background:var(--bmg-red);color:#fff}.bcg-chat-msg.admin{background:var(--bmg-red);border-color:var(--bmg-red)}
@media(max-width:980px){.command-grid{grid-template-columns:1fr}.hero h1{font-size:28px}.brand{min-width:0}.brand img{width:180px}.journalist-thread div,.journalist-thread footer{display:block}.stats{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.stats{display:block}.hero{padding:24px}.grid,.grid2{display:block}}

/* v110 — redesign Binto Media Group : app rouge, newsroom et workspace journalistes */
:root{--bmg-red:#ee2f2a;--bmg-red-dark:#d91d1a;--bmg-red-soft:#fff1f0;--bmg-black:#101010;--bmg-text:#202124;--bmg-muted:#6f7177;--bmg-line:#e8e8ec;--bmg-panel:#f7f7f8;--bmg-card:#ffffff;--bmg-radius:22px;--bmg-shadow:0 18px 45px rgba(25,25,25,.10)}
body.bmg-red-shell{background:var(--bmg-red);color:var(--bmg-text);min-height:100vh;overflow-x:hidden}.app-shell{display:grid;grid-template-columns:286px minmax(0,1fr);min-height:calc(100vh - 46px);padding:28px 28px 0 0}.sidebar-bmg{color:#fff;padding:26px 22px 22px;display:flex;flex-direction:column;gap:22px;position:sticky;top:0;height:calc(100vh - 28px)}.brand-bmg{display:block;text-align:center;margin:4px auto 8px;color:#fff}.brand-bmg img{width:178px;max-width:100%;height:auto;display:block;margin:0 auto 8px;object-fit:contain;filter:brightness(0) invert(1)}.brand-bmg span{display:inline-block;background:#fff;color:#111;padding:3px 18px 4px;transform:skewY(-4deg);font-size:12px;text-transform:uppercase;letter-spacing:.02em}.side-nav{display:grid;gap:7px}.side-nav a{display:flex;align-items:center;gap:14px;color:#fff;padding:13px 16px;border-radius:10px;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-weight:900!important;transition:.18s ease}.side-nav a:hover,.side-nav a.on{background:#fff;color:var(--bmg-red);box-shadow:0 12px 28px rgba(0,0,0,.11)}.side-nav svg,.logout-bmg svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 24px}.side-nav em{margin-left:auto;min-width:22px;height:22px;border-radius:999px;background:var(--bmg-red);color:#fff;font-style:normal;text-align:center;line-height:22px;font-size:11px}.side-profile{margin-top:auto;border:1px solid rgba(255,255,255,.35);border-radius:14px;padding:12px;display:flex;align-items:center;gap:12px}.side-profile img,.side-profile>span{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#fff;color:var(--bmg-red);display:flex;align-items:center;justify-content:center;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-size:22px}.side-profile strong{display:block;color:#fff}.side-profile small{display:block;color:rgba(255,255,255,.78);font-size:12px;margin-top:3px}.logout-bmg{display:flex;align-items:center;gap:12px;color:#fff;padding:14px 4px 4px;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-weight:900!important}.app-main{background:var(--bmg-panel);border-radius:18px 18px 0 0;min-height:calc(100vh - 28px);box-shadow:var(--bmg-shadow);overflow:hidden}.app-topline{display:grid;grid-template-columns:minmax(250px,1fr) minmax(260px,460px) auto;gap:22px;align-items:center;padding:22px 30px 18px;border-bottom:1px solid var(--bmg-line);background:rgba(255,255,255,.88);backdrop-filter:blur(10px)}.app-topline h1{margin:0;color:#111;font-size:26px;line-height:1.05}.app-topline p{margin:5px 0 0;color:var(--bmg-muted);font-size:13px}.app-search{height:48px;background:#fff;border:1px solid #dddfe4;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 14px;box-shadow:0 7px 20px rgba(0,0,0,.03)}.app-search svg{width:21px;height:21px;fill:none;stroke:#777;stroke-width:2}.app-search input{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}.top-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}.top-actions a,.top-actions span{display:inline-flex;align-items:center;min-height:42px;border:1px solid #e2e3e7;background:#fff;border-radius:12px;padding:0 14px;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important}.content-panel{padding:22px 30px 28px}.wrap{max-width:none;margin:0;padding:0}.hero{background:#fff!important;color:var(--bmg-text)!important;border-radius:18px!important;border:1px solid var(--bmg-line)!important;box-shadow:0 10px 26px rgba(0,0,0,.06)!important}.hero h1{color:var(--bmg-red)!important}.hero p{color:var(--bmg-muted)!important}.card{border:1px solid var(--bmg-line)!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(0,0,0,.055)!important;background:#fff!important}.card h2{color:#191919!important;text-transform:none}.card h2:after{background:var(--bmg-red)!important}.btn{border-radius:12px!important;padding:11px 16px!important;box-shadow:none!important}.btn.primary{background:var(--bmg-red)!important;color:#fff!important}.btn.alt{background:#111!important;color:#fff!important}.btn.light{background:#fff!important;color:var(--bmg-red)!important;border:1px solid #f1b9b6!important}.btn.wide{display:block;text-align:center;width:100%}.pill{background:#f2f4f7;color:#555}.pill.danger{background:#fee4e2!important;color:#b42318!important}.alert{border-radius:14px}.foot.app-legal{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;background:#f7f7f8;color:#333;margin-left:286px;padding:12px 30px;border-top:1px solid var(--bmg-line);font-size:12px}.foot.app-legal strong{color:#111}.bmg-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.bmg-welcome .eyebrow{color:var(--bmg-red);font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.bmg-welcome h2{font-size:29px;margin:3px 0 3px;color:#111}.bmg-welcome p{margin:0;color:var(--bmg-muted)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.kpi-card{background:#fff;border:1px solid var(--bmg-line);border-radius:18px;padding:18px 18px 16px;box-shadow:0 8px 22px rgba(0,0,0,.045);position:relative;min-height:132px}.kpi-card i{width:54px;height:54px;border-radius:13px;background:linear-gradient(135deg,var(--bmg-red),#d30f0c);color:#fff;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:24px;margin-bottom:12px}.kpi-card span{display:block;color:#222;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important}.kpi-card b{display:block;font-size:31px;line-height:1;margin:5px 0 7px;color:#111}.kpi-card small{color:var(--bmg-muted)}.dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.card-head h2{margin:0!important}.card-head a{color:var(--bmg-red);font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-size:13px}.newsroom-card{min-height:350px}.newsroom-grid{display:grid;grid-template-columns:290px minmax(0,1fr) 160px;gap:16px}.conversation-list{display:grid;gap:8px}.conversation-item{display:grid;grid-template-columns:42px 1fr auto;gap:2px 10px;align-items:center;padding:11px;border-radius:12px;border:1px solid transparent}.conversation-item.active,.conversation-item:hover{background:var(--bmg-red-soft);border-color:#ffe0de}.conversation-item .avatar-dot{grid-row:1/3;width:42px;height:42px;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important}.conversation-item strong{font-size:14px}.conversation-item small{color:var(--bmg-muted)}.conversation-item em{grid-column:3;grid-row:1;font-style:normal;color:#777;font-size:12px}.thread-panel{border:1px solid var(--bmg-line);border-radius:14px;padding:14px;background:#fff}.thread-head{display:flex;justify-content:space-between;border-bottom:1px solid var(--bmg-line);padding-bottom:10px;margin-bottom:14px}.thread-head strong,.thread-head small{display:block}.thread-head small{color:var(--bmg-muted);margin-top:3px}.thread-head span{align-self:start;background:#fff2e8;color:#cf4a00;border-radius:999px;padding:5px 9px;font-size:12px}.chat-bubble{max-width:88%;border-radius:14px;padding:12px 14px;margin:0 0 10px;line-height:1.35}.chat-bubble.journalist{background:#fff;border:1px solid var(--bmg-line)}.chat-bubble.editor{background:#f2f3f5;margin-left:auto}.composer{display:flex;gap:8px;border-top:1px solid var(--bmg-line);padding-top:10px}.composer input{border-radius:12px!important}.composer button{width:44px;border:0;border-radius:12px;background:var(--bmg-red);color:#fff;font-weight:900}.action-stack{border:1px solid var(--bmg-line);border-radius:14px;padding:14px;display:grid;align-content:start;gap:9px}.action-stack h3{margin:0 0 4px}.side-column{display:grid;gap:18px;align-content:start}.pay-profile{display:flex;align-items:center;gap:12px;margin:7px 0 14px}.pay-profile span{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bmg-red);color:#fff;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-size:23px}.pay-profile strong,.pay-profile small{display:block}.pay-profile small{color:var(--bmg-muted);margin-top:3px}.payroll-preview dl{display:grid;grid-template-columns:1fr auto;gap:10px 14px;border-top:1px solid var(--bmg-line);border-bottom:1px solid var(--bmg-line);padding:14px 0;margin:0 0 14px}.payroll-preview dt{color:#555}.payroll-preview dd{margin:0;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important}.payroll-preview dd:last-child{color:var(--bmg-red)}.doc-row{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--bmg-line)}.doc-row:last-child{border-bottom:0}.doc-row span{width:30px;height:30px;border-radius:8px;background:#f6f7f9;display:flex;align-items:center;justify-content:center}.doc-row em{font-style:normal;background:#f4f5f6;border-radius:999px;padding:5px 8px;font-size:11px}.media-portfolio>div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.media-tile,.media-mini{display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:pre-line;border-radius:8px;min-height:58px;color:#fff;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important;font-weight:900!important;line-height:.95;padding:6px}.media-mini{min-height:0;padding:5px 9px;border-radius:999px;white-space:normal}.info241{background:#0b5e8e;color:#ffe21a}.sport241{background:#7225cb;color:#ffe21a}.footgabon{background:#e10021;color:#ffe21a}.rue241{background:#111;color:#ffe21a}.star241{background:#9b158f;color:#ffe21a}.gabonsoir{background:#111;color:#fff}.gabontime{background:#056aa6;color:#fff}.productions-card{margin-top:18px}.bmg-table th{font-size:12px}.bmg-table td{vertical-align:middle}.type-pill{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important}.type-pill.article{background:#eaf2ff;color:#175cd3}.type-pill.breve{background:#f4e8ff;color:#7a2ebf}.type-pill.interview{background:#e9f8ef;color:#027a48}.type-pill.podcast{background:#ffecf8;color:#b4238a}.type-pill.video{background:#fff2cc;color:#a15c00}.company-strip{display:flex;gap:18px;flex-wrap:wrap;margin:18px 0 0;padding:14px 18px;border:1px solid var(--bmg-line);border-radius:16px;background:#fff;color:#444;font-size:13px}.company-strip span{display:inline-flex;align-items:center;gap:6px}.company-strip span:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--bmg-red)}.stats{gap:16px}.stat{border-left-color:var(--bmg-red)!important}.grid,.grid2{gap:16px}input:focus,select:focus,textarea:focus{outline:2px solid rgba(238,47,42,.18);border-color:var(--bmg-red)}.login{background:var(--bmg-red)!important}.login-card{border-top:0!important;border-radius:24px!important;box-shadow:0 24px 80px rgba(0,0,0,.20)!important}.login-card .btn.primary{width:100%;margin-top:6px}.login-logo-wrap{border-radius:18px!important;border-color:#f0d1cf!important}.login-title{color:var(--bmg-red)}.client-access-request{margin-top:15px}.client-access-request summary{cursor:pointer;color:var(--bmg-red);font-family:var(--font-bold, var(--font-main, Arial, Helvetica, sans-serif))!important}.bcg-chat-toggle{background:var(--bmg-red)!important;border-bottom-color:#111!important}.bcg-chat-head{background:var(--bmg-red)!important;border-bottom-color:#111!important}.bcg-chat-form button{background:var(--bmg-red)!important;color:#fff!important}.bcg-chat-msg.admin{background:var(--bmg-red)!important;border-color:var(--bmg-red)!important}.bcg-chat-widget.has-new-message .bcg-chat-toggle{background:#111!important;color:#fff!important;animation:none!important}
@media(max-width:1220px){.app-shell{grid-template-columns:240px}.dashboard-layout{grid-template-columns:1fr}.newsroom-grid{grid-template-columns:1fr}.media-portfolio>div{grid-template-columns:repeat(7,1fr)}.foot.app-legal{margin-left:240px}.sidebar-bmg{padding-left:14px;padding-right:14px}.brand-bmg img{width:150px}}
@media(max-width:880px){.app-shell{display:block;padding:0}.sidebar-bmg{position:relative;height:auto;padding:18px}.side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.app-main{border-radius:18px 18px 0 0;margin:0 12px}.app-topline{grid-template-columns:1fr}.content-panel{padding:18px}.kpi-grid{grid-template-columns:1fr 1fr}.foot.app-legal{margin-left:0;justify-content:center}.bmg-welcome{display:block}.media-portfolio>div{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.side-nav{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr}.app-main{margin:0}.content-panel{padding:14px}.bmg-table{font-size:12px}.bmg-table th:nth-child(4),.bmg-table td:nth-child(4),.bmg-table th:nth-child(6),.bmg-table td:nth-child(6){display:none}}

/* v4.1 — app Binto Media Group : police interface fixe + logo admin corrigé */
:root{
  --bmg-ui-font: var(--font-main, "Trebuchet MS", Arial, Helvetica, sans-serif);
  --bmg-ui-font-bold: var(--font-bold, var(--font-main, "Arial Black", Arial, Helvetica, sans-serif));
}
body,
body.bmg-red-shell,
body.bmg-red-shell input,
body.bmg-red-shell select,
body.bmg-red-shell textarea,
body.bmg-red-shell button,
body.bmg-red-shell table,
body.bmg-red-shell p,
body.bmg-red-shell td,
body.bmg-red-shell li,
body.bmg-red-shell .small,
.login,
.login input,
.login select,
.login textarea,
.login button{
  font-family:var(--bmg-ui-font)!important;
}
body.bmg-red-shell h1,
body.bmg-red-shell h2,
body.bmg-red-shell h3,
body.bmg-red-shell h4,
body.bmg-red-shell strong,
body.bmg-red-shell b,
body.bmg-red-shell label,
body.bmg-red-shell th,
body.bmg-red-shell .btn,
body.bmg-red-shell .side-nav a,
body.bmg-red-shell .logout-bmg,
body.bmg-red-shell .top-actions a,
body.bmg-red-shell .top-actions span,
body.bmg-red-shell .kpi-card span,
body.bmg-red-shell .kpi-card b,
body.bmg-red-shell .media-tile,
body.bmg-red-shell .media-mini,
.login h1,
.login h2,
.login strong,
.login b,
.login .btn,
.login label{
  font-family:var(--bmg-ui-font-bold)!important;
  font-weight:900!important;
}
.brand-bmg{
  width:100%;
  padding:0 2px;
  margin:0 auto 16px!important;
}
.brand-bmg img{
  width:190px!important;
  max-width:92%!important;
  height:auto!important;
  display:block!important;
  margin:0 auto!important;
  object-fit:contain!important;
  filter:none!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.brand-bmg span{
  margin-top:6px;
  transform:skewY(-3deg)!important;
}
.sidebar-bmg{
  gap:18px!important;
}
.side-nav{
  gap:5px!important;
}
.side-nav a{
  padding:11px 14px!important;
}
.top-actions .update-shortcut{
  background:var(--bmg-red)!important;
  color:#fff!important;
  border-color:var(--bmg-red)!important;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.login-logo-wrap,
.login-logo-switch{
  background:#fff!important;
}
.login-logo-wrap .login-logo{
  filter:none!important;
}
/* Les polices déposées par l’admin pilotent maintenant à la fois l’interface et les PDF. */


/* v5 — logo unique et identification utilisateur */
.brand-bmg span{display:none!important}
.brand-bmg img{margin-bottom:0!important}
.app-topline p strong{color:#111;font-weight:900}
.top-actions .user-chip{max-width:190px;overflow:hidden;text-overflow:ellipsis}
.bmg-code-copy{display:flex;align-items:center;gap:10px;background:#f7f7f7;border:1px solid #e5e5e5;border-radius:14px;padding:14px 16px;overflow:auto}.bmg-code-copy code{font-weight:700;color:#e62b2b;white-space:nowrap}.update-shortcut{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:12px;background:#fff0f0;color:#e62b2b;font-weight:800;text-decoration:none;border:1px solid #ffd2d2}.user-chip{font-weight:700;color:#111;background:#fff;border:1px solid #eee;border-radius:12px;padding:8px 12px}

/* v17 — menu principal compact, pages internes moins répétitives */
body.bmg-red-shell .app-shell{
  grid-template-columns:238px minmax(0,1fr)!important;
  min-height:calc(100vh - 38px)!important;
  padding:22px 22px 0 0!important;
}
body.bmg-red-shell .sidebar-bmg{
  height:calc(100vh - 22px)!important;
  padding:18px 14px 14px!important;
  gap:12px!important;
  overflow:hidden!important;
}
body.bmg-red-shell .brand-bmg{
  margin:0 auto 8px!important;
  padding:0!important;
}
body.bmg-red-shell .brand-bmg img{
  width:154px!important;
  max-height:178px!important;
}
body.bmg-red-shell .side-nav{
  gap:3px!important;
}
body.bmg-red-shell .side-nav a{
  min-height:38px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
  gap:10px!important;
  font-size:13.5px!important;
  line-height:1.05!important;
}
body.bmg-red-shell .side-nav svg,
body.bmg-red-shell .logout-bmg svg{
  width:19px!important;
  height:19px!important;
  flex-basis:19px!important;
  stroke-width:2.1!important;
}
body.bmg-red-shell .side-nav em{
  min-width:18px!important;
  height:18px!important;
  line-height:18px!important;
  font-size:10px!important;
}
body.bmg-red-shell .side-profile{
  margin-top:auto!important;
  border-radius:12px!important;
  padding:8px!important;
  gap:9px!important;
}
body.bmg-red-shell .side-profile img,
body.bmg-red-shell .side-profile>span{
  width:34px!important;
  height:34px!important;
  font-size:16px!important;
}
body.bmg-red-shell .side-profile strong{
  max-width:140px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  font-size:12.5px!important;
}
body.bmg-red-shell .side-profile small{
  font-size:10.5px!important;
  margin-top:1px!important;
}
body.bmg-red-shell .logout-bmg{
  padding:8px 4px 0!important;
  gap:10px!important;
  font-size:13px!important;
}
body.bmg-red-shell .app-main{
  min-height:calc(100vh - 22px)!important;
}
body.bmg-red-shell .app-topline{
  padding:17px 28px 14px!important;
  grid-template-columns:minmax(230px,1fr) minmax(250px,520px) auto!important;
}
body.bmg-red-shell .app-topline h1{
  font-size:25px!important;
}
body.bmg-red-shell .app-topline p{
  line-height:1.25!important;
  max-width:700px!important;
}
body.bmg-red-shell .content-panel{
  padding:22px 28px 30px!important;
}
body.bmg-red-shell .hero,
body.bmg-red-shell .hero.bmg-hero,
body.bmg-red-shell .page-intro{
  min-height:96px!important;
  padding:22px 28px!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:0 12px 28px rgba(20,20,20,.06)!important;
  border:1px solid var(--bmg-line)!important;
}
body.bmg-red-shell .hero h1,
body.bmg-red-shell .page-intro h1{
  flex:0 0 auto!important;
  margin:0!important;
  color:var(--bmg-red)!important;
  font-size:28px!important;
  line-height:1.05!important;
  max-width:unset!important;
  white-space:nowrap!important;
}
body.bmg-red-shell .hero p,
body.bmg-red-shell .page-intro p{
  margin:0!important;
  color:var(--bmg-muted)!important;
  font-size:14px!important;
  line-height:1.35!important;
  max-width:850px!important;
}
body.bmg-red-shell .card{
  border-radius:18px!important;
  padding:18px 20px!important;
  margin-bottom:16px!important;
  box-shadow:0 12px 28px rgba(25,25,25,.06)!important;
}
body.bmg-red-shell .card h2{
  font-size:20px!important;
  margin-bottom:12px!important;
  color:#111!important;
}
body.bmg-red-shell .card h2:after{
  width:42px!important;
  height:3px!important;
  margin-top:7px!important;
}
body.bmg-red-shell .grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px 14px!important;
}
body.bmg-red-shell .field{
  margin-bottom:9px!important;
}
body.bmg-red-shell label{
  margin-bottom:5px!important;
  font-size:12.5px!important;
}
body.bmg-red-shell input,
body.bmg-red-shell select,
body.bmg-red-shell textarea{
  padding:9px 11px!important;
  min-height:39px!important;
  border-radius:10px!important;
}
body.bmg-red-shell .btn{
  border-radius:10px!important;
  padding:9px 13px!important;
  line-height:1.1!important;
}
body.bmg-red-shell th,
body.bmg-red-shell td{
  padding:9px 8px!important;
}
body.bmg-red-shell .foot.app-legal{
  margin-left:238px!important;
  padding:9px 24px!important;
  gap:13px!important;
}
/* Sur les pages de gestion, éviter la sensation de titre répété en traitant l'introduction comme une barre d'aide. */
body.bmg-red-shell .page-intro + .card{
  margin-top:2px!important;
}
@media(max-height:830px){
  body.bmg-red-shell .brand-bmg img{width:126px!important;max-height:142px!important;}
  body.bmg-red-shell .side-nav a{min-height:34px!important;padding:7px 9px!important;font-size:12.8px!important;}
  body.bmg-red-shell .side-profile{padding:7px!important;}
  body.bmg-red-shell .logout-bmg{font-size:12.5px!important;}
}
@media(max-width:1220px){
  body.bmg-red-shell .app-shell{grid-template-columns:220px!important;}
  body.bmg-red-shell .foot.app-legal{margin-left:220px!important;}
  body.bmg-red-shell .brand-bmg img{width:132px!important;}
}
@media(max-width:880px){
  body.bmg-red-shell .app-shell{display:block!important;padding:0!important;}
  body.bmg-red-shell .sidebar-bmg{height:auto!important;overflow:visible!important;}
  body.bmg-red-shell .foot.app-legal{margin-left:0!important;}
  body.bmg-red-shell .hero,
  body.bmg-red-shell .page-intro{display:block!important;}
  body.bmg-red-shell .hero h1,
  body.bmg-red-shell .page-intro h1{white-space:normal!important;margin-bottom:8px!important;}
}

/* v18 — menu compact, textes moins répétitifs et graisse forte à 600 */
.sidebar-bmg{width:228px!important;padding:28px 18px 16px!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important}
.brand-bmg{display:block!important;margin:0 auto 24px!important;text-align:center!important}
.brand-bmg img{width:154px!important;max-height:190px!important;object-fit:contain!important;display:block!important;margin:0 auto!important}
.side-nav{display:flex!important;flex-direction:column!important;gap:4px!important;flex:1 1 auto!important}
.side-nav a{min-height:38px!important;padding:8px 12px!important;border-radius:12px!important;font-size:14px!important;line-height:1.1!important;font-weight:600!important;letter-spacing:0!important}
.side-nav a svg{width:18px!important;height:18px!important;margin-right:9px!important;flex:0 0 18px!important}
.side-profile{margin-top:12px!important;padding:10px!important;border-radius:14px!important}
.logout-bmg{padding:9px 12px!important;font-size:13px!important;font-weight:600!important}.logout-bmg svg{width:18px!important;height:18px!important}.app-main{margin-left:228px!important}.app-topline h1{font-size:26px!important;line-height:1.05!important}.app-topline p{font-size:13px!important}.hero{display:flex!important;align-items:center!important;gap:22px!important;min-height:auto!important;padding:28px 38px!important}.hero h1{font-size:32px!important;max-width:520px!important;line-height:1.05!important;margin:0!important}.hero p{max-width:720px!important;margin:0!important}.card h2{font-size:21px!important;margin-bottom:16px!important}.grid{gap:12px 14px!important}.field{margin-bottom:12px!important}label,.btn,button,th,.pill,.badge,.side-nav a,.top-actions a,.top-actions span,strong,b{font-weight:600!important}.hero h1,.app-topline h1,h1,h2,h3,.stat b,.kpi-card b{font-weight:900!important}.app-legal{margin-left:228px!important}@media(max-height:820px){.brand-bmg img{width:128px!important;max-height:150px!important}.side-nav a{min-height:33px!important;padding:7px 10px!important;font-size:13px!important}.sidebar-bmg{padding-top:20px!important}.side-profile{display:none!important}.logout-bmg{margin-top:8px!important}}@media(max-width:980px){.sidebar-bmg{width:100%!important;position:relative!important;height:auto!important}.app-main,.app-legal{margin-left:0!important}}
.performance-strip{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin:12px 0}.performance-strip .perf{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}.performance-strip .perf span{display:block;color:var(--muted);font-size:12px}.performance-strip .perf b{font-size:22px}.score20{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:32px;border-radius:999px;background:#111;color:#fff;font-weight:900!important}.impact-cell{font-size:12px;line-height:1.35}.impact-cell b{display:block;font-size:14px;color:#111}.media-logo-mini{height:30px;max-width:92px;object-fit:contain;vertical-align:middle;margin-right:8px}


/* v20 — correctif d'affichage global */
body.bmg-red-shell .app-shell{grid-template-columns:212px minmax(0,1fr)!important;gap:18px!important;min-height:100vh!important;padding:18px 18px 0 0!important;}
body.bmg-red-shell .sidebar-bmg{position:sticky!important;top:0!important;width:auto!important;height:100vh!important;max-height:100vh!important;padding:16px 12px 12px!important;gap:10px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;}
body.bmg-red-shell .brand-bmg{margin:0 auto 10px!important;padding:0!important;text-align:center!important;}
body.bmg-red-shell .brand-bmg img{width:124px!important;max-width:100%!important;max-height:142px!important;display:block!important;margin:0 auto!important;}
body.bmg-red-shell .side-nav{display:flex!important;flex-direction:column!important;gap:3px!important;flex:1 1 auto!important;min-height:0!important;}
body.bmg-red-shell .side-nav a{min-height:34px!important;padding:8px 10px!important;border-radius:11px!important;font-size:13px!important;line-height:1.05!important;gap:9px!important;font-weight:600!important;}
body.bmg-red-shell .side-nav a span{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.bmg-red-shell .side-nav a svg,body.bmg-red-shell .logout-bmg svg{width:16px!important;height:16px!important;flex:0 0 16px!important;}
body.bmg-red-shell .side-nav em{min-width:17px!important;height:17px!important;line-height:17px!important;font-size:10px!important;}
body.bmg-red-shell .side-profile{margin-top:8px!important;padding:8px 9px!important;border-radius:12px!important;gap:8px!important;}
body.bmg-red-shell .side-profile img,body.bmg-red-shell .side-profile>span{width:32px!important;height:32px!important;font-size:14px!important;}
body.bmg-red-shell .side-profile strong{font-size:12px!important;line-height:1.15!important;}
body.bmg-red-shell .side-profile small{font-size:10px!important;}
body.bmg-red-shell .logout-bmg{padding:8px 10px!important;font-size:12.5px!important;font-weight:600!important;}
body.bmg-red-shell .app-main,body.bmg-red-shell .app-legal{margin-left:0!important;}
body.bmg-red-shell .app-main{min-width:0!important;border-radius:18px 18px 0 0!important;min-height:calc(100vh - 18px)!important;}
body.bmg-red-shell .app-topline{grid-template-columns:minmax(220px,1fr) minmax(220px,420px) auto!important;gap:14px!important;padding:16px 22px 14px!important;}
body.bmg-red-shell .app-topline h1{font-size:23px!important;line-height:1.05!important;margin:0!important;}
body.bmg-red-shell .app-topline p{font-size:13px!important;line-height:1.28!important;max-width:620px!important;}
body.bmg-red-shell .top-actions{gap:8px!important;}
body.bmg-red-shell .top-actions a,body.bmg-red-shell .top-actions span{min-height:38px!important;padding:0 12px!important;border-radius:11px!important;font-weight:600!important;}
body.bmg-red-shell .app-search{height:44px!important;border-radius:11px!important;}
body.bmg-red-shell .content-panel{padding:18px 22px 24px!important;}
body.bmg-red-shell .page-intro,body.bmg-red-shell .hero{display:grid!important;grid-template-columns:minmax(200px,320px) minmax(0,1fr)!important;align-items:center!important;gap:14px!important;min-height:auto!important;padding:18px 22px!important;margin-bottom:16px!important;}
body.bmg-red-shell .page-intro h1,body.bmg-red-shell .hero h1{margin:0!important;font-size:24px!important;line-height:1.05!important;white-space:normal!important;color:var(--bmg-red)!important;font-weight:800!important;}
body.bmg-red-shell .page-intro p,body.bmg-red-shell .hero p{margin:0!important;font-size:14px!important;line-height:1.38!important;color:var(--bmg-muted)!important;max-width:none!important;}
body.bmg-red-shell .card{padding:18px!important;margin-bottom:14px!important;border-radius:18px!important;}
body.bmg-red-shell .card h2{margin:0 0 14px!important;font-size:17px!important;font-weight:800!important;}
body.bmg-red-shell .card h2:after{content:'';display:block;width:44px;height:3px;background:var(--bmg-red);border-radius:999px;margin-top:8px;}
body.bmg-red-shell label,body.bmg-red-shell .btn,body.bmg-red-shell button,body.bmg-red-shell th,body.bmg-red-shell .pill,body.bmg-red-shell .badge,body.bmg-red-shell strong,body.bmg-red-shell b{font-weight:600!important;}
body.bmg-red-shell h1,body.bmg-red-shell h2,body.bmg-red-shell h3,body.bmg-red-shell .kpi-card b,body.bmg-red-shell .stat b{font-weight:800!important;}
body.bmg-red-shell .grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;}
body.bmg-red-shell .field{margin-bottom:0!important;}
body.bmg-red-shell input,body.bmg-red-shell select,body.bmg-red-shell textarea{min-height:40px!important;padding:9px 11px!important;border-radius:10px!important;font-size:14px!important;}
body.bmg-red-shell .btn{border-radius:10px!important;padding:10px 14px!important;}
body.bmg-red-shell .rates-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:end!important;}
body.bmg-red-shell .rates-grid .wide{grid-column:span 2!important;}
body.bmg-red-shell .rates-grid .actions{display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;}
body.bmg-red-shell .rates-grid .small{display:block!important;margin-top:7px!important;line-height:1.35!important;}
body.bmg-red-shell .rates-table-wrap{overflow:auto!important;border:1px solid var(--bmg-line)!important;border-radius:14px!important;background:#fff!important;}
body.bmg-red-shell .rates-table{width:100%!important;min-width:980px!important;border-collapse:separate!important;border-spacing:0!important;}
body.bmg-red-shell .rates-table th,body.bmg-red-shell .rates-table td{padding:10px 10px!important;vertical-align:middle!important;}
body.bmg-red-shell .rates-table thead th{position:sticky!important;top:0!important;z-index:1!important;background:#faf7f7!important;}
body.bmg-red-shell .rates-table td:nth-child(6),body.bmg-red-shell .rates-table th:nth-child(6){text-align:right!important;}
body.bmg-red-shell .rate-editor{display:block!important;}
body.bmg-red-shell .rate-editor summary{display:inline-flex!important;align-items:center!important;list-style:none!important;cursor:pointer!important;}
body.bmg-red-shell .rate-editor summary::-webkit-details-marker{display:none!important;}
body.bmg-red-shell .rate-editor[open] summary{margin-bottom:12px!important;}
body.bmg-red-shell .edit-grid{padding-top:10px!important;border-top:1px dashed var(--bmg-line)!important;margin-top:10px!important;}
body.bmg-red-shell .foot.app-legal{padding:10px 22px!important;gap:12px!important;font-size:12px!important;}
@media (max-width:1320px){body.bmg-red-shell .rates-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.bmg-red-shell .rates-grid .wide{grid-column:auto!important;}}
@media (max-width:1180px){body.bmg-red-shell .app-shell{grid-template-columns:196px minmax(0,1fr)!important;}body.bmg-red-shell .brand-bmg img{width:112px!important;max-height:130px!important;}body.bmg-red-shell .side-nav a{font-size:12.5px!important;padding:7px 9px!important;}}
@media (max-width:920px){body.bmg-red-shell .app-shell{display:block!important;padding:0!important;}body.bmg-red-shell .sidebar-bmg{position:relative!important;height:auto!important;max-height:none!important;width:100%!important;border-radius:0!important;}body.bmg-red-shell .side-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}body.bmg-red-shell .app-main{border-radius:18px 18px 0 0!important;}body.bmg-red-shell .app-topline{grid-template-columns:1fr!important;}body.bmg-red-shell .page-intro,body.bmg-red-shell .hero{grid-template-columns:1fr!important;}body.bmg-red-shell .grid,body.bmg-red-shell .rates-grid{grid-template-columns:1fr!important;}}


/* v21 — profil en haut, connectés et réduction du vide gauche */
body.bmg-red-shell .app-shell{grid-template-columns:196px minmax(0,1fr)!important;gap:6px!important;padding:18px 12px 0 0!important;}
body.bmg-red-shell .sidebar-bmg{padding:16px 10px 12px!important;}
body.bmg-red-shell .brand-bmg img{width:112px!important;max-height:132px!important;}
body.bmg-red-shell .side-nav a{min-height:32px!important;padding:7px 9px!important;font-size:12.6px!important;}
body.bmg-red-shell .side-profile{display:none!important;}
body.bmg-red-shell .logout-bmg{margin-top:auto!important;}
body.bmg-red-shell .app-main{border-radius:18px 18px 0 0!important;}
body.bmg-red-shell .app-topline{grid-template-columns:minmax(280px,1fr) minmax(220px,430px) auto!important;gap:12px!important;}
body.bmg-red-shell .app-topline p strong{font-weight:600!important;color:#111!important;}
body.bmg-red-shell .top-actions .user-chip-photo{gap:9px!important;padding:0 12px 0 8px!important;max-width:230px!important;}
body.bmg-red-shell .user-chip-photo img,body.bmg-red-shell .user-chip-photo i{width:28px!important;height:28px!important;border-radius:50%!important;object-fit:cover!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--bmg-red)!important;color:#fff!important;font-style:normal!important;font-weight:600!important;flex:0 0 28px!important;}
body.bmg-red-shell .user-chip-photo strong{font-weight:600!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.bmg-red-shell .foot.app-legal{margin-left:0!important;}
@media(max-width:1180px){body.bmg-red-shell .app-shell{grid-template-columns:184px minmax(0,1fr)!important;gap:4px!important;}body.bmg-red-shell .brand-bmg img{width:104px!important;}body.bmg-red-shell .side-nav a{font-size:12px!important;}}
@media(max-width:920px){body.bmg-red-shell .app-shell{display:block!important;padding:0!important;}body.bmg-red-shell .sidebar-bmg{height:auto!important;max-height:none!important;}body.bmg-red-shell .side-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.bmg-red-shell .top-actions .user-chip-photo{max-width:none!important;}}


/* v22 — profil déplacé vers l’en-tête et suppression du vide gauche */
body.bmg-red-shell .app-shell{grid-template-columns:178px minmax(0,1fr)!important;gap:0!important;padding:14px 10px 0 0!important;}
body.bmg-red-shell .sidebar-bmg{width:auto!important;padding:14px 8px 10px!important;gap:8px!important;}
body.bmg-red-shell .brand-bmg img{width:104px!important;max-height:126px!important;}
body.bmg-red-shell .side-profile{display:none!important;visibility:hidden!important;height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;}
body.bmg-red-shell .side-nav a{min-height:30px!important;padding:6px 8px!important;font-size:12px!important;gap:7px!important;}
body.bmg-red-shell .side-nav a svg,body.bmg-red-shell .logout-bmg svg{width:15px!important;height:15px!important;flex:0 0 15px!important;}
body.bmg-red-shell .app-main{margin-left:0!important;}
body.bmg-red-shell .app-legal{margin-left:0!important;}
body.bmg-red-shell .top-actions .user-chip-photo{display:inline-flex!important;align-items:center!important;gap:8px!important;max-width:230px!important;padding-left:7px!important;}
body.bmg-red-shell .user-chip-photo img,body.bmg-red-shell .user-chip-photo i{width:28px!important;height:28px!important;border-radius:50%!important;object-fit:cover!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--bmg-red)!important;color:#fff!important;font-style:normal!important;font-weight:600!important;flex:0 0 28px!important;}
body.bmg-red-shell .user-chip-photo strong{font-weight:600!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}

/* v23 — paie actuelle, graisse typographique et rapprochement menu/conteneur */
body.bmg-red-shell .app-shell{grid-template-columns:154px minmax(0,1fr)!important;gap:0!important;padding:10px 10px 0 0!important;}
body.bmg-red-shell .sidebar-bmg{padding:12px 6px 10px!important;}
body.bmg-red-shell .brand-bmg img{width:96px!important;max-height:112px!important;}
body.bmg-red-shell .side-nav a{min-height:28px!important;padding:6px 7px!important;font-size:11.5px!important;}
body.bmg-red-shell .app-main{margin-left:0!important;}
body.bmg-red-shell p strong,body.bmg-red-shell td strong,body.bmg-red-shell li strong,body.bmg-red-shell label,body.bmg-red-shell .btn,body.bmg-red-shell button,body.bmg-red-shell .side-nav a,body.bmg-red-shell .top-actions a,body.bmg-red-shell .top-actions span{font-weight:600!important;}
body.bmg-red-shell h1,body.bmg-red-shell h2,body.bmg-red-shell h3,body.bmg-red-shell h4,body.bmg-red-shell .kpi-card b,body.bmg-red-shell .stat b{font-weight:800!important;}
.payroll-period-form{display:flex;align-items:end;gap:12px;margin-bottom:14px;flex-wrap:wrap}.payroll-period-form .field{min-width:190px}.payroll-preview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 16px}.payroll-preview-stats .stat{border-left-color:var(--bmg-red)!important}.payroll-preview-stats .stat span{display:block;color:var(--bmg-muted);font-size:12.5px;margin-bottom:5px}.payroll-preview-list{display:grid;gap:9px}.payroll-preview-row{display:grid;grid-template-columns:42px minmax(220px,1fr) 96px 86px 96px 128px;gap:12px;align-items:center;padding:11px 12px;border:1px solid var(--bmg-line);border-radius:14px;background:#fff}.payroll-avatar{width:42px;height:42px;border-radius:50%;background:var(--bmg-red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600}.payroll-preview-row strong{display:block;font-weight:600!important;color:#111}.payroll-preview-row small,.payroll-preview-row em,.payroll-preview-row span{display:block;color:var(--bmg-muted);font-size:12px;font-style:normal}.payroll-preview-row b{display:block;font-weight:600!important;color:#111}.payroll-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.rates-table .right,table .right{text-align:right!important}@media(max-width:1280px){.payroll-preview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-preview-row{grid-template-columns:42px minmax(220px,1fr) repeat(2,86px) 110px}.payroll-preview-row>div:nth-child(5){display:none}}@media(max-width:760px){.payroll-preview-stats{grid-template-columns:1fr}.payroll-preview-row{grid-template-columns:42px 1fr}.payroll-preview-row>div:not(:first-child):not(:nth-child(2)){display:flex;justify-content:space-between;border-top:1px solid var(--bmg-line);padding-top:8px}.payroll-period-form{display:block}}


/* v24 flat update override — appliqué même quand l'ancien CSS est en cache */
body.bmg-red-shell .app-shell{grid-template-columns:142px minmax(0,1fr)!important;gap:0!important;padding:8px 8px 0 0!important;}
body.bmg-red-shell .sidebar-bmg{width:auto!important;padding:12px 6px 10px!important;}
body.bmg-red-shell .brand-bmg img{width:88px!important;max-height:104px!important;}
body.bmg-red-shell .app-main{margin-left:0!important;}
body.bmg-red-shell .side-profile{display:none!important;}
body.bmg-red-shell p strong,body.bmg-red-shell td strong,body.bmg-red-shell li strong,body.bmg-red-shell label,body.bmg-red-shell th,body.bmg-red-shell .btn,body.bmg-red-shell button,body.bmg-red-shell .side-nav a,body.bmg-red-shell .top-actions a,body.bmg-red-shell .top-actions span{font-weight:600!important;}
body.bmg-red-shell h1,body.bmg-red-shell h2,body.bmg-red-shell h3,body.bmg-red-shell h4,body.bmg-red-shell .kpi-card b,body.bmg-red-shell .stat b{font-weight:800!important;}


/* v25 — retour à la maquette générale validée */
body.bmg-red-shell .app-shell{grid-template-columns:246px minmax(0,1fr)!important;gap:10px!important;padding:22px 18px 0 0!important;}
body.bmg-red-shell .sidebar-bmg{width:auto!important;height:calc(100vh - 22px)!important;max-height:calc(100vh - 22px)!important;padding:22px 14px 14px!important;gap:14px!important;overflow-y:auto!important;}
body.bmg-red-shell .brand-bmg img{width:174px!important;max-width:94%!important;max-height:210px!important;}
body.bmg-red-shell .side-profile{display:none!important;}
body.bmg-red-shell .side-nav{gap:5px!important;}
body.bmg-red-shell .side-nav a{min-height:39px!important;padding:9px 13px!important;border-radius:12px!important;font-size:14px!important;gap:12px!important;font-weight:600!important;}
body.bmg-red-shell .side-nav a svg,body.bmg-red-shell .logout-bmg svg{width:18px!important;height:18px!important;flex:0 0 18px!important;}
body.bmg-red-shell .logout-bmg{margin-top:auto!important;padding:10px 12px!important;font-size:13px!important;font-weight:600!important;}
body.bmg-red-shell .app-main,body.bmg-red-shell .app-legal{margin-left:0!important;}
body.bmg-red-shell .app-main{min-height:calc(100vh - 22px)!important;}
body.bmg-red-shell .app-topline{grid-template-columns:minmax(300px,1fr) minmax(260px,460px) auto!important;gap:18px!important;padding:18px 26px 16px!important;}
body.bmg-red-shell .content-panel{padding:20px 26px 28px!important;}
body.bmg-red-shell p strong,body.bmg-red-shell td strong,body.bmg-red-shell li strong,body.bmg-red-shell label,body.bmg-red-shell .btn,body.bmg-red-shell button,body.bmg-red-shell .side-nav a,body.bmg-red-shell .top-actions a,body.bmg-red-shell .top-actions span{font-weight:600!important;}
body.bmg-red-shell h1,body.bmg-red-shell h2,body.bmg-red-shell h3,body.bmg-red-shell h4,body.bmg-red-shell .kpi-card b,body.bmg-red-shell .stat b{font-weight:800!important;}
@media(max-height:860px){body.bmg-red-shell .brand-bmg img{width:148px!important;max-height:172px!important;}body.bmg-red-shell .side-nav a{min-height:34px!important;padding:7px 11px!important;font-size:13px!important;}body.bmg-red-shell .sidebar-bmg{padding-top:16px!important;gap:10px!important;}}
@media(max-width:1180px){body.bmg-red-shell .app-shell{grid-template-columns:220px minmax(0,1fr)!important;gap:8px!important;}body.bmg-red-shell .brand-bmg img{width:150px!important;}body.bmg-red-shell .side-nav a{font-size:13px!important;padding:8px 10px!important;}}
@media(max-width:920px){body.bmg-red-shell .app-shell{display:block!important;padding:0!important;}body.bmg-red-shell .sidebar-bmg{position:relative!important;height:auto!important;max-height:none!important;width:100%!important;}body.bmg-red-shell .side-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.bmg-red-shell .app-topline{grid-template-columns:1fr!important;}}


/* v26 — profil éditable et avatars utilisateurs */
body.bmg-red-shell .top-actions a.user-chip-photo{text-decoration:none!important;color:#111!important;}
body.bmg-red-shell .top-actions a.user-chip-photo:hover{border-color:var(--bmg-red)!important;box-shadow:0 8px 20px rgba(238,47,42,.12)!important;}
.team-card .team-avatar,.team-avatar{width:48px!important;height:48px!important;border-radius:50%!important;object-fit:cover!important;border:3px solid var(--bmg-red)!important;background:#fff!important;}
.profile-cropper .crop-stage{margin-top:10px!important;display:grid!important;gap:10px!important;max-width:240px!important;}
.profile-cropper .crop-stage[hidden]{display:none!important;}
.profile-cropper canvas{border-radius:16px!important;border:1px solid var(--bmg-line)!important;max-width:220px!important;width:100%!important;height:auto!important;}


/* v34 — chat rédaction et en-tête allégé */
.bmg-staff-chat .bcg-chat-context{margin:10px 12px 0;padding:10px 12px;border:1px solid #f1d1cf;background:#fff7f6;border-radius:12px;font-size:12px;color:#555}.bmg-staff-chat .bcg-chat-context strong{display:block;color:#111;font-weight:600!important;margin-bottom:2px}.bmg-staff-chat .bcg-chat-head{background:var(--bmg-red)!important}.bmg-staff-chat .bcg-chat-toggle{background:var(--bmg-red)!important}.bmg-staff-chat .bcg-chat-msg.admin .bcg-chat-msg-body{border-color:#ffd8d6}.bmg-staff-chat .bcg-chat-msg.client .bcg-chat-msg-body{background:#f7f7f8}.app-topline p{max-width:520px!important}.app-topline p strong{font-weight:600!important}


/* v35 — date simplifiée et gabarit haut proche de la maquette */
body.bmg-red-shell .date-chip{font-weight:600!important;color:#111!important;background:#fff!important;border:1px solid #e2e3e7!important;letter-spacing:0!important;text-transform:none!important;}
body.bmg-red-shell .top-actions .date-chip{min-width:auto!important;}


/* v36 — chat par destinataire et correction icône journalistes actifs */
.kpi-card .kpi-icon svg{width:25px;height:25px;fill:none;stroke:#fff!important;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;display:block}.kpi-card .kpi-icon{color:#fff!important;font-family:Arial,Helvetica,sans-serif!important}.kpi-card:nth-child(2) i{color:#fff!important}
.bmg-chat-recipients{max-height:170px;overflow:auto;padding:10px;border-bottom:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06)}.bmg-recipient-group{display:grid;gap:6px;margin-bottom:8px}.bmg-recipient-group>strong{display:block;color:#fff;font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin:2px 2px 4px;font-weight:600!important}.bmg-recipient{width:100%;display:grid;grid-template-columns:32px 1fr auto;grid-template-rows:auto auto;gap:1px 9px;align-items:center;text-align:left;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;border-radius:12px;padding:7px 9px;cursor:pointer}.bmg-recipient:hover,.bmg-recipient.on{background:#fff;color:var(--bmg-red);border-color:#fff}.bmg-recipient img,.bmg-recipient>span{grid-row:1/3;width:32px;height:32px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--bmg-red);font-weight:600!important}.bmg-recipient b{font-size:12.5px;line-height:1.1;font-weight:600!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bmg-recipient small{font-size:10.5px;opacity:.78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bmg-recipient em{grid-column:3;grid-row:1/3;min-width:18px;height:18px;border-radius:999px;background:var(--bmg-red);color:#fff;font-style:normal;text-align:center;line-height:18px;font-size:10px}.bmg-chat-active{padding:8px 14px;border-bottom:1px solid #eceff3;background:#fff7f7;color:#111;font-size:12px;font-weight:600!important}.bmg-staff-chat .bcg-chat-form input:disabled,.bmg-staff-chat .bcg-chat-form button:disabled{opacity:.55;cursor:not-allowed}.bmg-staff-chat .bcg-chat-empty{padding:16px;text-align:center;color:#777}.bmg-staff-chat .bcg-chat-context{background:var(--bmg-red)!important;color:#fff!important}.bmg-staff-chat .bcg-chat-context span{display:block;font-size:12px;opacity:.86;margin-top:2px}


/* v37 — login Binto plus professionnel */
.login.bmg-login-v37{min-height:100vh!important;background:#ee2f2a!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:36px 18px!important;position:relative!important;overflow:hidden!important;}
.login.bmg-login-v37:before{content:"";position:absolute;inset:-30% -10% auto auto;width:620px;height:620px;border-radius:50%;background:rgba(255,255,255,.16);filter:blur(0);}
.login.bmg-login-v37:after{content:"";position:absolute;left:-180px;bottom:-220px;width:520px;height:520px;border-radius:50%;background:rgba(0,0,0,.11);}
.login.bmg-login-v37 .login-inner{display:block!important;width:100%!important;position:relative!important;z-index:2!important;}
.login.bmg-login-v37 .bmg-login-card-v37{width:455px!important;max-width:94%!important;margin:0 auto!important;background:#fff!important;border-radius:30px!important;padding:34px 34px 30px!important;border:1px solid rgba(255,255,255,.5)!important;box-shadow:0 34px 90px rgba(0,0,0,.24)!important;text-align:left!important;}
.login.bmg-login-v37 .login-logo-wrap{width:210px!important;margin:0 auto 20px!important;padding:0!important;border:0!important;background:#fff!important;text-align:center!important;}
.login.bmg-login-v37 .login-logo{display:block!important;width:210px!important;max-width:100%!important;height:auto!important;margin:0 auto!important;filter:none!important;}
.login.bmg-login-v37 .login-kicker{display:block;width:max-content;margin:0 auto 10px;padding:7px 13px;border-radius:999px;background:#fff3f2;color:#ee2f2a;border:1px solid #ffd7d4;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:600!important;}
.login.bmg-login-v37 .login-title{margin:0!important;text-align:center!important;color:#111!important;font-size:32px!important;line-height:1.05!important;font-weight:800!important;letter-spacing:-.02em!important;}
.login.bmg-login-v37 .login-lead{margin:10px auto 22px!important;text-align:center!important;color:#626a76!important;font-size:14px!important;line-height:1.55!important;max-width:350px!important;}
.login.bmg-login-v37 .field{margin-bottom:14px!important;}
.login.bmg-login-v37 label{font-size:12.5px!important;font-weight:600!important;color:#202020!important;margin-bottom:7px!important;}
.login.bmg-login-v37 input{height:48px!important;border-radius:14px!important;border:1px solid #e2e5ea!important;background:#fafafa!important;padding:0 14px!important;font-size:14px!important;}
.login.bmg-login-v37 input:focus{background:#fff!important;border-color:#ee2f2a!important;outline:3px solid rgba(238,47,42,.14)!important;}
.login.bmg-login-v37 .btn.primary{height:48px!important;width:100%!important;border-radius:14px!important;background:#ee2f2a!important;color:#fff!important;font-size:14px!important;font-weight:600!important;box-shadow:0 14px 28px rgba(238,47,42,.22)!important;margin-top:4px!important;}
.login.bmg-login-v37 .login-help-line{text-align:center;margin:15px 0 2px;font-size:13px;font-weight:600!important;}
.login.bmg-login-v37 .login-help-line a{color:#ee2f2a!important;}
.login.bmg-login-v37 .client-access-request{margin-top:18px!important;padding-top:16px!important;border-top:1px solid #edf0f4!important;}
.login.bmg-login-v37 .client-access-request summary{text-align:center!important;color:#111!important;font-weight:600!important;list-style:none!important;cursor:pointer!important;}
.login.bmg-login-v37 .client-access-request summary::-webkit-details-marker{display:none!important;}
.login.bmg-login-v37 .client-access-form{margin-top:15px!important;}
.login.bmg-login-v37 .btn.alt{width:100%!important;border-radius:14px!important;background:#111!important;color:#fff!important;font-weight:600!important;}
.login.bmg-login-v37 .login-footer-note{margin-top:20px;text-align:center;color:#8a9099;font-size:11.5px;line-height:1.45;}


/* v40 — menu propre, déconnexion en haut, logos visibles */
body.bmg-red-shell .side-nav a[href="/updates.php"]{display:none!important;}
body.bmg-red-shell .logout-bmg{display:none!important;}
body.bmg-red-shell .top-actions .logout-top{display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:40px!important;padding:0 13px!important;border-radius:12px!important;border:1px solid #ffd7d5!important;background:#fff4f3!important;color:var(--bmg-red)!important;font-weight:600!important;text-decoration:none!important;}
body.bmg-red-shell .top-actions .logout-top svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body.bmg-red-shell .top-actions .logout-top:hover{background:var(--bmg-red)!important;color:#fff!important;border-color:var(--bmg-red)!important;}
.login.bmg-login-v37 .login-logo-wrap{width:230px!important;max-width:78%!important;margin:0 auto 20px!important;padding:14px 16px!important;border:1px solid #f0f0f0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 26px rgba(0,0,0,.08)!important;}
.login.bmg-login-v37 .login-logo{display:block!important;width:190px!important;max-width:100%!important;height:auto!important;margin:0 auto!important;filter:none!important;opacity:1!important;visibility:visible!important;}
.login-logo-switch::before,.login-logo-switch .login-logo-light,.login-logo-switch .login-logo-dark{display:none!important;}
@media(max-width:1100px){body.bmg-red-shell .top-actions .logout-top span{display:none!important;}body.bmg-red-shell .top-actions .logout-top{width:40px!important;min-width:40px!important;padding:0!important;justify-content:center!important;}}


/* v74 — chat interne modernisé */
.bmg-staff-chat .bcg-chat-panel{width:430px;height:610px;border-radius:26px;border:1px solid rgba(239,49,41,.18);box-shadow:0 28px 85px rgba(30,8,8,.32);background:#fff;overflow:hidden}
.bmg-staff-chat .bcg-chat-head{padding:16px 18px;background:linear-gradient(135deg,var(--bmg-red),#b40d18)!important;border-bottom:0!important}
.bmg-staff-chat .bcg-chat-head strong{font-size:15px;letter-spacing:.01em;font-weight:700!important}.bmg-staff-chat .bcg-chat-head button{width:32px;height:32px;border-radius:999px;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:22px}
.bmg-staff-chat .bcg-chat-context{margin:0!important;padding:13px 16px!important;border:0!important;border-bottom:1px solid rgba(239,49,41,.10)!important;background:#fff7f6!important;color:#231313!important;border-radius:0!important}.bmg-staff-chat .bcg-chat-context strong{font-size:13px;font-weight:700!important}.bmg-staff-chat .bcg-chat-context span{color:#6b3c37!important;opacity:1!important;font-size:12px!important}
.bmg-chat-search{padding:10px 12px;background:#fff;border-bottom:1px solid #f0e2df}.bmg-chat-search input{width:100%;border:1px solid #ead6d2;border-radius:999px;padding:10px 13px;font-size:13px;background:#fffaf9;color:#111}.bmg-chat-search input:focus{outline:2px solid rgba(239,49,41,.14);border-color:var(--bmg-red)}
.bmg-chat-recipients{max-height:190px!important;overflow:auto!important;padding:10px 12px!important;background:#fff!important;border-bottom:1px solid #f0e2df!important}.bmg-recipient-group{gap:7px!important;margin-bottom:10px!important}.bmg-recipient-group>strong{color:#8f221d!important;font-size:10px!important;letter-spacing:.12em!important;margin:3px 0 5px!important}.bmg-recipient{grid-template-columns:38px 1fr auto!important;border:1px solid #f0ddd9!important;background:#fff!important;color:#1d1d1f!important;border-radius:16px!important;padding:9px 10px!important;box-shadow:0 5px 14px rgba(120,32,25,.04)}.bmg-recipient:hover,.bmg-recipient.on{background:#fff4f2!important;color:#111!important;border-color:rgba(239,49,41,.35)!important;transform:translateY(-1px)}.bmg-recipient img,.bmg-recipient>span{width:38px!important;height:38px!important;background:var(--bmg-red)!important;color:#fff!important}.bmg-recipient b{font-size:13px!important;color:#111!important}.bmg-recipient small{font-size:11px!important;color:#7a5d59!important;opacity:1!important}.bmg-recipient em{background:#111!important;color:#fff!important;min-width:21px!important;height:21px!important;line-height:21px!important}.bmg-chat-active{padding:10px 16px!important;border-bottom:1px solid #f0e2df!important;background:#fff!important;color:#111!important;font-size:12px!important;font-weight:400!important}.bmg-chat-active strong{display:block;font-weight:700!important}.bmg-chat-active span{display:block;color:#7a5d59;font-size:11px;margin-top:2px}
.bmg-staff-chat .bcg-chat-messages{background:linear-gradient(180deg,#fff 0%,#fff7f5 100%)!important;padding:16px!important}.bmg-staff-chat .bcg-chat-empty{border:1px dashed #eac9c5;border-radius:18px;background:#fff;padding:22px!important;color:#77514d!important}.bmg-staff-chat .bcg-chat-msg{max-width:92%!important;margin-bottom:12px!important;background:transparent!important;border:0!important;padding:0!important}.bmg-staff-chat .bcg-chat-msg-body{border-radius:18px!important;border:1px solid #eadbd8!important;background:#fff!important;box-shadow:0 8px 22px rgba(40,12,8,.05);padding:11px 13px!important}.bmg-staff-chat .bcg-chat-msg.admin .bcg-chat-msg-body{background:var(--bmg-red)!important;color:#fff!important;border-color:var(--bmg-red)!important}.bmg-staff-chat .bcg-chat-msg.client .bcg-chat-msg-body{background:#fff!important;color:#111!important}.bmg-staff-chat .bcg-chat-msg strong{font-size:11px!important;opacity:.85}.bmg-staff-chat .bcg-chat-msg p{font-size:14px!important;line-height:1.45!important}.bmg-staff-chat .bcg-chat-msg span{font-size:10.5px!important;opacity:.72!important}.bmg-staff-chat .bcg-chat-form{padding:12px!important;border-top:1px solid #f0e2df!important;background:#fff!important}.bmg-staff-chat .bcg-chat-form input{border-radius:16px!important;border:1px solid #ead6d2!important;background:#fffaf9!important;padding:12px 13px!important}.bmg-staff-chat .bcg-chat-form button{border-radius:16px!important;background:var(--bmg-red)!important;color:#fff!important;padding:0 15px!important;min-width:86px}
@media(max-width:640px){.bmg-staff-chat .bcg-chat-panel{width:calc(100vw - 24px);height:76vh}.bmg-chat-recipients{max-height:160px!important}}

/* v75 — chat interne : sélection des interlocuteurs plus lisible */
.bmg-staff-chat .bcg-chat-panel{
  background:#fff8f6!important;
}
.bmg-staff-chat .bcg-chat-context{
  background:linear-gradient(135deg,#ef3129,#b90d27)!important;
  color:#fff!important;
  border-bottom:0!important;
}
.bmg-staff-chat .bcg-chat-context strong,
.bmg-staff-chat .bcg-chat-context span{
  color:#fff!important;
}
.bmg-chat-search{
  background:#fff1ee!important;
  border-bottom:1px solid #f2c9c3!important;
}
.bmg-chat-search input{
  background:#fff!important;
  border:1px solid #efc9c4!important;
  box-shadow:0 8px 18px rgba(120,32,25,.06)!important;
}
.bmg-chat-recipients{
  max-height:230px!important;
  background:linear-gradient(180deg,#fff2ef 0%,#ffe8e3 100%)!important;
  border-bottom:1px solid #efc9c4!important;
  padding:12px!important;
}
.bmg-recipient-group{
  background:rgba(255,255,255,.62)!important;
  border:1px solid rgba(239,49,41,.14)!important;
  border-radius:18px!important;
  padding:10px!important;
  margin:0 0 10px!important;
  box-shadow:0 12px 28px rgba(120,32,25,.08)!important;
}
.bmg-recipient-group>strong{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#8f221d!important;
  font-size:10.5px!important;
  letter-spacing:.14em!important;
  margin:0 0 8px!important;
}
.bmg-recipient-group>strong:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ef3129;
  box-shadow:0 0 0 4px rgba(239,49,41,.12);
}
.bmg-recipient{
  width:100%!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  gap:2px 10px!important;
  align-items:center!important;
  text-align:left!important;
  border:1px solid #f0c9c4!important;
  background:#fff!important;
  color:#171717!important;
  border-radius:16px!important;
  padding:10px!important;
  margin:0 0 8px!important;
  box-shadow:0 8px 22px rgba(60,15,11,.08)!important;
}
.bmg-recipient:last-child{margin-bottom:0!important}
.bmg-recipient:hover,
.bmg-recipient.on{
  background:#fff!important;
  color:#111!important;
  border-color:#ef3129!important;
  box-shadow:0 14px 30px rgba(239,49,41,.18)!important;
  transform:translateY(-1px);
}
.bmg-recipient.on:after{
  content:"sélectionné";
  grid-column:2/4;
  color:#ef3129;
  font-size:10px;
  font-weight:700;
  margin-top:2px;
}
.bmg-recipient img,
.bmg-recipient>span{
  grid-row:1/3!important;
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#ef3129!important;
  color:#fff!important;
  font-weight:800!important;
  border:3px solid #fff!important;
  box-shadow:0 6px 14px rgba(239,49,41,.22)!important;
}
.bmg-recipient b{
  display:block!important;
  color:#111!important;
  font-size:13.5px!important;
  line-height:1.15!important;
  font-weight:800!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.bmg-recipient small{
  display:block!important;
  color:#6f5a56!important;
  font-size:11px!important;
  line-height:1.2!important;
  opacity:1!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.bmg-recipient em{
  grid-column:3!important;
  grid-row:1/3!important;
  min-width:22px!important;
  height:22px!important;
  border-radius:999px!important;
  background:#111!important;
  color:#fff!important;
  font-style:normal!important;
  text-align:center!important;
  line-height:22px!important;
  font-size:10px!important;
}
.bmg-chat-active{
  background:#fff!important;
  border-top:1px solid #f6d4cf!important;
  border-bottom:1px solid #f0e2df!important;
  color:#111!important;
  padding:10px 16px!important;
}
.bmg-chat-active strong{font-weight:800!important;color:#111!important}
.bmg-chat-active span{color:#7a5d59!important}

/* v77 — notification visible et distincte */
body.bmg-red-shell .top-actions .notification-shortcut{position:relative!important;width:44px!important;min-width:44px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#fff7f0!important;border:1px solid #ffd6bd!important;color:#ef3129!important;box-shadow:0 8px 20px rgba(238,47,42,.10)!important;}
body.bmg-red-shell .top-actions .notification-shortcut svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body.bmg-red-shell .top-actions .notification-shortcut:hover{background:#ef3129!important;color:#fff!important;border-color:#ef3129!important;}
body.bmg-red-shell .top-actions .notification-shortcut .notif-badge{position:absolute!important;top:-6px!important;right:-8px!important;min-width:19px!important;height:15px!important;padding:0 5px!important;border-radius:999px!important;background:#111!important;color:#fff!important;border:1.5px solid #fff!important;font-size:9px!important;line-height:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;box-shadow:0 3px 8px rgba(0,0,0,.20)!important;letter-spacing:0!important;}

.payroll-name-link{color:#111;text-decoration:none}.payroll-name-link:hover{color:var(--bmg-red);text-decoration:underline}.payroll-correction-table td{vertical-align:top}.inline-fix-form{display:flex;gap:6px;align-items:center;margin:0 0 6px;flex-wrap:wrap}.inline-fix-form select{min-width:165px}.inline-fix-form input[type=number]{max-width:96px}.btn.small{padding:7px 10px;font-size:12px;border-radius:9px}.payroll-detail-head .payroll-actions{margin-top:14px}

.client-topbar .client-manual-link{display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#111!important;color:#fff!important;text-decoration:none!important;font-size:18px!important}.client-topbar .client-manual-link:hover{background:#ef3129!important;color:#fff!important}

body.bmg-red-shell .side a em{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:18px;padding:0 8px;border-radius:999px;background:#111;color:#fff;font-size:10px;font-weight:900;line-height:18px;margin-left:auto;}

/* v126 — tableau de bord : validation éditoriale plus lisible */
.editorial-review-card{
  background:linear-gradient(180deg,#fff 0%,#fff8f6 100%)!important;
  border:1px solid rgba(239,49,41,.16)!important;
  overflow:hidden!important;
}
.editorial-review-card .card-head{
  align-items:flex-start!important;
  border-bottom:1px solid rgba(239,49,41,.12)!important;
  padding-bottom:12px!important;
  margin-bottom:16px!important;
}
.editorial-review-card .card-head h2{
  color:#111!important;
  font-size:22px!important;
  letter-spacing:-.02em!important;
}
.editorial-review-card .card-head h2:after{
  width:44px!important;
  height:3px!important;
  border-radius:999px!important;
  margin-top:9px!important;
}
.editorial-review-card .card-head a{
  background:#ef3129!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:9px 14px!important;
  font-size:12px!important;
  box-shadow:0 8px 18px rgba(239,49,41,.18)!important;
}
.editorial-review-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
.editorial-review-grid>div{
  background:#fff!important;
  border:1px solid rgba(239,49,41,.14)!important;
  border-radius:18px!important;
  padding:15px!important;
  min-height:150px!important;
  box-shadow:0 10px 24px rgba(50,24,20,.045)!important;
}
.editorial-review-grid h3{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 12px!important;
  color:#111!important;
  font-size:17px!important;
  line-height:1.2!important;
}
.editorial-review-grid h3 .pill{
  min-width:34px!important;
  height:24px!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  background:#ef3129!important;
  color:#fff!important;
  border:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:12px!important;
}
.editorial-review-card .doc-row{
  grid-template-columns:42px minmax(0,1fr) auto!important;
  gap:10px!important;
  padding:12px!important;
  margin-bottom:8px!important;
  border:1px solid #f0eeee!important;
  border-radius:14px!important;
  background:#fff!important;
  transition:.18s ease!important;
}
.editorial-review-card .doc-row:hover{
  background:#fff3f1!important;
  border-color:#ffc6c0!important;
  transform:translateY(-1px)!important;
}
.editorial-review-card .doc-row span{
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  background:#ef3129!important;
  color:#fff!important;
  font-size:18px!important;
}
.editorial-review-card .doc-row strong{
  display:block!important;
  font-size:14px!important;
  line-height:1.25!important;
  color:#111!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.editorial-review-card .doc-row em{
  grid-column:2 / 4!important;
  justify-self:start!important;
  background:#fff4f2!important;
  color:#a3241f!important;
  border:1px solid rgba(239,49,41,.16)!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  font-size:11px!important;
  line-height:1.1!important;
  max-width:100%!important;
}
.editorial-review-card .small{
  background:#fafafa!important;
  border:1px dashed #ddd!important;
  border-radius:14px!important;
  padding:14px!important;
  color:#777!important;
  margin:0!important;
}
@media(max-width:980px){
  .editorial-review-grid{grid-template-columns:1fr!important;}
  .editorial-review-card .card-head{display:block!important;}
  .editorial-review-card .card-head a{display:inline-flex!important;margin-top:10px!important;}
}

/* v158 — correctifs responsive globaux */
@media (max-width: 980px){
  html,body{max-width:100%;overflow-x:hidden}
  .wrap{width:100%;max-width:100%;margin:18px auto;padding:0 12px}
  .topbar{min-height:auto;padding:12px;display:block}
  .brand{display:flex;min-width:0;white-space:normal;gap:10px;align-items:center}
  .brand img{max-width:210px;width:70vw;height:auto}
  .topbar nav,.topbar nav.main-nav{display:block;width:100%;margin-top:12px;line-height:1.25}
  .topbar nav a,.nav-group-btn{display:flex!important;width:100%;justify-content:flex-start;margin:4px 0;padding:11px 13px;border-radius:14px;text-align:left}
  .nav-group{display:block;width:100%}.nav-dropdown{position:static;display:block;width:100%;min-width:0;margin:4px 0 10px;padding:6px;box-shadow:none;border-radius:14px}.topbar .nav-dropdown a{white-space:normal}
  .grid,.grid2,.stats,.workspace-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  .card,.hero{border-radius:18px;padding:16px}.hero h1{font-size:28px;line-height:1.08}.hero p{font-size:14px;line-height:1.45}
  img,video,iframe{max-width:100%}.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{min-width:760px}.team-table{min-width:0}
  .actions,.team-actions{white-space:normal}.btn{white-space:normal;text-align:center;line-height:1.2}.bcg-chat-widget{right:10px;bottom:10px}.bcg-chat-toggle{max-width:calc(100vw - 20px)}
}
@media (max-width: 640px){
  .wrap{padding:0 10px;margin-top:14px}.brand img{width:190px;max-width:72vw}.card,.hero{padding:14px;border-radius:16px}.card h2{font-size:19px}.hero h1{font-size:24px}
  input,select,textarea{font-size:16px;min-height:44px}.btn,button{min-height:42px}.stats .stat{margin-bottom:10px}
  .bcg-chat-panel{width:calc(100vw - 20px)!important;right:0;height:72vh;max-height:72vh}.bcg-chat-form{display:grid;grid-template-columns:1fr}.bcg-chat-msg{max-width:94%}
}
