:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--brg-graphite);background:var(--brg-surface);font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.53}:focus-visible{outline:3px solid var(--brg-graphite);outline-offset:2px}.layout{display:flex;min-height:100dvh}.sidebar{width:245px;flex:0 0 245px;background:var(--brg-graphite);color:var(--brg-white);display:flex;flex-direction:column;min-height:100dvh;position:sticky;top:0;height:100dvh}.logo-wrap{padding:27px 23px 17px}.brand{font-size:25px;font-weight:950;letter-spacing:.11em}.brand span{color:var(--brg-on-dark)}.overline{font-size:9px;letter-spacing:.19em;font-weight:800;color:var(--brg-on-dark);margin-top:5px}.venue{margin:13px 13px 16px;padding:12px;border:1px solid rgb(var(--brg-graphite-rgb) / 0.333);background:var(--brg-graphite);border-radius:11px;font-weight:800;font-size:13px}.nav-group{margin:12px 18px 7px;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--brg-on-dark)}.nav-item{width:calc(100% - 20px);margin:2px 10px;border:0;text-align:left;border-radius:10px;background:transparent;color:var(--brg-on-dark);padding:13px 12px;display:flex;align-items:center;gap:11px;font-size:13px;font-weight:650}.nav-item:hover,.nav-item.active{background:var(--brg-graphite);color:var(--brg-white)}.nav-icon{font-size:17px;width:23px;display:inline-block;text-align:center}.sidebar-footer{margin-top:auto;padding:16px 22px;border-top:1px solid rgb(var(--brg-graphite-rgb) / 0.129);font-size:12px;color:var(--brg-on-dark);display:flex;flex-direction:column;gap:10px}.link-btn{background:none;border:0;text-align:left;color:var(--brg-on-dark);font-size:12px;padding:2px 0}.rightcol{flex:1;min-width:0}.topbar{height:76px;background:var(--brg-white);border-bottom:1px solid var(--brg-line);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 clamp(14px,2.5vw,37px);position:sticky;top:0;z-index:10}.top-left,.top-right{display:flex;align-items:center;gap:13px}.top-left>div{display:flex;flex-direction:column;gap:3px}.top-left small{color:var(--brg-muted);font-size:11px}.top-left strong{font-size:19px}.icon-btn{background:var(--brg-surface);border:1px solid var(--brg-line);border-radius:11px;padding:8px 12px;min-width:43px;min-height:43px;font-size:19px}.online{font-size:11px;font-weight:700;color:var(--brg-muted);white-space:nowrap}.dot{display:inline-block;background:var(--brg-graphite);border-radius:50%;width:8px;height:8px;margin-right:4px}.online.off{color:var(--brg-muted)}.online.off .dot{background:var(--brg-control)}.content{max-width:1240px;margin:auto;padding:31px clamp(14px,3.5vw,45px) 95px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:24px}.page-head .over{color:var(--brg-muted);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:850}.page-head h1{font-size:clamp(25px,2.6vw,35px);letter-spacing:-.045em;margin:5px 0}.page-head p{color:var(--brg-muted);font-size:13px;margin:4px 0;line-height:1.5}.btn{border:none;border-radius:10px;padding:11px 16px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:750}.primary{background:var(--brg-graphite);color:var(--brg-white)}.primary:hover{background:var(--brg-graphite)}.neutral{background:var(--brg-surface);color:var(--brg-graphite)}.outline{background:var(--brg-white);border:1px solid var(--brg-line);color:var(--brg-graphite)}.gold{background:var(--brg-raised);color:var(--brg-graphite)}.danger-btn{background:var(--brg-danger-soft);color:var(--brg-danger-text)}.mini{font-size:11px;padding:6px 10px;min-height:31px}.block{width:100%}.panel{background:var(--brg-white);border:1px solid var(--brg-line);border-radius:17px;padding:21px;margin-bottom:18px;box-shadow:0 6px 18px rgb(var(--brg-graphite-rgb) / 0.031)}.panel h2{font-size:17px;margin:0 0 13px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:15px}.panel-head h2{margin:0}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.metric{background:var(--brg-white);border:1px solid var(--brg-line);border-radius:14px;padding:19px}.metric small{font-size:12px;color:var(--brg-muted);font-weight:650}.metric strong{display:block;font-size:32px;margin:8px 0 0;letter-spacing:-.035em}.metric em{display:block;font-size:11px;font-style:normal;color:var(--brg-muted)}.cols{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.list{display:grid;gap:10px}.record{border:1px solid var(--brg-line);padding:15px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;background:var(--brg-white)}.record strong{font-size:14px}.record p{margin:5px 0 0;color:var(--brg-muted);font-size:12px;line-height:1.45}.record aside{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.pill{display:inline-flex;align-items:center;padding:5px 9px;background:var(--brg-surface);color:var(--brg-muted);font-size:11px;font-weight:850;border-radius:7px;white-space:nowrap}.pill.bad{color:var(--brg-danger-text);background:var(--brg-warning-soft)}.pill.warn{color:var(--brg-warning-text);background:var(--brg-warning-soft)}.empty{border:1px dashed var(--brg-line);border-radius:12px;color:var(--brg-muted);padding:28px 16px;text-align:center;font-size:13px;background:var(--brg-white)}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}label.field{display:grid;gap:7px;font-size:12px;font-weight:700;color:var(--brg-muted)}input,select,textarea{border:1px solid var(--brg-line);border-radius:9px;padding:11px 12px;min-width:0;width:100%;background:var(--brg-white);color:var(--brg-graphite);min-height:42px}textarea{resize:vertical;min-height:82px}.controls{margin-top:15px;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filters input,.filters select{width:auto;max-width:200px}.section-note{color:var(--brg-muted);font-size:12px;line-height:1.6;margin:12px 0}.notice{border-left:3px solid var(--brg-control);padding:12px 16px;background:var(--brg-surface);color:var(--brg-graphite);font-size:12px;line-height:1.6;border-radius:0 9px 9px 0;margin:12px 0}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{text-align:left;color:var(--brg-muted);font-size:11px;font-weight:850;padding:12px 10px;border-bottom:1px solid var(--brg-line)}.table td{padding:12px 10px;border-bottom:1px solid var(--brg-line)}.table tr:last-child td{border:0}.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick button{border:1px solid var(--brg-line);background:var(--brg-white);border-radius:13px;padding:17px;text-align:left;color:var(--brg-graphite);font-weight:800;display:grid;gap:7px}.quick small{font-size:11px;font-weight:500;color:var(--brg-muted)}.auth-wrap{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top right,var(--brg-graphite),var(--brg-graphite) 57%)}.auth-card{width:min(100%,450px);border-radius:21px;background:var(--brg-white);padding:34px;box-shadow:0 28px 90px rgb(var(--brg-graphite-rgb) / 0.267)}.auth-card .brand{color:var(--brg-graphite);margin-bottom:4px}.auth-card .overline{color:var(--brg-muted)}.auth-card h1{font-size:27px;margin:24px 0 7px;letter-spacing:-.03em}.auth-card p.subtle{color:var(--brg-muted);line-height:1.6;font-size:13px}.auth-card form{margin:22px 0 15px}.auth-card form label{display:grid;gap:7px;font-size:12px;font-weight:700;margin-bottom:13px}.tiny{font-size:11px;color:var(--brg-muted);line-height:1.6}.alert{color:var(--brg-muted);font-size:12px;min-height:18px}.toast{position:fixed;z-index:30;bottom:28px;right:28px;background:var(--brg-graphite);color:white;padding:13px 18px;border-radius:12px;max-width:min(400px,90vw);box-shadow:0 10px 30px rgb(var(--brg-graphite-rgb) / 0.133);font-size:13px}.toast.error{background:var(--brg-danger)}.bottom-nav,#menuToggle{display:none}.divider{border-top:1px solid var(--brg-line);margin:17px 0}.muted{color:var(--brg-muted)}.drawer-overlay{display:none}details summary{cursor:pointer;font-weight:750;color:var(--brg-graphite)}details{background:var(--brg-white);border-radius:11px;padding:13px}.legacy-links{display:grid;gap:9px}.legacy-links a{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--brg-line);border-radius:11px;padding:14px;background:var(--brg-white);font-size:13px;font-weight:700}.legacy-links small{font-weight:400;color:var(--brg-muted)}.badge-notice{font-size:11px;border:1px solid var(--brg-warning);background:var(--brg-warning-soft);border-radius:8px;padding:8px 10px;color:var(--brg-warning-text)}.loading{opacity:.6;pointer-events:none}@media(max-width:1040px){.sidebar{width:205px;flex-basis:205px}.cols{grid-template-columns:1fr}.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar{display:none}.topbar{height:62px;padding:0 14px}.top-left strong{font-size:16px}.top-left small{font-size:10px}.top-right{gap:6px}.content{padding:23px 13px 100px}.page-head{margin-bottom:18px}.metric{padding:13px}.metric strong{font-size:27px}.form-grid,.form-grid.two{grid-template-columns:1fr}.quick{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:16px}.online{font-size:0}.online .dot{margin:0}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;width:100%;height:76px;padding-bottom:env(safe-area-inset-bottom);background:white;box-shadow:0 -5px 20px rgb(var(--brg-graphite-rgb) / 0.067);border-top:1px solid var(--brg-line);z-index:15}.bottom-nav button{background:none;border:0;padding:9px 2px;color:var(--brg-muted);display:grid;place-items:center;align-content:center;gap:3px;font-size:10px;font-weight:700}.bottom-nav button b{font-size:19px;font-weight:400}.bottom-nav button.active{color:var(--brg-graphite)}.toast{bottom:91px;right:10px}.record{align-items:flex-start}.record aside{width:100%}#menuToggle{display:block}.sidebar.open{display:flex;position:fixed;z-index:25;inset:0 auto 0 0;box-shadow:15px 0 30px rgb(var(--brg-graphite-rgb) / 0.2);max-width:90vw}.sidebar.open:before{content:"Fermer le menu ×";display:block;padding:10px 20px;text-align:right;font-size:12px;color:var(--brg-on-dark)}.auth-card{padding:25px}}
/* BRIGADE V4.5 — direction visuelle : anthracite, ivoire, acier et bleu glacier. */
:root{color:var(--brg-graphite);background:var(--brg-white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body{color:var(--brg-graphite);background:var(--brg-white)}
:focus-visible{outline:3px solid var(--brg-control);outline-offset:2px}
.sidebar{background:var(--brg-graphite);border-right:1px solid var(--brg-graphite);width:244px;flex-basis:244px}
.logo-wrap{padding:25px 22px 16px}.brand{font-size:23px;letter-spacing:.13em;color:var(--brg-white)}.brand span{color:var(--brg-on-dark)}
.overline{color:var(--brg-on-dark)}.venue{margin:12px 14px 14px;border:1px solid var(--brg-graphite);background:var(--brg-graphite);color:var(--brg-on-dark);border-radius:12px;font-weight:670}
#sideNav{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;padding-bottom:18px;scrollbar-width:thin;scrollbar-color:var(--brg-graphite) var(--brg-graphite)}
.nav-group{margin:21px 20px 6px;color:var(--brg-muted);font-size:9px;letter-spacing:.19em}
.nav-item{color:var(--brg-on-dark);border-radius:9px;font-size:12.5px;padding:10px 12px;min-height:39px;transition:.15s}
.nav-item:hover{background:var(--brg-graphite);color:white}.nav-item.active{color:var(--brg-white);background:var(--brg-graphite);box-shadow:inset 3px 0 0 var(--brg-line)}
.nav-icon{font-size:16px;color:var(--brg-on-dark)}.sidebar-footer{border-top:1px solid var(--brg-graphite);color:var(--brg-on-dark);background:var(--brg-graphite)}
.link-btn{color:var(--brg-on-dark)}.topbar{background:var(--brg-white);border-bottom:1px solid var(--brg-line);box-shadow:0 2px 16px rgb(var(--brg-graphite-rgb) / 0.024)}
.top-left strong{color:var(--brg-graphite);font-weight:790;letter-spacing:-.025em}.top-left small{color:var(--brg-muted)}
.content{max-width:1400px}.page-head h1{font-size:clamp(25px,2.6vw,38px);font-weight:780;color:var(--brg-graphite)}
.page-head .over{color:var(--brg-muted)}.page-head p{color:var(--brg-muted)}
.btn{border-radius:9px}.primary{background:var(--brg-graphite);color:var(--brg-white)}.primary:hover{background:var(--brg-graphite)}.outline{border-color:var(--brg-line);background:white;color:var(--brg-graphite)}.neutral{color:var(--brg-graphite);background:var(--brg-surface)}.gold{background:var(--brg-raised);color:var(--brg-graphite)}
.panel,.metric{border-color:var(--brg-line);box-shadow:0 8px 25px rgb(var(--brg-graphite-rgb) / 0.063);background:var(--brg-white);border-radius:14px}.metric{border-radius:13px;padding:19px}
.metric small{color:var(--brg-muted)}.metric strong{color:var(--brg-graphite);font-weight:780}.metric em{color:var(--brg-muted)}.panel h2{color:var(--brg-graphite)}
.pill{background:var(--brg-surface);color:var(--brg-muted)}.pill.warn{background:var(--brg-warning-soft);color:var(--brg-warning-text)}.pill.bad{color:var(--brg-danger-text);background:var(--brg-danger-soft)}
.record{border-color:var(--brg-line);background:var(--brg-white)}.record strong{color:var(--brg-graphite)}.record p{color:var(--brg-muted)}
.empty{border-color:var(--brg-line);color:var(--brg-muted);background:var(--brg-white)}
input,select,textarea{border-color:var(--brg-line);color:var(--brg-graphite);background:var(--brg-white)}.field{color:var(--brg-muted)!important}
.quick button{background:var(--brg-white);border:1px solid var(--brg-line);color:var(--brg-graphite);min-height:93px}.quick button small{color:var(--brg-muted)}
.auth-wrap{background:radial-gradient(ellipse at 82% 12%,var(--brg-graphite) 0%,var(--brg-graphite) 52%,var(--brg-graphite) 100%)}.auth-card{box-shadow:0 22px 80px rgb(var(--brg-graphite-rgb) / 0.49)}.auth-card .brand{color:var(--brg-graphite)}.auth-card h1{color:var(--brg-graphite)}
.topbar .icon-btn{background:var(--brg-surface);color:var(--brg-graphite);border-color:var(--brg-line)}.online{color:var(--brg-muted)}
.notice,.inline-alert{border-left:3px solid var(--brg-control);background:var(--brg-white);color:var(--brg-muted);padding:13px 15px;border-radius:0 9px 9px 0;line-height:1.65;font-size:12.5px;margin:14px 0}
.inline-alert strong{color:var(--brg-graphite)}
.hero{background:var(--brg-graphite);min-height:235px;border-radius:18px;color:var(--brg-on-dark);padding:31px 37px;display:grid;grid-template-columns:1.5fr .65fr;gap:20px;align-items:center;margin-bottom:20px;overflow:hidden;position:relative}
.hero:after{content:"";position:absolute;right:-45px;top:-145px;width:390px;height:390px;border-radius:50%;border:1px solid rgb(var(--brg-graphite-rgb) / 0.157);box-shadow:0 0 0 55px rgb(var(--brg-graphite-rgb) / 0.039),0 0 0 110px rgb(var(--brg-graphite-rgb) / 0.043);pointer-events:none}
.hero-eyebrow{font-size:10px;font-weight:850;letter-spacing:.2em;color:var(--brg-on-dark)}.hero h2{font-size:clamp(27px,3.2vw,42px);line-height:1.15;letter-spacing:-.045em;margin:14px 0}.hero p{max-width:550px;color:var(--brg-on-dark);font-size:12px;line-height:1.6;margin:0 0 18px}.hero-actions{display:flex;gap:8px;flex-wrap:wrap}.hero .btn.primary{background:var(--brg-raised);color:var(--brg-graphite)}.hero .btn.outline{color:var(--brg-on-dark);background:rgb(var(--brg-graphite-rgb) / 0.063);border:1px solid rgb(var(--brg-graphite-rgb) / 0.361)}
.hero-stat{position:relative;z-index:1;padding:18px 20px;border:1px solid rgb(var(--brg-graphite-rgb) / 0.322);border-radius:16px;background:rgb(var(--brg-graphite-rgb) / 0.063);display:grid;gap:6px}.hero-stat span{font-size:11px;color:var(--brg-on-dark)}.hero-stat strong{font-size:45px;font-weight:750}.hero-stat small{font-size:10px;line-height:1.6;color:var(--brg-on-dark)}
.priority-list{display:grid;gap:0}.priority-item{width:100%;padding:14px 8px;display:flex;align-items:center;gap:16px;background:transparent;border:0;text-align:left;border-bottom:1px solid var(--brg-line)}.priority-item:last-child{border:0}.priority-item:hover{background:var(--brg-white)}.priority-item span:nth-child(2){flex:1;display:grid;gap:3px}.priority-item strong{font-size:13px;color:var(--brg-graphite)}.priority-item small{color:var(--brg-on-dark);font-size:11px}.priority-item>b{font-size:18px;color:var(--brg-on-dark)}.priority-bullet{font-size:12px;font-weight:850;color:var(--brg-muted);background:var(--brg-surface);border-radius:10px;padding:12px}
.source-tag{display:inline-flex;align-items:center;border-radius:50px;padding:6px 11px;font-size:10.5px;font-weight:800;letter-spacing:.025em}.source-tag.reference{background:var(--brg-surface);color:var(--brg-muted)}.source-tag.live{background:var(--brg-surface);color:var(--brg-graphite)}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:18px}.catalog-tile{background:var(--brg-white);border:1px solid var(--brg-line);border-radius:13px;padding:16px;text-align:left;min-height:152px;display:flex;flex-direction:column;gap:15px;color:var(--brg-graphite)}.catalog-tile:hover{border-color:var(--brg-control);box-shadow:0 9px 25px rgb(var(--brg-graphite-rgb) / 0.09)}.catalog-tile .catalog-meta{display:flex;justify-content:space-between;gap:7px;color:var(--brg-muted);font-size:10px}.catalog-tile strong{flex:1;font-size:13px;line-height:1.35}.catalog-tile>div:last-child{display:flex;align-items:center;justify-content:space-between;color:var(--brg-muted);font-weight:800;font-size:13px}.catalog-arrow{font-size:19px}
.catalog-filters{gap:16px;align-items:end}.catalog-filters input{width:300px}.catalog-filters select{width:160px}.catalog-filters .pill{margin-bottom:9px}
.detail-rows>div,.source-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--brg-line);padding:12px 4px;font-size:12.5px}.detail-rows>div:last-child,.source-row:last-child{border:0}.detail-rows span{color:var(--brg-muted)}.detail-rows strong{color:var(--brg-graphite);text-align:right}.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.source-row>div{display:grid;gap:5px}.source-row>div:last-child{text-align:right}.source-row small{font-size:10.5px;color:var(--brg-on-dark)}.source-row .yes{color:var(--brg-graphite)}.source-row .no{color:var(--brg-muted)}
.table-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:16px 0}.table-chip{background:var(--brg-white);border:1px solid var(--brg-line);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:140px;color:var(--brg-graphite);text-align:center}.table-chip .table-number{font-weight:830;font-size:21px}.table-chip strong{font-size:12px}.table-chip span:nth-child(2),.table-chip small{font-size:11px}.table-chip.taken{background:var(--brg-surface);border-color:var(--brg-line);color:var(--brg-muted)}.table-chip.inactive{opacity:.45}
.floor-filters{align-items:end}.floor-filters select,.floor-filters input{max-width:170px}.setup-forms{display:grid;grid-template-columns:1fr 1fr;gap:25px}.setup-forms form{display:grid;gap:11px}.setup-forms h3{font-size:15px;margin:0 0 4px}.setup-forms button{justify-self:start}.mini-row{padding:9px}.mini-row span{font-size:11px}details{background:var(--brg-white)}details summary{color:var(--brg-graphite)}
@media(max-width:1200px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.hero{grid-template-columns:1fr;padding:23px;min-height:0}.hero-stat{display:none}.hero h2{font-size:29px}.catalog-grid{grid-template-columns:1fr 1fr;gap:8px}.catalog-tile{padding:13px;min-height:145px}.source-grid{grid-template-columns:1fr}.table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-forms{grid-template-columns:1fr}.sidebar.open{overflow-y:auto}.sidebar.open #sideNav{overflow:visible}.bottom-nav{border-color:var(--brg-line)}.bottom-nav button{color:var(--brg-muted)}.bottom-nav button.active{color:var(--brg-muted)}.auth-card .brand{color:var(--brg-graphite)}.content{padding-top:24px}.grid4{gap:8px}.metric{padding:14px}.metric strong{font-size:27px}.catalog-filters input{max-width:100%;width:100%}.catalog-filters select{max-width:100%;width:100%}}
@media(max-width:390px){.catalog-grid{grid-template-columns:1fr}.hero-actions .btn{font-size:11px}}
.recipe-lines{display:grid;gap:9px;margin:14px 0}.recipe-line{display:grid;grid-template-columns:2fr 1fr auto;align-items:end;gap:11px;padding:12px;border:1px solid var(--brg-line);border-radius:12px;background:var(--brg-white)}.recipe-line button{white-space:nowrap;margin-bottom:0}.panel h3{font-size:14px;color:var(--brg-graphite);margin-top:20px}.panel form{display:block}.panel form .field{margin:8px 0}
@media(max-width:760px){.recipe-line{grid-template-columns:1fr 1fr}.recipe-line button{grid-column:1/-1;justify-self:start}}

/* V4.6 — actions quotidiennes et personnel volontairement simplifiés */
#sideNav{padding-top:20px}.staff-details{border:1px solid var(--brg-line);background:var(--brg-white);border-radius:14px;padding:17px 21px;margin:16px 0}.staff-details>summary{cursor:pointer;font-size:15px;font-weight:760;color:var(--brg-graphite)}.staff-details>form{margin-top:20px}.staff-optional{background:var(--brg-white);border:1px solid var(--brg-line);border-radius:9px;padding:12px;margin:14px 0}.staff-optional>summary{cursor:pointer;color:var(--brg-muted);font-size:12px;font-weight:650}.staff-optional label{max-width:310px;margin-top:13px}.staff-details .form-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.staff-details .controls{justify-content:flex-start}.quick{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}@media(max-width:760px){.staff-details{padding:14px}.staff-details .form-grid{grid-template-columns:1fr 1fr}.quick{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.staff-details .form-grid{grid-template-columns:1fr}}

/* V4.7 — compact everyday actions, preserved BRIGADE branding */
.capture-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:18px}
.capture-btn{min-height:92px;background:var(--brg-graphite);color:white;font-size:16px;font-weight:750;border-radius:16px;box-shadow:0 6px 22px rgb(var(--brg-graphite-rgb) / 0.086)}
.capture-btn.soft{background:var(--brg-surface);color:var(--brg-graphite);box-shadow:none;border:1px solid var(--brg-line)}
.team-alert-teaser{margin-bottom:14px}.alert-teaser-btn{width:100%;text-align:left;padding:15px 18px;border:1px solid var(--brg-line);background:var(--brg-surface);color:var(--brg-graphite);border-radius:13px;display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.alert-teaser-btn small{font-size:11px;color:var(--brg-muted)}
.team-alert .record{min-width:0}.team-alert p{line-height:1.6}.team-alert .btn{margin:2px}
@media(max-width:520px){.capture-actions{gap:9px}.capture-btn{min-height:83px;font-size:13px;padding:12px}.team-alert aside{width:100%}}

/* V4.8 — service: readable one-screen availability + recipe indicators */
.service-record{align-items:flex-start;gap:12px}.service-record-body{flex:1;min-width:0}
.service-record aside{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:48%}
.service-stock-note{margin-top:8px;padding:10px 12px;border:1px solid var(--brg-line);border-radius:10px;background:var(--brg-white);display:grid;gap:5px}
.service-stock-note strong{font-size:12px}.service-stock-note small{font-size:11px;color:var(--brg-muted);line-height:1.5}
.service-stock-note .service-warning{color:var(--brg-warning-text);font-weight:650}
.service-link-details{margin-top:9px;padding:9px 11px;border:1px solid var(--brg-line);border-radius:9px;background:var(--brg-white)}
.service-link-details summary{cursor:pointer;font-size:11px;font-weight:680}
.service-link-controls{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;padding-top:9px}
.service-link-controls label{flex:1;min-width:165px}.service-link-controls .btn{margin-bottom:8px}
.service-new-item{padding:15px 19px;border:1px solid var(--brg-line);border-radius:12px;background:var(--brg-white);margin-top:15px}
.service-new-item summary{font-weight:700;cursor:pointer}.service-new-item form{margin-top:14px}
@media(max-width:600px){.service-record{flex-direction:column}.service-record aside{width:100%;max-width:none;justify-content:flex-start}.service-link-controls{flex-direction:column;align-items:stretch}}

/* V4.9 — Dashboard mobile: photo / import, priorities, concise metrics. Service stays separate. */
.home-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.home-metric{display:grid;gap:7px;text-align:left;align-content:center;min-width:0;background:var(--brg-white);border:1px solid var(--brg-line);border-radius:15px;padding:17px;color:var(--brg-graphite);cursor:pointer}
.home-metric:hover,.home-metric:focus-visible{border-color:var(--brg-control);outline-offset:3px}
.home-metric small,.home-metric span{font-size:11px;color:var(--brg-muted)}
.home-metric strong{font-size:30px;font-weight:780;color:var(--brg-graphite);line-height:1.1}
.home-metric .metric-missing{font-size:30px;color:var(--brg-muted)}
.home-todos{display:grid;gap:2px}
.home-todo{width:100%;display:flex;align-items:center;gap:12px;padding:13px 4px;text-align:left;border:0;border-bottom:1px solid var(--brg-line);background:transparent;cursor:pointer;color:var(--brg-graphite)}
.home-todo:last-child{border-bottom:0}.home-todo:hover{background:var(--brg-white)}
.home-todo>span:nth-child(2){flex:1;display:grid;gap:4px}.home-todo strong{font-size:13px}.home-todo small{font-size:11px;color:var(--brg-muted)}.home-todo>span:last-child{font-size:24px;color:var(--brg-on-dark)}
.home-todo-icon{background:var(--brg-surface);border-radius:10px;display:grid;place-items:center;min-width:39px;min-height:39px}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-shortcuts button{border:1px solid var(--brg-line);background:var(--brg-white);color:var(--brg-graphite);border-radius:13px;min-height:78px;padding:11px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer}
.home-shortcuts button span{font-size:19px}.home-shortcuts button strong{font-size:12px}
@media(max-width:850px){.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.home-metric{padding:12px}.home-metric strong{font-size:26px}.home-shortcuts button{min-height:67px}}

/* Navigation métier unifiée : lisibilité mobile et surfaces tactiles */
.quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.quick button{min-height:90px;text-align:left;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:7px;padding:16px;border:1px solid var(--brg-line);border-radius:16px;background:var(--brg-white);color:var(--brg-graphite);box-shadow:none;line-height:1.3}
.quick button:hover,.quick button:focus-visible{border-color:var(--brg-control);background:var(--brg-surface)}
.quick button strong{font-size:15px}
.quick button small{color:var(--brg-muted);font-size:12px}
.quick .nav-icon{font-size:23px;color:var(--brg-muted)}
@media(max-width:640px){.quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick button{min-height:106px;padding:13px}.quick button strong{font-size:13px}.quick button small{font-size:11px}.panel{overflow-wrap:anywhere}}

/* Commandes fournisseurs : liste tactile, quantités et validation */
.supplier-order-list{border:1px solid var(--brg-line);border-radius:15px;margin:12px 0;background:var(--brg-white);overflow:hidden}
.supplier-order-list>summary{cursor:pointer;padding:17px 15px;font-weight:700;color:var(--brg-graphite)}
.supplier-order-list[open]>summary{background:var(--brg-surface);border-bottom:1px solid var(--brg-line)}
.referenceOrderForm{padding:12px}
.reference-order-line{display:grid;grid-template-columns:26px minmax(0,1fr) 78px;align-items:center;gap:12px;border-bottom:1px solid var(--brg-line);padding:12px 4px;min-height:64px}
.reference-order-line>input[type=checkbox]{width:22px;height:22px;accent-color:var(--brg-graphite)}
.reference-order-line>input[type=number]{width:100%;padding:9px 5px;text-align:center;border:1px solid var(--brg-line);border-radius:9px}
.reference-order-line strong{display:block;font-size:14px;line-height:1.35}
.reference-order-line small{display:block;color:var(--brg-muted);margin-top:4px}
.referenceOrderForm>.btn{margin-top:16px;width:100%;min-height:48px}

.reference-history-detail{padding:14px 16px}.reference-history-detail>p{font-size:13px;line-height:1.5;margin:7px 0}.reference-history-detail .record{gap:12px;flex-wrap:wrap}.reference-history-detail .controls{margin-top:15px}

/* Connexion par espace, sans changement de permissions */
.login-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}
.login-role{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:105px;padding:12px 5px;background:var(--brg-surface);border:1px solid var(--brg-line);border-radius:15px;color:var(--brg-graphite);cursor:pointer}
.login-role span{font-size:25px}.login-role strong{font-size:15px}.login-role small{font-size:12px;color:var(--brg-muted)}.login-role.selected{background:var(--brg-surface);border:2px solid var(--brg-control)}
@media(max-width:390px){.login-roles{gap:6px}.login-role{padding:10px 2px}.login-role strong{font-size:13px}}

