/* LDI identity. Quiet navigation, neutral surfaces, colour reserved for context. */
@font-face{font-family:"LDI Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geist-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"LDI Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geist-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root{
 --font-ui:"LDI Geist",system-ui,sans-serif;--font-title:var(--font-ui);--font:var(--font-ui);
 --papier:#0e1013;--sidebar:#111317;--surface:#171a1f;--raised:#202329;--hover:#292d34;
 --encre:#eeeff3;--encre-secondaire:#c1c5cd;--attenue:#9299a5;
 --filet:rgb(235 240 255 / .07);--border-strong:rgb(235 240 255 / .28);
 --accent:#b4afff;--accent-pale:#292736;--primary:#eeeff3;--primary-ink:#15171c;--focus:#c9c5ff;--focus-halo:rgb(180 175 255 / .1);
 --selection:linear-gradient(100deg,rgb(255 255 255 / .085),rgb(255 255 255 / .025));
 --succes:#99d5b5;--quote:#d0b2ef;--quote-pale:#352a45;--alerte:#edc388;--alerte-pale:#3a3023;--danger:#f6a6a9;--danger-pale:#3d262f;
 --owner-A1:#c2b7ff;--owner-A1-surface:#322d4a;--owner-A1-hover:#403956;
 --owner-A2:#9ac9ef;--owner-A2-surface:#24364a;--owner-A2-hover:#30445a;
 --owner-A3:#edc388;--owner-A3-surface:#3a3023;--owner-A3-hover:#493c2c;
 --branche-france:#99c7f0;--branche-maroc:#c5a8ed;--branche-dev:#edc388;
 --champ:var(--papier);--overlay:rgb(7 10 17 / .74);--ombre:0 20px 64px rgb(0 0 0 / .38);--ombre-surface:0 8px 28px rgb(0 0 0 / .12);
 --radius:14px;--control:8px;--sidebar-width:248px;--motion-fast:160ms;--motion-normal:220ms;--ease-out:cubic-bezier(.2,.7,.2,1);--ink:var(--encre);--muted:var(--attenue);
}
body{font-family:var(--font-ui);font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
h1{font-family:var(--font-title);font-size:32px;font-weight:500;letter-spacing:-.9px;line-height:1.15}h2,h3{font-family:var(--font-title);font-weight:500}small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.2px}
button,input,textarea,select{font-family:var(--font-ui)}
.btn{min-height:44px;padding:10px 16px;border:1px solid var(--filet);border-radius:var(--control);background:var(--raised);font-size:13px;font-weight:500;line-height:1.25;transition:background var(--motion-fast) var(--ease-out),border-color var(--motion-fast),color var(--motion-fast),transform var(--motion-fast)}
.btn.sm{min-height:36px;padding:8px 12px;font-size:12px}.btn.lg{min-height:48px}.btn:hover{background:var(--hover);border-color:var(--border-strong)}
.btn.primary{background:var(--primary);border-color:transparent;color:var(--primary-ink)}.btn.primary:hover{background:var(--focus);color:var(--primary-ink)}
.btn.quiet{background:transparent;border-color:transparent;color:var(--encre-secondaire)}.btn.quiet:hover{background:var(--raised);color:var(--encre)}
.icon-button{width:44px;height:44px;border-radius:var(--control);color:var(--encre-secondaire);transition:background var(--motion-fast),color var(--motion-fast)}.icon-button:hover{background:var(--raised);color:var(--encre)}.icon-button svg{width:18px;height:18px}
:is(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.chip{border-radius:6px;font-size:11px;line-height:1.4;padding:5px 9px}.avatar{border-radius:9px;width:32px;height:32px;font-size:12px}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:44px;font-size:14px;background:var(--champ);border-color:var(--border-strong);border-radius:var(--control)}
.form-label{font-size:12px;color:var(--encre-secondaire);gap:8px}.form-grid{gap:20px}.form-grid p,.form-hint{font-size:12px;line-height:1.6}
.ldi-select-trigger{min-height:44px;padding:10px 14px;background:var(--raised);border-color:var(--filet);border-radius:var(--control);font-size:13px}
.ldi-select-trigger:hover{background:var(--hover);border-color:var(--border-strong)}.ldi-select-menu{padding:6px;background:var(--surface);border-color:var(--border-strong);border-radius:12px;box-shadow:var(--ombre)}.ldi-select-option{min-height:44px;border-radius:7px;font-size:13px}.ldi-select-option[aria-selected=true]{background:var(--accent-pale);color:var(--accent)}
.app{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar{width:var(--sidebar-width);height:100dvh;padding:20px 14px 12px;background:var(--sidebar);border-right-color:var(--filet);overflow:hidden}
.sidebar .brand{min-height:38px;margin-bottom:20px;padding:0 10px;gap:12px;flex-shrink:0}
.brand .brand-caption{font-size:12px;font-weight:500;letter-spacing:.02em;color:var(--attenue)}
.sidebar>.ldi-select{flex-shrink:0;margin-bottom:16px}
.sidebar .scope-select{margin-bottom:0}
.sidebar>.ldi-select .ldi-select-trigger{min-height:38px;background:transparent;border-color:var(--filet);font-size:12px;padding:8px 12px}
.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--filet) transparent;padding:2px 4px 16px;margin:0 -4px}
.nav{gap:2px}.nav-secondary{margin-top:20px}
.nav-group-label,.sidebar-heading{font-size:11px;font-weight:500;letter-spacing:.015em;color:var(--attenue);padding:0 12px;margin:0 0 7px;text-transform:none}
.sidebar-heading{margin-top:24px}
.nav-item{min-height:36px;padding:8px 12px;gap:11px;border:1px solid transparent;border-radius:7px;font-size:13px;line-height:18px;font-weight:400;color:var(--attenue);transition:background var(--motion-fast),color var(--motion-fast)}
.nav-item svg{width:17px;height:17px;stroke-width:1.6}.nav-item:hover{background:rgb(255 255 255 / .035);color:var(--encre)}
.nav-item.active{background:var(--selection);border-color:var(--filet);color:var(--encre);font-weight:500;box-shadow:none}.nav-item.active svg{color:inherit}
.nav-item .badge{font-size:10px;min-width:18px;height:18px;min-height:18px;background:var(--raised);color:var(--encre-secondaire)}
.tree{display:grid;gap:3px;padding-bottom:4px}.tree-branch{min-width:0}
.tree-children{list-style:none;margin:3px 0 6px;padding:0;border:0}.tree-children[hidden]{display:none}
.tree-children .tree-children{margin:0}.tree-item{min-width:0}
.branch-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:7px 12px;color:var(--encre-secondaire);font-size:12px;line-height:20px;text-align:left;border-radius:7px}
.branch-toggle>svg,.tree-toggle>svg{width:12px;height:12px;transition:transform var(--motion-fast);color:var(--attenue)}
.branch-toggle[aria-expanded=true]>svg,.tree-toggle[aria-expanded=true]>svg{transform:rotate(90deg)}
.branch-toggle:hover{background:rgb(255 255 255 / .035)}
.tree-row{display:flex;align-items:center;gap:0;min-height:32px;margin-left:calc(12px + var(--tree-depth)*12px);padding-right:8px;border-radius:6px;border:1px solid transparent}
.tree-row:hover{background:rgb(255 255 255 / .035)}.tree-row:has([aria-current=location]){background:var(--selection);border-color:var(--filet)}
.tree-toggle{display:grid;place-items:center;width:24px;min-width:24px;min-height:30px;padding:0;border-radius:5px}
.tree-leaf{width:24px;min-width:24px;display:grid;place-items:center}.tree-leaf::after{content:'';width:4px;height:4px;border-radius:50%;background:var(--attenue);opacity:.45}
.tree .tree-project{flex:1;min-width:0;display:flex;align-items:center;min-height:30px;padding:5px 2px;font-size:12px;line-height:20px;font-weight:400;text-align:left;color:var(--attenue);background:transparent;border:0;border-radius:4px;box-shadow:none}
.tree-project>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-project:hover,.tree-project[aria-current=location]{color:var(--encre)}
.tree-count{margin-left:auto;padding-left:8px;font-size:10px;font-variant-numeric:tabular-nums;color:var(--attenue)}.tree-empty{padding:8px 16px 8px 36px;font-size:12px;color:var(--attenue)}
.sidebar-bottom{flex:none;margin-top:0;padding-top:10px;border-top:1px solid var(--filet)}
.sidebar-bottom .profile{border:0;padding:4px 4px 0;margin:0}.sidebar-bottom .pwa-install,.sidebar-bottom .pwa-installed{margin:0;min-height:32px;padding:5px 10px;font-size:11px}.sidebar-bottom .demo-mark{display:none}
.sidebar-bottom .profile .small{font-size:12px;font-weight:500}.sidebar-bottom .avatar{width:30px;height:30px;background:var(--raised);color:var(--encre-secondaire)}
.topbar{height:64px;padding:0 32px;border-bottom-color:var(--filet);background:var(--papier)}.breadcrumb,.search-trigger{font-size:12px}.search-trigger{color:var(--attenue)}
.page{padding:32px;max-width:1480px}.page-head{margin-bottom:28px;gap:16px}.page-head h1{margin:0}.toolbar{gap:12px;margin-bottom:24px}
.panel,.connection-card,.work-card,.project-composer{background:var(--surface);border-color:var(--filet);border-radius:var(--radius);box-shadow:var(--ombre-surface)}.panel-head{padding:18px 20px;font-size:17px;border-color:var(--filet)}
.contacts-toolbar .contact-search input{background:transparent}.agenda-owner .ldi-select{min-width:0;width:100%}
.segmented{gap:4px;background:var(--sidebar);border-radius:var(--control);padding:4px}.segmented button{min-height:36px;font-size:13px;border-radius:7px}.segmented button.active{background:var(--raised);color:var(--encre)}
.table-wrap{background:var(--surface);border-color:var(--filet);border-radius:var(--radius)}th{font-size:11px;color:var(--attenue);font-weight:500}td{font-size:13px}tr{border-color:var(--filet)}
.kanban-card{border-color:var(--filet);border-radius:12px;background:var(--surface)}.kanban-card h3{font-size:14px}.kanban-card small,.kanban-meta{font-size:12px}.mail-title{font-size:14px}.mail-meta{font-size:12px}.document-name{font-size:14px}.document-meta{font-size:12px}.folder-row{min-height:56px;font-size:13px}
.today-card{padding:24px;background:var(--surface);border-color:var(--filet);border-radius:var(--radius);box-shadow:var(--ombre-surface)}.today-card-title{font-size:17px;font-weight:500}.today-row{font-size:14px;gap:16px}.today-row:hover{background:var(--hover)}.today-row small,.today-meta{font-size:12px}.today-empty{font-size:13px;line-height:1.6}
.today-section{padding:24px;background:var(--surface);border-color:var(--filet);border-radius:var(--radius)}.today-heading h2{font-size:16px;color:var(--encre-secondaire);font-weight:500}.today-item strong{font-size:14px;font-weight:500}.today-item small{font-size:12px}.today-item:hover{background:var(--hover)}
.detail-dialog{background:var(--surface);border-color:var(--filet);border-radius:var(--radius) 0 0 var(--radius)}.dialog-head{min-height:72px;padding:12px 24px;border-color:var(--filet);font-size:14px}.dialog-head h2{font-size:14px;font-weight:500}.dialog-content{padding:28px}.dialog-content h2{font-size:28px;line-height:1.2;letter-spacing:-.6px}.dialog-content p{font-size:14px;line-height:1.65}.relation-row{font-size:13px}.note{font-size:13px;background:var(--surface);border-color:var(--filet);border-radius:var(--control)}
.project-sheet{padding:28px}.project-sheet-path{font-size:12px}.project-sheet h2{font-size:29px;font-weight:500;letter-spacing:-.7px}.project-sheet-section{margin-top:28px;padding-top:24px;border-color:var(--filet)}.project-sheet-section h3{font-size:17px}.project-shortcuts{gap:12px}.project-shortcut{font-size:13px;border-radius:var(--control);background:var(--surface);border-color:var(--filet)}.project-shortcut:hover{background:var(--hover)}.project-upload-zone{background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--control);padding:16px}.project-file-name{font-size:13px}.project-file-meta{font-size:12px}
.event-sheet-icon{background:var(--accent-pale);color:var(--accent);border-radius:var(--control)}.event-sheet h2{font-size:28px;font-weight:500}.event-sheet-facts{font-size:14px}
/* Graph coordinates and camera behaviour stay in mind-map.js. */
.mind-map{--map-paper:var(--papier);--map-surface:var(--surface);--map-raised:var(--raised);border-color:var(--filet);border-radius:var(--radius)}.mind-branch-dot.branch-france{fill:var(--branche-france)}.mind-branch-dot.branch-maroc{fill:var(--branche-maroc)}.mind-branch-dot.branch-dev{fill:var(--branche-dev)}.mind-edge.branch-france{stroke:var(--branche-france)}.mind-edge.branch-maroc{stroke:var(--branche-maroc)}.mind-edge.branch-dev{stroke:var(--branche-dev)}
.mind-preview,.mind-create-menu,.mind-pan-controls{background:var(--surface);border-color:var(--border-strong);border-radius:var(--radius)}.mind-preview h3{font-size:17px}.mind-preview-facts{font-size:13px}.map-toolbar{gap:10px;margin-bottom:16px}.map-toolbar button{border-radius:var(--control)}.view-tabs{background:var(--sidebar);border-color:var(--filet);border-radius:var(--control)}
.startup{background:var(--papier)}.login-card{max-width:420px;padding:36px;background:var(--surface);border-color:var(--filet);border-radius:var(--radius);box-shadow:var(--ombre)}.login-card h1{font-size:28px}.login-card p{font-size:14px}.login-card small{font-size:11px;color:var(--attenue)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.btn.primary:hover{transform:translateY(-1px)}.btn.primary:active{transform:translateY(0)}}
@media(max-width:700px){
 .app{display:block}.page{padding:24px 16px 88px}.page-head{margin-bottom:24px}h1{font-size:28px}.topbar{height:60px;padding:0 16px}.nav-item{min-height:44px}
 .sidebar{width:min(304px,calc(100vw - 48px));padding:16px 14px 12px}.sidebar .brand{margin-bottom:16px}.sidebar>.ldi-select .ldi-select-trigger{min-height:44px;font-size:14px}.sidebar-scroll{padding-bottom:12px}
 .branch-toggle,.tree .tree-project,.tree-toggle{min-height:44px}.branch-toggle,.tree .tree-project{font-size:13px}.tree-toggle,.tree-leaf{width:44px;min-width:44px}.tree-row{margin-left:calc(4px + var(--tree-depth)*10px)}
 .sidebar-bottom .pwa-install{min-height:44px}.sidebar-bottom{padding-bottom:env(safe-area-inset-bottom)}
 .btn.sm{min-height:44px}.segmented button{min-height:44px}input:not([type=checkbox]):not([type=radio]),select,textarea,.ldi-select-trigger{font-size:16px}
 .today-card,.today-section{padding:20px 16px}.today-row{font-size:13px}.detail-dialog{border-radius:var(--radius) var(--radius) 0 0}.dialog-head{min-height:64px;padding:10px 20px}.dialog-content,.project-sheet{padding:24px 20px}.dialog-content h2,.project-sheet h2{font-size:25px}.project-shortcuts{gap:8px}.project-shortcut{font-size:12px}
 .map-toolbar{gap:4px}.map-toolbar .ldi-select-trigger{font-size:13px;padding:10px}.mobile-nav{background:var(--sidebar);border-color:var(--filet);padding:8px 6px calc(8px + env(safe-area-inset-bottom))}.mobile-nav button.active{background:var(--accent-pale);color:var(--accent);border-radius:var(--control)}
 .login-page{padding:16px}.login-card{padding:28px 24px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
