/* Pages de vente : liste, questionnaire, éditeur visuel */
.fenetre.large{max-width:860px;max-height:88vh;overflow:auto}
.pv-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}
.pv-carte{display:flex;flex-direction:column;gap:8px}
.pv-carte h3{font-size:18px;margin-top:2px}
.pv-carte-actions{margin-top:auto;padding-top:8px}
.pv-statut{display:inline-block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;padding:3px 9px;border-radius:99px;background:var(--surface3);color:var(--muted);margin-right:6px}
.pv-statut.en-ligne{background:rgba(155,226,122,.14);color:var(--ok)}.pv-statut.maj{background:rgba(242,199,107,.14);color:var(--warn)}

/* Questionnaire */
.pv-questions{display:grid;grid-template-columns:250px 1fr;gap:20px;align-items:start}
.pv-etapes{display:flex;flex-direction:column;gap:3px;position:sticky;top:20px}
.pv-etapes button{display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;padding:10px 12px;border-radius:10px;color:var(--muted);font-weight:600;cursor:pointer;font-size:14px}
.pv-etapes button:hover{background:var(--surface);color:var(--text)}
.pv-etapes button span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--surface2);font-size:12px;font-weight:800;flex:none}
.pv-etapes button.actif{background:var(--surface2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line2)}
.pv-etapes button.fait span{background:var(--lime);color:var(--on-accent)}
.pv-etape{padding:28px;max-width:820px}.pv-etape h2{font-size:26px;margin:4px 0 6px}
.pv-champs{display:flex;flex-direction:column;gap:20px;margin-top:24px}
.pv-champ{display:flex;flex-direction:column;gap:7px}
.pv-label{font-weight:700;font-size:14.5px}.requis{color:var(--lime)}
.pv-puces{display:flex;flex-wrap:wrap;gap:8px}
.pv-puces button{background:var(--bg2);border:1px solid var(--line2);color:var(--muted);border-radius:99px;padding:8px 14px;font-weight:600;font-size:13.5px;cursor:pointer}
.pv-puces button:hover{color:var(--text)}.pv-puces button.actif{background:var(--limebg);border-color:rgba(var(--accent-rgb),.55);color:var(--lime)}
.pv-temos{display:flex;flex-direction:column;gap:10px}
.pv-temo{display:flex;flex-direction:column;gap:8px;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
.pv-temo .ligne input{flex:1;min-width:140px}
.pv-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.pv-photos figure{margin:0;position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--bg2)}
.pv-photos img{width:100%;height:100%;object-fit:cover;display:block}
.pv-photos figure button{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;cursor:pointer}
.pv-photo-ajout{aspect-ratio:1;border:2px dashed var(--line2);border-radius:12px;display:grid;place-items:center;color:var(--muted);font-weight:700;cursor:pointer}
.pv-photo-ajout:hover{border-color:rgba(var(--accent-rgb),.6);color:var(--lime)}
.pv-bas{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}
.pv-manques{margin:0;padding-left:18px;color:var(--muted);display:grid;gap:4px}
.pv-attente{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 4px}.pv-attente .spin{width:34px;height:34px}
.pv-aide-stripe{line-height:1.45}

