/* Maquettes des dossiers des mondes : seuls les objets neufs. Tout descend des jetons de hud.css. */

/* ── La présentation (icônes, liste, aperçu), comme la barre d'outils d'un explorateur ── */
.presentation { display: flex; justify-content: flex-end; gap: 4px; margin: -28px 0 14px; }
.presentation button {
  --coupe: 6px;
  width: 30px; height: 26px; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--discret);
  background: none; box-shadow: inset 0 0 0 1px var(--structure);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
}
.presentation button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.presentation button:hover { color: var(--encre); box-shadow: inset 0 0 0 1px var(--structureVive); }
.presentation button.choisi { color: var(--encre); background: var(--creux); box-shadow: inset 0 0 0 1px var(--encre); }

/* ── A · des dossiers qui parlent ─────────────────────────────────────── */
.pochette__cadre { position: relative; display: block; }
.pochette__pastille {
  --coupe: 5px;
  position: absolute; top: 14px; right: 4px; min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: color-mix(in srgb, var(--signal) 16%, var(--panneau)); box-shadow: inset 0 0 0 1px var(--signal);
  font-size: 11px; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums;
}
.pochette__empire { font-size: 12px; color: var(--encre); letter-spacing: 0.3px; }
.pochette__empire small { color: var(--efface); font-size: 11px; }
.pochette__visite { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.vue-icones .pochette { gap: 6px; }
.vue-icones .pochette__mot { margin-bottom: 2px; }

/* ── B · la liste détaillée ───────────────────────────────────────────── */
.liste-mondes { width: 100%; border-collapse: collapse; margin-bottom: 44px; font-size: 13px; color: var(--encre); }
.liste-mondes th {
  padding: 0 12px 8px; text-align: left; font-weight: 500; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--efface);
  border-bottom: 1px solid var(--structureVive);
}
.liste-mondes td { padding: 0 12px; height: 46px; border-bottom: 1px solid color-mix(in srgb, var(--structure) 70%, transparent); white-space: nowrap; }
.liste-mondes tbody tr { cursor: default; }
.liste-mondes tbody tr:hover { background: color-mix(in srgb, var(--gris) 5%, transparent); }
.liste-mondes tbody tr.choisie { background: var(--creux); box-shadow: inset 2px 0 0 var(--encre); }
.liste-mondes tbody tr.eteinte { color: var(--efface); }
.liste-mondes .nom { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.liste-mondes .nom svg { width: 34px; height: 26px; overflow: visible; }
.liste-mondes .nom svg .pochette__rang { display: none; }
.liste-mondes .discret { color: var(--discret); }
.liste-mondes .signal { color: var(--signal); font-variant-numeric: tabular-nums; }
.liste-mondes .efface { color: var(--efface); }

/* ── C · l'aperçu, en volet ───────────────────────────────────────────── */
.vue-apercu { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.vue-apercu .session__rangee { gap: 18px 14px; }
.apercu {
  --coupe: 18px;
  position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px;
  background: color-mix(in srgb, var(--panneau) 88%, transparent);
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--structureVive), inset 0 2px 0 var(--accent);
}
.apercu > :not(canvas) { margin: 0 18px; }
.apercu canvas { display: block; width: calc(100% - 2px); height: 150px; margin: 2px 1px 0; border-bottom: 1px solid var(--structure); }
.apercu__etat { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.apercu__etat.signal { color: var(--signal); }
.apercu .serveur__nom { margin-top: -4px; }
.apercu__vide { padding: 40px 0; text-align: center; color: var(--efface); font-size: 12px; }

/* ── Le pupitre de la maquette (hors dessin) ─────────────────────────── */
.maquette {
  position: fixed; z-index: 3000; bottom: 16px; left: 16px; width: 300px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
  background: #0d0d0f; border: 1px dashed var(--signal); font-family: var(--texte); color: var(--encre);
}
.maquette h3 { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-family: var(--titre); font-weight: 400; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--signal); cursor: pointer; white-space: nowrap; }
.maquette.repli > :not(h3) { display: none; }
.maquette__rang { display: flex; flex-wrap: wrap; gap: 6px; }
.maquette button { border: 1px solid var(--structureVive); background: none; color: var(--discret); font-family: var(--texte); font-size: 11.5px; padding: 4px 8px; cursor: pointer; clip-path: none; width: auto; }
.maquette button.choisi { border-color: var(--signal); color: var(--encre); }
.maquette p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--discret); }
.maquette small { font-size: 11px; line-height: 1.4; color: var(--efface); }
