.coquille{display: flex;height: 100vh;overflow: hidden}
.lateral{width: var(--lateral);flex: none;background: var(--fond-lateral);border-right: 1px solid var(--bord);display: flex;flex-direction: column;transition: width .18s ease;overflow: hidden}
.lateral-haut{display: flex;align-items: center;gap: 8px;padding: 14px 12px 8px 16px;min-height: 56px}
.marque{display: flex;align-items: center;gap: 9px;font-family: var(--serif);font-size: 20px;font-weight: 500;color: var(--texte);white-space: nowrap}
.marque:hover{text-decoration: none}
.marque-logo{width: 26px;height: 26px;flex: none}
.lateral-haut .btn-ic{margin-left: auto}
.nav{padding: 0 10px;display: flex;flex-direction: column;gap: 1px}
.nav a{display: flex;align-items: center;gap: 11px;padding: 7px 10px;border-radius: var(--r-s);color: var(--texte-2);white-space: nowrap;font-size: 14px}
.nav a:hover{background: var(--surface-3);color: var(--texte);text-decoration: none}
.nav a[aria-current="page"]{background: var(--surface-3);color: var(--texte);font-weight: 550}
.nav .compte{margin-left: auto;font-size: 11.5px;background: var(--accent);color: #fff;border-radius: 10px;padding: 0 7px;line-height: 18px}
.lateral-titre{padding: 16px 20px 6px;font-size: 12px;color: var(--texte-3);white-space: nowrap}
.recents{padding: 0 10px;overflow-y: auto;flex: 1}
.recents a{display: block;padding: 6px 10px;border-radius: var(--r-s);color: var(--texte-2);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-size: 13.5px}
.recents a:hover{background: var(--surface-3);text-decoration: none}
.lateral-bas{border-top: 1px solid var(--bord);padding: 10px}
.moi{display: flex;align-items: center;gap: 10px;padding: 6px;border-radius: var(--r-m);color: var(--texte);white-space: nowrap}
.moi:hover,.moi[aria-current="page"]{background: var(--surface-3);text-decoration: none}
.moi .nom{font-weight: 550;font-size: 13.5px;line-height: 1.2}
.moi .role{font-size: 12px;color: var(--texte-3)}
button.moi{width: 100%;border: 0;background: transparent;text-align: left;font: inherit}
button.moi>svg{margin-left: auto;color: var(--texte-3)}
.lateral-bas{position: relative}
.menu-admin{position: absolute;left: 10px;right: 10px;bottom: calc(100% - 4px);background: var(--surface);border: 1px solid var(--bord-fort);border-radius: var(--r-m);box-shadow: var(--ombre-forte);padding: 6px;z-index: 60}
.menu-admin .menu-titre{font-size: 11.5px;color: var(--texte-3);padding: 8px 10px 4px}
.menu-admin a{display: flex;gap: 10px;align-items: flex-start;padding: 7px 10px;border-radius: var(--r-s);color: var(--texte)}
.menu-admin a:hover{background: var(--surface-3);text-decoration: none}
.menu-admin a svg{margin-top: 2px;color: var(--texte-2)}
.menu-admin b{display: block;font-weight: 550;font-size: 13.5px}
.menu-admin small{display: block;color: var(--texte-3);font-size: 12px}
.lateral .lateral-titre{padding: 12px 20px 4px}
.projets-nav{padding-left: 24px;margin-top: 2px}
.projets-nav a{display: flex;align-items: center;gap: 8px;font-size: 13px;padding: 5px 10px}
.projets-nav a[aria-current="page"]{background: var(--surface-3);color: var(--texte);font-weight: 550}
.projets-nav{flex: 0 1 auto}
.nav-principale{margin-top: 4px}
.lateral-vide{flex: 1}
.pastille-p{width: 7px;height: 7px;border-radius: 50%;background: var(--bord-fort);flex: none}
.projets-nav a:first-child .pastille-p{background: var(--accent)}
.lat-avert-signe{flex: none;width: 8px;height: 8px;border-radius: 50%;background: var(--att);margin: -14px -3px 0 -16px;box-shadow: 0 0 0 2px var(--fond-lateral)}
.projets-nav .lat-avert{margin: 6px 10px 2px 10px;font-size: 12px;line-height: 1.35;color: var(--att)}
.ecran.replie .lateral{width: var(--lateral-replie)}
.ecran.replie .lateral .txt,.ecran.replie .lateral-titre,.ecran.replie .recents,.ecran.replie button.moi>svg,.ecran.replie .nav .compte,.ecran.replie .marque span{display: none}
.ecran.replie .lateral-haut{padding: 14px 10px 8px;justify-content: center;flex-direction: column;gap: 6px}
.ecran.replie .lateral-haut .btn-ic{margin: 0}
.ecran.replie .nouvelle{justify-content: center;padding: 8px 0;margin: 4px 6px 10px}
.ecran.replie .nav{padding: 0 6px}
.ecran.replie .nav a{justify-content: center;padding: 9px 0}
.ecran.replie .moi{justify-content: center}
.ecran.replie .lateral-bas .moi>div{display: none}
.principal{flex: 1;min-width: 0;display: flex;flex-direction: column;overflow: hidden}
.barre-haut{display: flex;align-items: center;gap: 10px;padding: 10px 20px;min-height: 56px;border-bottom: 1px solid transparent}
.barre-haut.bordee{border-bottom-color: var(--bord)}
.projet-choix{display: inline-flex;align-items: center;gap: 8px;padding: 6px 10px;border-radius: var(--r-s);border: 0;background: transparent;font-weight: 550;color: var(--texte)}
.projet-choix:hover{background: var(--surface-3)}
.projet-choix .pastille{width: 9px;height: 9px;border-radius: 3px;background: var(--accent)}
.barre-haut .droite{margin-left: auto;display: flex;align-items: center;gap: 8px}
.contenu{flex: 1;overflow-y: auto}
.presence{display: flex;align-items: center}
.presence .avatar + .avatar{margin-left: -5px}
/* Présence en direct (lot G1, EX-36) : point « en direct », avatars, fenêtre « Sur ce projet en ce moment » */
.presence{position: relative;cursor: pointer}
.presence[hidden]{display: none}
.pres-pt{width: 7px;height: 7px;border-radius: 50%;background: var(--ok);margin-right: 6px;box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent)}
.pres-pop{position: absolute;top: calc(100% + 8px);right: 0;z-index: 30;min-width: 240px;max-width: min(320px, 90vw);display: flex;flex-direction: column;gap: 8px;padding: 12px;background: var(--surface);border: 1px solid var(--bord);border-radius: var(--r-s);box-shadow: 0 8px 24px rgba(0,0,0,.12);cursor: default}
.pres-pop[hidden]{display: none}
.pres-l{gap: 8px;align-items: center}
.av-autre{background: #7a6a58}
section.ecran{display:flex;height:100vh;overflow:hidden}
section.ecran[hidden]{display:none!important}
#vue,.vue-ecran{display:contents}
.ecran.sans-coque>.lateral,.ecran.sans-coque .barre-haut{display:none}
.ecran.sans-coque .principal{margin-left:0}
/* Barre du haut (EX-19) : compteur « Vous attendent » sur la cloche ; bouton « N au travail · M documents en
   génération » et sa liste (components/activite.js), la même que « Ce qui tourne » de l'Accueil. */
.cloche{position: relative}
.compte-cloche{position: absolute;top: 1px;right: 0;min-width: 16px;height: 16px;padding: 0 4px;border-radius: 8px;background: var(--accent);color: #fff;font-size: 10.5px;font-weight: 650;line-height: 16px;text-align: center;pointer-events: none}
.compte-cloche[hidden]{display: none}
.activite-btn{display: inline-flex;align-items: center;gap: 6px;border: 1px solid var(--bord);background: var(--surface);color: var(--texte-2);font: inherit;font-size: 12.5px;line-height: 20px;padding: 3px 10px;border-radius: 999px;cursor: pointer;white-space: nowrap}
.activite-btn:hover,.activite-btn[aria-expanded="true"]{color: var(--texte);border-color: var(--bord-fort)}
.activite-btn b{font-weight: 650;color: var(--texte)}
.activite-btn .anime-point,.pop-activite .anime-point{width: 7px;height: 7px;border-radius: 50%;background: var(--ok);flex: none;animation: pouls 1.8s infinite}
.pop-activite{position: fixed;z-index: 70;width: min(420px,calc(100vw - 16px));max-height: min(70vh,560px);overflow-y: auto;background: var(--surface);border: 1px solid var(--bord-fort);border-radius: var(--r-m);box-shadow: var(--ombre-forte);padding: 10px 14px;color: var(--texte)}
.pop-activite[hidden]{display: none}
.pop-activite .act-t{display: flex;gap: 6px;align-items: center;font-weight: 600;font-size: 13px;margin: 6px 0 4px}
.pop-activite .act-doc{display: flex;gap: 8px;align-items: center;font-size: 13px;padding: 4px 0 4px 4px;color: var(--texte)}
.pop-activite .act-doc:hover{text-decoration: none;background: var(--surface-2)}
.pop-activite .act-n{flex: 1;min-width: 0;overflow-wrap: anywhere}
.pop-activite .act-roue{width: 12px;height: 12px;border-radius: 50%;border: 2px solid var(--bord-fort);border-top-color: var(--accent);flex: none;animation: tourne 1s linear infinite}
.pop-activite .act-mini{width: 56px;height: 5px;border-radius: 3px;background: var(--surface-3);flex: none;overflow: hidden}
.pop-activite .act-mini i{display: block;height: 100%;background: var(--accent)}
.pop-activite .act-pied{margin: 8px 0 0}
@keyframes tourne{to{transform: rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.activite-btn .anime-point,.pop-activite .anime-point,.pop-activite .act-roue{animation: none}}
/* « Ce qui tourne » (EX-27 a) : chaque ligne est un lien vers la session ou l'onglet de son projet. */
a.run-s{color: var(--texte);border-radius: var(--r-s)}
a.run-s:hover{text-decoration: none;background: var(--surface-2)}
.p-projet .proj-tete .explication,.p-atelier .at-tete .explication{margin: 2px 0 10px;font-size: 14px;color: var(--texte-3)}
