:root{font-family:"Segoe UI",Arial,sans-serif;color:#102e35;background:#fcfcfc;font-size:16px}*{box-sizing:border-box}body{margin:0;padding:16px 20px}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #119c90;outline-offset:3px}[hidden]{display:none!important}.shell{max-width:844px;margin:0 auto;border:1px solid #e0e0e0;border-radius:16px;overflow:hidden;background:#fcfcfc}header{background:#103137;color:white;padding:16px 13px 15px}.brand-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #365057;padding-bottom:16px;margin-bottom:20px}.brand{display:flex;align-items:center;gap:11px;color:white;text-decoration:none;font-weight:650;font-size:18px}.brand b{color:#35dfc4}.brand small{display:block;font-size:9px;font-weight:400;margin-top:3px}.mark{color:#35dfc4;font-size:26px}.header-link{background:none;border:0;color:#e0edef;font-size:13px;padding:8px}h1{font-size:23px;line-height:1.3;margin:0 0 8px;font-weight:650}header p{margin:0;color:#d6e8eb;font-size:15px}nav{display:grid;grid-template-columns:repeat(4,1fr);padding:12px 10px}nav button{border:0;background:none;color:#335465;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 5px}nav span{display:grid;place-items:center;background:#f1f1f1;border-radius:50%;width:40px;height:40px;color:#111;font-size:18px}nav [aria-current] span{color:#fff;background:#10988b}nav [aria-current]{color:#102e35;font-weight:600}.card{margin:0 13px 10px;background:#f3f3f3;border:1px solid #d8d8d8;border-radius:12px;padding:30px 13px 13px}h2{font-size:20px;font-weight:600;color:#0d171a;margin:0 0 8px}.hint{color:#63737a;font-size:15px;line-height:1.5;margin:0 0 14px}label,legend{color:#52636c;font-size:15px}label{display:block}input:not([type=radio]):not([type=checkbox]){display:block;width:100%;border:1px solid #cfcfcf;border-radius:24px;background:transparent;color:#102e35;padding:10px 15px;min-height:44px;margin-top:5px}input::placeholder{color:#92999c}input:focus{outline:2px solid #10988b;outline-offset:1px}fieldset{border:0;margin:15px 0;padding:0}.radio{display:flex;align-items:center;gap:12px;color:#101719;margin:10px 0}.radio input{accent-color:#111;width:22px;height:22px;margin:0}.actions{display:flex;justify-content:flex-end;margin-top:14px;align-items:center;gap:12px}.primary{border:0;border-radius:26px;background:#101010;color:white;font-weight:650;padding:11px 18px;font-size:14px;min-height:42px}.primary span{margin-left:8px}.split{justify-content:space-between}.coordinates{margin-top:13px;font-size:13px;color:#52636c}.coordinates summary{cursor:pointer}.coordinates .hint{font-size:13px;margin-top:10px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}footer{text-align:center;padding:10px 15px 18px;font-size:12px;color:#61707a}.mock-note{max-width:844px;margin:12px auto;font-size:12px;color:#74838b}.recipe-card{background:#fcfcfc;padding:22px 14px 15px}.recipe-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 14px}.secondary{border:1px solid #d9d9d9;border-radius:8px;padding:10px 12px;background:transparent;color:#15303a;font-size:13px}.text-button{border:0;background:none;color:#526875;font-size:13px;padding:8px 0}table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:13px}th{text-align:left;color:#111;font-weight:500;font-size:11px;padding:10px 0}th:nth-child(1){width:35%}th:nth-child(2){width:17%}th:nth-child(3){width:48%}td{border-top:1px solid #ebebeb;vertical-align:top;padding:10px 12px 10px 0}td:last-child{padding-right:0}.material-name{border:0!important;border-radius:4px!important;margin:0!important;padding:0!important;min-height:24px!important;color:#111!important;font-size:13px}.meta{margin-top:4px}.meta summary{color:#788389;cursor:pointer;font-size:11px}.meta input{font-size:12px;min-height:32px!important;padding:6px 8px!important}.percent{display:flex;align-items:center;gap:3px}.percent input{width:60px!important;min-height:24px!important;margin:0!important;border-radius:4px!important;padding:0 3px!important;border-color:transparent!important;font-size:13px}.percent input:hover{border-color:#ccc!important}.upload{width:100%;text-align:left;border:1px solid #dcdcdc;background:transparent;border-radius:8px;font-size:12px;padding:11px;color:#102e35}.present{color:#16995b;font-size:12px;display:block;margin:1px 0 4px}.file-actions{display:flex;gap:12px;flex-wrap:wrap}.file-actions button{font-size:11px;padding:0}.total-row{display:flex;justify-content:space-between;gap:12px;margin:22px 0 10px;font-size:14px;color:#6a7880}.total-row strong{color:#152f37;font-weight:500}#balance{font-size:12px;color:#16995b}#balance.invalid{color:#a24b16}.drop{border:1px dashed #bbc9cd;border-radius:10px;padding:20px;margin:16px 0}.drop span{display:block;font-size:12px;color:#718087;margin:6px 0 12px}dialog{width:min(640px,calc(100% - 28px));border:1px solid #d7e1e3;border-radius:14px;padding:22px;color:#102e35;max-height:85vh}dialog::backdrop{background:#102e3555}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.close{background:none;border:0;font-size:26px;color:#607079}.choice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #e7ebec}.choice small{display:block;color:#637780;margin:5px 0}.choice strong{font-size:14px}#duplicate{background:#f5f3eb;padding:14px;margin-top:14px;font-size:14px}#duplicate button{margin:8px 8px 0 0}.review-row{border-bottom:1px solid #ddd;padding:12px 0}.review-row strong{display:block}.review-row span{font-size:14px}.remove{color:#8d6666;font-size:11px}.drag{outline:2px dashed #10988b}
@media(max-width:600px){body{padding:10px}.shell{border-radius:12px}header{padding:14px}h1{font-size:21px}header p{font-size:14px;line-height:1.5}.brand-row{margin-bottom:18px}.card{padding:20px 13px 13px;margin:0 9px 10px}nav{padding:14px 3px}.fields{grid-template-columns:1fr}.recipe-tools{align-items:stretch;flex-direction:column;margin:16px 0}.recipe-tools .text-button{text-align:left}thead{display:none}table,tbody,tr,td{display:block;width:100%}tr{padding:13px 0;border-top:1px solid #e4e4e4;display:grid;grid-template-columns:1fr 85px;gap:8px}td{border:0;padding:0}td:nth-child(3){grid-column:1/-1}.material-name{font-weight:600}.percent{justify-content:flex-end}.file-actions{gap:18px}.present{margin-top:3px}.total-row{font-size:14px}.choice{align-items:flex-start}footer{font-size:11px}.mock-note{font-size:11px}.header-link{font-size:12px}}
:root .workspace-tabs{display:flex;gap:24px;padding:0 22px;border-bottom:1px solid #e3e8e8;margin-bottom:18px}.workspace-tabs button{border:0;border-bottom:2px solid transparent;padding:16px 0;background:none;font-size:14px;color:#60767b}.workspace-tabs button.active{border-color:#11998d;color:#087e74;font-weight:600}.recipes-page{background:#fcfcfc;padding:22px 16px}.recipes-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.recipes-title h2{margin:0}.recipes-table th:nth-child(1){width:25%}.recipes-table th:nth-child(2){width:19%}.recipes-table th:nth-child(3){width:28%}.recipes-table th:nth-child(4){width:28%}.recipes-table td{padding:20px 8px 20px 0;vertical-align:middle}.recipe-status{display:inline-block;border-radius:20px;padding:5px 10px;font-size:12px;background:#eef3f4;color:#42636c}.recipe-status.ongoing{background:#e5f3f0;color:#16796e}.recipe-status.done{background:#e4f4ea;color:#277747}.recipe-row-actions .text-button{margin-left:12px}.activity{color:#6c7d83;font-size:12px}#duplicate-confirm{width:min(500px,calc(100% - 28px));padding:25px}#duplicate-confirm h2{font-size:18px;line-height:1.5;margin-bottom:20px}.confirmation-actions{display:flex;flex-wrap:wrap;gap:10px}.confirmation-actions .primary{font-size:13px}.confirmation-actions .text-button{padding:10px}#save-recipe{margin-top:12px}@media(max-width:600px){.workspace-tabs{gap:20px;padding:0 14px!important}.workspace-tabs button{font-size:13px}.recipes-title{align-items:flex-start;flex-direction:column}.recipes-table tr{grid-template-columns:1fr auto;gap:8px}.recipes-table td{padding:2px 0}.recipes-table td:first-child{font-weight:600}.recipes-table td:nth-child(3){grid-column:1/-1}.recipes-table td:nth-child(4){grid-column:1/-1}.confirmation-actions{flex-direction:column}.confirmation-actions button{width:100%}}
.busy button,.busy input,.busy select{pointer-events:none}.editor-actions{padding:8px 25px 20px}#error,#notice{margin:15px 24px;white-space:pre-line}#error{color:#a23b28}#notice{color:#147769}.basis-label{font-size:12px;margin:10px 0}select{font:inherit;border:1px solid #ccc;border-radius:7px;background:transparent;padding:8px;max-width:100%}.basis-label select{margin-left:10px}#tabs{flex-wrap:wrap}#checks{color:#8c4229;font-size:14px}#auth .primary,#import .primary{margin-top:16px}.drop input{margin-top:10px}#listing>.primary{margin-bottom:15px}#listing .choice input[type=file]{max-width:210px;font-size:12px}dialog input[type=file]{max-width:100%}
nav[aria-label="Étapes"]{grid-template-columns:repeat(5,minmax(0,1fr))}
#workspace-return{margin:10px 24px 0}
.brand:has(img){flex-direction:column;gap:2px}.brand img{width:78px;height:78px;object-fit:contain}.brand:has(img) small{letter-spacing:3px;font-size:8px;margin:0}
.shell:has(#editor:not([hidden])) #tabs{display:none}
@media(max-width:600px){nav[aria-label="Étapes"] button{font-size:10px;padding:0 1px}nav[aria-label="Étapes"] span{width:34px;height:34px}nav[aria-label="Étapes"]{gap:2px}}
.drop .text-button { margin-left: 12px; }
.drop > .secondary { margin-top: 12px; }
.recipe-filters{display:flex;gap:12px;margin:0 0 20px;align-items:center}
.recipe-filters input{flex:1;margin:0!important;background:#fff!important}
.recipe-filters select{min-height:44px;background:#fff}
.recipe-tools{flex-wrap:wrap}
@media(max-width:600px){.recipe-filters{flex-direction:column;align-items:stretch}.workspace-tabs{column-gap:18px!important;row-gap:0!important}}
.required-marker{color:#b42318;font-weight:700}.profile-required-help{grid-column:1/-1;margin:0 0 2px;color:#60757b;font-size:13px}

/* Mes recettes only: retain the compact four-step tunnel elsewhere. */
.shell:has(#new-recipe){max-width:1100px;background:#f3f7f7}
#listing:has(#new-recipe){border:0;background:transparent;padding:6px 16px 22px}
#new-recipe.primary{background:#087f73;color:#fff;font-size:17px;min-height:50px;padding:13px 24px;border-radius:12px;margin-bottom:24px;box-shadow:0 3px 8px #10313712}
#new-recipe.primary:hover{background:#066b61}
#listing .recipe-item{background:#fff;border:1px solid #d8e4e5;border-radius:16px;padding:24px 26px;margin-bottom:16px;gap:28px;box-shadow:0 3px 12px #10313705}
.recipe-item-info{min-width:0;flex:1}
.recipe-item-info h2{font-size:23px;line-height:1.35;color:#103137;margin:0 0 12px;overflow-wrap:anywhere}
#listing .recipe-item-status{display:inline-block;font-size:15px;font-weight:650;line-height:1.4;padding:6px 12px;border-radius:20px;background:#e5f4f0;color:#136f62;margin:0 0 10px}
#listing .recipe-item-status.sent{background:#e8f0f7;color:#345b78}
#listing .recipe-item-date{font-size:14px;color:#62767b;margin:0;line-height:1.5}
.recipe-item-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
#listing .recipe-item-actions button{font-size:16px;font-weight:600;min-height:48px;border-radius:10px;padding:11px 19px}
#listing .recipe-open{background:#103137;border:1px solid #103137;color:#fff}
#listing .recipe-open:hover{background:#1b454c}
#listing .recipe-copy{background:#fff;border:1px solid #c5d6d9;color:#36565e}
#listing .recipe-copy:hover{background:#f0f6f6}
@media(max-width:700px){
  #listing:has(#new-recipe){padding:4px 0 16px}
  #new-recipe.primary{width:100%;margin-bottom:18px}
  #listing .recipe-item{padding:20px;display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-bottom:14px}
  .recipe-item-info h2{font-size:22px}
  .recipe-item-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:16px;border-top:1px solid #e8eeee}
  #listing .recipe-item-actions button{padding:11px 8px}
}

/* Étape entreprise — améliorations V2 */
[data-panel="0"] .coordinates{margin-top:17px}
[data-panel="0"] .coordinates .fields{gap:15px}
[data-panel="0"] .field-help{display:block;color:#60757b;font-size:12px;line-height:1.5;margin-top:6px}
[data-panel="0"] .required-help{margin-top:18px}
[data-panel="0"] .vat-field{grid-column:1/-1;background:#e9f4f2;border:1px solid #cfe4e1;border-radius:10px;padding:12px}
[data-panel="0"] .vat-field input{background:#fff}
#next.primary{background:#079b91;color:white;border-radius:9px;padding:12px 20px}
#next.primary:hover{background:#087e76}
#back:not(:disabled){color:#0c5960;font-weight:600}
@media(max-width:600px){[data-panel="0"] .fields{grid-template-columns:1fr}}
.shell>header .brand img.services-logo{display:block;width:280px;max-width:100%;height:auto;object-fit:contain;background:transparent;filter:none;aspect-ratio:1958/803}
.shell>header .brand:has(.services-logo){padding:0;gap:0;flex-shrink:0}
@media(max-width:650px){.shell>header .brand img.services-logo{width:180px}.shell>header .brand-row{gap:12px}}
@media(max-width:360px){.shell>header .brand img.services-logo{width:150px}}
.shell>header #workspace-company{margin:0 0 6px;font-size:15px;font-weight:650;overflow-wrap:anywhere}
.header-account{display:flex;flex-direction:column;align-items:flex-end;min-width:0;margin-left:auto;text-align:right}
.header-account strong{color:white;font-size:15px;overflow-wrap:anywhere}
.header-account strong:not([hidden]) + .header-link{padding-inline:0;text-decoration:underline}
@media(max-width:520px){
 .shell>header .brand-row:has(#service-order-link){flex-wrap:wrap}
 .shell>header #service-order-link{order:1;width:100%;padding-inline:0}
}