.checklist-confirm-actions{position:sticky;bottom:8px;padding:14px 0;background:linear-gradient(transparent,var(--brg-white) 25%);z-index:2}.checklist-confirm-actions .btn{width:100%;min-height:54px;font-weight:750}.checklist-confirmed{padding:12px 14px;border-radius:12px;background:var(--brg-success-soft);color:var(--brg-graphite);font-weight:700}.cocktail-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:16px}.cocktail-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;border:1px solid var(--brg-line);border-radius:16px;padding:14px;background:var(--brg-white)}.cocktail-photo-pending{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--brg-surface);border-radius:12px;min-height:135px;font-size:28px;color:var(--brg-muted)}.cocktail-photo-pending small{font-size:11px;text-align:center}.cocktail-card h3{margin:0 0 10px;color:var(--brg-graphite)}.cocktail-card table{width:100%;font-size:13px}.cocktail-card td{padding:5px 0;border-bottom:1px solid var(--brg-line)}.cocktail-card td:last-child{text-align:right}.cocktail-card p{font-size:13px;line-height:1.5}@media(max-width:370px){.cocktail-card{grid-template-columns:85px minmax(0,1fr);gap:10px}}

.role-spaces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 24px}.role-space{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;min-height:112px;border:1px solid var(--brg-line);border-radius:15px;background:var(--brg-white);color:var(--brg-graphite);padding:12px 5px;cursor:pointer}.role-space span{font-size:28px}.role-space strong{font-size:16px}.role-space small{text-align:center;font-size:12px;color:var(--brg-muted)}@media(max-width:400px){.role-spaces{gap:7px}.role-space{min-height:102px}.role-space small{font-size:11px}}

