:root { --purple: #4c2b8f; --purple-dark: #3a2070; --bg: #ffffff; --panel-bg: #f6f6f6; --tile-bg: #efefef; --tile-hover: #e2e2e2; --text: #1a1a1a; --muted: #6b6b6b; --border: #dcdcdc; --danger: #c0392b; } * { box-sizing: border-box; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); } .editor-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10; } .editor-topbar h1 { font-size: 18px; margin: 0; } .editor-actions { display: flex; align-items: center; gap: 12px; } .status { font-size: 13px; color: var(--muted); min-width: 90px; text-align: right; } .status.saved { color: #2f855a; } .status.error { color: var(--danger); } .btn { display: inline-block; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 2px solid transparent; background: none; font-family: inherit; } .btn-primary { background: var(--purple); color: #fff; } .btn-primary:hover { background: var(--purple-dark); } .btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); } .btn:disabled { opacity: 0.4; cursor: default; } #editor-root { max-width: 1500px; margin: 0 auto; padding: 24px; } .editor-layout { display: flex; align-items: flex-start; gap: 24px; } .editor-center { flex: 1; min-width: 0; } .catalog-column { width: 200px; flex-shrink: 0; position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 4px; } .catalog-column h2 { font-size: 13px; color: var(--muted); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; } .catalog-message { font-size: 13px; color: var(--muted); } .catalog-error { color: var(--danger); } .catalog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; } .catalog-tile { cursor: grab; background: var(--panel-bg); border: 1px dashed var(--border); } .catalog-tile:hover { border-color: var(--purple); } .catalog-tile .tile-icon { width: 44px; height: 44px; font-size: 14px; } .catalog-tile .tile-name { font-size: 11px; } @media (max-width: 1100px) { .catalog-column { display: none; } } .group-card { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; padding: 14px 16px 16px; } .group-card.drag-over { outline: 2px dashed var(--purple); outline-offset: 4px; } .group-card.dragging { opacity: 0.4; } .group-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .drag-handle { cursor: grab; color: var(--muted); font-size: 18px; user-select: none; padding: 2px 4px; } .group-name-input { font-size: 16px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 8px; border-radius: 6px; flex: 1; min-width: 0; } .group-name-input:hover, .group-name-input:focus { border-color: var(--border); background: #fff; outline: none; } .group-collapsed-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; } .icon-btn { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 16px; padding: 4px 6px; border-radius: 6px; line-height: 1; } .icon-btn:hover { background: var(--tile-hover); color: var(--danger); } .tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; min-height: 96px; } .tile-grid.drag-over { background: rgba(76, 43, 143, 0.06); border-radius: 10px; } .app-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: 12px; background: var(--tile-bg); cursor: grab; text-align: center; } .app-tile.dragging { opacity: 0.35; } .app-tile .remove-btn { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; } .app-tile .remove-btn:hover { background: var(--danger); } .tile-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; overflow: hidden; } .tile-icon img { width: 100%; height: 100%; object-fit: cover; } .tile-name { font-size: 12px; line-height: 1.25; word-break: break-word; } .add-tile { display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 2px dashed var(--border); min-height: 96px; cursor: pointer; color: var(--muted); font-size: 28px; background: transparent; } .add-tile:hover { border-color: var(--purple); color: var(--purple); } .ungrouped-section { margin-top: 32px; padding-top: 16px; border-top: 2px solid var(--border); } .ungrouped-section h2 { font-size: 15px; color: var(--muted); margin: 0 0 12px; } .pinned-section { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--border); } .pinned-section h2 { font-size: 15px; color: var(--muted); margin: 0 0 12px; } .add-group-btn { display: block; width: 100%; padding: 14px; border-radius: 12px; border: 2px dashed var(--border); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; } .add-group-btn:hover { border-color: var(--purple); color: var(--purple); } .app-form-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; z-index: 100; } .app-form { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; } .app-form h3 { margin: 0 0 4px; font-size: 16px; } .app-form label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; } .app-form input { font-family: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); } .app-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; } /* --- Apercu en direct (iframe en bas d'ecran) --- */ .preview-drawer { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: 45vh; flex-direction: column; border-top: 2px solid var(--purple); background: var(--bg); z-index: 20; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); } body[data-preview="open"] .preview-drawer { display: flex; } body[data-preview="open"] #editor-root { padding-bottom: 46vh; } #preview-toggle[aria-pressed="true"] { background: var(--purple); color: #fff; } .preview-bar { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; font-size: 12px; color: var(--muted); background: var(--panel-bg); border-bottom: 1px solid var(--border); } .preview-bar a { color: var(--purple); text-decoration: none; white-space: nowrap; } #preview-frame { flex: 1; width: 100%; border: 0; } .access-denied { max-width: 560px; margin: 64px auto; padding: 24px; text-align: center; color: var(--muted); background: var(--panel-bg); border-radius: 12px; } [hidden] { display: none !important; }