.pvf{color:var(--pvf-text);background:var(--pvf-bg);border:1px solid color-mix(in srgb,var(--pvf-text) 20%,transparent);border-radius:var(--pvf-radius);padding:clamp(16px,3vw,36px);font:inherit;box-sizing:border-box}.pvf *{box-sizing:border-box}.pvf h2{font:inherit;font-size:clamp(28px,3vw,52px);font-weight:800;line-height:1.05;margin:8px 0 16px}.pvf p{margin:8px 0}.pvf-eyebrow{font-size:11px;letter-spacing:.14em;color:var(--pvf-accent)}.pvf-top{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.pvf-upload,.pvf button,.pvf-product{font:inherit;cursor:pointer;border:1px solid color-mix(in srgb,var(--pvf-text) 25%,transparent);background:transparent;color:var(--pvf-text);padding:11px 14px;border-radius:8px;line-height:1.3;text-decoration:none;transition:background .2s,color .2s,transform .2s;min-height:44px}.pvf-upload{display:inline-flex;align-items:center;position:relative;overflow:hidden;flex-shrink:0;background:var(--pvf-button-bg,var(--pvf-accent));color:var(--pvf-button-text,var(--pvf-bg));font-weight:700}.pvf-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.pvf button:hover,.pvf button[aria-pressed=true],.pvf-product:hover{background:var(--pvf-button-bg,var(--pvf-accent));color:var(--pvf-button-text,var(--pvf-bg))}.pvf button:focus-visible,.pvf input:focus-visible,.pvf select:focus-visible,.pvf canvas:focus-visible,.pvf-upload:focus-within{outline:2px solid var(--pvf-accent);outline-offset:4px}.pvf-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.pvf-stage{min-width:0}.pvf canvas{display:block;background:#070909;border:1px solid color-mix(in srgb,var(--pvf-text) 15%,transparent);border-radius:10px;width:100%;max-height:none;margin-inline:auto;aspect-ratio:16/9;object-fit:contain;touch-action:none;cursor:grab}.pvf-stage-actions,.pvf-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.pvf-controls{display:flex;flex-direction:column;gap:12px;min-width:0}.pvf label{font-size:13px;font-weight:600;display:block}.pvf select,.pvf input[type=number]{font:inherit;background:var(--pvf-bg);color:var(--pvf-text);border:1px solid color-mix(in srgb,var(--pvf-text) 30%,transparent);border-radius:6px;padding:9px;max-width:100%;min-height:40px}.pvf select{display:block;width:100%;margin-top:6px}.pvf-range span{display:flex;align-items:center;gap:8px;margin-top:4px}.pvf input[type=range]{accent-color:var(--pvf-accent);min-width:0;flex:1;width:100%}.pvf input[type=number]{width:72px}.pvf-check{display:flex!important;gap:8px;align-items:center}.pvf input[type=checkbox]{accent-color:var(--pvf-accent)}.pvf-privacy,.pvf-status{font-size:12px;color:var(--pvf-muted);line-height:1.6}.pvf-library{margin-top:24px;border-top:1px solid color-mix(in srgb,var(--pvf-text) 20%,transparent);padding-top:20px}.pvf-library>label{max-width:300px}.pvf-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:12px;margin-top:16px}.pvf-products button{display:flex;flex-direction:column;text-align:left;align-items:stretch;min-width:0}.pvf-products img{width:100%;height:115px;object-fit:contain;margin-bottom:10px}.pvf-products small{font-size:11px;line-height:1.5;margin-top:6px}.pvf-product{display:block;margin-top:8px;background:var(--pvf-button-bg,var(--pvf-accent));color:var(--pvf-button-text,var(--pvf-bg));font-weight:700}.pvf [hidden]{display:none!important}.pvf button:disabled{opacity:.4;cursor:default}@media(max-width:1000px){.pvf-workspace{grid-template-columns:1fr}.pvf-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pvf-controls>.pvf-actions,.pvf-product{grid-column:1/-1}.pvf canvas{max-height:none}}@media(max-width:520px){.pvf-top{flex-direction:column;align-items:stretch}.pvf-upload{justify-content:center}.pvf-controls{grid-template-columns:1fr}.pvf-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pvf-stage-actions button{flex:1}.pvf{padding:14px}.pvf-products img{height:100px}}@media(prefers-reduced-motion:reduce){.pvf *{transition:none!important}}

.pvf-product-entry{order:80;width:100%}.pvf-product-entry a.button{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 20px!important;background:var(--pvf-button-bg,var(--pvf-accent))!important;color:var(--pvf-button-text,var(--pvf-bg))!important;border:1px solid var(--pvf-accent)!important;border-radius:8px!important;transition:background .2s,color .2s,transform .2s}.pvf-product-entry a.button:hover{background:var(--pvf-button-hover-bg,var(--pvf-text))!important;color:var(--pvf-button-hover-text,var(--pvf-bg))!important;transform:translateY(-2px)}.pvf-product-entry a:focus-visible{outline:3px solid var(--pvf-accent);outline-offset:4px}

.pvf button:hover,.pvf button[aria-pressed=true],.pvf-product:hover,.pvf-upload:hover{background:var(--pvf-button-hover-bg,var(--pvf-accent));color:var(--pvf-button-hover-text,var(--pvf-bg))}

/* Atelier tactile : la photo précède immédiatement les deux familles d’outils. */
.pvf-mobile-tabs,.pvf [data-pvf-fullscreen]{display:none}
.pvf-viewport{min-width:0}
.pvf-dialog{color:var(--pvf-text);background:var(--pvf-bg);border:1px solid color-mix(in srgb,var(--pvf-text) 25%,transparent);border-radius:16px;padding:16px;width:min(1000px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;overflow:hidden;box-shadow:0 24px 100px #0009}
.pvf-dialog::backdrop{background:#000c;backdrop-filter:blur(7px)}
.pvf-dialog[open]{display:flex;flex-direction:column;gap:12px}
.pvf-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.pvf-dialog-head strong{font-size:16px;color:var(--pvf-text)}
.pvf-dialog-head button{min-width:80px;min-height:44px}
.pvf-dialog .pvf-workspace{min-height:0;flex:1;overflow:auto}
.pvf-dialog [data-pvf-fullscreen]{display:none!important}
@media(max-width:800px){
 .pvf{padding:12px;min-width:0;max-width:100%}
 .pvf-top{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:16px}
 .pvf-top h2{font-size:clamp(24px,6vw,36px);margin:8px 0 12px}
 .pvf-top p{font-size:14px;line-height:1.5}
 .pvf-upload{justify-content:center;min-height:48px}
 .pvf .pvf-workspace{display:flex;flex-direction:column;gap:12px;min-width:0}
 .pvf-stage{display:contents}
 .pvf-viewport{order:0;position:sticky;top:var(--pvf-mobile-top,12px);z-index:2;background:var(--pvf-bg);border-radius:12px;padding:8px;border:1px solid color-mix(in srgb,var(--pvf-text) 18%,transparent)}
 .pvf .pvf-viewport canvas{width:auto!important;height:auto!important;max-width:100%!important;max-height:clamp(180px,40dvh,380px)!important;aspect-ratio:auto;margin:0 auto;touch-action:none}
 .pvf-stage-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
 .pvf-stage-actions button{min-width:0;min-height:44px;padding:9px 6px;font-size:12px;line-height:1.25}
 .pvf [data-pvf-fullscreen]{display:block}
 .pvf-status{font-size:11px;line-height:1.4;margin:6px 0 0;min-height:16px}
 .pvf-mobile-tabs{order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex-shrink:0}
 .pvf-mobile-tabs button{font-size:15px;font-weight:750;min-height:48px}
 .pvf-mobile-tabs [aria-selected=true]{background:var(--pvf-button-bg,var(--pvf-accent));color:var(--pvf-button-text,var(--pvf-bg));border-color:var(--pvf-accent)}
 .pvf-library{order:2;min-height:0;margin:0;padding:0;border:0;max-height:310px;overflow:auto;overscroll-behavior:contain}
 .pvf-library>label{max-width:none}
 .pvf-products{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 12px;overscroll-behavior-x:contain;margin-top:10px}
 .pvf-products button{flex:0 0 140px;scroll-snap-align:start;padding:10px;min-height:140px}
 .pvf-products img{height:86px;margin-bottom:6px}
 .pvf-products strong{font-size:13px;line-height:1.3}
 .pvf-products small{font-size:11px;line-height:1.35}
 .pvf .pvf-controls{order:2;display:flex;flex-direction:column;gap:12px;max-height:350px;overflow:auto;overscroll-behavior:contain;padding:2px 4px 12px;scrollbar-width:thin}
 .pvf label{font-size:13px;line-height:1.4}
 .pvf select,.pvf input[type=number]{font-size:16px;min-height:44px}
 .pvf input[type=number]{width:76px;flex-shrink:0}
 .pvf input[type=range]{min-height:44px;touch-action:pan-y}
 .pvf-actions{margin:0;gap:8px}.pvf-actions button{flex:1 0 42%;min-height:44px;font-size:13px}
 .pvf-check{padding-block:8px;min-height:44px}.pvf-check input{width:20px;height:20px;flex-shrink:0}
 .pvf-product{font-size:14px;text-align:center;min-height:48px;padding:14px}
 .pvf-dialog{margin:auto;width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:12px;padding:10px 10px max(10px,env(safe-area-inset-bottom));}
 .pvf-dialog .pvf-workspace{overflow:hidden;gap:10px}
 .pvf-dialog .pvf-viewport{position:static;flex-shrink:0;padding:6px}
 .pvf-dialog .pvf-viewport canvas{max-height:34dvh!important}
 .pvf-dialog .pvf-stage-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pvf-dialog .pvf-stage-actions button{font-size:11px;padding:6px 3px;min-height:40px}
 .pvf-dialog .pvf-library,.pvf-dialog .pvf-controls{flex:1;max-height:none;min-height:0;overflow:auto}
 .pvf-dialog .pvf-library{display:flex;flex-direction:column}
 .pvf-dialog .pvf-products{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
 .pvf-dialog .pvf-products button{min-width:0;min-height:135px}
 .pvf-dialog .pvf-products img{height:75px}
}
@media(max-width:800px) and (max-height:500px){.pvf-dialog .pvf-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,42%);grid-template-rows:auto minmax(0,1fr)}.pvf-dialog .pvf-viewport{grid-row:1/3;grid-column:1;min-height:0;overflow:auto}.pvf-dialog .pvf-viewport canvas{max-height:48dvh!important}.pvf-dialog .pvf-mobile-tabs{grid-column:2;grid-row:1}.pvf-dialog .pvf-library,.pvf-dialog .pvf-controls{grid-column:2;grid-row:2}.pvf-dialog-head{min-height:40px}}