/* Le bouton de fermeture est interactif, contrairement à l'ancien pseudo-élément. */
.sidebar.open:before{content:none!important;display:none!important}.sidebar-close{display:none;align-self:stretch;text-align:right;background:transparent;border:0;color:var(--brg-on-dark);font-size:14px;padding:12px 24px;min-height:48px;cursor:pointer}.sidebar-close span{font-size:23px;vertical-align:middle;margin-left:8px}.sidebar.open .sidebar-close{display:block}.sidebar-close:focus-visible{outline:2px solid var(--brg-line);outline-offset:-4px}

.reference-order-tools{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 0}.reference-order-tools label{font-size:14px;font-weight:700;flex:1;min-width:170px}.reference-product-search{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--brg-line);border-radius:12px;font-size:16px;background:var(--brg-white)}.reference-selected-count{padding:10px 12px;border-radius:20px;background:var(--brg-surface);color:var(--brg-graphite);font-size:13px;font-weight:700}.reference-order-line[hidden]{display:none!important}

.back-module{font-size:26px;font-weight:500;min-width:44px;min-height:44px}.back-module[hidden]{display:none!important}

.cocktail-photo-upload{position:relative;cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:180px}.cocktail-photo-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.cocktail-photo-private{width:100%;height:100%;min-height:180px;object-fit:cover;border-radius:12px}.cocktail-photo-upload:focus-within{outline:3px solid var(--brg-control);outline-offset:2px}

