:root{--rhe-blue:#0b57d0;--rhe-dark:#10213b;--rhe-bg:#f4f7fb;--rhe-line:#dfe6ef;--rhe-muted:#667085;--rhe-white:#fff}.cse-rhe-app{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:780px;background:var(--rhe-bg);border-radius:24px;overflow:hidden;box-shadow:0 18px 55px rgba(16,33,59,.12);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--rhe-dark)}.cse-rhe-sidebar{background:linear-gradient(180deg,#10213b,#152f55);color:#fff;padding:24px 18px;display:flex;flex-direction:column;gap:28px}.cse-rhe-brand{display:flex;gap:12px;align-items:center;padding:4px 8px}.cse-rhe-brand>.dashicons{width:44px;height:44px;font-size:25px;display:grid;place-items:center;background:rgba(255,255,255,.12);border-radius:14px}.cse-rhe-brand div{display:flex;flex-direction:column}.cse-rhe-brand small,.cse-rhe-user small{opacity:.7}.cse-rhe-sidebar nav{display:flex;flex-direction:column;gap:7px}.cse-rhe-sidebar nav a{color:#dbe7f8;text-decoration:none;padding:12px 13px;border-radius:12px;display:flex;align-items:center;gap:11px;font-weight:650}.cse-rhe-sidebar nav a:hover,.cse-rhe-sidebar nav a.active{color:#fff;background:rgba(255,255,255,.13)}.cse-rhe-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px;border-top:1px solid rgba(255,255,255,.12)}.cse-rhe-user img{border-radius:50%}.cse-rhe-user div{display:flex;flex-direction:column;min-width:0}.cse-rhe-main{padding:30px;min-width:0}.cse-rhe-topbar{display:flex;align-items:flex-start;gap:18px;margin-bottom:24px}.cse-rhe-topbar h1{font-size:28px;line-height:1.15;margin:0 0 6px}.cse-rhe-topbar p{margin:0;color:var(--rhe-muted)}.cse-rhe-logout{margin-left:auto;text-decoration:none;border:1px solid var(--rhe-line);background:#fff;color:var(--rhe-dark);padding:10px 14px;border-radius:11px}.cse-rhe-mobile-toggle{display:none}.cse-rhe-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.cse-rhe-stat{background:#fff;border:1px solid var(--rhe-line);border-radius:17px;padding:18px;display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--rhe-dark);box-shadow:0 8px 22px rgba(16,33,59,.05)}.cse-rhe-stat>.dashicons{width:46px;height:46px;font-size:22px;display:grid;place-items:center;border-radius:14px;background:#e9f1ff;color:var(--rhe-blue)}.cse-rhe-stat div{display:flex;flex-direction:column}.cse-rhe-stat strong{font-size:24px}.cse-rhe-stat small{color:var(--rhe-muted)}.cse-rhe-grid{display:grid;gap:20px}.cse-rhe-grid.two{grid-template-columns:1fr 1.25fr}.cse-rhe-grid.messages{grid-template-columns:330px minmax(0,1fr)}.cse-rhe-panel{background:#fff;border:1px solid var(--rhe-line);border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(16,33,59,.045);min-width:0}.cse-rhe-panel h2{font-size:18px;margin:0 0 18px}.cse-rhe-panel label{display:flex;flex-direction:column;gap:7px;font-weight:650;margin-bottom:14px}.cse-rhe-panel input,.cse-rhe-panel select,.cse-rhe-panel textarea{box-sizing:border-box;width:100%;border:1px solid #ccd6e3;border-radius:10px;padding:10px 12px;background:#fff;font:inherit}.cse-rhe-panel textarea{resize:vertical}.cse-rhe-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cse-rhe-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--rhe-blue);color:#fff!important;padding:11px 15px;font-weight:700;text-decoration:none;cursor:pointer}.cse-rhe-btn.secondary{background:#edf3fc;color:#194278!important}.cse-rhe-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cse-rhe-actions a{padding:15px;border-radius:12px;background:#edf3fc;color:#194278;text-decoration:none;font-weight:700}.cse-rhe-notice{padding:12px 15px;border-radius:11px;margin-bottom:18px}.cse-rhe-notice.success{background:#e8f7ee;color:#17663a}.cse-rhe-notice.error,.cse-rhe-alert{background:#fff0f0;color:#9f1c1c;padding:18px;border-radius:14px}.cse-rhe-thread-list{display:flex;flex-direction:column;gap:8px}.cse-rhe-thread-list a{display:flex;flex-direction:column;text-decoration:none;color:var(--rhe-dark);padding:12px;border:1px solid var(--rhe-line);border-radius:12px}.cse-rhe-thread-list a.active{border-color:#8eb5f5;background:#f2f7ff}.cse-rhe-thread-list small{color:var(--rhe-muted);margin-top:4px}.cse-rhe-create{margin-top:18px}.cse-rhe-create summary{cursor:pointer;color:var(--rhe-blue);font-weight:750;margin-bottom:15px}.cse-rhe-chat{display:flex;flex-direction:column;min-height:600px}.cse-rhe-chat-stream{display:flex;flex-direction:column;gap:11px;max-height:480px;overflow:auto;padding:6px}.cse-rhe-chat-stream article{align-self:flex-start;max-width:76%;background:#f0f3f8;border-radius:14px 14px 14px 4px;padding:12px 14px}.cse-rhe-chat-stream article.mine{align-self:flex-end;background:#e8f1ff;border-radius:14px 14px 4px 14px}.cse-rhe-chat-stream article>div{display:flex;gap:10px;justify-content:space-between;font-size:12px}.cse-rhe-chat-stream p{margin:7px 0}.cse-rhe-chat-stream time{color:var(--rhe-muted)}.cse-rhe-reply{margin-top:auto;border-top:1px solid var(--rhe-line);padding-top:15px}.cse-rhe-reply>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.cse-rhe-empty{margin:auto;text-align:center;color:var(--rhe-muted)}.cse-rhe-empty .dashicons{font-size:50px;width:50px;height:50px}.cse-rhe-request-list,.cse-rhe-docs,.cse-rhe-events{display:flex;flex-direction:column;gap:12px}.cse-rhe-request{border:1px solid var(--rhe-line);border-radius:13px;padding:0 14px}.cse-rhe-request summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:10px}.cse-rhe-request summary span{display:flex;flex-direction:column}.cse-rhe-request summary small{color:var(--rhe-muted);margin-top:4px}.status{font-style:normal;text-transform:capitalize;font-size:12px;border-radius:999px;padding:6px 9px;background:#eef2f6}.status.traitee{background:#e6f6ec;color:#17663a}.status.en-cours{background:#fff4d7;color:#805b00}.cse-rhe-docs article,.cse-rhe-events article{display:flex;align-items:flex-start;gap:13px;border:1px solid var(--rhe-line);border-radius:13px;padding:14px}.cse-rhe-docs article>.dashicons{color:var(--rhe-blue);font-size:25px}.cse-rhe-docs article>div{flex:1;display:flex;flex-direction:column}.cse-rhe-docs small,.cse-rhe-events small{color:var(--rhe-muted);margin-top:3px}.cse-rhe-docs p,.cse-rhe-events p{margin:7px 0}.cse-rhe-events .date{width:54px;min-width:54px;height:58px;background:#edf3fc;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#194278}.cse-rhe-events .date strong{font-size:22px}.cse-rhe-events .body{flex:1;display:flex;flex-direction:column}.cse-rhe-rsvp{display:grid;grid-template-columns:130px 1fr auto;gap:8px;align-items:end;margin-top:10px}.cse-rhe-rsvp input,.cse-rhe-rsvp select{margin:0}.cse-rhe-login{max-width:460px;margin:30px auto;padding:28px;background:#fff;border:1px solid var(--rhe-line);border-radius:18px;box-shadow:0 15px 45px rgba(16,33,59,.1)}
@media(max-width:1050px){.cse-rhe-cards{grid-template-columns:repeat(2,1fr)}.cse-rhe-grid.two,.cse-rhe-grid.messages{grid-template-columns:1fr}.cse-rhe-chat{min-height:460px}}
@media(max-width:760px){.cse-rhe-app{grid-template-columns:1fr;border-radius:0}.cse-rhe-sidebar{position:fixed;z-index:9999;inset:0 auto 0 0;width:260px;transform:translateX(-105%);transition:.2s}.cse-rhe-app.menu-open .cse-rhe-sidebar{transform:translateX(0)}.cse-rhe-main{padding:18px}.cse-rhe-mobile-toggle{display:block;border:0;background:#fff;border-radius:10px;padding:8px 11px;font-size:20px}.cse-rhe-topbar h1{font-size:22px}.cse-rhe-topbar p{display:none}.cse-rhe-logout{font-size:0;padding:10px}.cse-rhe-logout:after{content:'↪';font-size:18px}.cse-rhe-cards{grid-template-columns:1fr}.cse-rhe-form-row,.cse-rhe-actions{grid-template-columns:1fr}.cse-rhe-rsvp{grid-template-columns:1fr}.cse-rhe-chat-stream article{max-width:90%}}

/* V1.1 — Différenciation visuelle claire entre élus et RH / Direction */
.cse-rhe-back-elus{display:flex;align-items:center;gap:8px;color:#dbe7f8!important;text-decoration:none;padding:11px 12px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(255,255,255,.07);font-weight:700}
.cse-rhe-chat-stream article.origin-elu{background:#e8f1ff;border-left:4px solid #2563eb;color:#17365f}
.cse-rhe-chat-stream article.origin-rh{background:#fff3d6;border-left:4px solid #f59e0b;color:#6f4300}
.cse-rhe-chat-stream article.origin-elu strong:after{content:'ÉLU';margin-left:8px;padding:2px 6px;border-radius:999px;background:#2563eb;color:#fff;font-size:9px;letter-spacing:.04em}
.cse-rhe-chat-stream article.origin-rh strong:after{content:'RH / DIRECTION';margin-left:8px;padding:2px 6px;border-radius:999px;background:#f59e0b;color:#3b2600;font-size:9px;letter-spacing:.04em}
.cse-rhe-chat-stream article.mine{box-shadow:0 0 0 2px rgba(16,33,59,.08)}

/* V1.2 — En-tête mobile lisible et identité RH distincte */
.cse-rhe-topbar-title{min-width:0;flex:1}
.cse-rhe-context-badge{display:inline-flex;align-items:center;width:max-content;margin:0 0 8px;padding:4px 8px;border-radius:999px;background:#fff0c2;border:1px solid #f2c35f;color:#7a4700;font-size:10px;line-height:1;font-weight:850;letter-spacing:.06em}
.cse-rhe-mobile-toggle{color:#16345b!important;line-height:1;font-weight:800;box-shadow:0 0 0 1px var(--rhe-line)}
@media(max-width:760px){
  .cse-rhe-topbar{align-items:center;gap:12px}
  .cse-rhe-topbar-title h1{white-space:normal;overflow-wrap:anywhere}
  .cse-rhe-context-badge{margin-bottom:6px}
  .cse-rhe-mobile-toggle{width:46px;height:46px;padding:0!important;display:grid!important;place-items:center;font-size:22px!important;flex:0 0 auto}
  .cse-rhe-logout{width:46px;height:46px;padding:0!important;display:grid;place-items:center;flex:0 0 auto;color:#16345b!important}
  .cse-rhe-logout:after{content:'↪';font-size:20px;font-weight:800}
}

/* V1.3 — Tableau de bord Premium */
.cse-rhe-premium-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:22px 24px;border-radius:18px;background:linear-gradient(135deg,#fff9eb,#ffedbd);border:1px solid #efc55c;box-shadow:0 10px 28px rgba(151,95,0,.08)}
.cse-rhe-premium-head h2{margin:4px 0 5px;font-size:25px}.cse-rhe-premium-head p{margin:0;color:#76521a}.cse-rhe-kicker{font-size:10px;font-weight:850;letter-spacing:.13em;color:#9a6200}.cse-rhe-premium-badge{flex:0 0 auto;padding:8px 11px;border-radius:999px;background:#f59e0b;color:#3d2700;font-size:10px;font-weight:900;letter-spacing:.06em}
.cse-rhe-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.cse-rhe-panel-title h2{margin:0}.cse-rhe-panel-title a{font-size:12px;font-weight:750;color:#8a5600;text-decoration:none}
.cse-rhe-activity,.cse-rhe-follow{display:flex;flex-direction:column;gap:10px}.cse-rhe-activity>a,.cse-rhe-follow>a{display:flex;align-items:flex-start;gap:11px;padding:12px;border:1px solid var(--rhe-line);border-radius:12px;text-decoration:none;color:var(--rhe-dark)}.cse-rhe-activity>a>div,.cse-rhe-follow>a>div{display:flex;flex-direction:column;min-width:0;flex:1}.cse-rhe-activity small,.cse-rhe-follow small{color:var(--rhe-muted);margin-top:3px}.cse-rhe-activity p{margin:5px 0 0;color:#475467;font-size:13px}.activity-dot{width:10px;height:10px;margin-top:5px;border-radius:999px;flex:0 0 auto}.activity-elu .activity-dot{background:#2563eb}.activity-rh .activity-dot{background:#f59e0b}.activity-elu{border-left:4px solid #2563eb!important}.activity-rh{border-left:4px solid #f59e0b!important;background:#fffaf0}.cse-rhe-follow>a{align-items:center}.cse-rhe-muted{color:var(--rhe-muted)}
.cse-rhe-legend p{display:flex;align-items:center;gap:8px;margin:12px 0}.cse-rhe-legend small{display:block;color:var(--rhe-muted);margin-top:14px}.legend-blue,.legend-orange{width:14px;height:14px;border-radius:4px;display:inline-block}.legend-blue{background:#2563eb}.legend-orange{background:#f59e0b}
@media(max-width:760px){.cse-rhe-premium-head{align-items:flex-start;padding:18px}.cse-rhe-premium-badge{display:none}.cse-rhe-premium-head h2{font-size:22px}.cse-rhe-premium-grid{grid-template-columns:1fr}}
