/* PhoenixCustom's V15-A — catalogue et lots */
.pc-v15-onrequest,.pc-v15-models,.pc-v15-lot{border:1px solid #b88652;border-radius:12px;padding:16px;margin:16px 0;background:#f9eddc12;line-height:1.55}
.pc-v15-onrequest strong{color:#da9a51}
.pc-v15-onrequest p{margin:6px 0 0}
.pc-v15-choice{display:block;margin:16px 0;font-weight:700}
.pc-v15-choice select,.pc-v15-models select{display:block;width:100%;min-height:46px;padding:10px;background:#f6ede0;color:#291c11;border:1px solid #c99e6c;border-radius:8px;margin:8px 0;font-size:15px}
.pc-v15-lot h2,.pc-v15-models h2{font-size:1.25rem;margin:0 0 10px}
.pc-v15-piece{border:1px solid #a57e55;border-radius:10px;margin:14px 0;padding:12px;background:#2119100d}
.pc-v15-piece legend{font-weight:700;padding:0 6px}
.pc-v15-piece label{display:block;margin:10px 0}
.pc-v15-piece textarea{box-sizing:border-box;display:block;width:100%;min-height:74px;margin-top:6px;padding:10px;border:1px solid #aa8b65;border-radius:7px;font:inherit}
.pc-v15-admin{border:1px solid #8c6035;padding:18px;border-radius:10px;background:#20160f}
.pc-v15-admin h3{margin:18px 0 8px;color:#f4c58b;font-size:19px}
.pc-v15-admin h3:first-child{margin-top:0}
.pc-v15-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pc-v15-grid label{min-width:0}
.pc-v15-admin label{display:block;font-size:13px;margin:7px 0}
.pc-v15-admin input:not([type="checkbox"]),.pc-v15-admin select,.pc-v15-admin textarea{box-sizing:border-box;display:block;width:100%;padding:10px;min-width:0;margin-top:5px}
.pc-v15-variant{border:1px solid #8b683f;padding:15px;margin:12px 0;border-radius:8px;min-width:0}
.pc-v15-variant legend{padding:0 6px;color:#f4d3a3}
@media(max-width:620px){.pc-v15-grid{grid-template-columns:1fr}}

.pc-v15-has-lot .article-layout{display:block;max-width:1000px;margin-inline:auto}
.pc-v15-has-lot .article-details{width:100%;max-width:none}
.pc-v15-has-lot .pc-v15-piece .pc-editor{margin-top:14px}
.pc-v15-has-lot .pc-v15-piece .pc-editor-stage{max-width:720px;margin-inline:auto}
#cart{box-sizing:border-box;width:min(96vw,1400px)!important;max-width:none!important;max-height:95dvh!important;overflow-y:auto!important;margin:auto!important;border-radius:12px}
#cart #cartitems{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:12px}
#cart .cartrow{height:100%;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}

#cart #cartitems{display:block!important}
.pc-v15-cart-scroll{overflow-x:auto;width:100%;margin:12px 0}
.pc-v15-cart-table{border-collapse:collapse;width:100%;min-width:760px;table-layout:fixed}
.pc-v15-cart-table th{padding:12px;text-align:left;color:#ffd49e;background:#302216;font-size:13px}
.pc-v15-cart-table td{vertical-align:top;padding:15px 10px;border-bottom:1px solid #785535;word-wrap:break-word;overflow-wrap:anywhere}
.pc-v15-cart-table td:nth-child(1){width:21%}.pc-v15-cart-table td:nth-child(3){width:29%}
.pc-v15-cart-table td strong{display:block}.pc-v15-cart-table td small,.pc-v15-cart-table td span{display:block;margin:5px 0;font-size:12px}
.pc-v15-cart-table img{max-width:105px;max-height:90px;object-fit:contain;display:block;margin-top:7px;border-radius:6px}
.pc-v15-cart-table p{margin:6px 0;white-space:pre-wrap;line-height:1.4}
.pc-v15-cart-table button{min-height:36px}
@media(max-width:760px){
 .pc-v15-cart-table{min-width:0}.pc-v15-cart-table thead{display:none}.pc-v15-cart-table tbody,.pc-v15-cart-table tr,.pc-v15-cart-table td{display:block;width:100%!important;box-sizing:border-box}
 .pc-v15-cart-table tr{border:1px solid #79542f;border-radius:10px;margin:12px 0;background:#231a12}
 .pc-v15-cart-table td{padding:9px 13px;border:0}.pc-v15-cart-table td:before{content:attr(data-label);display:block;color:#f6c38c;font-weight:700;font-size:12px;margin-bottom:4px}
}

/* V15-B.2 : compositions independantes recto/verso des lots */
.pc-v15-piece h4{font-size:1rem;margin:14px 0 6px}
.pc-v15-piece-verso{margin-top:16px;border:1px solid #bb8750;border-radius:8px;padding:12px}
.pc-v15-piece-verso summary{cursor:pointer;font-weight:700;padding:8px;min-height:30px}
.pc-v15-b2-hint{font-size:.86rem;opacity:.9}
.pc-v15-piece .pc-photo-tools{margin:12px 0;border:1px solid #897053;border-radius:8px;padding:10px;max-width:100%}
.pc-v15-piece .pc-editor{max-width:100%;min-width:0}
.pc-v15-cart-line [data-pc-edit]{margin-bottom:7px}

/* Visionneuse : navigation continue entre photos sans fermer le dialogue. */
.pc-gallery-modal-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.pc-gallery-modal-controls [data-gallery-counter]{font:600 14px system-ui;color:#f4c487}
.pc-gallery-modal-stage{display:flex;align-items:center;justify-content:center;gap:8px;max-width:min(90vw,900px)}
.pc-gallery-modal-stage img{max-width:min(75vw,780px);max-height:75vh;width:auto;height:auto;object-fit:contain}
.pc-gallery-modal-stage .pc-gallery-nav{flex:0 0 auto;cursor:pointer;min-width:38px;min-height:48px;border:1px solid #c38949;border-radius:6px;background:#382519;color:#f9d9a9;font-size:24px}
.pc-gallery-modal-stage .pc-gallery-nav:hover{background:#694326}
@media(max-width:600px){.pc-gallery-modal-stage{gap:3px}.pc-gallery-modal-stage img{max-width:calc(90vw - 90px)}.pc-gallery-modal-stage .pc-gallery-nav{min-width:34px}}

/* Visionneuse responsive : l'image ne dépasse jamais le cadre, quelle que soit sa proportion. */
#pc-gallery-modal{
  box-sizing:border-box;
  width:min(96vw,920px);
  max-width:96vw;
  max-height:94vh;
  overflow:hidden;
  padding:clamp(10px,2vw,20px);
}
#pc-gallery-modal .pc-gallery-modal-controls{width:100%;box-sizing:border-box}
#pc-gallery-modal .pc-gallery-modal-stage{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 40px;
  align-items:center;
  justify-items:center;
  gap:8px;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
#pc-gallery-modal .pc-gallery-modal-stage img{
  display:block;
  width:auto;
  height:auto;
  min-width:0;
  max-width:100%;
  max-height:min(77vh,calc(94dvh - 105px));
  object-fit:contain;
  margin:0;
}
#pc-gallery-modal .pc-gallery-nav{
  box-sizing:border-box;
  width:40px;
  min-width:0;
  max-width:100%;
  padding:5px;
}
@media(max-width:600px){
  #pc-gallery-modal{width:98vw;max-width:98vw;padding:8px}
  #pc-gallery-modal .pc-gallery-modal-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:3px}
  #pc-gallery-modal .pc-gallery-nav{width:32px;min-width:0;padding:3px}
  #pc-gallery-modal .pc-gallery-modal-stage img{max-height:calc(94dvh - 85px)}
}

/* Sélecteur de 23 polices : aperçu au survol et au clavier, sélection au clic. */
.pc-font-picker{position:relative;min-width:0}
.pc-font-title{display:block;margin-bottom:7px}
.pc-font-trigger{width:100%;min-height:42px;padding:8px 10px;border:1px solid #b98a56;border-radius:6px;background:#fff1dd;color:#281c10;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;cursor:pointer}
.pc-font-chosen{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-font-menu[hidden]{display:none!important}
.pc-font-menu{position:absolute;z-index:60;top:100%;left:0;width:max(100%,250px);max-width:min(330px,90vw);max-height:330px;overflow-y:auto;overscroll-behavior:contain;background:#fff6e8;color:#281c10;border:1px solid #bc8b52;border-radius:7px;box-shadow:0 12px 28px #0009;padding:4px}
.pc-font-group{position:sticky;top:0;background:#ead6b9;color:#53341d;padding:8px 10px;font:bold 12px system-ui,sans-serif}
.pc-font-option{display:block;width:100%;min-height:44px;text-align:left;padding:8px 12px;font-size:19px;line-height:1.4;border:0;border-bottom:1px solid #e5d6c0;border-radius:3px;background:transparent;color:#271b10;cursor:pointer}
.pc-font-option:hover,.pc-font-option:focus-visible{background:#f4d6a8;outline:2px solid #ba813d;outline-offset:-2px}
.pc-font-option[aria-selected="true"]{background:#ead2ac;box-shadow:inset 3px 0 #a26927}
@media(max-width:600px){.pc-font-menu{max-width:min(310px,86vw)}.pc-font-option{min-height:48px}}