/* Vins : vignette et import en une action */
.wine-photo-record{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}.wine-photo-slot{width:74px;height:88px;flex:0 0 74px;border-radius:10px;background:var(--brg-surface);display:flex;align-items:center;justify-content:center;overflow:hidden}.wine-photo-slot img{width:100%;height:100%;object-fit:contain}.wine-photo-info{flex:1;min-width:0}.wine-photo-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.wine-photo-picker{cursor:pointer;display:inline-flex;align-items:center;min-height:42px}

/* Accueil simplifié mobile, sans supprimer les modules existants. */
.simple-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 14px}
.simple-home-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:145px;padding:20px 16px;background:var(--brg-white);border:1px solid var(--brg-line);border-radius:20px;color:var(--brg-graphite);text-align:left;box-shadow:0 4px 16px rgb(var(--brg-graphite-rgb) / .04);cursor:pointer}
.simple-home-tile strong{font-size:18px;line-height:1.2}.simple-home-tile small{font-size:13px;color:var(--brg-muted)}.simple-home-icon{font-size:26px}
.simple-home-all{display:flex;align-items:center;gap:14px;width:100%;border:1px solid var(--brg-line);border-radius:18px;background:var(--brg-white);padding:18px;color:var(--brg-graphite);text-align:left;cursor:pointer}
.simple-home-all>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}.simple-home-all small{color:var(--brg-muted);font-size:12px}
.simple-home-details{margin-top:18px;padding:14px;border:1px solid var(--brg-line);border-radius:16px;background:var(--brg-white)}.simple-home-details summary{cursor:pointer;font-weight:650}.simple-home-details .home-metrics{margin-top:14px}
@media(max-width:370px){.simple-home-tile{padding:14px 11px;min-height:130px}.simple-home-tile strong{font-size:16px}}

