/* Formation — compléments au socle */
.side .marque b{white-space:normal;line-height:1.2}
.kpi .v small{font-size:15px;color:var(--gris);font-weight:700}
.nb-t{font-size:12px;font-weight:800;color:var(--gris);background:var(--trait2);border-radius:8px;padding:1px 7px;margin-left:2px}
.rouge-t{color:var(--rouge);font-weight:700}
.a-traiter .ligne .av{background:var(--ambre-f);color:var(--ambre)}
.a-traiter .ligne .av .rouge-t{color:var(--rouge)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border-radius:18px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--trait);font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap}
.chip.on{background:var(--acc);color:#fff;box-shadow:none}.chip.on .rouge-t{color:#FFD9D6}
.rempl{display:flex;align-items:center;gap:8px;min-width:110px}.rempl span{font-size:12.5px;font-weight:800;white-space:nowrap}
.date-av{display:flex;flex-direction:column;align-items:center;line-height:1;font-size:10.5px;font-weight:700;text-transform:uppercase}.date-av b{font-size:15px}
.jour-c{display:flex;align-items:center;gap:12px;padding:11px 16px;border-top:1px solid var(--trait2)}
.jour-c.encours{background:var(--acc-f)}
.jour-h{display:flex;flex-direction:column;min-width:50px;font-size:12px;color:var(--gris)}.jour-h b{font-size:15px;color:var(--ink)}
.jour-c .co{flex:1;min-width:0}.jour-c .p{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jour-c .s{font-size:12.5px;color:var(--gris);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jour-sig{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ambre)}.jour-sig.ok{color:var(--vert)}.jour-sig svg{width:16px;height:16px}
@media(max-width:560px){.jour-c{flex-wrap:wrap}.jour-c .co{flex-basis:calc(100% - 64px)}.jour-sig{margin-left:62px}.jour-c .btn{margin-left:auto}}
/* Planning */
.sem{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.sem-j{background:var(--surface);border-radius:var(--r);box-shadow:var(--ombre);padding:10px;min-height:140px;display:flex;flex-direction:column;gap:8px;min-width:0}
.sem-j.auj{box-shadow:var(--ombre),inset 0 0 0 2px var(--acc)}
.sem-t{font-weight:800;font-size:13px;text-transform:capitalize}
.sem-c{text-align:left;border-radius:10px;background:#F7F9FC;border-left:4px solid var(--c);padding:8px 9px;display:flex;flex-direction:column;gap:2px;font-size:11.8px;color:var(--gris);min-width:0}
.sem-c b{color:var(--ink);font-size:12.8px;line-height:1.25}
.sem-c .h{font-weight:800;color:var(--c)}
.sem-c:hover{background:var(--acc-f)}
.sem-vide{color:var(--gris2);text-align:center;padding:20px 0}
@media(max-width:1000px){.sem{grid-template-columns:1fr}.sem-j{min-height:0}.sem-c{flex-direction:column}}
/* Catalogue */
.cat-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.cat-c{text-align:left;background:var(--surface);border-radius:var(--r);box-shadow:var(--ombre);padding:14px 16px;display:flex;flex-direction:column;gap:8px;border-top:4px solid var(--c);min-width:0}
.cat-c:hover{box-shadow:var(--ombre),inset 0 0 0 1.5px var(--trait)}
.cat-c.inactif{opacity:.55}
.cat-c>b{font-size:15px;line-height:1.3}
.cat-h{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;font-weight:800;color:var(--gris);text-transform:uppercase;letter-spacing:.04em}.cat-code{color:var(--c)}
.cat-m{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12.5px;color:var(--gris);align-items:center}.cat-m>span{display:inline-flex;align-items:center;gap:4px}.cat-m svg{width:14px;height:14px}
.cat-p{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.cat-p b{font-size:16px}.cat-p span{font-size:12px;color:var(--gris)}
.liste-o{margin:0;padding:0 16px 14px 34px;font-size:13.5px;line-height:1.55}
/* Émargement */
.em-choix{margin-bottom:12px}
.em-tete{display:flex;align-items:center;gap:14px;padding:14px 16px}
.em-tete .co{flex:1;min-width:0}.em-tete .p{font-weight:800;font-size:16px}.em-tete .s{font-size:13px;color:var(--gris)}
.em-cpt{text-align:center;background:var(--ambre-f);color:var(--ambre);border-radius:12px;padding:6px 14px}.em-cpt b{font-size:22px;display:block}.em-cpt span{font-size:11.5px;font-weight:700}
.em-cpt.ok{background:var(--vert-f);color:var(--vert)}
.em-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.em-c{position:relative;background:var(--surface);border-radius:14px;box-shadow:var(--ombre);padding:12px 14px;display:flex;flex-direction:column;gap:10px;min-height:120px;border-left:5px solid var(--trait)}
.em-c.form{border-left-color:var(--acc)}
.em-c.signe{border-left-color:var(--vert)}.em-c.absent{border-left-color:var(--rouge);background:#FFFBFB}
.em-n{padding-right:34px;min-width:0}.em-n b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.em-n span{font-size:12px;color:var(--gris)}
.em-c .btn.gros{width:100%}
.em-plus{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--gris)}
.sig{height:48px;width:auto;max-width:100%;display:block}
.emarg-l{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;padding:0 16px 14px}
.emarg-l>div{border:1px solid var(--trait2);border-radius:10px;padding:6px 8px;display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--gris);min-height:70px}
.emarg-l .sig{height:36px}
.sig-zone{position:relative;max-width:820px;margin:0 auto;background:#fff;border-radius:16px;box-shadow:inset 0 0 0 2px var(--trait)}
#sig-c{width:100%;height:min(46vh,340px);display:block;touch-action:none;border-radius:16px;cursor:crosshair}
.sig-l{position:absolute;left:0;right:0;bottom:22%;text-align:center;color:var(--gris2);pointer-events:none;border-top:1.5px dashed var(--trait);margin:0 40px;padding-top:6px;font-size:13px}
.liens{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto}
.liens>div{display:grid;grid-template-columns:180px 1fr;gap:8px;align-items:center;font-size:13px}
@media(max-width:560px){.liens>div{grid-template-columns:1fr}}
.k-calc{background:var(--acc-f);color:var(--acc-d);border-radius:10px;padding:10px 12px;font-size:13.5px}
.clo-l{display:grid;grid-template-columns:1fr 200px 1fr;gap:8px;align-items:center}
@media(max-width:700px){.clo-l{grid-template-columns:1fr 1fr}.clo-l>div{grid-column:1/-1}}
.q-l{padding:0 16px 14px;display:flex;flex-direction:column;gap:8px}
.q-l>div{display:grid;grid-template-columns:1fr 120px 34px;gap:10px;align-items:center;font-size:13px}
@media(max-width:520px){.q-l>div{grid-template-columns:1fr 60px 30px}}
.com{padding:10px 16px;border-top:1px solid var(--trait2);font-size:13.5px}.com span{display:block;font-size:12px;color:var(--gris);margin-top:3px}
.histo>div.auj-l{background:var(--acc-f);border-radius:8px;padding-left:6px}
@media(max-width:860px){.entete>.btn.pri{display:none}}
#contenu table.tab td:first-child{min-width:190px}
