:root{
  --fond:#0f172a; --carte:#1e293b; --bord:#334155; --texte:#e2e8f0; --doux:#94a3b8;
  --serveur:#2563eb; --serveur-f:#1e3a8a; --local:#16a34a; --local-f:#14532d;
  --humain:#a855f7; --ok:#22c55e; --echec:#ef4444; --attente:#64748b; --cours:#f59e0b;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--fond);color:var(--texte);
  font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
a{color:#93c5fd}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:.6rem;
  padding:.7rem 1rem;background:rgba(15,23,42,.95);border-bottom:1px solid var(--bord);backdrop-filter:blur(6px)}
.top h1{font-size:1.1rem;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.retour{text-decoration:none;font-size:1.4rem;color:var(--texte);padding:0 .3rem}
.maj{font-size:.75rem;color:var(--doux)}
.pied{text-align:center;padding:1.5rem;font-size:.85rem}
.vide{color:var(--doux);text-align:center;padding:2rem 1rem}

/* accueil */
.liste{padding:.8rem;display:grid;gap:.7rem;max-width:900px;margin:0 auto}
.projet{display:block;text-decoration:none;color:inherit;background:var(--carte);
  border:1px solid var(--bord);border-left:5px solid var(--attente);border-radius:12px;padding:.85rem 1rem}
.projet.t-serveur{border-left-color:var(--serveur)}
.projet.t-local{border-left-color:var(--local)}
.projet h2{margin:0 0 .15rem;font-size:1.05rem}
.projet .slug{color:var(--doux);font-size:.8rem;font-family:ui-monospace,monospace}
.badges{display:flex;flex-wrap:wrap;gap:.4rem;margin:.55rem 0 .35rem}
.badge{display:inline-block;padding:.2rem .6rem;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}
.b-serveur{background:var(--serveur);color:#fff}
.b-local{background:var(--local);color:#fff}
.b-en_cours{background:var(--cours);color:#111}
.b-en_attente{background:var(--attente);color:#fff}
.b-ok{background:var(--ok);color:#052e16}
.b-echec{background:var(--echec);color:#fff}
.b-type{background:#0b1220;color:var(--doux);border:1px solid var(--bord)}
.meta{font-size:.8rem;color:var(--doux)}

/* page projet */
.entete{padding:.7rem 1rem;border-bottom:1px solid var(--bord);max-width:900px;margin:0 auto}
.entete .depot{font-size:.8rem;word-break:break-all}
.fil{padding:.8rem .6rem 4rem;display:flex;flex-direction:column;gap:.7rem;max-width:900px;margin:0 auto}
.msg{max-width:92%;border-radius:14px;padding:.6rem .8rem;border:1px solid var(--bord);background:var(--carte);min-width:0}
.msg.a-serveur{align-self:flex-start;background:var(--serveur-f);border-color:#1d4ed8;border-bottom-left-radius:4px}
.msg.a-local{align-self:flex-end;background:var(--local-f);border-color:#15803d;border-bottom-right-radius:4px}
.msg.a-humain{align-self:center;background:#3b0764;border-color:var(--humain);max-width:96%}
.msg.ty-erreur{box-shadow:0 0 0 2px var(--echec)}
.msg .tete{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;font-size:.78rem;color:#cbd5e1;margin-bottom:.35rem}
.msg .auteur{font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.msg .date{margin-left:auto;color:var(--doux)}
.msg .refs{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem;font-size:.75rem}
.msg .refs code{background:rgba(0,0,0,.35);padding:.1rem .4rem;border-radius:6px}
.corps{overflow-wrap:anywhere;font-size:.95rem}
.corps>:first-child{margin-top:0}.corps>:last-child{margin-bottom:0}
.corps h1,.corps h2,.corps h3,.corps h4{font-size:1rem;margin:.7rem 0 .3rem}
.corps p{margin:.4rem 0}
.corps ul,.corps ol{margin:.3rem 0;padding-left:1.3rem}
.corps blockquote{margin:.4rem 0;padding-left:.7rem;border-left:3px solid var(--doux);color:#cbd5e1}
.corps code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em;background:rgba(0,0,0,.35);padding:.05rem .3rem;border-radius:4px}
.corps pre{margin:.4rem 0;background:#020617;border:1px solid var(--bord);border-radius:8px;padding:.55rem;overflow:auto;max-height:60vh}
.corps pre code{background:none;padding:0;font-size:.78rem;white-space:pre}
.corps details{margin:.4rem 0;border:1px solid var(--bord);border-radius:8px;background:rgba(0,0,0,.25)}
.corps details>summary{cursor:pointer;padding:.45rem .6rem;font-size:.85rem;color:#cbd5e1;user-select:none}
.corps details>pre{margin:0;border:0;border-top:1px solid var(--bord);border-radius:0 0 8px 8px}
.corps table{border-collapse:collapse;font-size:.85rem;display:block;overflow:auto}
.corps td,.corps th{border:1px solid var(--bord);padding:.2rem .4rem}
.corps hr{border:0;border-top:1px solid var(--bord)}
.bas{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);z-index:6;
  background:var(--serveur);color:#fff;border:0;border-radius:999px;padding:.6rem 1.1rem;font-size:.9rem;box-shadow:0 4px 14px rgba(0,0,0,.5)}
@media (min-width:700px){.msg{max-width:78%}}
