:root{--ink:#1d2125;--muted:#5c6670;--line:#d3d8dc;--bg:#eceef0;--paper:#fff;--gold:#ffc20e;--blue:#1f5fad;--green:#2e7d4f;--red:#b84013}
.chantier{background:var(--bg);color:var(--ink);font:400 1rem/1.43 Georgia,'Times New Roman',serif;letter-spacing:0}
.sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-head,.site-nav,.pagehead h1,.bar h2,.metric span,.person h3,.person kbd,.person .card-stats small,.task-detail h2,.task-detail h3,.records thead,.primary,.quiet,.edit,.filter-meta,.subcontrols{font-family:'Arial Narrow','Segoe UI',system-ui,sans-serif}
body.chantier>header{padding:12px 20px;min-height:66px;background:#1d2125;border:0;position:relative;justify-content:flex-start}.site-head::after{content:"";position:absolute;inset:auto 0 -6px;height:6px;background:repeating-linear-gradient(-45deg,#ffc20e 0 11px,#1d2125 11px 23px);z-index:3}.site-mark{display:grid;place-items:center;background:#ffc20e;color:#191d21;width:42px;height:42px;font-weight:900;clip-path:polygon(0 0,100% 0,100% 74%,74% 100%,0 100%)}.site-head strong{font-size:1.14rem}.site-head em{color:var(--gold);font-style:normal}.site-head small{font:400 .75rem Georgia,serif;letter-spacing:.10em;color:#d1d7dc}.site-head .badge{margin-left:auto;color:#fff;border-color:#4b5258}.site-head .context{background:none;border:0;padding:0;margin-left:10px;gap:6px}.site-head .context select,.site-head .context button{background:#2b3137;color:#fff;border:1px solid #50565b;font-size:.9rem;min-height:38px;padding:5px 9px}
.site-nav{padding:6px 22px 0;margin:0;background:#fff;gap:12px;box-shadow:0 1px 0 #ccd1d5;overflow:auto}.site-nav button{font-size:.9rem;white-space:nowrap;text-transform:uppercase;letter-spacing:.035em;color:#535d69;padding:11px 11px;min-height:48px}.site-nav button[aria-current]{background:none;color:#171c21;border-color:#ffc20e}.site-nav button span{margin-right:4px;font-size:1.12rem}
.chantier main{width:min(1850px,calc(100% - 52px));margin:0 auto}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:82px;border-bottom:2px solid #30363b;margin:0 0 19px}.pagehead>div:first-child,.page-actions{display:flex;align-items:center;gap:10px}.pagehead h1{font-weight:800;text-transform:uppercase;font-size:clamp(1.45rem,3vw,2.05rem);letter-spacing:.025em}.pagehead #viewIcon{display:grid;place-items:center;width:37px;height:37px;background:var(--gold);font:bold 1.35rem system-ui}.chantier button,.chantier select,.chantier input,.chantier textarea{border-radius:3px;border-color:#cbd2d9}.chantier .primary{background:#ffc20e;color:#161a1e;border-color:#e4ad05}.page-actions button{text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.page-actions .quiet{background:#fff}
.chantier .stats{gap:13px;margin-bottom:20px}.chantier .metric{isolation:isolate;min-height:141px;display:flex;flex-direction:column;justify-content:flex-end;padding:15px 15px 13px;border:0;border-radius:9px;box-shadow:0 7px 16px #19253123;color:white;background:#252c34}.chantier .metric::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--art) 86% center/auto 110% no-repeat}.chantier .metric::after{content:"";position:absolute;inset:0;width:auto;z-index:-1;background:linear-gradient(0deg,#11161bdc,#11161b12),linear-gradient(90deg,#12161ad9,#12161a00 85%)}.chantier .metric.data-0{--art:url(metrics.svg);background-color:#272f37}.chantier .metric.data-1{--art:url(metrics.svg);background-color:#1b5335}.chantier .metric.data-2{--art:url(horaire.svg);background-color:#563022}.chantier .metric.data-3{--art:url(chantier-720.webp);background-color:#523b23}.chantier .metric.is-team.data-0,.chantier .metric.is-team.data-1{--art:url(equipe.svg)}.chantier .metric.is-team.data-2{--art:url(horaire.svg)}.chantier .metric.is-team.data-3{--art:url(metrics.svg)}.chantier .metric strong{font:400 clamp(1.75rem,3vw,2.65rem)/1.1 Georgia,serif}.chantier .metric span{font-size:.88rem;font-weight:770;color:#fff;text-transform:uppercase;margin-top:5px}.chantier .metric b{position:absolute;top:13px;left:15px;width:12px;height:12px;background:var(--tone);border:2px solid #ffffff6e;border-radius:50%}
.chantier .filters{grid-template-columns:1fr 1fr 1fr minmax(180px,1.7fr) 1fr 1fr;background:none;border:0;padding:0;gap:9px;margin:0 0 13px}.chantier .filters input,.chantier .filters select{font-size:.98rem;min-height:44px}.chantier .filter-meta{background:#fff;border:1px solid var(--line);margin:0 0 12px;padding-inline:12px}.work-area{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;align-items:start}.work-area.has-detail{grid-template-columns:minmax(0,1fr) clamp(250px,23vw,358px)}.table-shell,.task-detail{border:1px solid var(--line);background:white;border-radius:4px;overflow:hidden}.table-shell .bar{padding:10px 13px;background:#f6f7f8}.table-shell h2{font-size:.93rem;letter-spacing:.045em;text-transform:uppercase}.chantier .records{min-width:805px}.chantier .records td,.chantier .records th{padding:9px 10px;vertical-align:middle}.chantier .records th{font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;background:#f3f5f6}.chantier .records td{font-size:.97rem}.chantier .records td:first-child{min-width:37px;font-size:.85rem;color:var(--muted)}.chantier .records tbody tr:hover,.chantier .records tbody tr.is-active{background:#fff8da}.chantier .records .rowlink{color:#20262b;min-height:30px;font-weight:600}.mini{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e3e7ea;color:#424e59;font:700 .66rem system-ui;margin-right:4px}.chantier .pill{border-radius:3px;font-size:.81rem;padding:3px 6px}.chantier .s1{color:#17528e;background:#e3eef9}.chantier .s2{color:#256843;background:#e1efe7}.chantier .meter{accent-color:#252b30}.task-detail{position:sticky;top:12px}.task-detail header{display:flex;align-items:center;justify-content:space-between;background:#1d2125;color:var(--gold);padding:9px 12px}.task-detail h2{font-size:.83rem;text-transform:uppercase;letter-spacing:.06em}.task-detail header button{background:transparent;border:0;color:#fff;padding:3px 8px;min-height:32px}.detail-body{padding:13px}.detail-body h3{margin-bottom:6px;font-size:1.15rem;text-transform:uppercase;overflow-wrap:anywhere}.detail-body form .formgrid{margin-top:12px}.detail-body form .actions{justify-content:stretch}.detail-body form .actions button{flex:1}.detail-body input[type=range]{padding:0;width:100%;accent-color:#222a31}.detail-body output{float:right}
.chantier .cards{padding:0;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}.chantier .person{animation:none;background:#ffffff;border-radius:4px;padding:14px}.person .card-top{display:flex;justify-content:space-between;gap:6px;margin-bottom:13px}.person .card-top small{color:#5a6470;font-size:.84rem}.person .avatar{float:none;width:59px;height:59px;display:grid;place-items:center;background:#e6e9ec;color:#536170;font:800 1.25rem system-ui;margin:0}.person .person-id{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:10px;min-height:72px}.person .person-id h3{font-size:1.02rem;text-transform:uppercase}.person .person-id p{margin:2px 0;font-size:.91rem}.person .card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px;border:1px solid #e1e5e8}.card-stats div{padding:7px;border-right:1px solid #e1e5e8}.card-stats div:last-child{border-right:0}.card-stats strong,.card-stats small{display:block}.card-stats strong{font-size:1.19rem;font-weight:400}.card-stats small{text-transform:uppercase;color:#59636c;font-size:.68rem}.person .availability{border-radius:3px;background:#e2f0e7;color:#246447;padding:2px 6px;font-size:.86rem}.person .availability.off{background:#f6e8e0;color:#9a3e22}.person .person-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.person .person-actions button{font-size:.8rem;font-family:system-ui,sans-serif;margin:0;min-height:36px}
.chantier .config{background:white;border:1px solid var(--line)}
@media(max-width:1130px){.chantier .filters{grid-template-columns:repeat(3,minmax(0,1fr))}.work-area.has-detail{grid-template-columns:minmax(0,1fr) minmax(250px,28%)}}
@media(max-width:760px){body.chantier>header{flex-wrap:wrap;padding:10px 10px}.site-head .badge{font-size:.62rem}.site-head .context{order:3;flex-basis:100%;margin-left:0}.site-nav{padding-left:7px;gap:2px}.site-nav button{font-size:.77rem;padding-inline:7px}.chantier main{width:calc(100% - 18px)}.pagehead{min-height:66px;gap:5px;flex-wrap:wrap;padding:8px 0;margin-bottom:10px}.pagehead #viewIcon{width:28px;height:28px}.page-actions{gap:4px}.page-actions button{font-size:.76rem;padding:4px 7px;min-height:35px}.chantier .stats{gap:8px;margin-bottom:12px}.chantier .metric{min-height:91px;padding:7px 9px}.chantier .metric span{font-size:.72rem}.chantier .metric b{width:9px;height:9px;top:7px;left:8px}.chantier .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.chantier .filters input{grid-column:auto}.work-area.has-detail{display:flex;flex-direction:column}.work-area.has-detail>*{width:100%}.task-detail{position:static;order:-1}.chantier .records{min-width:0}.chantier .records td:first-child{display:none;grid-column:auto}.chantier .records td:nth-child(2){min-width:0;grid-column:1/-1;border-bottom:1px solid var(--line)}.chantier .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px}}
@font-face{font-family:"Archivo Narrow";src:url("fonts/archivo-narrow.woff2") format("woff2");font-display:swap;font-weight:600 700}
@font-face{font-family:"Ledger";src:url("fonts/ledger.woff2") format("woff2");font-display:swap;font-weight:400}
.chantier{font-family:"Ledger",Georgia,serif}.site-head,.site-nav,.pagehead h1,.bar h2,.metric span,.person h3,.person .card-stats small,.task-detail h2,.task-detail h3,.records thead,.primary,.quiet,.edit,.filter-meta,.subcontrols{font-family:"Archivo Narrow","Arial Narrow",system-ui,sans-serif}.chantier .metric strong{font-family:"Ledger",Georgia,serif}
.chantier .stats .metric:nth-child(1){--art:url(metrics.svg);background-color:#272f37}
.chantier .stats .metric:nth-child(2){--art:url(metrics.svg);background-color:#1b5335}
.chantier .stats .metric:nth-child(3){--art:url(horaire.svg);background-color:#563022}
.chantier .stats .metric:nth-child(4){--art:url(chantier-720.webp);background-color:#523b23}
.chantier .stats[data-view="team"] .metric:nth-child(1),.chantier .stats[data-view="team"] .metric:nth-child(2){--art:url(equipe.svg)}
.chantier .stats[data-view="team"] .metric:nth-child(4){--art:url(metrics.svg)}
.chantier .metric::before,.chantier .metric::after{z-index:auto}
.chantier .metric strong,.chantier .metric span,.chantier .metric b{z-index:2}
.chantier .metric::after{background:linear-gradient(0deg,#11161be1,#11161b12),linear-gradient(90deg,#12161ae6,#12161a00 86%)}
.chantier .filters select{padding-left:8px;padding-right:5px;font-size:.92rem}
.chantier .detail-body input{min-width:0}

/* Palette pétrole : même poste de travail, sans le code visuel jaune/noir. */
:root{--ink:#142a32;--muted:#51646b;--line:#d2dcdd;--bg:#eaf0f0;--gold:#9bdfce;--blue:#13695e}
body.chantier>header,.task-detail header{background:#132d36}
.site-head::after{background:linear-gradient(90deg,#6bd2ba 0 23%,#3c9c99 23% 56%,#275964 56% 100%);height:4px}
.site-head .context select,.site-head .context button{background:#21414b;border-color:#48717a}
.site-mark,.pagehead #viewIcon{background:#9bdfce;color:#11363a}
.site-nav button[aria-current]{border-color:#208678;color:#164d49}
.chantier .primary{background:#a8e7d5;color:#123b3b;border-color:#83ceb9}
.chantier .pagehead{border-color:#264e53}
.chantier .subcontrols button[aria-pressed="true"]{background:#e2f6ed;color:#185940;border-color:#a4d7c6}
.chantier .records tbody tr:hover,.chantier .records tbody tr.is-active{background:#e7f5f1}
.chantier .records .rowlink{color:#1c3940}
.chantier .metric strong,.chantier .metric span{color:#fff}
.chantier .stats .metric:nth-child(1){background-color:#223e4b}.chantier .stats .metric:nth-child(2){background-color:#1a5146}.chantier .stats .metric:nth-child(4){background-color:#27444c}
.chantier .person .avatar,.avatar.photo-preview,.mini{overflow:hidden;background:#dfefeb;color:#245d55}
.avatar img,.mini img{display:block;width:100%;height:100%;object-fit:cover}
.photo-field{min-width:0;border:1px solid var(--line);padding:9px 12px;margin:3px 0 0}
.photo-field legend{font:700 1rem "Archivo Narrow",system-ui,sans-serif;color:#234e54;padding:0 5px}
.photo-editor{display:grid;grid-template-columns:60px minmax(0,1fr);gap:9px;align-items:center}
.avatar.photo-preview{width:56px;height:56px;border-radius:50%;font:700 1rem system-ui}
.photo-editor input[type=file]{padding:5px;font-size:.79rem;white-space:nowrap;overflow:hidden}
.photo-editor input[type=file]::file-selector-button{background:#e1f3ed;color:#21464b;border:1px solid #b7d6cf;border-radius:3px;padding:4px;font:inherit}
.photo-editor small{display:block;margin:3px 0;color:var(--muted);font-size:.78rem}
.photo-editor .quiet{min-height:32px;padding:3px 7px}.photo-field p:empty{display:none}

/* Identité cobalt : fond et typographie conservés, accents plus francs. */
:root{--ink:#192c55;--muted:#4e6078;--line:#d4deea;--blue:#2453d4}
body.chantier>header,.task-detail header{background:#213869;color:#fff}
.site-head::after{background:linear-gradient(90deg,#719aff 0 24%,#3868ec 24% 60%,#2950b9 60% 100%)}
.site-head .context select,.site-head .context button{background:#2c477b;border-color:#7890bb}
.site-head em{color:#b1ceff}
.site-mark,.pagehead #viewIcon{background:#2453d4;color:#fff}
.site-nav button[aria-current]{border-color:#2453d4;color:#163baf}
.chantier .primary{background:#2453d4;color:#fff;border-color:#1f47b7}
.chantier .pagehead{border-color:#324c82}
.chantier .subcontrols button[aria-pressed="true"]{background:#e4edff;color:#173eae;border-color:#b1c7fc}
.chantier .records tbody tr:hover,.chantier .records tbody tr.is-active{background:#ebf1ff}
.chantier .records .rowlink{color:#213a6f}
.chantier .stats .metric:nth-child(1){background-color:#243858}.chantier .stats .metric:nth-child(2){background-color:#224977}.chantier .stats .metric:nth-child(4){background-color:#2e4069}
.chantier .person .avatar,.avatar.photo-preview,.mini{background:#e1ebff;color:#304f93}
.photo-field legend{color:#2d477c}.photo-editor input[type=file]::file-selector-button{background:#e8efff;color:#23417d;border-color:#b6caf3}

/* Direction retenue : bleu nuit + orange signal, fond clair et Ledger conservés. */
:root{--ink:#172848;--muted:#53657b;--line:#d5dee9;--blue:#244c84;--signal:#ff9b53}
body.chantier>header,.task-detail header{background:#15284a;color:white}
.site-head::after{background:linear-gradient(90deg,#ffb273 0 26%,#f18437 26% 65%,#c75e26 65% 100%)}
.site-head .context select,.site-head .context button{background:#223b62;border-color:#738ab0}
.site-head em{color:#ffba81}.site-mark,.pagehead #viewIcon{background:var(--signal);color:#192745}
.site-nav button[aria-current]{border-color:#e4752f;color:#963d12}
.chantier .primary{background:var(--signal);color:#192745;border-color:#e47e32}
.chantier .pagehead{border-color:#263e67}
.chantier .subcontrols button[aria-pressed="true"]{background:#ffeadb;color:#732f10;border-color:#eab292}
.chantier .records tbody tr:hover,.chantier .records tbody tr.is-active{background:#fff2e7}
.chantier .records .rowlink{color:#243b63}
.chantier .stats .metric:nth-child(1){background-color:#253957}.chantier .stats .metric:nth-child(2){background-color:#294b72}.chantier .stats .metric:nth-child(3){background-color:#6f3d30}.chantier .stats .metric:nth-child(4){background-color:#293c5c}
.chantier .person .avatar,.avatar.photo-preview,.mini{background:#e6edf8;color:#344e76}
.photo-field legend{color:#324a71}.photo-editor input[type=file]::file-selector-button{background:#ffecdd;color:#733513;border-color:#eabc99}
.chantier .person:hover .role-portrait{transform:scale(1.06)}.person .role-portrait{transition:transform 160ms ease}
@media(prefers-reduced-motion:reduce){.chantier .person:hover .role-portrait{transform:none}}

/* Photoportraits fictifs en quatre cases, entièrement locaux. */
.role-portrait{display:block;width:100%;height:100%;flex:none;background-image:url("portraits/equipe-pro.webp");background-repeat:no-repeat;background-size:200% 200%;border-radius:inherit}
.portrait-projet{background-position:0 0}.portrait-travaux{background-position:100% 0}.portrait-qualite{background-position:0 100%}.portrait-terrain{background-position:100% 100%}
.chantier .person .avatar{box-shadow:0 0 0 2px white,0 0 0 3px #ccd7e7}