/* Menu Outils : icônes grandes et accessibles au toucher */
.tools-group{margin:18px 0 24px}.tools-group h2{font-size:17px;font-weight:750;margin:0 0 12px}
.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tools-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:106px;padding:13px 7px;background:var(--brg-white);color:var(--brg-graphite);border:1px solid var(--brg-line);border-radius:17px;text-align:center;cursor:pointer;box-shadow:0 3px 12px rgb(var(--brg-graphite-rgb) / .04)}
.tools-tile strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.tools-icon{font-size:30px;line-height:1.15}.tools-tile:focus-visible{outline:3px solid var(--brg-graphite);outline-offset:2px}
@media(max-width:340px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-tile{min-height:100px}}

/* Actions principales visibles au-dessus des listes */
.simple-actions{margin:0 0 14px}.simple-actions .btn{min-height:44px;font-weight:700}

/* Plans de salle BRIGADE : disposition approximative d'après les photos Restomax */
.floor-map-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:5px 0 12px}
.brigade-floor-map{position:relative;width:100%;min-width:660px;aspect-ratio:1.45;background:var(--brg-white);border:1px solid var(--brg-line);border-radius:14px;overflow:hidden}
.floor-map-table{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px solid var(--brg-graphite);border-radius:7px;background:var(--brg-raised);color:var(--brg-graphite);text-align:center;line-height:1.1;padding:2px;box-sizing:border-box}
.floor-map-table strong{font-size:clamp(11px,1.3vw,16px)}.floor-map-table small{font-size:10px;font-weight:650}
.floor-map-table.taken{background:var(--brg-raised);color:var(--brg-graphite);border-color:var(--brg-graphite)}
.floor-map-table.inactive{background:var(--brg-raised);color:var(--brg-muted);border-color:var(--brg-control)}
.floor-map-table.unconfigured{background:var(--brg-white);color:var(--brg-muted);border:1px dashed var(--brg-control)}
.floor-map-note{position:absolute;font-size:12px;font-weight:700;color:var(--brg-muted)}
.floor-map-legend{display:flex;flex-wrap:wrap;gap:14px;margin:10px 0;font-size:12px}

