/* Cadre repris de la maquette (proche de BoondManager) */
:root{--bandeau:#2B2F33;--champ:#43474C;--texte:#212121;--gris:#616161;--gris2:#9E9E9E;--ligne:#EEEEEE;--ligne2:#E0E0E0;--fond:#FAFAFA;--blanc:#fff;--accent:#E65100;--rouge:#D32F2F;--vert:#2E7D32;--lien:#1565C0}
*{box-sizing:border-box}
body{margin:0;font:13px/1.45 Roboto,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--texte);background:var(--blanc)}
a{color:var(--lien);text-decoration:none}a:hover{color:#0D47A1}
button,input,select,textarea{font-family:inherit;color:inherit}
[hidden]{display:none!important}
.racine{min-height:100vh;display:flex;flex-direction:column}

/* Bandeau */
.bandeau{height:48px;background:var(--bandeau);display:flex;align-items:center;gap:20px;padding:0 18px;flex:none;position:sticky;top:0;z-index:50}
.bandeau .esp{flex:1}
.accueil{display:flex}
.recherche{flex:0 1 520px;margin:0}
.recherche label{height:30px;display:flex;align-items:center;gap:8px;background:var(--champ);border-radius:4px;padding:0 10px}
.recherche input{flex:1;min-width:0;border:0;background:transparent;color:#fff;font-size:13px;outline:none}
.recherche input::placeholder{color:#BDBDBD}
.deroulant{position:relative}
.cloche{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;background:transparent;cursor:pointer;padding:0}
.profil{display:flex;align-items:center;gap:8px;color:#fff;font-size:14px;border:0;background:transparent;cursor:pointer;height:36px;padding:0 4px}
.pastille-ini{width:26px;height:26px;border-radius:50%;background:#78909C;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;flex:none}
.pastille-ini.grande{width:34px;height:34px;font-size:12px}
.panneau{position:absolute;right:0;top:42px;z-index:60;background:#fff;border:1px solid var(--ligne2);border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.16);color:var(--texte)}
.notifs{width:380px;max-width:calc(100vw - 24px);right:-8px}
.p-titre{padding:12px 14px 8px;border-bottom:1px solid var(--ligne);font-size:14px;font-weight:600}
.p-vide{padding:18px 14px;font-size:12.5px;color:var(--gris)}
.p-pied{display:block;padding:10px 14px;border-top:1px solid var(--ligne);background:var(--fond);font-size:12.5px;color:var(--gris2);border-radius:0 0 6px 6px}
.profil-menu{width:290px;padding:10px 0 8px}
.p-ident{display:flex;align-items:center;gap:12px;padding:2px 14px 8px}
.p-nom{font-size:13.5px;font-weight:600}.p-mail{font-size:11.5px;color:var(--gris);overflow:hidden;text-overflow:ellipsis}
.p-sep{height:1px;background:var(--ligne);margin:8px 0}
.p-org{font-size:11.5px;font-weight:700;letter-spacing:.3px;color:#424242;padding:2px 14px 4px}
.p-item{display:flex;align-items:center;gap:10px;width:100%;height:30px;padding:0 14px;border:0;background:transparent;cursor:pointer;font-size:13px;color:var(--texte);text-align:left}
.p-item:hover{background:#F5F5F5;color:var(--texte)}
.p-item.niv1{padding-left:34px;font-size:12.5px}
.p-item.off{color:var(--gris2);cursor:default}.p-item.off:hover{background:transparent}
.p-item svg{width:15px;height:15px;fill:none;stroke:#424242;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.p-item.off svg{stroke:#BDBDBD}
.p-item.rouge{color:var(--rouge)}.p-item.rouge svg{stroke:var(--rouge)}

/* Menu de gauche */
.corps{flex:1;display:flex;min-height:0}
.menu{position:relative;flex:0 0 220px;background:#fff;border-right:1px solid var(--ligne);padding:22px 12px;display:flex;flex-direction:column;gap:2px}
.replier{position:absolute;top:126px;right:-12px;z-index:5;width:24px;height:24px;border-radius:50%;border:1px solid #BDBDBD;background:#fff;cursor:pointer;font-size:15px;line-height:1;color:#424242;display:flex;align-items:center;justify-content:center;padding:0 0 2px}
.logo{width:92px;height:92px;margin:0 auto 22px;border-radius:12px;display:block;flex:none}
.lanceur-btn{width:52px;height:52px;border-radius:50%;border:1.5px solid #424242;margin:0 auto 22px;display:flex;align-items:center;justify-content:center;background:transparent;cursor:pointer;padding:0;flex:none}
.lanceur-btn:hover{background:#EEEEEE}
.n-item{display:flex;align-items:center;gap:12px;width:100%;height:38px;padding:0 10px;border:0;border-radius:6px;background:transparent;cursor:pointer;font-size:13.5px;color:#282C32;text-align:left;text-decoration:none}
.n-item:hover{background:#F5F5F5;color:#282C32}
.n-item.actif{background:#EEEEEE;font-weight:600}
.n-item.off{color:var(--gris2);cursor:default}.n-item.off:hover{background:transparent}
.n-ico{width:20px;height:20px;fill:none;stroke:#424242;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.n-item.off .n-ico{stroke:#BDBDBD}
.n-lib{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.n-chev{width:14px;height:14px;fill:none;stroke:#424242;stroke-width:2;transition:transform .15s}
.n-item[aria-expanded=true] .n-chev{transform:rotate(90deg)}
.n-subs{margin:0 0 6px 21px;padding-left:12px;border-left:1px solid #BDBDBD;display:flex;flex-direction:column}
.n-subs a,.n-subs span{padding:6px 8px;font-size:12.5px;color:#282C32;border-radius:4px}
.n-subs span{color:var(--gris2)}
.menu.replie{flex-basis:68px;padding:22px 8px}
.menu.replie .n-lib,.menu.replie .n-chev,.menu.replie .n-subs{display:none!important}
.menu.replie .logo{width:44px;height:44px;margin-bottom:18px;border-radius:8px}
.menu.replie .lanceur-btn{width:40px;height:40px}
.menu.replie .n-item{justify-content:center;padding:0}

/* Contenu */
main{flex:1;min-width:0;padding:24px 28px;background:#fff}
h1{font-size:20px;font-weight:500;margin:0 0 16px}
h2{font-size:14px;font-weight:600;margin:22px 0 10px;color:#282C32}
.carte{background:#fff;border:1px solid var(--ligne2);border-radius:8px;padding:16px;margin-bottom:16px}
.grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
table{width:100%;border-collapse:collapse;background:#fff}
th{height:40px;padding:0 15px;text-align:left;font-size:12px;font-weight:500;color:var(--texte);white-space:nowrap;background:#F5F5F5}
th:first-child{border-radius:8px 0 0 8px}th:last-child{border-radius:0 8px 8px 0}
td{height:49px;padding:7px 15px;font-size:12px;border-bottom:1px solid var(--ligne);vertical-align:middle}
.on{color:var(--vert);font-weight:600}.off{color:var(--gris2)}
.btn{display:inline-block;background:var(--accent);color:#fff;border:0;border-radius:6px;padding:9px 16px;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{color:#fff}
.btn.sec{background:#fff;color:var(--texte);border:1px solid var(--ligne2)}
input[type=text],input[type=password]{width:100%;padding:9px 10px;border:1px solid var(--ligne2);border-radius:4px;font-size:14px}
label{display:block;font-weight:600;margin:12px 0 4px}
.recherche label{margin:0;font-weight:400}
.connexion{max-width:380px;margin:80px auto;padding:0 16px}
.msg{padding:10px 12px;border-radius:6px;margin-bottom:12px;background:#FFEBEE;color:var(--rouge)}
.note{color:var(--gris);font-size:12.5px}
.pastille{display:inline-block;padding:1px 8px;border-radius:10px;background:#F5F5F5;border:1px solid var(--ligne2);font-size:12px}

/* Tableau de bord */
.w-tete{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.w-ico{width:34px;height:34px;border-radius:8px;background:#F5F5F5;display:flex;align-items:center;justify-content:center;flex:none}
.w-ico svg{width:18px;height:18px;fill:none;stroke:#424242;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.w-titre{font-size:13.5px;font-weight:600}
.w-val{font-size:26px;font-weight:500;color:#282C32;margin:4px 0}
.ent{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.ent .note{margin:0}

/* Lanceur */
.voile{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:100;display:flex;align-items:flex-start;justify-content:center;padding-top:80px}
.lanceur{width:min(560px,calc(100% - 32px));background:#fff;border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.25);padding:16px}
.l-tete{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:15px}
.l-fermer{border:0;background:transparent;font-size:16px;cursor:pointer}
.l-filtre{width:100%;height:34px;border:1px solid var(--ligne2);border-radius:6px;padding:0 10px;margin-bottom:12px;font-size:13px}
.l-grille{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-height:60vh;overflow-y:auto}
.l-app{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:74px;padding:10px 4px;border-radius:6px;font-size:12.5px;color:#282C32;text-align:center}
.l-app:hover{background:#F5F5F5;color:#282C32}
.l-app.off{color:var(--gris2)}.l-app.off svg{stroke:#BDBDBD}
.l-app svg{width:24px;height:24px;fill:none;stroke:#282C32;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* Téléphone */
@media (max-width:800px){
.bandeau{gap:10px;padding:0 10px}
.profil{font-size:0}.profil .pastille-ini{font-size:11px}
.corps{flex-direction:column}
.menu{flex:none;flex-direction:row;overflow-x:auto;padding:6px;border-right:0;border-bottom:1px solid var(--ligne);gap:4px}
.menu .logo,.menu .replier,.n-subs,.n-chev{display:none!important}
.menu .lanceur-btn{width:38px;height:38px;margin:0}
.n-item{width:auto;flex:none}
main{padding:16px}
.l-grille{grid-template-columns:repeat(3,1fr)}
}

/* Modules */
.barre{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.barre .esp,.ent .esp{flex:1}
.champ{height:34px;border:1px solid var(--ligne2);border-radius:6px;padding:0 10px;font-size:13px;background:#fff}
input.champ[name=q]{min-width:220px}
.tableau{overflow-x:auto}
tr.lien{cursor:pointer}tr.lien:hover td{background:#F5F5F5}
.droite{text-align:right}
.pages{margin-top:12px}
.fil{margin:0 0 4px;font-size:12.5px}
.fiche-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:16px}
.champs{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px 14px}
.champ-bloc label{font-size:11.5px;font-weight:500;color:var(--gris);margin:8px 0 3px}
.champ-bloc input:not([type=checkbox]),.champ-bloc select,.champ-bloc textarea,textarea{width:100%;min-height:34px;border:1px solid var(--ligne2);border-radius:6px;padding:6px 9px;font-size:13px;background:#fff}
.champ-bloc input:disabled,.champ-bloc select:disabled,.champ-bloc textarea:disabled{background:#F5F5F5;color:#616161}
.champ-bloc.case{display:flex;align-items:center;gap:8px;flex-direction:row-reverse;justify-content:flex-end;margin-top:22px}
.champ-bloc.case label{margin:0}
.champ-bloc.erreur input,.champ-bloc.erreur select{border-color:var(--rouge)}
.err{color:var(--rouge);font-size:11.5px}
.valeur{min-height:34px;padding:7px 0}
.actions-bas{display:flex;gap:8px;margin:14px 0}
form.inline{display:inline}
.btn-lien{border:0;background:transparent;cursor:pointer;text-decoration:underline;font-size:12.5px;padding:0;margin-top:10px}
.rouge{color:var(--rouge)}
.pastille.rouge{background:#FFEBEE;border-color:#FFCDD2}
.onglets{display:flex;gap:4px;border-bottom:1px solid var(--ligne2);margin:0 0 16px;flex-wrap:wrap}
.onglets a{padding:8px 14px;color:#424242;border-bottom:2px solid transparent;margin-bottom:-1px}
.onglets a.on{border-color:var(--accent);color:#212121;font-weight:600}
table.cra th,table.cra td{padding:2px;height:auto;text-align:center;font-size:11px}
table.cra td.lib{text-align:left;padding:4px 8px;white-space:nowrap;font-size:12px}
table.cra input{width:34px;height:28px;text-align:center;border:1px solid var(--ligne2);border-radius:4px;font-size:12px;padding:0}
table.cra .off{background:#F0F0F0}table.cra td.off input{background:#F0F0F0}
table.cra tr.extra td{background:#FFF8E1}
table.cra .tot{font-weight:600}
table.plan td{text-align:center;font-size:11px;padding:4px}
.occ{background:#E3F2FD}.abs{background:#FFF3E0}.libre{background:#E8F5E9}
.inline-l{margin:0;font-weight:500}
