/* Page « Notes » : mur infini, une couleur nommée par note, plusieurs feuilles (préfixe `nt-`) */

.nt {
    --nt-line: rgba(255, 255, 255, 0.1);
    --nt-text: #eceef2;
    --nt-muted: #9aa1ad;
    --nt-accent: #7aa7ff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100vh;
    min-height: 560px;
    padding: 18px 22px 22px;
    color: var(--nt-text);
}
.nt [hidden] { display: none !important; }
.nt button { font-family: inherit; cursor: pointer; }

/* ---------- en-tête ---------- */
.nt-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.nt-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; border: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75); }
.nt-title i { color: var(--nt-accent); font-size: 1.6rem; }
.nt-sheets { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; margin-bottom: -13px; position: relative; z-index: 2; }
.nt-sheet { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--nt-muted); background: rgba(24, 25, 30, 0.75); border: 1px solid var(--nt-line); border-bottom: 0; border-radius: 11px 11px 0 0; transition: color 0.12s, background-color 0.12s; }
.nt-sheet:hover { color: #fff; }
.nt-sheet.is-on { color: #fff; background: #101218; border-color: rgba(122, 167, 255, 0.5); }
.nt-sheet .nt-n { font-size: 11px; font-weight: 600; padding: 0 7px; background: rgba(255, 255, 255, 0.1); border-radius: 99px; }
.nt-sheet .nt-x { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 13px; border-radius: 6px; color: var(--nt-muted); }
.nt-sheet .nt-x:hover { color: #fff; background: #c0392b; }
.nt-sheet.nt-add { color: var(--nt-accent); border-style: dashed; padding: 0 12px; }
.nt-sheet-input { width: 140px; height: 28px; margin-bottom: 4px; padding: 0 9px; font-size: 13px; color: #fff; background: #0e1014; border: 1px solid var(--nt-accent); border-radius: 8px; outline: none; }
.nt-right { display: flex; gap: 8px; margin-left: auto; }
.nt-primary, .nt-ghost { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; font-size: 13.5px; font-weight: 700; border-radius: 10px; border: 0; }
.nt-primary { color: #0b1220; background: var(--nt-accent); box-shadow: 0 6px 18px -6px rgba(122, 167, 255, 0.7); transition: background-color 0.15s, transform 0.1s; }
.nt-primary:hover { background: #9dbfff; }
.nt-primary:active { transform: scale(0.97); }
.nt-ghost { font-weight: 600; color: var(--nt-text); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--nt-line); }
.nt-ghost:hover { background: rgba(255, 255, 255, 0.13); }
.nt-primary i, .nt-ghost i { font-size: 17px; }

/* ---------- canevas ---------- */
.nt-canvas {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1px) 0 0 / 22px 22px, rgba(14, 16, 21, 0.82);
    border: 1px solid var(--nt-line);
    border-radius: 16px;
    cursor: grab;
}
.nt-canvas.is-panning { cursor: grabbing; }
.nt-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.nt-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--nt-muted); background: rgba(14, 16, 21, 0.6); z-index: 20; }
.nt-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--nt-muted); pointer-events: none; }
.nt-empty i { font-size: 38px; color: rgba(255, 255, 255, 0.25); }
.nt-empty b { color: #fff; }

.nt-zoom { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 3px; z-index: 30; cursor: default; background: rgba(10, 12, 16, 0.88); border: 1px solid var(--nt-line); border-radius: 11px; }
.nt-zoom button { display: grid; place-items: center; width: 30px; height: 30px; font-size: 16px; color: var(--nt-muted); background: none; border: 0; border-radius: 8px; }
.nt-zoom button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nt-zoom span { min-width: 44px; text-align: center; font-size: 12px; color: var(--nt-muted); }
.nt-mini { position: absolute; right: 12px; bottom: 12px; width: 170px; height: 110px; z-index: 30; overflow: hidden; cursor: pointer; background: rgba(10, 12, 16, 0.88); border: 1px solid var(--nt-line); border-radius: 11px; }
.nt-mini i { position: absolute; background: var(--c); opacity: 0.85; border-radius: 2px; }
.nt-mini b { position: absolute; border: 1.5px solid #fff; border-radius: 3px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.nt-mini .nt-mini-empty { padding: 10px; font-size: 12px; color: var(--nt-muted); }

/* ---------- notes ---------- */
.nt-note {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    cursor: default;
    background: color-mix(in srgb, var(--c) 14%, #161a21);
    border: 1px solid color-mix(in srgb, var(--c) 55%, #2f3542);
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.nt-note.is-pinned { box-shadow: 0 0 0 2px #ffb450, 0 12px 30px rgba(0, 0, 0, 0.45); }
.nt-note.is-moving { z-index: 100 !important; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65); }
.nt-note.is-collapsed { height: auto !important; }
.nt-note.is-collapsed .nt-body, .nt-note.is-collapsed .nt-rz { display: none; }
.nt-hd { display: flex; align-items: center; gap: 3px; flex: none; padding: 4px 6px 4px 9px; font-size: 12px; color: var(--nt-muted); cursor: grab; user-select: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.nt-hd:active { cursor: grabbing; }
.nt-hd .nt-grip { opacity: 0.6; }
.nt-hd .nt-t { flex: 1; min-width: 0; margin-left: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nt-ib { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; font-size: 14px; color: var(--nt-muted); background: none; border: 0; border-radius: 7px; }
.nt-ib:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nt-ib.is-on { color: #ffb450; }
.nt-ib.nt-del:hover { color: #fecaca; background: rgba(248, 113, 113, 0.25); }
.nt-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.nt-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 11px 10px; cursor: text; }
.nt-body .dsc { min-height: 60px; }
.nt-rz { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; opacity: 0.5; border-bottom-right-radius: 13px; background: linear-gradient(135deg, transparent 50%, #9aa1ad 50%, #9aa1ad 58%, transparent 58%, transparent 72%, #9aa1ad 72%, #9aa1ad 80%, transparent 80%); }
.nt-rz:hover { opacity: 1; }

/* ---------- menus et panneau des couleurs ---------- */
.nt-menu { position: fixed; z-index: 9000; padding: 5px; background: #1c1f26; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); color: var(--nt-text, #eceef2); font-size: 13.5px; }
.nt-menu h6 { margin: 0; padding: 5px 9px 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8b93a5; }
.nt-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; font: inherit; text-align: left; color: inherit; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.nt-menu button:hover { background: rgba(255, 255, 255, 0.09); }
.nt-menu hr { margin: 4px 2px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.nt-menu .nt-sw { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.nt-menu .nt-grow { flex: 1; }

.nt-pal { position: fixed; z-index: 9100; width: 350px; padding: 14px; color: #eceef2; background: #1c1f26; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 15px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); }
.nt-pal-h { display: flex; align-items: center; margin-bottom: 4px; }
.nt-pal-h b { flex: 1; }
.nt-pal p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #9aa1ad; }
.nt-pal-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.nt-pal-row input[type="color"] { flex: none; width: 38px; height: 36px; padding: 2px; background: #0e1014; border: 1px solid var(--nt-line); border-radius: 10px; cursor: pointer; }
.nt-pal-row input[type="text"] { flex: 1; min-width: 0; height: 36px; padding: 0 11px; font-size: 13.5px; color: #eceef2; background: #0e1014; border: 1px solid var(--nt-line); border-radius: 10px; outline: none; }
.nt-pal-row input[type="text"]:focus { border-color: var(--nt-accent); box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.18); }
.nt-pal-row small { min-width: 46px; text-align: right; color: #8b93a5; }
.nt-pal-add { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12px; color: #8b93a5; }
.nt-pal-add button { width: 22px; height: 22px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.nt-pal .nt-ib:disabled { opacity: 0.3; pointer-events: none; }