/* Salle : plans plus lisibles et édition tactile des couverts */
.brigade-floor-map{background:radial-gradient(circle at 25% 20%,var(--brg-white) 0%,var(--brg-white) 58%,var(--brg-surface) 100%);border:2px solid var(--brg-line);box-shadow:inset 0 2px 18px rgb(var(--brg-graphite-rgb) / .06);min-width:660px}
.floor-map-table{cursor:pointer;box-shadow:0 3px 0 rgb(var(--brg-graphite-rgb) / .18),0 6px 14px rgb(var(--brg-graphite-rgb) / .09);border-radius:10px;background:linear-gradient(145deg,var(--brg-surface),var(--brg-raised));transition:transform .14s,box-shadow .14s;min-height:32px}
.floor-map-table:not(:disabled):active{transform:scale(.94);box-shadow:0 1px 2px rgb(var(--brg-graphite-rgb) / .18)}
.floor-map-table:disabled{cursor:default;opacity:1}
.floor-map-table.taken{background:linear-gradient(145deg,var(--brg-surface),var(--brg-raised))}
.floor-map-table.unconfigured{background:var(--brg-white);border:2px dashed var(--brg-control);box-shadow:none}
.floor-map-table strong{font-weight:850}.floor-map-table small{font-size:10px}
.floor-edit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.floor-edit-tile{border:1px solid var(--brg-line);border-radius:13px;background:var(--brg-white);padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--brg-graphite);min-height:86px;cursor:pointer}
.floor-edit-tile strong{font-size:21px}.floor-edit-tile span{font-size:13px}.floor-edit-tile small{font-size:11px;color:var(--brg-muted)}
.floor-map-legend{font-weight:650}

/* Mobile: show the ENTIRE floor plan at once, no horizontal clipping. */
.floor-map-scroll{width:100%;max-width:100%;overflow-x:hidden;padding:4px 0 10px}
.brigade-floor-map{box-sizing:border-box;width:100%;min-width:0;max-width:100%;aspect-ratio:1.05;border-radius:14px}
.floor-map-table{min-height:0;border-radius:clamp(3px,1.2vw,10px);padding:1px;gap:0;overflow:hidden;box-shadow:0 2px 3px rgb(var(--brg-graphite-rgb) / .12)}
.floor-map-table strong{font-size:clamp(9px,2.5vw,15px);line-height:1.12}
.floor-map-table small{font-size:clamp(7px,1.8vw,10px);line-height:1.08;white-space:nowrap}
.floor-map-note{font-size:clamp(8px,2vw,12px)}
@media(min-width:700px){.brigade-floor-map{aspect-ratio:1.45}.floor-map-table{border-radius:9px;padding:2px;gap:2px;box-shadow:0 3px 0 rgb(var(--brg-graphite-rgb) / .14),0 5px 10px rgb(var(--brg-graphite-rgb) / .07)}.floor-map-table strong{font-size:clamp(11px,1.4vw,16px)}.floor-map-table small{font-size:10px}}

/* Terrasse: taller canvas, legible table labels and clear separation */
.brigade-floor-map.floor-map-terrasse{aspect-ratio:.82}
.floor-map-terrasse .floor-map-table strong{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:clamp(9px,2.2vw,14px)}
.floor-map-terrasse .floor-map-table small{white-space:nowrap;font-size:clamp(7px,1.65vw,10px)}
.floor-map-terrasse .floor-map-note{white-space:nowrap;font-size:10px}
@media(min-width:700px){.brigade-floor-map.floor-map-terrasse{aspect-ratio:1.2}}

.catalog-item{display:flex;flex-direction:column;min-width:0;gap:8px}.catalog-item .catalog-tile{width:100%;flex:1}.catalog-photo-button{display:flex;justify-content:center;align-items:center;min-height:42px;padding:9px 12px;border:1px solid var(--brg-control);background:var(--brg-surface);color:var(--brg-graphite);border-radius:11px;font-weight:750;font-size:13px;cursor:pointer;text-align:center}.catalog-photo-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.catalog-photo-button:focus-within{outline:2px solid var(--brg-graphite);outline-offset:2px}

