:root{font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif;color:#19314d;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dce4ee;padding:18px max(20px,calc((100vw - 1040px)/2));display:flex;justify-content:space-between;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;white-space:nowrap}.brand b{background:#2d5df5;color:#fff;font-size:26px;line-height:42px;width:42px;text-align:center;border-radius:12px}.brand em{font-style:normal;color:#6c7f95}.pilot{font-size:14px;color:#61728a}main{max-width:1040px;margin:32px auto;padding:0 20px}.notice{font-size:14px;padding:12px 16px;background:#e9effa;border:1px solid #cedaf1;border-radius:10px;margin-bottom:24px}#login,#mfa{max-width:480px;margin:46px auto;padding:30px;background:#fff;border:1px solid #dde5ef;border-radius:16px}h1{font-size:32px;line-height:1.2;margin:8px 0 16px}h2{font-size:23px}.eyebrow{color:#627c9c;font-size:13px;font-weight:700;letter-spacing:.1em}form{display:grid;gap:16px}label{display:grid;gap:6px;font-size:15px;font-weight:600}input{min-height:46px;border:1px solid #bdcce0;border-radius:8px;padding:10px 12px;color:inherit;font:inherit;background:#fff;max-width:100%;width:100%}button{min-height:46px;padding:10px 16px;background:#2d5df5;color:#fff;border:0;border-radius:8px;font:600 15px system-ui;cursor:pointer}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e8edf5;color:#19314d}#status{font-size:15px;color:#6a4a15;padding:12px 0;min-height:1px}#status:empty{display:none}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #efb42e;outline-offset:4px}.heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.search{grid-template-columns:1fr auto;align-items:end;margin:26px 0}.case-list{display:grid;gap:12px;margin-bottom:24px}.case-card{padding:18px;background:#fff;border:1px solid #dce4ee;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:16px}.case-card p{margin:5px 0}.fine{font-size:14px;color:#5f738d;overflow-wrap:anywhere}details{background:#fff;border:1px solid #dce4ee;border-radius:12px;padding:18px;margin:20px 0}summary{cursor:pointer;font-weight:650}details form{padding-top:20px}.check{display:flex;align-items:start;font-weight:400}.check input{width:20px;min-height:20px;flex:none;margin-right:7px}#case-detail{border:1px solid #bfcfe3;background:#fff;border-radius:14px;padding:22px;margin:24px 0}.uuid{font:14px Consolas,monospace;overflow-wrap:anywhere;background:#f0f4fa;padding:12px;border-radius:7px}#qr{width:220px;max-width:100%;display:block;margin:20px auto}#qr[hidden],[hidden]{display:none!important}footer{max-width:1040px;margin:35px auto;padding:0 20px;font-size:13px;color:#6b7c92}@media(max-width:600px){header{padding:14px 16px}.pilot{font-size:12px}.brand span{font-size:14px}main{margin:18px auto;padding:0 16px}#login,#mfa{padding:24px 20px;margin:24px auto}h1{font-size:27px}.heading{display:block}.heading>button{margin-top:10px}.search{grid-template-columns:1fr}.case-card{display:block}.case-card button{margin-top:10px}#case-detail{padding:17px}}
#recovery{max-width:480px;margin:24px auto;padding:24px 20px;background:#fff;border:1px solid #dde5ef;border-radius:16px}#recovery button{width:100%}#status{overflow-wrap:anywhere}

.workspace-heading{align-items:center;margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid #dce4ee}
.workspace-nav{display:flex;flex-wrap:wrap;gap:8px}
.workspace-nav [aria-pressed=true]{background:#193b62;color:#fff}
.fleet-intro{display:flex;justify-content:space-between;align-items:center;gap:12px}
.fleet-intro .eyebrow{margin:0;color:#526b86}
.fleet-intro h1{margin:5px 0 0}
.fleet-readonly{background:#e6edf5;border:1px solid #c4d2e1;border-radius:20px;padding:4px 12px;font-size:13px;font-weight:700;white-space:nowrap}
.fleet-reference{font-size:14px;color:#4d617b;margin:8px 0 16px}
.fleet-filters{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.fleet-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:7px 10px;background:#fff;border:1px solid #cbd7e3;color:#19314d;font-size:13px}
.fleet-filter[aria-pressed=true]{background:#e2eff7;border-color:#44779e;color:#173d63}
.fleet-filter-count{background:#edf2f6;border-radius:7px;padding:1px 6px}
#fleet-message{margin:10px 0}
.fleet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(165px,100%),1fr));gap:10px}
.fleet-card{min-width:0;background:#fff;border:1px solid #d5e0ea;border-radius:12px;padding:10px 12px}
.fleet-card[data-division=dauteuil]{border-left:3px solid #8057a2}
.fleet-card[data-division=sf]{border-left:3px solid #ad5132}
.fleet-card[data-status=unavailable]{border-left:3px solid #b6544b}
.fleet-card-heading,.fleet-unit{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.fleet-unit strong{font-size:25px;line-height:1.1;color:#174975}
.fleet-unit-label{font-size:11px;color:#526b86;font-weight:700;text-transform:uppercase}
.fleet-badge,.fleet-division{font-size:11px;font-weight:700;border-radius:20px;padding:2px 7px;background:#e8f0f7;color:#244561;white-space:nowrap}
[data-status=available] .fleet-badge{background:#e4f2e9;color:#185a40}
[data-status=unavailable] .fleet-badge{background:#fcecea;color:#862c26}
[data-division=dauteuil] .fleet-division{background:#f1eaf7;color:#62377d}
[data-division=sf] .fleet-division{background:#faeee7;color:#853c26}
.fleet-photo{display:block;width:100%;height:82px;object-fit:contain;margin:5px 0;text-align:center;color:#5f738d}
.fleet-card h3{margin:0;font-size:14px;line-height:1.25}
.fleet-card-facts{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:3px 0 0;color:#4d617b;font-size:12px}

.planning-search{max-width:540px;margin:16px 0}
.planning-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,340px);gap:14px;align-items:start}
.planning-stages{margin-top:0}
.planning-jobs{display:grid;gap:5px}
.planning-job{display:grid;grid-template-columns:77px minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;background:white;color:#19314d;border:1px solid #d5e0ea;font-size:13px;padding:8px 10px}
.planning-job[aria-pressed=true]{background:#e8f1f7;border-color:#668cae}
.planning-job small{font-size:12px;color:#465e79}
.planning-detail{padding:14px;background:white;border:1px solid #d5e0ea;border-radius:12px}
.planning-detail h2{margin:0 0 6px}
.planning-detail h3{font-size:15px;margin:12px 0 6px}
.planning-detail .fine{font-size:12px;margin:6px 0}
.planning-facts{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;font-size:13px;margin:10px 0}
.planning-facts dt{color:#465e79}
.planning-facts dd{margin:0;text-align:right;font-weight:650}
.planning-open-fleet{margin-top:8px;min-height:38px;padding:6px 12px;font-size:13px}
.progi-reading{max-width:420px;margin:16px 0}
.progi-reading .eyebrow{margin:0 0 5px}
.progi-overview{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;margin:0 0 14px;padding:8px 12px;background:#eef5fa;border:1px solid #d9e7f0;border-radius:8px;font-size:.875rem}
.progi-overview[hidden]{display:none}
.progi-overview a{margin-inline-start:auto}
.admin-docs{border-top:1px solid #dce4ee;margin-top:12px;padding-top:5px}
.admin-path{display:block;color:#465e79;font-size:11px;overflow-wrap:anywhere}
.admin-actions,.admin-matches{display:flex;flex-wrap:wrap;gap:5px}
.admin-docs .planning-open-fleet{min-height:34px;padding:5px 8px}
.admin-filename,.admin-original{display:block;font-size:13px;overflow-wrap:anywhere}
.admin-original{margin:5px 0;color:#174975}
@media(max-width:720px){.planning-layout{grid-template-columns:minmax(0,1fr)}.planning-detail{grid-row:1}}
.shared-loan-dialog{width:min(430px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c7d7e6;border-radius:14px;padding:16px;color:#153857;box-shadow:0 14px 44px #102c4e33}
.shared-loan-dialog::backdrop{background:#142b455e}
.shared-loan-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.shared-loan-heading h2{margin:0;font-size:1.2rem}
.shared-loan-dialog form{display:grid;gap:9px}
.shared-loan-dialog select{width:100%;padding:9px;border:1px solid #bacbdd;border-radius:6px;background:#fff;color:inherit;font:inherit}
.shared-loan-dialog button{min-height:36px}
.shared-loan-dialog button.secondary{margin:3px}
.shared-loan-dialog [role=status]:empty{display:none}
.fleet-card-action{min-height:32px;padding:4px 9px;margin-top:4px}
.delivery-heading,.delivery-nav{display:flex;align-items:center;gap:7px}
.delivery-heading{justify-content:space-between;margin:10px 0}
.delivery-heading h1,.delivery-heading p{margin:0}
.delivery-week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.delivery-day{display:grid;align-content:start;gap:4px;padding:5px;border:1px solid #d3e1e9;border-radius:8px;background:#f6f9fb}
.delivery-day[data-today=true]{border-color:#338963;background:#f0f9f4}
.delivery-day h2{display:flex;justify-content:space-between;gap:3px;margin:0 1px 3px;font-size:13px}
.delivery-count{background:#dfeaf2;padding:0 5px;border-radius:7px}
.delivery-tile{display:grid;gap:0;text-align:left;min-height:32px;padding:2px 5px;color:#18405b;background:white;border:1px solid #c3d8e5;border-left:3px solid #27729a;font-size:11px}
.delivery-tile[data-state=confirmed]{border-left-color:#298057;background:#f0f9f4}
.delivery-tile[data-state=review]{border-left-color:#ad2d28;background:#fff1ee}
.delivery-tile[data-state=waiting]{border-left-color:#a46b0d;background:#fff7dc}
.delivery-tile[data-state=completed]{border-left-color:#6d7c86;background:#f3f5f6}
@media(max-width:640px){.delivery-week{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.delivery-heading{flex-wrap:wrap}}

/* Structure commune au Parc, aux prêts et à la vue Planning. */
.hub-pilot { background:#f2f6f8; color:#18364b; }
.hub-pilot > .hub-header { min-height:55px; padding:6px 3%; border-color:#dce5ec; }
.hub-header .brand img { display:block; width:106px; height:42px; object-fit:contain; object-position:left center; }
.hub-header .pilot { color:#536c83; font-size:11px; }
.hub-header-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 14px; }
#planning-return { padding:5px 0; color:#205a74; font-size:12px; font-weight:750; }
#planning-return:hover { color:#153d76; }
.hub-pilot > main { width:100%; max-width:1760px; margin:0 auto; padding:12px 3% 24px; }
.hub-pilot > main:has(#workspace[data-view=planning]:not([hidden])) { max-width:none; padding-inline:clamp(16px, 2vw, 34px); }
.hub-pilot .workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 8px; padding:0; border-bottom:1px solid #cfdae5; }
.hub-pilot .workspace-nav { display:flex; flex-wrap:wrap; align-items:stretch; gap:6px 12px; }
.hub-pilot .workspace-nav button { min-height:36px; margin:0; padding:6px 10px; background:transparent; color:#284e6b; border-radius:6px 6px 0 0; border-bottom:3px solid transparent; font-size:12px; }
.hub-pilot .workspace-nav [data-workspace-view=planning] { background:#eaf3f5; color:#205a74; font-weight:750; }
.hub-pilot .workspace-nav button[aria-pressed=true] { color:#214f85; border-bottom-color:#315efb; font-weight:800; }
.hub-pilot .workspace-nav button:hover { background:#e8f1f6; }
.hub-pilot #logout,.hub-pilot .workspace-tools button { min-height:30px; margin:0; padding:4px 9px; background:transparent; color:#536c83; font-size:11px; }
.hub-pilot #logout:hover,.hub-pilot .workspace-tools button:hover { background:#e7eff4; color:#18364b; }
.hub-pilot .workspace-tools { display:flex; justify-content:flex-end; margin-top:12px; }
.hub-pilot .workspace-tools:has([hidden]) { display:none; }
.hub-pilot .shared-loan-dialog { width:min(465px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; margin:0 0 0 auto; padding:18px; border-radius:16px 0 0 16px; background:#f7fafb; }
.hub-pilot .shared-loan-dialog .shared-loan-heading { padding-bottom:10px; border-bottom:1px solid #dbe4ec; }
.hub-pilot .shared-loan-dialog .shared-loan-heading h2 { color:#153d76; font-size:23px; }
.hub-pilot .shared-loan-dialog button:not(.secondary) { background:#245f85; }
@media (max-width:620px) {
  .hub-pilot > .hub-header { min-height:45px; padding:5px 3%; }
  .hub-header .brand img { width:86px; height:34px; }
  .hub-pilot > main { padding:9px 3% 20px; }
  .hub-pilot .workspace-heading { gap:4px; }
  .hub-pilot .workspace-nav { gap:0; }
  .hub-pilot .workspace-nav button { min-height:34px; padding-inline:6px; font-size:11px; }
  .hub-pilot #logout { padding-inline:4px; font-size:10px; }
}
