/* Pupitre — sobre, lisible, sans framework. */
:root {
  --encre: #1c2430;
  --encre-douce: #55606e;
  --papier: #f7f8fa;
  --papier-2: #ffffff;
  --filet: #d8dde3;
  --accent: #1f6feb;
  --erreur: #b42318;
  --ok: #14713d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
  color: var(--encre);
  background: var(--papier);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: min(680px, 92%); margin: 1.2rem auto; }
h1 { font-size: 1.5rem; margin: 0.4rem 0 0.8rem; }
h2 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; }

.barre {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1rem; background: var(--papier-2);
  border-bottom: 1px solid var(--filet);
}
.barre a { color: var(--encre); text-decoration: none; font-weight: 600; }
.barre .fil { display: flex; gap: 0.6rem; align-items: center; }
.barre .qui { color: var(--encre-douce); }
.enligne { display: inline; margin: 0; }
button.lien {
  background: none; border: none; padding: 0; color: var(--accent);
  cursor: pointer; font: inherit; text-decoration: underline;
}

.carte {
  background: var(--papier-2); border: 1px solid var(--filet); border-radius: 6px;
  padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem;
  max-width: 26rem;
}
label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
input, select {
  font: inherit; padding: 0.45rem 0.6rem;
  border: 1px solid var(--filet); border-radius: 4px; background: var(--papier);
}
input:focus, select:focus, button:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button[type="submit"] {
  font: inherit; font-weight: 600; padding: 0.5rem 0.9rem; cursor: pointer;
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  align-self: flex-start;
}

.erreur { color: var(--erreur); font-weight: 600; }
.ok { color: var(--ok); }
.note { color: var(--encre-douce); font-size: 0.92rem; }
.code { font-family: ui-monospace, Consolas, monospace; }

table { border-collapse: collapse; width: 100%; background: var(--papier-2); }
th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--filet); }

footer {
  padding: 0.8rem 1rem; color: var(--encre-douce); font-size: 0.9rem;
  border-top: 1px solid var(--filet);
}
footer a { color: var(--encre-douce); }

/* ---- P1 : projets, annonces, messages, agenda, fichiers ---- */
section { margin: 1.4rem 0; }
details.carte { margin: 0.6rem 0; }
details.carte summary { cursor: pointer; font-weight: 600; }
details.carte form { margin-top: 0.6rem; }
.carte-large { max-width: 100%; }
textarea { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--filet);
  border-radius: 4px; background: var(--papier); width: 100%; }
.quand { color: var(--encre-douce); font-size: 0.85rem; }

.annonce { background: var(--papier-2); border-left: 3px solid var(--accent);
  padding: 0.6rem 0.9rem; margin: 0.5rem 0; border-radius: 2px; }
.annonce h3 { margin: 0 0 0.3rem; font-size: 1rem; }

.fil-messages { display: flex; flex-direction: column; gap: 0.4rem; }
.message { background: var(--papier-2); border: 1px solid var(--filet);
  border-radius: 6px; padding: 0.45rem 0.7rem; margin: 0; }
.message.supprime { color: var(--encre-douce); font-style: italic;
  background: none; border-style: dashed; }

.etat-fait td { color: var(--encre-douce); text-decoration: line-through; }
.etat-fait td:last-child { text-decoration: none; }

.tableau-large { overflow-x: auto; }
.calendrier td { width: 14%; height: 3.2rem; vertical-align: top;
  border: 1px solid var(--filet); padding: 0.25rem 0.4rem; }
.calendrier .hors-mois { color: var(--filet); background: var(--papier); }
.calendrier .aujourdhui { outline: 2px solid var(--accent); outline-offset: -2px; }
.pastilles { display: block; color: var(--accent); letter-spacing: 2px; }
.nav-mois a { text-decoration: none; font-size: 1.2rem; padding: 0 0.5rem; }

.fichiers li, .agenda-liste li, .projets li, .membres li { margin: 0.25rem 0; }
.ia { white-space: pre-wrap; font-family: inherit; margin: 0 0 0.4rem; }
.reponse-ia { border-left: 3px solid var(--accent); }
.question-ia { background: var(--papier); }
.rappel-ia { color: var(--encre-douce); font-size: 0.82rem; margin: 0.4rem 0 0; border-top: 1px dashed var(--filet); padding-top: 0.3rem; }

/* --- P4 : traducteur et parcours ------------------------------------------- */
.colonnes { display: flex; gap: 1rem; flex-wrap: wrap; }
.colonnes > div { flex: 1 1 260px; min-width: 0; }
.colonnes pre { overflow-x: auto; }
.ladder { max-width: 100%; height: auto; color: var(--encre); }
.cartes { list-style: none; padding: 0; display: grid;
          grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
          gap: 0.8rem; }
.jauge { display: inline-block; width: 140px; height: 10px; vertical-align: middle;
         background: var(--filet); border-radius: 5px; overflow: hidden; }
.jauge-plein { display: block; height: 100%; background: var(--accent); }
.etape.faite h2 { color: var(--encre-douce); }
.etape.faite { border-left: 3px solid var(--accent); }
button.discret { background: none; border: none; color: var(--encre-douce);
                 cursor: pointer; text-decoration: underline; padding: 0; }