/* Identité validée BRIGADE et navigation tactile. */
:root{color:var(--brg-graphite);background:var(--brg-white);--brigade-navy:var(--brg-graphite);--brigade-steel:var(--brg-graphite)}
body{color:var(--brg-graphite);background:var(--brg-white)}:focus-visible,.tools-tile:focus-visible{outline-color:var(--brg-graphite)}
.sidebar{background:var(--brg-graphite);border-color:var(--brg-graphite)}.logo-wrap{background:white}.logo-wrap .brand img{max-width:100%;height:auto;display:block}
.overline,.nav-group{color:var(--brg-on-dark)}.logo-wrap .overline{color:var(--brg-muted)}.venue{background:var(--brg-graphite);border-color:var(--brg-graphite);color:var(--brg-white)}
.nav-item{color:var(--brg-on-dark);min-height:44px}.nav-item:hover,.nav-item.active{background:var(--brg-graphite);box-shadow:inset 3px 0 var(--brg-graphite)}.nav-icon{color:inherit}
.sidebar-footer{background:var(--brg-graphite);border-color:var(--brg-graphite)}.link-btn{color:var(--brg-on-dark)}#sideNav{scrollbar-color:var(--brg-graphite) var(--brg-graphite)}
.topbar{background:var(--brg-white);border-color:var(--brg-line)}.top-left strong,.page-head h1,.panel h2,.panel h3,.metric strong,.record strong{color:var(--brg-graphite)}
.page-head .over{color:var(--brg-muted)}.primary,.capture-btn{background:var(--brg-graphite);color:var(--brg-white)}.primary:hover{background:var(--brg-graphite)}.outline{border-color:var(--brg-control);color:var(--brg-graphite)}.neutral,.capture-btn.soft{background:var(--brg-surface);color:var(--brg-graphite)}.gold{background:var(--brg-raised);color:var(--brg-graphite)}
.auth-wrap{background:var(--brg-graphite)}.auth-card h1,.auth-card .brand{color:var(--brg-graphite)}.pill{background:var(--brg-surface);color:var(--brg-graphite)}.notice,.inline-alert{border-left-color:var(--brg-graphite);background:var(--brg-surface);color:var(--brg-graphite)}
.quick button,.tools-tile,.simple-home-tile,.simple-home-all{color:var(--brg-graphite);border-color:var(--brg-line)}.quick button{background:var(--brg-white)}.hero{background:var(--brg-graphite)}
input,select,textarea{color:var(--brg-graphite);border-color:var(--brg-line)}.field{color:var(--brg-graphite)!important}.empty{background:var(--brg-white);color:var(--brg-muted);border-color:var(--brg-line)}
.top-left,.top-right{min-width:0}.top-left>div{min-width:0}.top-left strong{white-space:normal;overflow-wrap:anywhere;line-height:1.2}.top-right>button{min-height:44px}.content{overflow-wrap:anywhere}
@media(max-width:760px){
 .topbar{height:auto;min-height:64px;flex-wrap:wrap;gap:6px;padding:8px 12px}.top-left{flex:1;gap:7px}.top-right{gap:5px}.top-right #workspaceToSpaces{font-size:11px;padding:6px}.top-right #posRightsOpen{display:none}
 .top-left small{display:none}.top-right .online{width:10px}.top-right #refresh{min-width:40px;padding:6px}
 .sidebar.open:before{display:none}.sidebar.open{height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);overflow:hidden}.sidebar.open #sideNav{overflow-y:auto;flex:1;min-height:0}.sidebar-close{min-height:44px}.drawer-open{overflow:hidden}.drawer-overlay:not([hidden]){display:block;position:fixed;inset:0;z-index:24;border:0;background:rgb(var(--brg-graphite-rgb) / 0.502)}
 .bottom-nav{height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{min-height:48px;color:var(--brg-muted)}.bottom-nav button.active{color:var(--brg-graphite);box-shadow:inset 0 3px var(--brg-graphite)}.content{padding-bottom:calc(94px + env(safe-area-inset-bottom))}.toast{bottom:calc(80px + env(safe-area-inset-bottom))}
 input,select,textarea{font-size:16px}.btn,.mini{min-height:44px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* BRIGADE unified navy design — issue #85 */
:root{color:var(--brg-graphite);background:var(--brg-white)}
:focus-visible{outline-color:var(--brg-graphite)}
.sidebar{background:var(--brg-graphite);color:var(--brg-white)}
.brand span{color:var(--brg-on-dark)}
.overline,.nav-group{color:var(--brg-on-dark)}
.venue{background:var(--brg-graphite);border-color:rgb(var(--brg-graphite-rgb) / 0.4)}
.nav-item{color:var(--brg-on-dark)}
.nav-item:hover,.nav-item.active{background:var(--brg-graphite);color:var(--brg-white)}
.sidebar-footer{color:var(--brg-on-dark)}
.link-btn{color:var(--brg-on-dark)}
.topbar{border-bottom-color:var(--brg-line)}
.top-left small{color:var(--brg-muted)}
.icon-btn{background:var(--brg-white);border-color:var(--brg-line)}

/* Brand cleanup: replace every remaining green/gold navigation surface. */
:root{--brigade-navy:var(--brg-graphite);--brigade-steel:var(--brg-graphite);color:var(--brg-graphite)}
body{color:var(--brg-graphite);background:var(--brg-white)}
.sidebar,.sidebar-footer{background:var(--brg-graphite)!important;border-color:var(--brg-graphite)!important;color:var(--brg-on-dark)!important}
.sidebar .venue{background:var(--brg-graphite)!important;border-color:var(--brg-graphite)!important;color:var(--brg-white)}
.sidebar .nav-item{color:var(--brg-on-dark)!important}
.sidebar .nav-item:hover,.sidebar .nav-item.active{background:var(--brg-graphite)!important;box-shadow:inset 4px 0 var(--brg-control)!important;color:var(--brg-white)!important}
.sidebar .nav-icon{color:inherit!important}
.sidebar .overline,.sidebar .nav-group{color:var(--brg-on-dark)!important}
.sidebar .logo-wrap .overline{color:var(--brg-muted)!important}
.sidebar .link-btn{color:var(--brg-on-dark)!important}
#sideNav{scrollbar-color:var(--brg-graphite) var(--brg-graphite)}
.topbar{border-color:var(--brg-line)}
.top-left strong,.page-head h1,.panel h2,.panel h3,.metric strong,.record strong{color:var(--brg-graphite)}
.page-head .over{color:var(--brg-muted)}
.primary,.capture-btn{background:var(--brg-graphite);color:var(--brg-white)}
.primary:hover,.capture-btn:hover{background:var(--brg-graphite)}
.outline{border-color:var(--brg-control);color:var(--brg-graphite)}
.neutral,.capture-btn.soft{background:var(--brg-surface);color:var(--brg-muted)}
.gold{background:var(--brg-surface);color:var(--brg-muted)}
.auth-wrap{background:var(--brg-graphite)}
.auth-card h1,.auth-card .brand{color:var(--brg-graphite)}
.pill{background:var(--brg-surface);color:var(--brg-muted)}
.notice,.inline-alert{border-left-color:var(--brg-graphite);background:var(--brg-surface);color:var(--brg-muted)}
.quick button,.tools-tile,.simple-home-tile,.simple-home-all{color:var(--brg-graphite);border-color:var(--brg-line)}
.quick button{background:var(--brg-white)}
.hero{background:var(--brg-graphite)}
input,select,textarea{color:var(--brg-graphite);border-color:var(--brg-control)}
.field{color:var(--brg-muted)!important}
.empty{background:var(--brg-white);color:var(--brg-muted);border-color:var(--brg-line)}
.drawer-overlay:not([hidden]){background:rgb(var(--brg-graphite-rgb) / 0.533)}
.bottom-nav button{color:var(--brg-muted)!important}
.bottom-nav button.active{color:var(--brg-graphite)!important;box-shadow:inset 0 3px var(--brg-graphite)!important}
.toast{background:var(--brg-graphite);color:white}
:focus-visible,.tools-tile:focus-visible{outline-color:var(--brg-graphite)}

/* Simple recipe landing */
.recipe-home{display:grid;gap:18px;margin:16px 0 22px}
.recipe-camera-main{display:flex;justify-content:center;padding:22px 12px;background:var(--brg-surface);border:1px solid var(--brg-line);border-radius:22px}
.recipe-camera-label{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;cursor:pointer;background:var(--brg-graphite);color:white;padding:26px 20px;border-radius:20px;min-width:min(100%,270px);max-width:100%}
.recipe-camera-icon{font-size:54px;line-height:1.2}
.recipe-camera-label strong{font-size:17px}.recipe-camera-label small{font-size:12px;color:var(--brg-on-dark)}
.recipe-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:9px}
.recipe-categories .btn{min-height:52px;white-space:normal;text-align:center}
@media(max-width:600px){.recipe-categories{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-camera-main{padding:14px 8px}}

/* Android standalone navigation-bar background / bottom safe area */
html,body{background-color:var(--brg-graphite)!important}
body{min-height:100dvh}
@supports (padding-bottom:env(safe-area-inset-bottom)){body{padding-bottom:env(safe-area-inset-bottom,0px)}}

/* BRIGADE mobile light canvas: white page, blue top navigation retained */
html,body{background-color:var(--brg-white)!important}
.layout,.rightcol,.content{background-color:var(--brg-white)}
.topbar{background:var(--brg-graphite)!important;border-bottom:1px solid var(--brg-graphite)!important}
.topbar .top-left strong,.topbar .top-left small{color:var(--brg-white)!important}
.topbar .icon-btn,.topbar #workspaceToSpaces{background:var(--brg-graphite)!important;color:var(--brg-white)!important;border-color:var(--brg-graphite)!important}
.topbar .online{color:var(--brg-on-dark)!important}
.topbar .online .dot{background:var(--brg-raised)!important}
.simple-home-tile,.simple-home-all{background:var(--brg-white)}
@media(max-width:760px){.layout,.rightcol,.content{background:var(--brg-white)!important}}

/* Accueil V119 — presentation only; navigation and business logic unchanged */
.content:has(.simple-home-grid){background:var(--brg-white)!important}
.content:has(.simple-home-grid) .page-head{background:var(--brg-white)!important;color:var(--brg-graphite)!important;margin:0 0 14px;padding:4px 0 0;min-height:0}
.content:has(.simple-home-grid) .page-head .over{color:var(--brg-muted)!important}
.content:has(.simple-home-grid) .page-head h1{color:var(--brg-graphite)!important}
.content:has(.simple-home-grid) .page-head p{color:var(--brg-muted)!important}
.simple-home-grid{gap:12px;margin:14px 0 12px}
.simple-home-tile{min-height:132px;padding:17px 16px;border-radius:17px;gap:6px;border-color:var(--brg-line);box-shadow:0 3px 12px rgb(var(--brg-graphite-rgb) / 0.043)}
.simple-home-tile strong{font-size:18px;line-height:1.2;letter-spacing:-.015em}
.simple-home-tile small{font-size:12px;line-height:1.35}
.simple-home-icon{font-size:25px;line-height:1.15;margin-bottom:4px}
.simple-home-all{padding:15px 17px;border-radius:16px;min-height:73px;box-shadow:0 3px 12px rgb(var(--brg-graphite-rgb) / 0.035)}
.simple-home-details{margin-top:13px;padding:14px 16px;border-radius:15px}
.simple-home-details summary{font-size:14px;color:var(--brg-graphite)}
@media(max-width:760px){
 .content:has(.simple-home-grid){padding:15px 14px calc(95px + env(safe-area-inset-bottom))}
 .content:has(.simple-home-grid) .page-head{margin-bottom:10px}
 .content:has(.simple-home-grid) .page-head h1{font-size:25px;margin:3px 0}
 .content:has(.simple-home-grid) .page-head p{font-size:12px;margin:3px 0}
 .simple-home-grid{gap:10px;margin:12px 0}
 .simple-home-tile{min-height:125px;padding:14px 13px;border-radius:16px}
 .simple-home-tile strong{font-size:17px}
 .simple-home-tile small{font-size:12px}
 .simple-home-all{padding:13px 14px;min-height:69px}
 .simple-home-details{margin-top:12px}
}
@media(max-width:370px){.simple-home-tile{min-height:123px;padding:12px 10px}.simple-home-tile strong{font-size:16px}}

/* Small photo action alongside existing wine, cocktail and dish catalog rows */
.catalog-inline-photo{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--brg-control);border-radius:10px;background:var(--brg-surface);color:var(--brg-graphite);font-size:20px;cursor:pointer;flex-shrink:0}
.catalog-inline-photo:focus-within{outline:2px solid var(--brg-graphite);outline-offset:2px}
#recipeFilteredList .record aside{gap:8px;flex-wrap:nowrap}
#recipeFilteredList .record>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){#recipeFilteredList .record{gap:10px;padding:12px}#recipeFilteredList .record aside .btn{min-height:40px}}

/* Unified touch-first layout, 2026-11-17 */
.catalog-extra-details{background:var(--brg-white);border:1px solid var(--brg-line);border-radius:12px;margin-top:12px;padding:12px}
.catalog-extra-details>summary{font-size:14px;font-weight:700;color:var(--brg-graphite);min-height:40px;display:flex;align-items:center;cursor:pointer}
.catalog-extra-details:not([open]){padding-bottom:8px}
.catalog-extra-details .panel{box-shadow:none;margin:12px 0;padding:15px}
@media(max-width:760px){.record{gap:10px}.record aside{flex-wrap:wrap;justify-content:flex-end}.controls{gap:8px}.controls .btn{max-width:100%}.panel{padding:16px;margin-bottom:13px}.catalog-extra-details .panel{padding:12px}.detail-rows>div{gap:8px}}

/* White entry and authentication canvas — no full-screen navy/green */
html,body{background:var(--brg-white)}
.auth-wrap{background:var(--brg-white)!important;min-height:100dvh}
.auth-card{background:var(--brg-white);box-shadow:0 10px 32px rgb(var(--brg-graphite-rgb) / .08);border:1px solid var(--brg-line)}
#brigadeEntry{background:var(--brg-white)!important}
#brigadeEntry>div{box-shadow:0 10px 32px rgb(var(--brg-graphite-rgb) / .08)!important;border:1px solid var(--brg-line)}

/* Android PWA bottom system safe-area: white, never legacy green */
:root{color-scheme:light}
html,body,#workspace,.layout,.rightcol{background:var(--brg-white)!important}
body{padding-bottom:env(safe-area-inset-bottom,0px);background:var(--brg-white)!important}
.bottom-nav{background:var(--brg-white)!important;border-top:1px solid var(--brg-line)!important}
@media(display-mode:standalone){html,body{background:var(--brg-white)!important}body::after{content:"";position:fixed;left:0;right:0;bottom:0;height:env(safe-area-inset-bottom,0px);background:var(--brg-white);pointer-events:none;z-index:9998}}

/* Saved catalog photo: visible immediately on mobile, without expanding tools */
.catalog-main-photo{max-width:100%;margin:0 0 18px;padding:14px;border:1px solid var(--brg-line);border-radius:18px;background:var(--brg-white);box-shadow:0 5px 18px rgb(var(--brg-graphite-rgb) / .04)}
.catalog-main-photo img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;background:var(--brg-white);border-radius:10px}
.catalog-main-photo-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:var(--brg-graphite);font-size:14px}
@media(max-width:760px){.catalog-main-photo{padding:10px;margin-bottom:14px}.catalog-main-photo img{max-height:260px}}

