.pvc{--pvc-ink:#000;--pvc-bg:#fff;color:var(--pvc-ink);font:inherit;width:100%;background:var(--pvc-bg)}.pvc *{box-sizing:border-box}.pvc [hidden]{display:none!important}.pvc button,.pvc input,.pvc select{font:inherit;color:inherit}.pvc button,.pvc-upload{min-height:44px;padding:12px 16px;border:1px solid #bbb;background:white;color:black;cursor:pointer}.pvc button:hover,.pvc button[aria-pressed=true]{background:black;color:white}.pvc button:disabled{opacity:.4;cursor:not-allowed}.pvc :focus-visible{outline:2px solid currentColor;outline-offset:4px}.pvc-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 0}.pvc-head h2{font-size:36px;font-weight:300;margin:10px 0}.pvc-head p{font-size:12px;letter-spacing:.08em}.pvc a{color:inherit}.pvc-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:32px}.pvc-stage{width:100%;max-width:700px;margin:auto;line-height:0;background:#f4f4f4}.pvc-stage canvas{width:100%;height:auto;touch-action:none;display:block}.pvc-surfaces{display:flex;justify-content:center;gap:8px;margin-bottom:15px}.pvc-tools{display:flex;flex-direction:column;gap:20px;padding:25px;border:1px solid #ddd;align-self:start}.pvc-tools h3{margin:0 0 10px;font-size:20px}.pvc-tools p,.pvc-hint{font-size:12px;line-height:1.6}.pvc-tools label{display:flex;flex-direction:column;gap:8px;font-size:12px}.pvc-tools select{padding:12px;background:#fff;border:1px solid #aaa;min-height:44px;width:100%}.pvc-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 24px}.pvc-swatches button{font-size:11px;display:flex;align-items:center;gap:8px}.pvc-swatches button:before{content:'';width:18px;height:18px;border:1px solid #aaa;border-radius:50%;background:var(--swatch);flex-shrink:0}.pvc-upload{display:flex;align-items:center;justify-content:center;margin:20px 0;position:relative}.pvc-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;max-width:100%}.pvc [data-pvc-library]{display:flex;flex-wrap:wrap;gap:8px}.pvc-adjust{display:flex;flex-direction:column;gap:15px}.pvc-adjust label>span{display:flex;gap:12px}.pvc-adjust input[type=range]{width:100%;min-width:0;accent-color:#000}.pvc-adjust input[type=number]{width:85px;padding:8px;border:1px solid #aaa}.pvc-adjust input[type=color]{width:70px;height:44px}.pvc-history{display:flex;flex-wrap:wrap;gap:8px}.pvc-history button{font-size:11px}.pvc-total{display:flex;flex-direction:column;gap:12px;border-top:1px solid #ddd;padding-top:20px}.pvc-total>span{font-size:20px}.pvc-total button{background:#000;color:#fff}.pvc-total button:hover{background:#333}.pvc details summary{cursor:pointer;min-height:44px;padding:12px 0}.pvc [data-pvc-status]{min-height:20px}.pvc-entry .button{background:#000!important;color:#fff!important}.pvd-layout{display:grid;grid-template-columns:minmax(300px,800px) minmax(260px,1fr);gap:24px}.pvd-stage{position:relative;max-width:700px;line-height:0;background:#eee;touch-action:none;overflow:hidden}.pvd-stage img{width:100%;display:block}.pvd-rect{position:absolute;box-sizing:border-box;border:2px dashed #00a32a;background:#00a32a18;cursor:move;min-width:6px;min-height:6px;touch-action:none}.pvd-rect[data-kind=protected]{border-color:#d63638;background:#d6363822}.pvd-rect[data-kind=fixed]{border-color:#2271b1;background:#2271b122}.pvd-rect img{width:100%;height:100%;object-fit:contain}.pvd-resize{position:absolute;right:0;bottom:0;width:14px;height:14px;background:currentColor;cursor:nwse-resize}.pvd-panel label{display:flex;flex-direction:column;margin:12px 0;gap:6px}.pvd-panel input,.pvd-panel select{max-width:100%}.pvd-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.pvd-panel input[type=number]{width:100%}@media(max-width:800px){.pvc-layout{grid-template-columns:1fr;gap:18px}.pvc-head{padding:20px 0;align-items:start}.pvc-head h2{font-size:26px}.pvc-head>a{font-size:11px}.pvc-preview{min-width:0}.pvc-stage{max-width:420px}.pvc-tools{padding:18px;gap:16px}.pvc-total{position:sticky;bottom:0;background:#fff;z-index:4;padding:16px 0}.pvc-head p{letter-spacing:.04em}.pvd-layout{grid-template-columns:1fr}.pvc-hint{font-size:11px}.pvc-swatches button{padding:10px}.pvc-tools label{font-size:13px}}@media(prefers-reduced-motion:reduce){.pvc *{transition:none!important}}

.pvc-mobilebar{display:none}.pvc-sheet{color:#000;background:white;border:1px solid #ddd;max-width:100%;padding:16px}.pvc-sheet::backdrop{background:#0003}.pvc-sheet-close{width:100%;margin-bottom:12px}.pvc-sheet .pvc-tools{border:0;padding:0}.pvc-sheet:not([open]){display:none}@media(max-width:800px){.pvc-mobilebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;position:sticky;bottom:12px;background:#fff;padding:8px 0;z-index:5}.pvc-mobilebar button{font-size:10px;padding:10px 4px}.pvc-sheet[open]{position:fixed;inset:auto 0 0;margin:0;width:100%;height:48dvh;max-height:48dvh;border-radius:20px 20px 0 0;overflow:auto}.pvc-sheet-close{position:sticky;top:0;background:#000;color:#fff;z-index:6}.pvc-sheet .pvc-total{bottom:-16px}.pvc-stage{max-width:min(100%,360px)}.pvc-layout{display:block}}

.pvc-stage{scroll-margin-top:95px}

.pvc-library-categories{display:flex;flex-wrap:wrap;gap:7px}.pvc-library-categories button[aria-pressed=true]{background:#0B2637;color:white}.pvc [data-pvc-library]>button[hidden]{display:none!important}

/* Pika Visual 2.2 · contained studio, accessible tools, non-blocking mobile sheet. */
.pvc{--pvc-accent:#0b2637;--pvc-border:#dce4e8;--pvc-soft:#f2f5f7;isolation:isolate;border-radius:20px;padding:clamp(12px,2vw,28px)}
.pvc button,.pvc-upload{border-radius:10px;border-color:var(--pvc-border);font-weight:600;line-height:1.3;transition:background .15s,color .15s,box-shadow .15s}
.pvc button:hover,.pvc button:active,.pvc button[aria-pressed=true]{background:var(--pvc-accent);color:#fff;border-color:var(--pvc-accent)}
.pvc button:focus-visible,.pvc-upload:focus-within{outline:3px solid #16818f;outline-offset:3px}
.pvc button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.pvc[aria-busy=true] [data-pvc-cart]{cursor:progress}.pvc[aria-busy=true] .pvc-upload{pointer-events:none;opacity:.5}
.pvc-head h2{font-weight:650;letter-spacing:-.035em}.pvc-tools{border-radius:16px;box-shadow:0 12px 35px #0b263708}.pvc-stage{border-radius:14px;overflow:hidden}
.pvc-image-actions{display:flex;flex-wrap:wrap;gap:8px}.pvc-image-actions button{flex:1 1 120px;font-size:12px;padding:10px}
.pvc [data-pvc-library]{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
.pvc [data-pvc-library]>button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px}.pvc [data-pvc-library] canvas,.pvc [data-pvc-library] img{width:52px;height:52px;object-fit:contain;pointer-events:none}
.pvc-object-layers{display:grid;gap:6px;max-height:190px;overflow:auto}.pvc-object-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px}.pvc-object-row button{font-size:10px;padding:8px}.pvc-object-row button:first-child{text-overflow:ellipsis;overflow:hidden}
.pvc-crop{width:min(580px,96vw);max-width:96vw;max-height:94dvh;overflow:auto;border:1px solid var(--pvc-border);border-radius:20px;padding:20px;background:#fff;color:#0b2637;box-shadow:0 24px 100px #0b263755}
.pvc-crop::backdrop{background:#0b263780}.pvc-crop>canvas{width:100%;height:auto;touch-action:none;border-radius:12px}.pvc-crop p{font-size:13px;line-height:1.6}.pvc-crop label{display:flex;flex-direction:column;gap:8px;min-height:44px;flex:1}.pvc-crop select{padding:10px;background:#fff;color:#0b2637;border:1px solid #dce4e8;border-radius:8px}.pvc-crop input[type=range]{accent-color:#0b2637;min-height:44px;width:100%}.pvc-crop .pvc-image-actions{margin-top:16px}.pvc-crop .pvc-image-actions:last-child button:last-child{background:#0b2637;color:white}
.pvc-camera{display:none}.pvc-sheet-expand{display:none}
@media(max-width:800px){
 .pvc{padding:12px}.pvc-head{padding:8px 0 16px}.pvc-head h2{font-size:25px}.pvc-head p{font-size:10px}.pvc-head>a{max-width:80px}.pvc-preview{position:relative}
 .pvc-stage{max-width:min(100%,calc(53dvh * var(--pvc-aspect,.8)))}.pvc-mobilebar{position:static;padding:10px 0 4px;margin-bottom:10px}.pvc-mobilebar button{font-size:11px;min-height:48px}
 .pvc-sheet[open]{inset:auto 0 0;margin:0;width:100%;height:43dvh;max-height:43dvh;padding:12px 16px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -12px 45px #0b263722;z-index:1000;border:1px solid #dce4e8;border-radius:22px 22px 0 0;overscroll-behavior:contain}
 .pvc-sheet[open].is-expanded{height:65dvh;max-height:65dvh}.pvc-sheet-expand{display:block;position:sticky;top:52px;width:100%;margin-bottom:12px;z-index:5;background:white;font-size:12px}.pvc-sheet-close{top:0;margin:0 0 8px;padding:10px}
 .pvc-sheet .pvc-tools{gap:12px;box-shadow:none}.pvc-sheet .pvc-tools>.pvc-variants,.pvc-sheet .pvc-tools>.pvc-library,.pvc-sheet .pvc-tools>.pvc-adjust,.pvc-sheet .pvc-tools>.pvc-object-layers,.pvc-sheet .pvc-tools>label{display:none}
 .pvc-sheet[data-panel=".pvc-variants"] .pvc-variants,.pvc-sheet[data-panel=".pvc-library"] .pvc-library,.pvc-sheet[data-panel=".pvc-adjust"] .pvc-adjust:not([hidden]),.pvc-sheet[data-panel=".pvc-adjust"] .pvc-object-layers,.pvc-sheet[data-panel=".pvc-adjust"] .pvc-tools>label{display:flex;flex-direction:column}
 .pvc-camera{display:flex}.pvc-sheet .pvc-total{position:static;padding:12px 0}.pvc-history{gap:6px}.pvc-history button{flex:1;min-height:44px}.pvc-tools input[type=range]{min-height:44px}.pvc-sheet:has(.pvc-adjust[hidden])[data-panel=".pvc-adjust"] .pvc-object-layers:empty:after{content:'Ajoutez un visuel puis touchez-le pour le modifier.';font-size:13px;padding:12px}
}
@media(max-width:800px) and (orientation:landscape){.pvc-stage{max-width:min(46vw,calc(65dvh * var(--pvc-aspect,.8)))}.pvc-sheet[open]{left:auto;width:48vw;height:70dvh;max-height:70dvh}.pvc-sheet[open].is-expanded{height:85dvh;max-height:85dvh}}
@media(prefers-reduced-motion:reduce){.pvc *{transition:none!important;scroll-behavior:auto!important}}
.pvc-stage{position:relative}.pvc-stage canvas{touch-action:pan-y}.pvc-touch-targets{position:absolute;inset:0;pointer-events:none}.pvc-touch-targets>div{position:absolute;pointer-events:auto;touch-action:none;min-width:44px;min-height:44px;cursor:grab}
.pvc-quick-history{display:flex;justify-content:center;gap:8px;margin:8px 0}.pvc-quick-history button{font-size:11px;min-height:44px;padding:8px 14px}.pvc-quick-cart{display:none}@media(max-width:800px){.pvc-quick-cart{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;bottom:0;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom));z-index:6;border-top:1px solid #dce4e8}.pvc-quick-cart>span{font-size:12px;font-weight:700}.pvc-quick-cart>button{background:#0b2637;color:white;min-height:48px;font-size:12px}.pvc-quick-history{margin:4px 0}.pvc-hint{line-height:1.4;margin:8px 0}}

/* Direct manipulation controls use the product canvas coordinate system. */
.pvc .pvc-touch-targets>.pvc-selection{pointer-events:none;min-width:0;min-height:0;box-sizing:border-box;border:1.5px solid #0b2637;outline:1px solid #fff9;transform-origin:center;overflow:visible;z-index:2}
.pvc-selection:before{content:'';position:absolute;left:50%;top:-36px;width:1px;height:36px;background:#0b2637;box-shadow:1px 0 #fff9}
.pvc .pvc-selection>.pvc-handle{position:absolute;pointer-events:auto;touch-action:none;width:30px;height:30px;min-height:30px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#0b2637;transform:translate(-50%,-50%);box-shadow:none;display:grid;place-items:center;transition:none}
.pvc .pvc-selection>.pvc-handle:after{content:'';width:10px;height:10px;border:1.5px solid #0b2637;background:#fff;border-radius:2px;box-shadow:0 1px 4px #0002;pointer-events:none}
.pvc .pvc-selection>.pvc-handle:hover:after,.pvc .pvc-selection>.pvc-handle:focus-visible:after{background:#0b2637;border-color:#fff;box-shadow:0 0 0 2px #0b2637}
.pvc-handle-nw{left:0;top:0;cursor:nwse-resize}.pvc-handle-ne{left:100%;top:0;cursor:nesw-resize}.pvc-handle-sw{left:0;top:100%;cursor:nesw-resize}.pvc-handle-se{left:100%;top:100%;cursor:nwse-resize}
.pvc .pvc-selection>.pvc-handle-rotate{left:50%;top:-36px;cursor:grab;border:1px solid #0b2637;border-radius:50%;background:#fff;width:28px;height:28px;min-height:28px;box-shadow:0 2px 7px #0002}
.pvc .pvc-selection>.pvc-handle-rotate:after{display:none}.pvc-handle-rotate:active{cursor:grabbing}
.pvc .pvc-touch-targets>.pvc-canvas-toolbar{width:max-content;height:auto;min-width:0;min-height:0;display:flex;gap:2px;transform:translateX(-50%);padding:4px;background:#fff;box-shadow:0 3px 18px #0b263733;border:1px solid #dce4e8;border-radius:10px;z-index:3;pointer-events:auto}
.pvc .pvc-canvas-toolbar>button{display:grid;place-items:center;width:40px;height:40px;min-height:40px;border:0;background:#fff;color:#0b2637;padding:8px;border-radius:7px;touch-action:manipulation}
.pvc .pvc-canvas-toolbar>button:hover,.pvc .pvc-canvas-toolbar>button:active{background:#0b2637;color:#fff}
.pvc .pvc-canvas-toolbar>button[data-pvc-canvas-action=remove]:hover{background:#a11739;color:#fff}
.pvc-handle svg,.pvc-canvas-toolbar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.pvc[data-pvc-input-mode=touch] .pvc-selection>.pvc-handle{width:44px;height:44px;min-height:44px}.pvc[data-pvc-input-mode=touch] .pvc-selection>.pvc-handle-rotate{top:-40px;width:40px;height:40px;min-height:40px}.pvc[data-pvc-input-mode=touch] .pvc-canvas-toolbar>button{width:44px;height:44px;min-height:44px}
.pvc[data-pvc-input-mode=mouse] .pvc-camera{display:none}