/* Éditeur : plein écran */
body.pv-plein .app{grid-template-columns:1fr}body.pv-plein .cote,body.pv-plein .tabbar{display:none}
body.pv-plein .vue{max-width:none;padding:0;animation:none}
.pv-editeur{display:grid;grid-template-columns:250px minmax(0,1fr) 350px;grid-template-rows:auto minmax(0,1fr);height:100vh;height:100dvh}
.pv-barre{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid var(--line);background:var(--bg2);flex-wrap:wrap}
.pv-barre .btn svg,.pv-barre .bascule svg{width:16px;height:16px}
.pv-titre{width:min(320px,30vw)!important;background:transparent!important;border-color:transparent!important;font-weight:800;font-size:15px!important;padding:7px 9px!important}
.pv-titre:hover{border-color:var(--line2)!important}.pv-titre:focus{background:var(--bg)!important;border-color:rgba(var(--accent-rgb),.5)!important}
.pv-etat{font-size:12.5px;color:var(--faint);white-space:nowrap}.pv-espace{flex:1}
.pv-gauche,.pv-droite{overflow:auto;background:var(--bg2);min-height:0}
.pv-gauche{border-right:1px solid var(--line);padding:12px 10px 30px}
.pv-droite{border-left:1px solid var(--line)}
.pv-droite .onglets{position:sticky;top:0;background:var(--bg2);z-index:2;padding:0 6px;margin:0}.pv-droite .onglets button{flex:1;padding:12px 8px}
.pv-pad{padding:14px 14px 40px;display:flex;flex-direction:column;gap:14px}
.pv-gauche-tete{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 10px}
.pv-blocs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.pv-bloc{display:flex;align-items:center;gap:8px;padding:9px 8px;border-radius:10px;cursor:pointer;border:1px solid transparent;position:relative}
.pv-bloc:hover{background:var(--surface)}.pv-bloc.actif{background:var(--surface2);border-color:rgba(var(--accent-rgb),.45)}
.pv-bloc.masque .pv-bloc-txt{opacity:.45}.pv-bloc.glisse{opacity:.4}
.pv-bloc.dessus::before,.pv-bloc.dessous::after{content:'';position:absolute;left:6px;right:6px;height:3px;border-radius:3px;background:var(--lime)}
.pv-bloc.dessus::before{top:-3px}.pv-bloc.dessous::after{bottom:-3px}
.pv-poignee{color:var(--faint);cursor:grab;font-size:12px;letter-spacing:-2px}
.pv-bloc-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.pv-bloc-txt b{font-size:13px}.pv-bloc-txt span{font-size:12px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-bloc-actions{display:none;gap:2px;position:absolute;right:6px;top:50%;transform:translateY(-50%);background:var(--surface3);border-radius:9px;padding:2px;box-shadow:0 4px 14px rgba(0,0,0,.35)}.pv-bloc:hover .pv-bloc-actions{display:flex}
.pv-bloc-actions button{width:26px;height:26px;border:0;background:none;color:var(--muted);border-radius:7px;cursor:pointer;display:grid;place-items:center}
.pv-bloc-actions button:hover{background:var(--surface3);color:var(--text)}.pv-bloc-actions svg{width:14px;height:14px}
.pv-astuce{padding:14px 6px 0;line-height:1.45}
.pv-centre{background:#262a24;display:flex;justify-content:center;padding:16px;min-height:0;overflow:hidden}
.pv-cadre{width:100%;height:100%;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.45);transition:width .25s ease}
.pv-cadre.mobile{width:390px;border-radius:26px;border:8px solid #111}
.pv-cadre iframe{width:100%;height:100%;border:0;display:block;background:#fff}
.pv-ins-tete{display:flex;align-items:center;justify-content:space-between;gap:8px}.pv-ins-tete b{font-size:15px}
.pv-ins-tete svg,.pv-ins-bas svg{width:14px;height:14px}
.pv-ichamp{display:flex;flex-direction:column;gap:6px;font-size:13px}
.pv-ichamp>span{font-weight:600;color:var(--muted)}
.pv-ichamp input[type=text],.pv-ichamp textarea,.pv-ichamp select{font-size:14px;padding:9px 11px}
.pv-ichamp input[type=range]{width:100%;accent-color:var(--lime)}
.pv-iimg{display:flex;align-items:center;gap:10px;background:var(--bg);border:1px solid var(--line);border-radius:11px;padding:8px}
.pv-iimg img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:none}.pv-iimg i{color:var(--faint);font-size:12.5px;flex:1}
.pv-iliste{display:flex;flex-direction:column;gap:8px}
.pv-iitem{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px}
.pv-iitem-tete{display:flex;justify-content:space-between;align-items:center}
.pv-iitem-tete b{width:22px;height:22px;border-radius:50%;background:var(--surface2);display:grid;place-items:center;font-size:11px}
.pv-iitem-tete button{width:26px;height:26px;border:0;background:none;color:var(--muted);border-radius:7px;cursor:pointer;display:grid;place-items:center}
.pv-iitem-tete button:hover{background:var(--surface3);color:var(--text)}.pv-iitem-tete svg{width:14px;height:14px}
.pv-style{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:12px}
.pv-style summary{cursor:pointer;font-weight:700;margin-bottom:10px}
.pv-style[open]{gap:12px}.pv-style>div,.pv-style>label{margin-bottom:12px}
.pv-ins-bas{border-top:1px solid var(--line);padding-top:12px}
.pv-rien{text-align:center;padding-top:40px}
.pv-palettes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pv-palettes button{background:none;border:1px solid var(--line2);border-radius:10px;padding:6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted)}
.pv-palettes button:hover{border-color:rgba(var(--accent-rgb),.6);color:var(--text)}
.pv-palettes i{width:100%;height:28px;border-radius:7px;background:linear-gradient(90deg,var(--f) 55%,var(--a) 55%);box-shadow:inset 0 0 0 1px rgba(127,127,127,.25)}
.pv-palettes small{font-size:10px;line-height:1.1;text-align:center}
.pv-types{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.pv-types button{text-align:left;background:var(--bg2);border:1px solid var(--line2);border-radius:12px;padding:12px;cursor:pointer;display:flex;flex-direction:column;gap:3px;color:var(--text)}
.pv-types button:hover{border-color:rgba(var(--accent-rgb),.6)}.pv-types span{font-size:12px;color:var(--faint)}
/* Bibliothèque d'images */
.pv-sous{width:100%;margin-bottom:12px}.pv-sous button{flex:1;justify-content:center}
.pv-sous-corps{display:flex;flex-direction:column;gap:10px}
.pv-depot{display:flex;flex-direction:column;align-items:center;gap:3px;border:2px dashed var(--line2);border-radius:12px;padding:16px;cursor:pointer;text-align:center}
.pv-depot:hover,.pv-depot.survol{border-color:rgba(var(--accent-rgb),.6);background:var(--limebg)}
.pv-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.fenetre .pv-grille{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.pv-vignette{position:relative;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;aspect-ratio:1;background:var(--bg2);cursor:pointer}
.pv-vignette[draggable=true]{cursor:grab}
.pv-vignette:hover{border-color:var(--lime)}.pv-vignette img{width:100%;height:100%;object-fit:cover;display:block}
.pv-vignette small{position:absolute;left:0;right:0;bottom:0;font-size:10px;padding:3px 5px;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-vignette.charge{opacity:.5;pointer-events:none}.pv-vignette.charge::after{content:'';position:absolute;inset:0;margin:auto;width:22px;height:22px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:tour .8s linear infinite}
.pv-recherche{display:flex;gap:8px}
/* Publication */
.pv-adresse{display:flex;align-items:center;background:var(--bg2);border:1px solid var(--line2);border-radius:11px;overflow:hidden}
.pv-adresse span{padding:0 0 0 12px;color:var(--faint);font-weight:500;white-space:nowrap;font-size:14px}
.pv-adresse input{border:0!important;box-shadow:none!important;background:transparent!important;padding-left:2px!important}
.pv-adresse.finale input{padding-left:12px!important;font-weight:700;color:var(--lime)}
.pv-alerte{background:rgba(242,199,107,.1);border:1px solid rgba(242,199,107,.35);color:var(--warn);border-radius:11px;padding:10px 12px;font-size:13.5px}
@media (max-width:1180px){.pv-editeur{grid-template-columns:220px minmax(0,1fr) 310px}}
@media (max-width:900px){
  .pv-questions{grid-template-columns:1fr}.pv-etapes{position:static;flex-direction:row;overflow-x:auto}.pv-etapes button{white-space:nowrap}.pv-etape{padding:18px}
  .pv-editeur{display:flex;flex-direction:column;height:auto}.pv-centre{height:72vh;order:2}.pv-gauche{order:3;border:0}.pv-droite{order:4;border:0}
  body.pv-plein .tabbar{display:none}
}
