/* Écran provisoire PEDAGO. Palette du rapport : vert profond, sauge, ivoire, accent doré. */
:root {
  --vert: #1f4d3a; --vert-clair: #2f6a52; --sauge: #8fb3a0; --sauge-pale: #e3ede7;
  --ivoire: #f7f5ee; --papier: #ffffff; --encre: #1d2621; --discret: #5d6b63; --trait: #d9dfd9;
  --dore: #b8913a; --alerte: #b5452a; --ok: #2f6a52;
  --rayon: 10px; --ombre: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(31,77,58,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ivoire); color: var(--encre); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; color: var(--vert); }
h2 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; color: var(--vert); }
a { color: var(--vert-clair); }
[hidden] { display: none !important; }
button, .bouton { font: inherit; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); padding: .45rem .8rem;
  border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .bouton:hover { border-color: var(--sauge); }
button.principal { background: var(--vert); color: #fff; border-color: var(--vert); }
button.principal:hover { background: var(--vert-clair); }
button.discret, .discret { color: var(--discret); }
button.discret { background: transparent; border-color: transparent; }
input, select, textarea { font: inherit; padding: .45rem .6rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier); color: var(--encre); max-width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--sauge); outline-offset: 1px; }
.centre { text-align: center; }
.erreur { color: var(--alerte); min-height: 1.2em; }

.ecran-connexion { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.connexion { width: min(380px, 100%); display: flex; flex-direction: column; gap: .75rem; }
.connexion label { display: flex; flex-direction: column; gap: .25rem; }
.marque { font-weight: 700; letter-spacing: .08em; color: var(--vert); display: flex; align-items: center; gap: .5rem; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--vert); color: var(--ivoire);
  font-weight: 700; box-shadow: inset 0 -3px 0 var(--dore); }

.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.1rem; box-shadow: var(--ombre); }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

#appli { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.barre { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--papier); border-bottom: 1px solid var(--trait); }
.barre .utilisateur { margin-left: auto; color: var(--discret); }
.menu-mobile { display: none; }
.navigation { background: var(--vert); padding: 1rem .5rem; display: flex; flex-direction: column; gap: .15rem; }
.navigation a { color: #e8efe9; text-decoration: none; padding: .5rem .75rem; border-radius: 8px; }
.navigation a:hover { background: rgba(255,255,255,.08); }
.navigation a.actif { background: var(--ivoire); color: var(--vert); font-weight: 600; box-shadow: inset 3px 0 0 var(--dore); }
.navigation .phase { margin-top: auto; color: var(--sauge); font-size: .8rem; padding: .5rem .75rem; }
main { padding: 1.25rem; min-width: 0; }
section[data-vue] { max-width: 1100px; }

.entete-section { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.recherche input { width: 100%; margin: .5rem 0; }
.ariane { display: flex; flex-wrap: wrap; gap: .25rem; margin: .25rem 0 .75rem; color: var(--discret); }
.ariane a { cursor: pointer; }
.zone-depot { border: 2px dashed transparent; border-radius: var(--rayon); }
.zone-depot.survol { border-color: var(--sauge); background: var(--sauge-pale); }
table.liste { width: 100%; border-collapse: collapse; background: var(--papier); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.liste th, .liste td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.liste th { font-weight: 600; color: var(--discret); font-size: .85rem; background: #fbfaf6; }
.liste td.outils { text-align: right; white-space: nowrap; }
.liste .nom { cursor: pointer; color: var(--encre); font-weight: 500; }
.liste .nom::before { content: ""; display: inline-block; width: 14px; height: 17px; margin-right: .55rem; vertical-align: -3px;
  border: 1.5px solid var(--sauge); border-radius: 2px 6px 2px 2px; background: var(--papier); }
.liste .nom[data-type=dossier]::before { width: 17px; height: 13px; vertical-align: -1px; border: 0; border-radius: 2px;
  background: var(--dore); box-shadow: inset 0 3px 0 rgba(255,255,255,.35); }
.liste .nom[data-type=pdf]::before { border-color: var(--alerte); }
.liste .nom[data-type=image]::before { border-color: var(--vert-clair); background: var(--sauge-pale); }
.etat { font-size: .8rem; padding: .1rem .45rem; border-radius: 999px; background: var(--sauge-pale); color: var(--vert); }
.etat.alerte { background: #f6e3dc; color: var(--alerte); }

.panneau { position: fixed; top: 0; right: 0; width: min(560px, 100%); height: 100vh; overflow: auto; background: var(--papier);
  border-left: 1px solid var(--trait); box-shadow: -8px 0 24px rgba(0,0,0,.08); padding: 1rem; z-index: 5; }
.panneau iframe, .panneau img { width: 100%; border: 1px solid var(--trait); border-radius: 8px; }
.panneau iframe { height: 70vh; }
.panneau textarea { width: 100%; min-height: 50vh; font-family: ui-monospace, monospace; font-size: .9rem; }
.panneau pre { white-space: pre-wrap; background: var(--ivoire); padding: .75rem; border-radius: 8px; }

.ecran-lia { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; height: calc(100vh - 120px); }
.conversations ul { list-style: none; padding: 0; margin: .75rem 0; display: flex; flex-direction: column; gap: .2rem; }
.conversations li { padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.conversations li.actif, .conversations li:hover { background: var(--sauge-pale); }
.discussion { display: flex; flex-direction: column; min-width: 0; }
.fil { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .75rem; padding: .25rem; }
.bulle { max-width: 85%; padding: .7rem .9rem; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.utilisateur { align-self: flex-end; background: var(--vert); color: #fff; }
.bulle.lia { align-self: flex-start; background: var(--papier); border: 1px solid var(--trait); }
.bulle .sources { margin-top: .5rem; font-size: .8rem; color: var(--discret); }
.question { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.question textarea { width: 100%; resize: vertical; }
.question .actions input { flex: 1; min-width: 160px; }
.joints { display: flex; flex-wrap: wrap; gap: .35rem; }
.joints span { background: var(--sauge-pale); border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; }
.joints button { border: 0; background: none; padding: 0 0 0 .3rem; }
.propositions { list-style: none; padding: 0; margin: 0; }
.propositions li { padding: .35rem .5rem; cursor: pointer; border-radius: 6px; }
.propositions li:hover { background: var(--sauge-pale); }

.formulaire { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-top: .75rem; }
.formulaire label { display: flex; flex-direction: column; gap: .2rem; min-width: 200px; flex: 1; }
.ligne { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.ligne input { flex: 1; min-width: 180px; }
ul.simple { padding-left: 1.1rem; }
details summary { cursor: pointer; font-weight: 600; color: var(--vert); }
.jauge { height: 10px; border-radius: 999px; background: var(--sauge-pale); overflow: hidden; margin: .5rem 0; }
.jauge span { display: block; height: 100%; background: var(--vert-clair); width: 0; }
.message { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--encre); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; max-width: calc(100% - 32px); z-index: 10; }
.message.alerte { background: var(--alerte); }

@media (max-width: 760px) {
  #appli { grid-template-columns: 1fr; }
  .menu-mobile { display: inline-block; }
  .barre .utilisateur, #deconnexion { display: none; }
  .barre select { max-width: 45vw; }
  .navigation { display: none; }
  .navigation.ouvert { display: flex; }
  main { padding: 1rem 16px; }
  .large { display: none; }
  .ecran-lia { grid-template-columns: 1fr; height: auto; }
  .fil { min-height: 40vh; }
  .liste th, .liste td { padding: .5rem .45rem; }
}
