:root{--navy:#1A2E44;--deep:#101B29;--blue:#2F4A6D;--cream:#F6F2E9;--paper:#FCFAF6;--white:#fff;--line:#E6DCCF;--ink:#1A1A1A;--muted:#596472;--gold:#A9803F;--warn:#79421F;--focus:#416589;--danger:#963F32}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font:400 14px/1.6 Montserrat,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:var(--navy)}button:disabled{cursor:not-allowed;opacity:.48}[hidden]{display:none!important}button,a,input,textarea,select,summary{touch-action:manipulation}a{color:var(--blue)}:is(button,a,input,textarea,select,summary,canvas):focus-visible{outline:3px solid var(--focus);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3vw,38px);letter-spacing:-1.2px;line-height:1.17;font-weight:700;margin:0 0 12px}h2{font-size:20px;line-height:1.35;letter-spacing:-.5px;margin:0}h3{font-size:14px;letter-spacing:-.15px;margin-bottom:10px}svg{display:block;width:19px;height:19px;flex-shrink:0}.muted{color:var(--muted)}.small{font-size:11px}.kicker{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;font-weight:700;color:var(--blue)}.demo-strip{background:var(--cream);border-bottom:1px solid var(--line);padding:8px 16px;text-align:center;font-size:11px;color:var(--blue)}.shell{max-width:1360px;margin:auto;padding-inline:38px}.site-head{height:76px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:16px}.wordmark{font-size:22px;font-weight:800;letter-spacing:-1px;margin:0}.wordmark small{font-size:11px;font-weight:400;letter-spacing:0;border-left:1px solid var(--line);margin-left:14px;padding-left:14px;color:var(--muted)}.head-actions{display:flex;align-items:center;gap:20px}.link-btn{background:transparent;border:0;text-decoration:underline;text-underline-offset:5px;font-size:11px;font-weight:600;min-height:42px;padding:6px 0}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:25px 0}.crumb{font-size:11px;color:var(--muted);margin:0 0 14px}.crumb span{margin:0 8px;color:#8a8c88}.intro p{font-size:13px;margin:0;color:var(--muted)}.steps{display:flex;align-items:center;gap:10px;padding-bottom:8px;white-space:nowrap;font-size:11px}.steps b{display:inline-grid;place-items:center;background:var(--navy);color:white;border-radius:50%;width:24px;height:24px;margin-right:5px}.steps .later{color:var(--muted)}.steps .later b{background:transparent;color:var(--navy);border:1px solid var(--line)}.steps i{width:24px;height:1px;background:var(--line)}.resume-banner{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-left:3px solid var(--blue);padding:12px 18px;border-radius:12px;margin-bottom:18px;font-size:12px}.resume-banner .buttons{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.layout{display:grid;grid-template-columns:minmax(0,1.27fr) minmax(360px,.94fr);gap:28px;align-items:start}.preview-col{position:sticky;top:16px;min-width:0}.preview-card{background:var(--cream);border:1px solid var(--line);border-radius:22px;overflow:hidden}.preview-top{display:flex;justify-content:space-between;align-items:center;padding:18px 20px 0;gap:10px}.tag{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#ffffffbf;border-radius:99px;padding:6px 10px;font-size:10px;font-weight:600;letter-spacing:.01em}.dot{width:5px;height:5px;border-radius:99px;background:var(--gold)}.history{display:flex;gap:5px}.iconbtn{display:inline-grid;place-items:center;width:34px;min-height:34px;flex-shrink:0;border:1px solid var(--line);border-radius:99px;background:var(--paper)}.iconbtn svg{width:15px;height:15px}.canvas-wrap{position:relative;min-width:0;margin:auto;width:100%}canvas{display:block;max-width:100%}.canvas-wrap canvas{width:100%;height:auto;aspect-ratio:800/590}.canvas-wrap #layoutCanvas{touch-action:none;cursor:crosshair}.stage-badge{position:absolute;left:22px;top:15px;padding:4px 9px;border-radius:30px;background:#ffffffcf;font-size:10px;color:var(--muted);pointer-events:none}.preview-tools{padding:0 20px 18px}.switches{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.seg{display:flex;gap:3px;background:#eae4da;padding:4px;border-radius:10px}.seg button{border:0;border-radius:7px;background:transparent;min-height:35px;padding:7px 10px;font-size:11px;font-weight:600;color:var(--blue)}.seg button[aria-pressed=true]{background:#fff;color:var(--navy);box-shadow:0 2px 5px #152b4510}.preview-caption{font-size:10px;color:var(--muted);text-align:center;margin:12px 0 0}.layout-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:8px 20px 15px}.layout-tools .group{display:flex;align-items:center;gap:8px}.layout-tools label{font-size:10px}.layout-tools .seg button{min-height:32px}.layout-tools input{width:95px;accent-color:var(--navy)}.layout-tools output{font-size:10px;min-width:32px}.design-note{display:flex;gap:11px;padding:13px 16px;border:1px solid var(--line);border-radius:13px;background:#fff;margin-top:12px;font-size:11px;color:var(--muted)}.design-note strong{color:var(--navy);font-weight:600}.design-note p{margin:0}.design-note svg{margin-top:2px;width:16px;height:16px;color:var(--blue)}.save-status{display:flex;gap:12px;justify-content:space-between;padding:12px 2px 0;font-size:10px;color:var(--muted)}.save-status span:first-child{font-weight:600;color:var(--blue)}.warnings{margin-top:12px}.warning-row{display:flex;align-items:center;gap:10px;background:#fff8ef;border:1px solid #d8b990;border-radius:10px;padding:9px 12px;margin-top:6px;color:var(--warn);font-size:11px}.warning-row.error{background:#fff4f1;border-color:#d8afa7;color:var(--danger)}.warning-row button{margin-left:auto;flex-shrink:0;border:0;border-bottom:1px solid currentColor;background:transparent;font-size:11px;color:inherit;padding:5px;}
.editor{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;min-width:0}.editor-head{padding:21px 24px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-head h2{margin-top:4px}.side-label{font-size:10px;border:1px solid var(--line);border-radius:99px;padding:5px 10px;background:var(--paper);white-space:nowrap;font-weight:600}.panel{padding:18px 24px;border-bottom:1px solid var(--line)}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.panel-title h3{font-size:12px;margin:0;font-weight:700}.panel-title .sub{font-size:10px;color:var(--muted)}details>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;cursor:pointer;font-size:12px;font-weight:600;min-height:30px}details>summary::-webkit-details-marker{display:none}details>summary:after{content:'+';color:var(--blue);font-size:18px;font-weight:400}details[open]>summary:after{content:'−'}details[open]>summary{margin-bottom:14px}summary .sub{font-size:10px;font-weight:400;color:var(--muted);margin-left:auto}.templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.template{border:1px solid var(--line);border-radius:10px;min-height:72px;background:var(--paper);font-size:10px;font-weight:500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px}.template b{font-size:21px;line-height:1.3}.template svg{width:23px;height:23px}.template.active{border-color:var(--navy);background:var(--cream)}.add-row{display:grid;grid-template-columns:1fr 1.2fr .8fr;gap:8px}.secondary,.minibtn{border:1px solid var(--line);background:var(--paper);border-radius:8px;min-height:41px;padding:8px 11px;color:var(--navy);font-size:11px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:7px;text-align:center;line-height:1.4}.secondary:hover,.minibtn:hover{background:var(--cream);border-color:#94a1ab}.secondary svg{width:16px;height:16px}.primary{border:1px solid var(--navy);border-radius:10px;background:var(--navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:47px;padding:12px 22px;font-weight:600;font-size:12px;line-height:1.4;white-space:normal}.primary:hover{background:var(--blue);color:#fff;border-color:var(--blue)}.primary:disabled{background:#94a0ab;border-color:#94a0ab;opacity:1}.primary svg{width:16px;height:16px}.danger{color:var(--danger)}.layer-list{display:flex;flex-direction:column;gap:6px;max-height:173px;overflow:auto;margin-top:12px;scrollbar-width:thin}.layer{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;min-height:42px;background:#fff}.layer[aria-current=true]{border-color:var(--blue);background:var(--cream)}.layer-select{display:flex;gap:9px;align-items:center;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:8px 11px;font-size:11px}.layer-select .layer-art{display:grid;place-items:center;width:24px;height:24px;font-size:14px;font-weight:600;border:1px solid var(--line);border-radius:4px;background:#fff;flex-shrink:0}.layer-art img{display:block;width:100%;height:100%;object-fit:contain}.layer-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}.layer-label{font-size:9px;color:var(--muted);margin-left:auto;padding-right:10px;white-space:nowrap}.layer-tools{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:10px}.layer-tools .group{display:flex;gap:5px}.layer-tools .minibtn{min-height:32px;padding:5px 8px;font-size:10px;border-radius:6px}.layer-tools .minibtn svg{width:13px;height:13px}.empty{color:var(--muted);font-size:12px;padding:18px 0;text-align:center}.selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.selection-head strong{font-size:12px}.selection-type{font-size:10px;color:var(--muted)}.field{margin-bottom:12px;min-width:0}.field:last-child{margin-bottom:0}.field-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.field label,.label{font-size:11px;font-weight:600}.counter{font-size:9px;color:var(--muted)}.field :is(input[type=text],input[type=number],textarea,select){border:1px solid #c4c6c3;border-radius:8px;background:#fff;color:var(--ink);min-height:42px;padding:9px 11px;width:100%;font-size:12px;line-height:1.5}.field textarea{min-height:59px;resize:vertical}.field input[type=color]{padding:3px;width:38px;height:32px;min-height:32px;border:1px solid #bbc4cb;border-radius:6px;background:#fff;cursor:pointer}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.style-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:2px}.style-buttons{display:flex;gap:4px}.stylebtn{display:grid;place-items:center;min-width:32px;min-height:32px;padding:5px;border:1px solid var(--line);background:var(--paper);border-radius:6px;font-size:12px}.stylebtn[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}.swatches{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:35px}.swatch{width:25px;height:25px;border:3px solid #fff;outline:1px solid #dad8d0;border-radius:50%;background:var(--sw);position:relative;flex-shrink:0}.swatch[aria-pressed=true]{outline:2px solid var(--navy)}.swatch[aria-pressed=true]:after{content:'✓';font-size:10px;color:#fff;position:absolute;inset:0;text-align:center;line-height:19px}.swatch.light:after{color:var(--navy)}.settings{background:var(--paper);border-top:1px solid var(--line);margin:17px -24px -18px;padding:12px 24px}.settings[open]{padding-bottom:18px}.range-row{display:grid;grid-template-columns:94px minmax(0,1fr) 48px;gap:10px;align-items:center;margin:11px 0}.range-row label{font-size:10px}.range-row output{font-size:10px;text-align:right;color:var(--muted)}input[type=range]{min-width:0;width:100%;accent-color:var(--navy);cursor:pointer}.slim{padding-block:12px}.advanced-hint{font-size:10px;color:var(--muted);margin:8px 0}.image-info{display:flex;gap:11px;align-items:center;margin-bottom:14px}.image-info img{width:53px;height:53px;object-fit:contain;background:var(--cream);border-radius:7px;border:1px solid var(--line)}.image-info>div{min-width:0}.image-info strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.image-info span{font-size:10px;color:var(--muted)}.checkline{display:flex;align-items:start;gap:9px;font-size:11px;margin:9px 0}.checkline input{accent-color:var(--navy);margin-top:3px}.align-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.align-buttons .secondary{padding:7px 5px;font-size:10px;min-height:33px}.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.quantity-row strong{font-size:12px}.quantity-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.qty{display:flex;border:1px solid #c9c7c0;border-radius:8px;overflow:hidden}.qty button{width:33px;min-height:39px;border:0;background:var(--paper);font-size:18px}.qty input{width:39px;border:0;border-inline:1px solid var(--line);text-align:center;appearance:textfield;color:var(--navy);font-size:12px;background:white}.qty input::-webkit-inner-spin-button{appearance:none}.price-box{padding:20px 24px}.price-top{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:15px}.price-top span{font-size:10px;color:var(--muted)}.price-top small{font-size:9px;color:var(--muted);display:block}.price-top strong{font-size:23px;font-weight:700;letter-spacing:-.6px;white-space:nowrap}.price-box .primary{width:100%}.price-box>p{font-size:10px;margin:9px 0 0;text-align:center;color:var(--muted)}.mobile-bar{display:none}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px;border-top:1px solid var(--line);padding:25px 0;margin-top:32px}.status-grid h3{font-size:12px;margin-bottom:7px}.status-grid p{font-size:11px;color:var(--muted);margin:0}.footer{display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid var(--line);padding:27px 0}.signature{display:flex;align-items:center;gap:14px}.signature img{width:50px;height:auto}.signature p{margin:0;font-size:10px;color:var(--muted)}.signature strong{display:block;color:var(--navy);font-weight:600}.footer .end{font-size:10px;color:var(--muted);text-align:right}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;border-radius:10px;padding:12px 20px;max-width:calc(100% - 30px);font-size:12px;box-shadow:0 5px 18px #1A2E4422;z-index:1000}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog{border:1px solid var(--line);border-radius:20px;padding:0;background:var(--paper);color:var(--navy);max-width:min(800px,calc(100% - 30px));width:100%;max-height:92dvh;box-shadow:0 30px 100px #101b2930}dialog::backdrop{background:#101b2973}dialog.small-dialog{max-width:520px}.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:22px 26px;background:#fff}.dialog-head h2{font-size:23px;margin-top:4px}.dialog-body{padding:22px 26px;overflow:auto}.dialog-body p{font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;align-items:center;padding:18px 26px;border-top:1px solid var(--line);background:#fff}.review-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.review-images figure{margin:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--cream)}.review-images canvas{width:100%;height:auto}.review-images figcaption{text-align:center;font-size:11px;padding:0 10px 12px;font-weight:600}.review-strip{margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:15px;background:var(--cream)}.review-strip canvas{width:100%;height:auto}.review-strip>p{text-align:center;margin:8px 0 0;font-size:10px;color:var(--muted)}.summary-list{margin:20px 0}.summary-list>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:8px 0;font-size:12px}.summary-list dt{color:var(--muted)}.summary-list dd{margin:0;text-align:right;font-weight:600;max-width:65%;overflow-wrap:anywhere}.review-approved{display:flex;align-items:start;gap:10px;font-size:12px}.review-approved input{accent-color:var(--navy);margin-top:4px;width:16px;height:16px;flex-shrink:0}.review-error{font-size:11px;color:var(--danger);background:#fff4f1;border:1px solid #d8afa7;padding:11px;border-radius:8px;margin:15px 0}.crop-shell{background:var(--cream);border:1px solid var(--line);border-radius:12px;overflow:hidden}.crop-shell canvas{width:100%;height:auto;touch-action:none;cursor:grab}.crop-options{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.crop-options button[aria-pressed=true]{border-color:var(--navy);background:var(--navy);color:#fff}.motifs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.motifs button{min-height:88px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.motifs svg{width:30px;height:30px}.dialog-body .help-item{padding:14px 0;border-bottom:1px solid var(--line)}.help-item strong{font-size:13px}.help-item p{font-size:12px;margin:6px 0 0;color:var(--muted)}.cart-line{display:grid;grid-template-columns:110px 1fr auto;gap:16px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff;margin-bottom:12px}.cart-line img{width:110px;height:auto;border-radius:8px;background:var(--cream)}.cart-line h3{font-size:12px;margin:0 0 5px}.cart-line p{font-size:10px;margin:0;color:var(--muted)}.cart-line .line-total{font-size:13px;font-weight:600}.cart-total{display:flex;justify-content:space-between;font-size:15px;border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.full-preview .preview-col{position:fixed!important;inset:0;z-index:90;background:var(--paper);padding:20px;overflow:auto;display:grid;align-content:start;justify-items:center}.full-preview .preview-card{width:min(920px,100%)}.full-preview .canvas-wrap{max-width:780px}.full-preview .design-note,.full-preview .save-status{display:none}.full-preview .mobile-bar{display:none}
@media(min-width:1500px){.shell{max-width:1380px}}
@media(max-width:1100px){.shell{padding-inline:25px}.layout{gap:20px;grid-template-columns:minmax(0,1.08fr) minmax(350px,1fr)}.panel{padding-inline:20px}.editor-head,.price-box{padding-inline:20px}.settings{margin-inline:-20px;padding-inline:20px}.steps{display:none}.wordmark small{display:none}.head-actions{gap:15px}.layer-text{max-width:195px}.switches{justify-content:center}.range-row{grid-template-columns:82px minmax(0,1fr) 44px}}
@media(max-width:780px){.shell{padding-inline:18px}.site-head{height:66px}.wordmark{font-size:21px}.head-actions{gap:14px}.head-actions .link-btn{font-size:10px}.intro{padding:23px 0}.intro h1{font-size:28px;letter-spacing:-.8px}.intro p{font-size:12px}.crumb{font-size:10px}.layout{display:flex;flex-direction:column;gap:18px}.preview-col{position:static;width:100%}.preview-card{border-radius:17px}.canvas-wrap{max-width:530px}.preview-top{padding:14px 16px 0}.preview-tools{padding-inline:15px}.switches{justify-content:space-between;gap:6px}.seg button{font-size:10px;padding:7px 9px}.editor{width:100%;border-radius:17px}.editor-head{padding:19px 20px}.panel{padding:17px 20px}.settings{margin-inline:-20px;margin-bottom:-17px;padding:12px 20px}.field :is(input[type=text],input[type=number],textarea,select){font-size:16px}.layer-text{max-width:calc(100vw - 160px)}.price-box{padding:20px}.status-grid{grid-template-columns:1fr;gap:17px;margin-top:26px}.footer{padding-bottom:110px}.footer .end{max-width:110px;font-size:9px}.mobile-bar{display:flex;position:fixed;left:0;right:0;bottom:0;padding:11px 18px calc(11px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 14px #101b2909;align-items:center;gap:14px;z-index:10}.mobile-bar strong{font-size:18px;white-space:nowrap}.mobile-bar small{display:block;font-size:9px;color:var(--muted)}.mobile-bar .primary{flex:1;margin-left:auto;max-width:250px;font-size:11px;padding-inline:14px;min-height:43px}.mobile-bar .iconbtn{width:34px;height:34px}.toast{bottom:93px}.dialog-head,.dialog-body{padding:20px}.dialog-head h2{font-size:20px}.dialog-actions{padding:15px 20px;flex-wrap:wrap}.dialog-actions>button{flex:1}.resume-banner{align-items:start;flex-direction:column;gap:7px}.cart-line{grid-template-columns:85px 1fr;gap:10px}.cart-line img{width:85px}.cart-line .line-total{grid-column:2}.full-preview .preview-col{padding:12px}.full-preview .preview-card{margin:auto}.full-preview .canvas-wrap{max-width:530px}}
@media(max-width:355px){.shell{padding-inline:12px}.head-actions{gap:11px}.site-head .wordmark{font-size:19px}.head-actions .link-btn{font-size:9px}.seg button{font-size:9px;padding:7px}.preview-top,.preview-tools{padding-inline:10px}.panel,.editor-head,.price-box{padding-inline:16px}.settings{margin-inline:-16px;padding-inline:16px}.swatches{gap:5px}.swatch{width:22px;height:22px}.swatch[aria-pressed=true]:after{line-height:16px}.range-row{grid-template-columns:80px minmax(0,1fr) 40px}.tag{font-size:9px}.mobile-bar{padding-inline:12px;gap:10px}.twocol{gap:8px}.layer-tools .minibtn{padding-inline:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* V3 : repères du panorama et rotation du produit, sans modifier les panneaux d’outils. */
.panorama-orientation{margin:0 20px 14px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--blue);font-size:11px;line-height:1.65}
.panorama-orientation strong{display:block;font-weight:600;color:var(--navy)}
.product-rotation{padding:0 20px 16px}
.product-rotation .rotation-row{display:flex;align-items:center;gap:12px}
.product-rotation label{font-size:11px;font-weight:600;white-space:nowrap}
.product-rotation input{width:100%;min-width:40px;height:32px;accent-color:var(--navy)}
.product-rotation .rotation-state{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:7px;font-size:10px;color:var(--muted)}
.product-rotation .minibtn{min-height:34px;font-size:10px}
#reviewDialog .review-images{grid-template-columns:repeat(3,minmax(0,1fr))}
#reviewDialog .review-images figcaption{font-size:11px;line-height:1.65}
#reviewDialog .review-strip{padding:8px}
@media(max-width:600px){#reviewDialog .review-images{grid-template-columns:repeat(2,minmax(0,1fr))}#reviewDialog .review-center{grid-column:1 / -1;order:3;max-width:310px;width:100%;justify-self:center}.panorama-orientation{margin-inline:14px;font-size:10px}.product-rotation{padding-inline:15px}.product-rotation .rotation-row{flex-wrap:wrap;gap:4px}.product-rotation input{flex-basis:100%}}



/* V4 : édition directe + vrai mug 3D synchronisé. */
.preview-col{position:static;top:auto;}
.header-brand{display:flex;align-items:center;gap:10px;}
.header-brand img{width:43px;height:42px;object-fit:contain;}
.header-brand small{display:block;border:0;padding:0;margin:0;font-size:10px;letter-spacing:0;line-height:1.3;}
.preview-top{padding:17px 20px 5px;align-items:center;}
.preview-heading h2{font-size:18px;letter-spacing:-.45px;}
.preview-heading p{font-size:11px;color:var(--muted);margin:3px 0 0;}
.mug-orbit{position:relative;width:100%;height:306px;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,#FFFFFF99,transparent 65%);}
#mug3dCanvas{display:block;width:100%;height:100%;max-width:100%;touch-action:pan-y;cursor:grab;}
#mug3dCanvas.dragging{cursor:grabbing;}
#mugCanvas{width:100%;height:100%;object-fit:contain;}
.renderer-badge{position:absolute;left:20px;top:14px;z-index:1;padding:3px 8px;font-size:9px;line-height:1.6;background:#FFFFFFC9;border:1px solid var(--line);border-radius:99px;pointer-events:none;}
.renderer-badge.fallback{background:#fff6e9;color:var(--warn);font-size:10px;}
.orbit-hint{position:absolute;bottom:1px;left:0;right:0;text-align:center;pointer-events:none;font-size:10px;color:var(--muted);}
.orbit-arrow{position:absolute;top:48%;width:34px;height:38px;display:grid;place-items:center;background:#FFFFFFCF;border:1px solid var(--line);border-radius:99px;font-size:28px;line-height:1;color:var(--navy);}
.orbit-arrow:hover{background:white;border-color:var(--blue);}
.orbit-prev{left:20px;}.orbit-next{right:20px;}
.product-rotation{padding:12px 20px 13px;}
.product-rotation .rotation-row{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;}
.product-rotation label{font-size:10px;}
.product-rotation input{height:24px;min-width:40px;flex:1;flex-basis:auto;}
.product-rotation .minibtn{white-space:nowrap;font-size:10px;min-height:32px;}
.product-rotation .minibtn[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff;}
.product-rotation .rotation-state{margin-top:0;min-height:24px;}
.product-rotation .link-btn{min-height:25px;font-size:10px;padding:0;}
.layout-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 20px 8px;border-top:1px solid var(--line);}
.layout-heading h3{font-size:13px;margin:0;}.layout-heading p{font-size:10px;color:var(--muted);margin:3px 0 0;}
.render-button{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:39px;padding:8px 12px;border:1px solid var(--navy);border-radius:9px;font-size:11px;font-weight:600;white-space:nowrap;background:var(--navy);color:#fff;}
.render-button:hover{background:var(--blue);color:#fff;}.render-button svg{width:15px;height:15px;}
.edit-views{display:flex;align-items:center;justify-content:space-between;padding:3px 20px 0;gap:8px;}
.editing-badge{font-size:10px;color:var(--muted);text-align:right;}
.canvas-wrap{max-width:none;}.canvas-wrap #layoutCanvas{aspect-ratio:800/430;width:100%;height:auto;touch-action:none;cursor:crosshair;}
.layout-tools{padding:0 20px 12px;gap:8px;}.layout-tools input[type=checkbox]{width:14px;height:14px;margin:0;}.layout-tools .checkline{gap:5px;}
.layout-tools input[type=range]{width:80px;}.layout-tools .minibtn{min-height:32px;font-size:10px;padding:6px 8px;}
.panorama-orientation{margin:0 20px 8px;padding:0;border:0;border-radius:0;background:transparent;font-size:10px;color:var(--blue);text-align:center;}
.preview-tools{padding:0 20px 14px;}.preview-caption{font-size:9px;margin:0;}
#renderDialog{max-width:min(1050px,calc(100% - 30px));width:100%;}
#renderDialog .mug-orbit{height:min(56dvh,520px);min-height:210px;}
#renderDialog .product-rotation{max-width:700px;margin:auto;width:100%;}
#renderDialog .dialog-head{align-items:center;}
#renderDialog .render-details{padding:10px 25px 16px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:var(--muted);}
#renderDialog .render-details label{display:flex;align-items:center;gap:8px;white-space:nowrap;}
#renderDialog .render-details input{width:85px;accent-color:var(--navy);}
#renderDialog .dialog-actions{justify-content:space-between;}
#renderDialog .dialog-actions p{font-size:10px;max-width:50%;margin:0;}
.full-preview .canvas-wrap{max-width:none;}.full-preview .mug-orbit{height:270px;}
@media(min-width:1150px) and (min-height:1070px){.preview-col{position:sticky;top:16px;}}
@media(max-width:1100px){.layout{grid-template-columns:minmax(0,1.13fr) minmax(335px,1fr);}.preview-heading h2{font-size:16px;}.layout-heading{padding-inline:16px;}.preview-top{padding-inline:16px;}.edit-views{padding-inline:16px;}}
@media(max-width:780px){.layout{display:flex;}.mug-orbit{height:278px;}.preview-col{position:static;}.canvas-wrap{max-width:none;}.intro{padding-block:20px;}.header-brand img{width:36px;height:36px;}.preview-heading p{font-size:10px;}.preview-heading h2{font-size:16px;}.layout-tools{padding-inline:16px;}.product-rotation{padding-inline:16px;}.renderer-badge{left:16px;}.full-preview .mug-orbit{height:220px;}.full-preview .canvas-wrap{max-width:none;}#renderDialog .render-details{align-items:start;flex-direction:column;}#renderDialog .dialog-actions p{max-width:none;}.orbit-prev{left:16px;}.orbit-next{right:16px;}}
@media(max-width:430px){.mug-orbit{height:246px;}.preview-top .iconbtn{width:29px;min-height:31px;}.preview-top{padding-inline:13px;}.preview-heading h2{font-size:15px;}.preview-heading p{font-size:9px;}.layout-heading{padding-inline:13px;}.layout-heading h3{font-size:12px;}.layout-heading p{max-width:180px;line-height:1.5;}.render-button{font-size:10px;padding-inline:9px;min-height:38px;}.edit-views{padding-inline:13px;}.edit-views .seg button{font-size:10px;min-height:34px;padding:6px 9px;}.editing-badge{font-size:9px;}.product-rotation .rotation-state{font-size:9px;}.product-rotation .minibtn{font-size:9px;padding-inline:7px;}.panorama-orientation{font-size:9px;line-height:1.5;}.layout-tools{flex-wrap:wrap;padding-inline:13px;gap:7px;}.preview-tools{padding-inline:10px;}#renderDialog .dialog-head{padding:15px;}#renderDialog .dialog-head h2{font-size:18px;}#renderDialog .dialog-actions{padding:15px;}.header-brand small{display:none;}.wordmark{font-size:19px;}.renderer-badge{top:11px;}}
@media(max-width:355px){.preview-heading p{max-width:145px;}.edit-views{flex-wrap:wrap;}.editing-badge{display:none;}.layout-tools .group{gap:6px;}.layout-tools input[type=range]{width:68px;}.product-rotation .rotation-row{gap:8px;}.layout-heading p{max-width:150px;}.render-button svg{display:none;}.header-brand{gap:6px;}.header-brand img{width:29px;height:31px;}.site-head .wordmark{font-size:16px;}}

[aria-busy="true"]{cursor:progress}.remote-fail{color:#8C2828}.workshop-bar{padding:16px;background:#F6F2E9;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.workshop-bar button{background:#1A2E44;color:white;padding:12px;border-radius:12px;border:0}.integration-message{font-size:14px;padding:12px;background:#F6F2E9;}
