/* Plugin: office — fenêtre flottante DOCX (palette dark EdenALOS). */

.office-float-window {
  position: fixed;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 28, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(88, 200, 255, 0.14);
  overflow: hidden;
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  color: var(--fg, #cdd6f4);
  animation: office-win-in 0.18s ease-out;
}
@keyframes office-win-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.office-float-window.office-float-window-maximized { border-radius: 0; box-shadow: none; }
.office-float-window.office-float-fullscreen { border-radius: 0; border: none; box-shadow: none; }

/* Titlebar (factorisée par Eden.shell) */
.office-float-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.office-float-window-titlebar:active { cursor: grabbing; }
.office-float-window-titlebar-left {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1;
}
.office-float-window-title {
  font-size: 13px; font-weight: 600;
  color: var(--fg, #cdd6f4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.01em;
  margin-left: 6px;
}

/* Boutons titlebar extra (download) */
.office-actions {
  display: flex; gap: 4px;
  flex-shrink: 0;
  margin-left: 10px;
}
.office-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--fg, #cdd6f4);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  padding: 0;
}
.office-action:hover {
  background: rgba(88, 200, 255, 0.14);
  border-color: rgba(88, 200, 255, 0.32);
  color: #a8d4ff;
}

/* Body — surface "papier" sombre, prose lisible */
.office-float-window-body {
  flex: 1;
  overflow: auto;
  background: #1a1a1a;
  padding: 24px;
}
.office-doc {
  max-width: 820px;
  margin: 0 auto;
  background: #f5f1e8;
  color: #1a1a1a;
  padding: 56px 72px;
  border-radius: 4px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  font-family: 'Calibri', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 300px;
}
.office-doc h1 { font-size: 26px; margin: 0 0 14px; font-weight: 700; }
.office-doc h2 { font-size: 20px; margin: 22px 0 10px; font-weight: 700; }
.office-doc h3 { font-size: 17px; margin: 18px 0 8px; font-weight: 600; }
.office-doc h4, .office-doc h5, .office-doc h6 { font-size: 15px; margin: 14px 0 6px; font-weight: 600; }
.office-doc p { margin: 0 0 10px; }
.office-doc ul, .office-doc ol { margin: 0 0 12px; padding-left: 28px; }
.office-doc li { margin: 2px 0; }
.office-doc a { color: #1a4ea8; text-decoration: underline; }
.office-doc img { max-width: 100%; height: auto; }
.office-doc table {
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.office-doc th, .office-doc td {
  border: 1px solid #c9c2b3;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
.office-doc th { background: #ebe5d4; font-weight: 600; }
.office-doc blockquote {
  margin: 10px 0;
  padding: 6px 14px;
  border-left: 3px solid #b9a87c;
  color: #444;
  background: rgba(0, 0, 0, 0.02);
}
.office-doc pre {
  background: #2a2a2a;
  color: #f5f1e8;
  padding: 12px 14px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
}
.office-doc code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.office-doc hr {
  border: 0;
  border-top: 1px solid #c9c2b3;
  margin: 18px 0;
}
