:root { --blue:#0084c6; --green:#009545; --ink:#09264a; --muted:#74859c; --line:#d6e0e8; --bg:#f2f6f8; --white:#fff; --gold:#f3c84b; --field:#edf4ff; }
* { box-sizing:border-box; }
body { margin:0; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:var(--bg); }
a { color:inherit; text-decoration:none; }
.login-shell { min-height:100vh; display:grid; grid-template-columns:1.05fr .95fr; }
.brand-panel { position:relative; overflow:hidden; padding:64px 8vw; display:flex; flex-direction:column; justify-content:center; color:#fff; background:linear-gradient(180deg,var(--green) 0%,color-mix(in srgb,var(--green) 62%,var(--gold)) 32%,var(--gold) 58%,var(--blue) 100%); }
.brand-mark { position:absolute; top:34px; left:46px; width:230px; padding:8px 14px; overflow:hidden; background:transparent; }
.brand-mark img { display:block; width:100%; height:auto; }
.brand-panel h1 { max-width:690px; margin:18px 0; font-size:clamp(38px,5vw,68px); line-height:1.04; }
.brand-copy { max-width:540px; font-size:18px; line-height:1.7; }
.brand-orbs::before,.brand-orbs::after { content:""; position:absolute; border-radius:50%; background:#ffffff12; }
.brand-orbs::before { width:360px; height:360px; right:-100px; bottom:-110px; }
.brand-orbs::after { width:160px; height:160px; right:15%; top:12%; }
.login-panel { display:grid; place-items:center; padding:40px; }
.login-card { position:relative; width:min(460px,100%); padding:46px; border:7px solid transparent; border-radius:22px; background:linear-gradient(#fff,#fff) padding-box,linear-gradient(145deg,var(--green),var(--gold) 52%,var(--blue)) border-box; box-shadow:0 24px 70px #09264a24; }
.login-theme-toggle { position:absolute; top:15px; right:16px; width:38px; height:38px; border:1px solid var(--line); border-radius:9px; background:var(--field); color:var(--ink); cursor:pointer; }
.login-theme-toggle:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.mini-logo { width:220px; overflow:hidden; background:transparent; }
.mini-logo img { display:block; width:100%; height:auto; }
.eyebrow { margin-top:28px; color:var(--green); font-size:12px; font-weight:800; letter-spacing:1.5px; }
.login-card h2 { margin:6px 0; font-size:34px; }
.muted,.security-note { color:var(--muted); }
form>label { display:block; margin:18px 0 8px; font-size:14px; font-weight:700; }
input[type=text],input[type=password] { width:100%; padding:15px 16px; border:1px solid var(--green); border-radius:11px; outline:none; background:var(--field); color:var(--ink); font-size:16px; }
input:focus { border-color:var(--green); box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 14%,transparent); }
.password-field { position:relative; }
.password-field input { padding-right:52px; }
.password-toggle { position:absolute; top:50%; right:8px; width:38px; height:38px; transform:translateY(-50%); border:0; border-radius:8px; background:transparent; color:var(--green); cursor:pointer; font-size:18px; }
.password-toggle:hover,.password-toggle:focus-visible { background:#dceee5; outline:none; }
.provider { display:flex; gap:10px; margin:24px 0; }
.provider label { display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid #abd9c1; border-radius:10px; background:#f7fbf9; font-size:14px; }
.primary { width:100%; margin-top:24px; padding:15px; border:0; border-radius:11px; cursor:pointer; background:linear-gradient(90deg,var(--green),var(--gold) 58%,var(--blue)); color:var(--ink); font-size:16px; font-weight:800; }
.primary:disabled,[aria-busy="true"] { cursor:wait; opacity:.78; }
.login-card .login-local-action { background:var(--field); border:1px solid var(--line); color:var(--ink); }
.login-card .login-local-action:hover { border-color:var(--green); }
.action-spinner { width:18px; height:18px; display:inline-block; flex:0 0 auto; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:action-spin .65s linear infinite; }
.action-spinner[hidden] { display:none; }
button[aria-busy="true"] { display:inline-flex; align-items:center; justify-content:center; gap:9px; }
@keyframes action-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .action-spinner { animation-duration:1.4s; } }
.security-note { margin-top:22px; text-align:center; font-size:12px; }
.alert { margin:14px 0; padding:12px; border-radius:9px; background:#fff3f1; color:#a13229; }
.app-page { --sidebar-width:260px; --topbar-height:60px; display:flex; min-height:100vh; }
.sidebar { position:fixed; inset:0 auto 0 0; width:var(--sidebar-width); height:100vh; height:100dvh; padding:14px 12px 10px; display:flex; flex-direction:column; background:color-mix(in srgb,var(--blue) 83%,#09264a); color:var(--white); }
.sidebar-brand { position:relative; flex:none; padding:0 4px 12px; }
.side-logo { display:grid; width:100%; height:80px; place-items:center; border-radius:8px; }
.side-logo-mark { position:relative; display:block; width:min(100%,185px); }
/* Masque le sous-titre d’origine sous « US » sans couper les branches du X. */
.side-logo img { display:block; width:100%; height:auto; filter:brightness(0) invert(1); clip-path:polygon(0 0,100% 0,100% 68%,58.5% 68%,58.5% 79.4%,51.5% 79.4%,51.5% 100%,0 100%); }
.side-logo-label { position:absolute; top:68%; left:58.5%; width:32.5%; display:grid; place-items:center; padding:1px 2px; border-radius:1px; background:var(--white); color:var(--green); font-size:.4375rem; font-weight:700; line-height:1; white-space:nowrap; }
.sidebar-close { display:none; }
.sidebar .identity { flex:none; display:flex; align-items:center; gap:10px; min-width:0; padding:10px; border:1px solid #ffffff38; border-radius:8px; background:linear-gradient(110deg,var(--blue),var(--green)); }
.sidebar .identity-copy { display:grid; gap:2px; min-width:0; }
.sidebar .identity small { font-size:.69rem; line-height:1.3; }
.sidebar .identity strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.87rem; }
.avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:#fff; color:var(--green); font-weight:900; }
.profile-avatar { position:relative; overflow:hidden; }
.profile-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sidebar .avatar { width:34px; height:34px; flex:none; font-size:.77rem; }
.sidebar nav { flex:1 1 auto; min-height:0; overflow:auto; padding:4px 1px 9px; scrollbar-width:thin; scrollbar-color:#ffffff68 transparent; }
.sidebar-group { margin:0; padding:13px 10px 4px; color:var(--white); font-size:.66rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.sidebar-group:not(:first-child) { margin-top:7px; border-top:1px solid #ffffff38; }
.sidebar nav a,.sidebar .module-link,.sidebar .side-bottom a { position:relative; display:flex; align-items:center; gap:9px; min-height:38px; margin:1px 0; padding:6px 10px; border-radius:6px; font-size:.84rem; line-height:1.25; }
.sidebar nav i,.sidebar .side-bottom i { width:18px; flex:none; text-align:center; font-size:1rem; }
.sidebar .module-link { color:color-mix(in srgb,var(--white) 80%,var(--blue)); }
.sidebar .module-link small { margin-left:auto; white-space:nowrap; font-size:.62rem; }
.sidebar nav a:hover,.sidebar .side-bottom a:hover { background:#ffffff23; color:var(--white); }
.sidebar nav a[aria-current] { background:color-mix(in srgb,var(--ink) 34%,transparent); color:var(--white); font-weight:750; }
.sidebar nav a[aria-current]::before { content:""; position:absolute; inset:8px auto 8px 0; width:3px; border-radius:2px; background:var(--gold); }
.sidebar a:focus-visible,.sidebar button:focus-visible,.topbar :is(.topbar-control,.topbar-back,.notification-bell):focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
.side-bottom { flex:none; padding-top:7px; border-top:1px solid #ffffff38; }
.sidebar .side-bottom .switch { min-height:36px; border:1px solid #ffffff65; font-weight:700; }
.app-page > .content { width:calc(100% - var(--sidebar-width)); min-width:0; margin-left:var(--sidebar-width); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:var(--topbar-height); padding:0 clamp(12px,3vw,36px); color:var(--white); background:linear-gradient(90deg,var(--green),var(--blue)); }
.topbar-leading,.topbar-actions { display:flex; align-items:center; gap:8px; }
.topbar .topbar-control,.topbar .notification-bell,.topbar-back { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:38px; min-height:38px; padding:0 8px; border:0; border-radius:6px; color:inherit; background:transparent; cursor:pointer; }
.topbar .topbar-control,.topbar .notification-bell { font-size:1.15rem; }
.topbar-back { font-size:.84rem; font-weight:700; }
.topbar :is(.topbar-control,.notification-bell,.topbar-back):hover { color:var(--white); background:#ffffff26; }
.topbar .avatar.small { width:30px; height:30px; margin-left:5px; background:var(--white); color:var(--ink); font-size:.76rem; }
.hero { position:relative; overflow:hidden; min-height:172px; margin:22px 28px; padding:30px 38px; border-radius:18px; display:flex; align-items:center; justify-content:space-between; background:linear-gradient(110deg,var(--green) 0%,#079f89 52%,var(--blue) 100%); color:#fff; }
.hero h1 { margin:6px 0; font-size:34px; }
.hero p { opacity:.9; }
.date-card { min-width:220px; padding:18px; border-radius:14px; display:flex; flex-direction:column; gap:8px; background:#fff; color:var(--ink); text-align:center; box-shadow:0 15px 45px #006b7950; }
.date-card small,.date-card span { color:var(--muted); }
.date-card span { font-size:12px; }
.stats { margin:0 28px 24px; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stats article,.panel { padding:22px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 4px 16px #09264a0b; }
.stats article { display:flex; flex-direction:column; }
.stats strong { margin:8px 0; color:var(--blue); font-size:32px; }
.stats small { color:var(--muted); }
.grid { margin:0 28px 30px; display:grid; grid-template-columns:2fr 1fr; gap:20px; }
.panel h2 { font-size:18px; }
.empty { padding:60px 20px; color:var(--muted); text-align:center; }
dl { margin:0; } dt { margin-top:18px; color:var(--muted); font-size:13px; } dd { margin:5px 0; padding-bottom:12px; border-bottom:1px solid var(--line); font-weight:700; }
@media (min-width:901px) {
    .app-page.sidebar-collapsed { --sidebar-width:76px; }
    .sidebar-collapsed .sidebar nav a,.sidebar-collapsed .sidebar .module-link,.sidebar-collapsed .sidebar .side-bottom a { justify-content:center; padding-inline:0; }
    .sidebar-collapsed .sidebar .sidebar-label,.sidebar-collapsed .sidebar .identity-copy { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .sidebar-collapsed .sidebar .sidebar-group { height:0; margin-block:6px; padding:0; overflow:hidden; }
    .sidebar-collapsed .sidebar .module-link small { display:none; }
    .sidebar-collapsed .sidebar .identity { justify-content:center; padding-inline:0; }
    .sidebar-collapsed .side-logo { height:48px; }
    .sidebar-collapsed .side-logo-label { display:none; }
}
.theme-dark { --ink:#e7eef7; --muted:#9eb0c3; --line:#30465b; --bg:#0d1b29; --field:#182c40; }
.theme-dark .stats article,.theme-dark .panel,.theme-dark .date-card,.theme-dark .login-card { background:#13263a; color:var(--ink); }
.theme-dark .login-card { background:#13263a; color:var(--ink); }
.theme-dark .topbar { background:linear-gradient(90deg,var(--green),var(--blue)); color:#fff; }
.theme-dark .login-card { background:linear-gradient(#13263a,#13263a) padding-box,linear-gradient(145deg,var(--green),var(--gold) 52%,var(--blue)) border-box; }
.theme-dark .login-panel { background:#0d1b29; }
.theme-dark input[type=text],.theme-dark input[type=password] { color:var(--ink); }
.theme-dark .login-card .eyebrow { color:#85df91; }
.theme-dark .login-card .muted,.theme-dark .login-card .security-note { color:#c1d0df; }
.theme-dark .login-card form>label,.theme-dark .login-card h2 { color:#f0f5fb; }
.theme-dark .login-card .provider label { background:#1b3445; border-color:#537489; color:#f0f5fb; }
.theme-dark .login-card .provider label:has(input:checked) { border-color:#8ce3aa; background:#244d40; color:#fff; }
.theme-dark .login-card .provider input { accent-color:#85df91; }
.theme-dark .login-card input[type=text],.theme-dark .login-card input[type=password] { background:#182c40; color:#f0f5fb; border-color:#628399; }
.theme-dark .login-card input::placeholder { color:#b8cadb; opacity:1; }
.theme-dark .login-card .password-toggle { color:#9ee6ad; }
.theme-dark .login-card .password-toggle:hover,.theme-dark .login-card .password-toggle:focus-visible { background:#29485b; }
.theme-dark .login-card .alert { background:#4c2826; color:#ffd5cf; }
.theme-dark .login-card .primary { color:#09264a; }
.theme-dark .login-card .security-note { border-top:1px solid var(--line); padding-top:14px; }
.theme-dark .login-card .login-theme-toggle { background:#243d51; color:#f0f5fb; border-color:#628399; }
.theme-dark .login-card .login-theme-toggle:hover,.theme-dark .login-card .login-theme-toggle:focus-visible { background:#33566d; }
.payroll-agent-picker { position:relative; min-width:0; width:100%; }
.payroll-agent-picker .payroll-native-select { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.payroll-agent-picker .payroll-agent-search { width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--field); color:var(--ink); }
.payroll-agent-results { position:absolute; z-index:50; top:calc(100% + 4px); right:0; left:0; max-height:240px; overflow-y:auto; padding:5px; border:1px solid var(--line); border-radius:10px; background:var(--white); box-shadow:0 12px 30px rgb(9 38 74 / 18%); }
.payroll-agent-results[hidden] { display:none; }
.payroll-agent-option { display:block; width:100%; padding:9px 11px; border:0; border-radius:7px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.payroll-agent-option:hover,.payroll-agent-option:focus-visible { background:var(--field); outline:2px solid var(--blue); }
.payroll-agent-results p { margin:6px; color:var(--muted); font-size:13px; }
.theme-dark .payroll-agent-picker .payroll-agent-search,.theme-dark .payroll-agent-results { background:#182c40; color:#e7eef7; border-color:#537489; }
.theme-dark .payroll-agent-option { color:#e7eef7; }
.theme-dark .payroll-agent-option:hover,.theme-dark .payroll-agent-option:focus-visible { background:#29485b; }
@media (max-width:900px) {
    .login-shell { grid-template-columns:1fr; }
    .brand-panel { display:none; }
    .app-page > .content { width:100%; margin-left:0; }
    .sidebar { width:min(var(--sidebar-width),calc(100vw - 44px)); z-index:310; visibility:hidden; transform:translateX(-100%); transition:transform .18s ease,visibility .18s; }
    .sidebar-open { overflow:hidden; }
    .sidebar-open .sidebar { visibility:visible; transform:none; }
    .sidebar-open::after { content:""; position:fixed; inset:0; z-index:309; background:#09264a66; }
    .sidebar-brand { display:flex; gap:6px; align-items:center; padding-inline:0; }
    .sidebar-close { display:grid; place-items:center; width:40px; height:40px; flex:none; border:0; border-radius:6px; color:inherit; background:#ffffff18; cursor:pointer; }
    .stats { grid-template-columns:repeat(2,1fr); }
    .grid { grid-template-columns:1fr; }
    .hero { align-items:flex-start; gap:25px; flex-direction:column; }
    .date-card { width:100%; }
}
@media (max-width:560px) {
    .topbar .notification-menu .notification-popover { position:fixed; inset:calc(var(--topbar-height) + 6px) 12px auto; width:auto; }
    .stats { margin:0 14px 18px; grid-template-columns:1fr 1fr; }
    .hero,.grid { margin:14px; }
    .login-panel { padding:16px; }
    .login-card { padding:28px; }
}
@media (prefers-reduced-motion:reduce) { .sidebar { transition:none; } }
.notification-menu{position:relative;display:inline-block}.notification-bell{position:relative}.notification-bell span{position:absolute;top:-5px;right:-6px;display:grid;min-width:19px;height:19px;place-items:center;padding:0 5px;border-radius:999px;background:#c93636;color:#fff;font-size:11px;font-weight:900}.notification-popover{position:absolute;z-index:100;top:calc(100% + 10px);right:0;width:min(390px,calc(100vw - 30px));padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 18px 42px #09264a33}.notification-popover[hidden]{display:none}.notification-popover header{display:flex;justify-content:space-between;padding:7px 9px 11px;border-bottom:1px solid var(--line)}.notification-popover form{margin:0}.notification-popover button{display:grid;width:100%;gap:3px;padding:11px 9px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}.notification-popover small,.notification-popover time{color:var(--muted)}.notifications-hero{display:flex;align-items:center;justify-content:space-between;padding:30px;border-radius:20px;background:linear-gradient(120deg,var(--green),var(--blue));color:#fff}.notifications-hero h1{margin:5px 0;color:#fff}.notifications-hero p{margin:0}.notifications-hero>i{font-size:3rem}.notifications-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.notifications-toolbar form{margin:0}.notification-action,.notification-open{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);font-weight:800;text-decoration:none}.notification-action.primary{border-color:var(--green);background:var(--green);color:#fff}.notification-list{display:grid;gap:12px}.notification-card{display:grid;grid-template-columns:130px 1fr auto;gap:18px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--white)}.notification-card.unread{border-left:5px solid var(--green);background:color-mix(in srgb,var(--green) 5%,var(--white))}.notification-card h2{margin:0 0 5px;font-size:1.05rem}.notification-card p{margin:0 0 6px}.notification-card time{color:var(--muted);font-size:.82rem}.notification-category{color:var(--green);font-size:.78rem;font-weight:900;text-transform:uppercase}.notification-empty{padding:50px;text-align:center}.notification-empty i{font-size:2.5rem;color:var(--muted)}.notification-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.notification-metrics article{padding:22px;border:1px solid var(--line);border-radius:15px;background:var(--white)}.notification-metrics span{display:block;color:var(--muted)}.notification-metrics strong{font-size:2rem}.theme-dark .notification-popover,.theme-dark .notification-card,.theme-dark .notification-action,.theme-dark .notification-metrics article{background:#172d3f;color:#eef7fb}@media(max-width:700px){.notification-card{grid-template-columns:1fr}.notification-metrics{grid-template-columns:1fr}}
.error-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 15%,rgba(0,149,69,.14),transparent 30%),radial-gradient(circle at 85% 80%,rgba(0,132,198,.15),transparent 32%),var(--bg)}.error-shell{width:min(620px,100%);padding:clamp(28px,6vw,54px);border:1px solid var(--line);border-radius:24px;background:var(--white);box-shadow:0 24px 70px rgba(9,38,74,.14);text-align:center}.error-shell img{max-width:190px;max-height:70px;object-fit:contain}.error-code{display:block;margin-top:20px;color:var(--green);font-size:clamp(3.5rem,10vw,6.5rem);font-weight:950;line-height:1}.error-shell h1{margin:10px 0 8px;font-size:clamp(1.5rem,4vw,2.15rem)}.error-shell p{margin:0 auto;max-width:450px;color:var(--muted);line-height:1.65}.error-actions{display:flex;justify-content:center;gap:10px;margin:26px 0}.error-actions a,.error-actions button{padding:11px 15px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);font:inherit;font-weight:800;cursor:pointer}.error-actions a{border-color:var(--green);background:var(--green);color:#fff}.error-shell small{color:var(--muted)}@media(max-width:520px){.error-actions{flex-direction:column}}
.push-consent{position:fixed;z-index:300;right:22px;bottom:22px;display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;width:min(470px,calc(100vw - 32px));padding:19px;border:1px solid var(--line);border-top:4px solid var(--green);border-radius:17px;background:var(--white);box-shadow:0 24px 70px rgba(9,38,74,.24);color:var(--ink)}.push-consent[hidden]{display:none}.push-consent-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--green) 12%,var(--white));color:var(--green);font-size:1.35rem}.push-consent span{color:var(--green);font-size:.68rem;font-weight:900;letter-spacing:.12em}.push-consent h2{margin:3px 0;font-size:1.16rem}.push-consent p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.5}.push-consent-actions{display:flex;grid-column:1/-1;justify-content:flex-end;gap:8px}.push-consent-actions button{padding:9px 13px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);font-weight:800;cursor:pointer}.push-consent-actions .primary{border-color:var(--green);background:var(--green);color:#fff}.theme-dark .push-consent{background:#152b3d}.theme-dark .push-consent-actions button:not(.primary){background:#1c3548;color:#fff}@media(max-width:560px){.push-consent{right:16px;bottom:16px}}
.push-consent-reopen{position:fixed;z-index:290;right:18px;bottom:18px;display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--green) 55%,var(--line));border-radius:999px;background:var(--white);box-shadow:0 8px 24px rgba(9,38,74,.14);color:var(--green);font-size:.78rem;font-weight:800;cursor:pointer}.push-consent-reopen[hidden]{display:none}.push-consent-reopen i{font-size:.95rem}.theme-dark .push-consent-reopen{background:#152b3d;color:#a6ebba}@media(max-width:480px){.push-consent-reopen span{display:none}.push-consent-reopen{width:42px;height:42px;justify-content:center;padding:0}}
.pwa-install-button{position:fixed;z-index:289;left:278px;bottom:18px;display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid var(--green);border-radius:999px;background:var(--white);box-shadow:0 8px 24px rgba(9,38,74,.16);color:var(--green);font-size:.8rem;font-weight:800;cursor:pointer}.pwa-install-button[hidden],.pwa-install-help[hidden]{display:none}.pwa-install-button:hover{background:var(--green);color:#fff}.pwa-install-help{position:fixed;z-index:301;left:278px;bottom:74px;width:min(365px,calc(100vw - 296px));padding:17px;border:1px solid var(--line);border-top:4px solid var(--green);border-radius:15px;background:var(--white);box-shadow:0 18px 52px rgba(9,38,74,.24);color:var(--ink)}.pwa-install-help__head{display:flex;align-items:center;gap:10px}.pwa-install-help__head>i{color:var(--green);font-size:1.2rem}.pwa-install-help__head button{margin-left:auto;border:0;background:none;color:var(--ink);cursor:pointer}.pwa-install-help p{margin:12px 0 0;color:var(--muted);line-height:1.5;font-size:.88rem}.theme-dark .pwa-install-button,.theme-dark .pwa-install-help{background:#152b3d;color:#a6ebba}.sidebar-collapsed .pwa-install-button,.sidebar-collapsed .pwa-install-help{left:94px}@media(max-width:900px){.pwa-install-button,.pwa-install-help{left:94px}.pwa-install-help{width:min(365px,calc(100vw - 112px))}}@media(max-width:560px){.pwa-install-button,.pwa-install-help,.sidebar-collapsed .pwa-install-button,.sidebar-collapsed .pwa-install-help{left:18px}.pwa-install-help{width:min(365px,calc(100vw - 36px))}}@media(max-width:480px){.pwa-install-button{width:43px;height:43px;padding:0;justify-content:center}.pwa-install-button span{display:none}.pwa-install-help{bottom:70px}}
.login-page .pwa-install-button,.login-page .pwa-install-help,.candidate-page .pwa-install-button,.candidate-page .pwa-install-help{left:18px}.login-page .pwa-install-help,.candidate-page .pwa-install-help{width:min(365px,calc(100vw - 36px))}
.pwa-install-widget{position:fixed;z-index:289;left:278px;bottom:18px;display:flex;align-items:center;gap:2px;max-width:calc(100vw - 296px);border:1px solid var(--green);border-radius:999px;background:var(--white);box-shadow:0 8px 24px rgba(9,38,74,.16)}.pwa-install-widget[hidden]{display:none}.pwa-install-widget .pwa-install-button{position:static;min-width:0;box-shadow:none;border:0;background:transparent}.pwa-install-dismiss{display:grid;flex:none;width:30px;height:30px;place-items:center;margin-right:5px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:.8rem;cursor:pointer}.pwa-install-dismiss:hover,.pwa-install-dismiss:focus-visible{background:var(--field);color:var(--ink)}.theme-dark .pwa-install-widget{background:#152b3d}.sidebar-collapsed .pwa-install-widget{left:94px}.login-page .pwa-install-widget,.candidate-page .pwa-install-widget{left:18px;max-width:calc(100vw - 36px)}@media(max-width:900px){.pwa-install-widget{left:94px;max-width:calc(100vw - 112px)}}@media(max-width:560px){.pwa-install-widget,.sidebar-collapsed .pwa-install-widget{left:18px;max-width:calc(100vw - 36px)}}@media(max-width:480px){.pwa-install-widget .pwa-install-button{width:43px;height:43px}.pwa-install-dismiss{width:28px;height:28px}}
.pwa-install-widget .pwa-install-button:hover,.pwa-install-widget .pwa-install-button:focus-visible{background:var(--green);color:#fff}
.notification-target-test{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:24px;align-items:center;margin:18px 0;padding:20px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:15px;background:var(--white)}.notification-target-test span{color:var(--green);font-size:.7rem;font-weight:900;letter-spacing:.1em}.notification-target-test h2{margin:4px 0}.notification-target-test p{margin:0;color:var(--muted);line-height:1.5}.notification-target-test form{display:grid;gap:8px}.notification-target-test label{margin:0}.notification-target-test .notification-action{justify-self:start}.theme-dark .notification-target-test{background:#172d3f}@media(max-width:760px){.notification-target-test{grid-template-columns:1fr}}

/* Menu de notifications de la barre supérieure. */
.notification-popover{top:calc(100% + 12px);width:min(420px,calc(100vw - 24px));padding:0;overflow:hidden;border-color:#d9e4ec;border-radius:18px;box-shadow:0 22px 55px #09264a40}
.notification-popover__header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--green) 9%,var(--white)),var(--white))}
.notification-popover__heading{display:flex;align-items:center;gap:11px}.notification-popover__heading>span:last-child{display:grid;gap:2px}.notification-popover__heading strong{font-size:1.02rem;color:var(--ink)}.notification-popover__heading small{font-size:.76rem}.notification-popover__icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:var(--green);color:#fff}
.notification-popover__header>a,.notification-popover footer a{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-size:.82rem;font-weight:800;text-decoration:none}.notification-popover__list{max-height:360px;overflow-y:auto}.notification-popover__item{margin:0}
.notification-popover .notification-popover__item button{display:grid;width:100%;grid-template-columns:42px minmax(0,1fr) 8px;align-items:center;gap:12px;padding:14px 18px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer;transition:background .18s ease}.notification-popover .notification-popover__item button:hover,.notification-popover .notification-popover__item button:focus-visible{background:color-mix(in srgb,var(--green) 7%,var(--white));outline:0}.notification-popover .notification-popover__item.is-unread button{background:color-mix(in srgb,var(--green) 4%,var(--white))}
.notification-popover__item-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#e9f6ef;color:var(--green);font-size:1.05rem}.notification-popover__content{display:grid;min-width:0;gap:3px}.notification-popover__title{overflow:hidden;color:var(--ink);font-size:.91rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.notification-popover__body{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:.8rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.notification-popover time{display:flex;align-items:center;gap:5px;margin-top:2px;color:var(--muted);font-size:.72rem}.notification-popover__unread{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 14%,transparent)}.notification-popover__empty{display:grid;justify-items:center;gap:5px;padding:34px 18px;color:var(--muted);text-align:center}.notification-popover__empty i{font-size:2rem;color:var(--green)}.notification-popover__empty strong{color:var(--ink)}.notification-popover footer{display:flex;justify-content:center;padding:12px 16px;background:#f7fafc}
.theme-dark .notification-popover__header{background:linear-gradient(135deg,#163f38,#172d3f)}.theme-dark .notification-popover .notification-popover__item button{color:#eef7fb}.theme-dark .notification-popover .notification-popover__item button:hover,.theme-dark .notification-popover .notification-popover__item.is-unread button{background:#203d4f}.theme-dark .notification-popover__title,.theme-dark .notification-popover__empty strong{color:#eef7fb}.theme-dark .notification-popover footer{background:#122737}
@media(max-width:520px){.notification-popover{position:fixed;top:62px;right:10px;left:10px;width:auto}.notification-popover__header{padding:14px}.notification-popover .notification-popover__item button{padding:13px 14px}}

/* Messages ponctuels après une action ou une redirection. */
.flash-stack { display:grid; gap:6px; margin:10px 0; }
.flash-stack:empty { display:none; }
.flash-stack-floating {
    position:fixed;
    z-index:95;
    inset:calc(var(--topbar-height,60px) + 10px) max(12px, env(safe-area-inset-right)) auto auto;
    width:min(22rem,calc(100% - 24px));
    max-height:min(18rem,42dvh);
    overflow:auto;
    margin:0;
    padding:2px;
    pointer-events:none;
}
.flash-message {
    --flash-accent:#006d99;
    --flash-surface:var(--white);
    display:grid;
    grid-template-columns:1rem minmax(0,1fr) auto;
    align-items:start;
    gap:8px;
    padding:7px 8px 7px 10px;
    border:1px solid var(--line);
    border-inline-start:3px solid var(--flash-accent);
    border-radius:7px;
    background:var(--flash-surface);
    color:var(--ink);
    font-size:.83rem;
    line-height:1.4;
    pointer-events:auto;
}
.flash-stack-floating .flash-message { box-shadow:0 2px 7px #09264a18; }
.flash-message[data-level="success"] { --flash-accent:#007537; }
.flash-message[data-level="warning"] { --flash-accent:#715916; }
.flash-message[data-level="error"] { --flash-accent:#a13229; }
.flash-message > i { margin-top:3px; color:var(--flash-accent); font-size:.92rem; }
.flash-message p { margin:2px 0; overflow-wrap:anywhere; }
.flash-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.flash-close {
    display:grid;
    width:26px;
    height:26px;
    margin:-3px -3px -3px 0;
    place-items:center;
    border:0;
    border-radius:4px;
    background:transparent;
    color:var(--ink);
    font-size:.7rem;
    cursor:pointer;
}
.flash-close[hidden] { display:none; }
.flash-close:hover { background:var(--field); }
.flash-close:focus-visible { outline:2px solid var(--flash-accent); outline-offset:-2px; }
.theme-dark .flash-message { --flash-surface:#13263a; --flash-accent:#9eb0c3; }
.theme-dark .flash-message[data-level="success"] { --flash-accent:#79ddb0; }
.theme-dark .flash-message[data-level="warning"] { --flash-accent:var(--gold); }
.theme-dark .flash-message[data-level="error"] { --flash-accent:#ffd5cf; }
@media (max-width:520px) {
    .flash-stack-floating { inset:auto max(12px,env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) auto; }
}
@media print { .flash-stack { display:none !important; } }

/* Position du point d’installation sur le gabarit interne partagé. */
.app-page > :is(.pwa-install-widget,.pwa-install-help) {
    left: calc(var(--sidebar-width) + 18px);
    max-width: calc(100vw - var(--sidebar-width) - 36px);
}
@media(max-width:900px) {
    .app-page > :is(.pwa-install-widget,.pwa-install-help) { left: 18px; max-width: calc(100vw - 36px); }
    .app-page > .pwa-install-help { width: min(365px, calc(100vw - 36px)); }
}

.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 288;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: color-mix(in srgb, var(--green) 72%, var(--ink));
    box-shadow: 0 3px 10px rgb(9 38 74 / 12%);
    cursor: pointer;
}
.theme-dark .back-to-top { background: var(--field); color: var(--ink); }
.back-to-top:hover { border-color: var(--green); }
.back-to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.back-to-top[hidden] { display: none; }
@media print { .back-to-top { display: none; } }