/* Product images in recipe category lists */
#recipeFilteredList .catalog-product-record{display:flex;align-items:center;gap:12px}
#recipeFilteredList .catalog-list-thumb{width:76px;height:90px;flex:0 0 76px;border-radius:12px;border:1px solid var(--brg-line);background:var(--brg-white);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--brg-muted)}
#recipeFilteredList .catalog-list-thumb img{width:100%;height:100%;object-fit:contain;display:block}
#recipeFilteredList .catalog-product-record>div:nth-child(2){min-width:0;flex:1}
@media(max-width:760px){#recipeFilteredList .catalog-product-record{flex-wrap:wrap;gap:10px}#recipeFilteredList .catalog-list-thumb{width:66px;height:78px;flex-basis:66px}#recipeFilteredList .catalog-product-record aside{margin-left:auto}}

/* BRIGADE V3 module shell */
.brigade-v3-welcome{display:grid;place-items:center;min-height:100dvh;padding:20px;background:var(--brg-surface)}
.brigade-v3-welcome .auth-card{width:min(100%,440px)}
.brigade-module-grid{margin:0 0 16px}
.brigade-module-grid .tools-tile{min-height:92px;text-align:left}
.brigade-module-grid small{font-size:.78rem;color:var(--brg-muted);line-height:1.25}
.brigade-module-frame{display:block;width:100%;height:calc(100dvh - 120px);min-height:440px;border:1px solid var(--brg-line);border-radius:12px;background:var(--brg-white)}
@media(max-width:760px){
 .brigade-module-frame{height:calc(100dvh - 155px - env(safe-area-inset-bottom));min-height:300px;border-radius:8px}
 .brigade-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.bottom-nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}

/* Graphite workspace and readable touch controls. */
.topbar {
  background: var(--brg-white) !important;
  border-bottom-color: var(--brg-line) !important;
}
.topbar .top-left strong { color: var(--brg-graphite) !important; }
.topbar .top-left small, .topbar .online { color: var(--brg-muted) !important; }
.sidebar .logo-wrap .overline { color: var(--brg-muted) !important; }
.sidebar :focus-visible { outline-color: var(--brg-white); }
.sidebar .nav-item:hover, .sidebar .nav-item.active {
  background: rgb(255 255 255 / .13) !important;
  box-shadow: inset 3px 0 var(--brg-white) !important;
}
.primary:hover { background: var(--brg-pressed); }
.outline { background: var(--brg-white); color: var(--brg-graphite); }
.content, .rightcol, .view { min-width: 0; }
.content { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .btn, .icon-btn, .bottom-nav button { min-height: 44px; }
  .bottom-nav button { min-width: 0; }
  .content :is(input, select, textarea), .auth-card input { font-size: 16px; }
  .panel :is(img, video) { max-width: 100%; }
}
.topbar #workspaceToSpaces {
  border-color: var(--brg-control) !important;
  background: var(--brg-white) !important;
  color: var(--brg-graphite) !important;
}
@media (max-width: 420px) {
  .topbar:has(#backModule:not([hidden])) #workspaceToSpaces {
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    font-size: 0 !important;
  }
  .topbar:has(#backModule:not([hidden])) #workspaceToSpaces::before {
    content: "⌂" / "";
    font-size: 20px;
  }
}

/* Keep module titles and the install action in the header's normal flow. */
@media (max-width: 760px) {
  .top-left { flex-basis: 145px; }
  .top-right { flex-wrap: wrap; margin-left: auto; }
  .topbar:has(#install:not([hidden])) .top-left { flex-basis: 100%; }
}
