/* BELLEO — Gestionnaire d’images et galerie V1 */
.gallery-manager-page .boutique-section-card{overflow:visible}
.boutique-identity-grid{align-items:stretch}
.boutique-photo-card{display:flex!important;flex-direction:column;gap:12px;height:100%;padding:18px!important;background:linear-gradient(160deg,#fff,#fcf8f3)!important;border:1px solid var(--b-line)!important;border-radius:18px!important}
.boutique-photo-preview{position:relative;display:grid;place-items:center;overflow:hidden;width:100%;background:linear-gradient(145deg,#f3ece5,#fff);border:1px solid var(--b-line);border-radius:15px}
.boutique-photo-preview.is-profile{min-height:176px}
.boutique-photo-preview.is-profile img{width:112px!important;height:112px!important;border-radius:30px!important;object-fit:cover;box-shadow:0 10px 24px rgba(45,29,18,.12)}
.boutique-photo-preview.is-cover{min-height:176px;aspect-ratio:2.2/1}
.boutique-photo-preview.is-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.boutique-photo-preview.is-cover.is-empty span{font-size:11px;font-weight:750;color:var(--b-subtle)}
.boutique-upload-copy{display:flex;flex-direction:column;gap:4px;text-align:center}
.boutique-upload-copy strong{font-size:13px;color:var(--b-ink)}
.boutique-upload-copy span{font-size:10px;color:var(--b-subtle)}
.boutique-checks{display:grid;gap:9px;margin:12px 0}
.boutique-check{display:flex;align-items:flex-start;gap:9px;margin:0!important;color:var(--b-muted);font-size:11.5px!important;font-weight:600;line-height:1.5;cursor:pointer}
.boutique-check input{width:17px;height:17px;flex:0 0 auto;margin-top:1px;accent-color:var(--b-brand)}
.boutique-check span{font-size:11.5px!important;font-weight:600!important;line-height:1.5!important;text-transform:none!important;letter-spacing:0!important}
.boutique-gallery-heading{align-items:center}
.boutique-gallery-uploader{display:flex!important;flex-direction:column;gap:14px;padding:18px!important;border:1px dashed #c8aa94!important;border-radius:17px!important;background:linear-gradient(145deg,#fffaf6,#fff)!important}
.boutique-gallery-uploader-title{display:flex;align-items:center;gap:11px}
.boutique-gallery-uploader-title>div{display:flex;flex-direction:column;gap:3px}
.boutique-gallery-uploader-title strong{font-size:13px;color:var(--b-ink)}
.boutique-gallery-uploader-title span:not(.boutique-gallery-uploader-icon){font-size:10px;color:var(--b-subtle)}
.boutique-gallery-uploader-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--b-brand-soft);color:var(--b-brand-dark);font-size:20px;font-weight:500}
.gallery-manager-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
.gallery-manager-toolbar>div{display:flex;flex-direction:column;gap:3px}
.gallery-manager-toolbar strong{font-size:12px;color:var(--b-ink)}
.gallery-manager-toolbar span{font-size:9.5px;color:var(--b-subtle)}
.gallery-order-status{display:inline-flex!important;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:var(--b-success-soft);color:var(--b-success)!important;font-size:8.5px!important;font-weight:800;white-space:nowrap}
.gallery-order-status.is-saving{background:var(--b-brand-soft);color:var(--b-brand-dark)!important}
.gallery-order-status.is-error{background:var(--b-danger-soft);color:var(--b-danger)!important}
.gallery-manager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gallery-card{min-width:0;overflow:hidden;border:1px solid var(--b-line);border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(44,28,18,.055);transition:border-color .16s,box-shadow .16s,transform .16s}
.gallery-card.is-dragging{opacity:.58;transform:scale(.985)}
.gallery-card.is-drag-over{border-color:#b57a54;box-shadow:0 0 0 3px rgba(169,101,63,.12)}
.gallery-card-media{position:relative;aspect-ratio:1/1;overflow:hidden;background:#eee6de}
.gallery-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-drag-handle{position:absolute;top:10px;left:10px;display:grid;grid-template-columns:repeat(2,3px);gap:3px;width:31px;height:31px;place-content:center;border:1px solid rgba(255,255,255,.52);border-radius:10px;background:rgba(28,18,8,.58);backdrop-filter:blur(8px);cursor:grab}
.gallery-drag-handle:active{cursor:grabbing}
.gallery-drag-handle span{width:3px;height:3px;border-radius:50%;background:#fff}
.gallery-order-number{position:absolute;top:10px;right:10px;display:grid;place-items:center;min-width:31px;height:31px;padding:0 7px;border-radius:10px;background:rgba(255,255,255,.9);color:var(--b-ink);font-size:9px;font-weight:850;backdrop-filter:blur(8px)}
.gallery-visibility{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border-radius:999px;font-size:8px;font-weight:850;backdrop-filter:blur(8px)}
.gallery-visibility.is-public{background:rgba(232,245,236,.92);color:#2d6b46}
.gallery-visibility.is-hidden{background:rgba(255,255,255,.9);color:#746459}
.gallery-card-body{padding:12px}
.gallery-caption-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.gallery-caption-form .input{min-height:37px;font-size:9.5px}
.gallery-caption-save{min-height:37px;padding:0 10px;border:1px solid var(--b-line);border-radius:10px;background:var(--b-surface);color:var(--b-muted);font-size:8px;font-weight:800;cursor:pointer}
.gallery-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.gallery-card-actions form{margin:0}
.gallery-card-actions button{min-height:30px;padding:0 9px;border:1px solid var(--b-line);border-radius:9px;background:#fff;color:var(--b-muted);font-family:inherit;font-size:8px;font-weight:800;cursor:pointer}
.gallery-card-actions button:hover{border-color:#ba8e70;color:var(--b-brand-dark)}
.gallery-card-actions button.is-danger{color:var(--b-danger);border-color:#ead1cc;background:var(--b-danger-soft)}
.gallery-order-controls{display:flex;gap:4px;margin-right:auto}
.gallery-order-controls button{width:31px;padding:0;font-size:13px}
.belleo-image-editor{width:min(720px,calc(100vw - 28px));max-width:none;padding:0;border:0;border-radius:22px;background:#fff;box-shadow:0 26px 80px rgba(28,18,8,.28)}
.belleo-image-editor::backdrop{background:rgba(20,13,8,.7);backdrop-filter:blur(5px)}
.image-editor-shell{padding:20px}
.image-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.image-editor-head>div{display:flex;flex-direction:column;gap:3px}
.image-editor-head span{color:var(--b-brand);font-size:8px;font-weight:850;letter-spacing:.9px;text-transform:uppercase}
.image-editor-head h2{font-family:'Instrument Serif',serif;font-size:24px;font-weight:400;color:var(--b-ink)}
.image-editor-head button{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--b-line);border-radius:11px;background:#fff;color:var(--b-muted);font-size:22px;cursor:pointer}
.image-editor-help{margin:8px 0 15px;color:var(--b-subtle);font-size:10.5px;line-height:1.55}
.image-editor-canvas{display:flex;justify-content:center;padding:14px;border-radius:18px;background:#201711}
.image-editor-stage{position:relative;width:min(100%,560px);overflow:hidden;border-radius:13px;background:#0e0a08;touch-action:none;cursor:grab;box-shadow:0 0 0 1px rgba(255,255,255,.18)}
.image-editor-stage:active{cursor:grabbing}
.image-editor-stage img{position:absolute;max-width:none;user-select:none;pointer-events:none;will-change:left,top,width,height}
.image-editor-zoom{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:13px;margin-top:15px;color:var(--b-muted);font-size:9px;font-weight:800}
.image-editor-zoom input{width:100%;accent-color:var(--b-brand)}
.image-editor-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:17px}
.image-editor-actions .btn{width:auto}
@media(max-width:760px){
  .gallery-manager{grid-template-columns:1fr}
  .gallery-manager-toolbar{align-items:flex-start;flex-direction:column}
  .boutique-gallery-upload-row{grid-template-columns:1fr!important}
  .image-editor-shell{padding:16px}
  .image-editor-actions{display:grid;grid-template-columns:1fr 1fr}
  .image-editor-actions .btn{width:100%}
}


/* BELLEO_GALLERY_POLISH_V21 */
.gallery-manager-page .boutique-check{
  width:100%;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  text-align:left!important;
}
.gallery-manager-page .boutique-check>span{
  display:block!important;
  min-width:0;
  flex:1 1 auto;
  margin:0!important;
  text-align:left!important;
}
.gallery-manager-page .boutique-check>input[type="checkbox"]{
  display:grid!important;
  place-content:center!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  margin:1px 0 0!important;
  border:1.5px solid #9d8f84!important;
  border-radius:4px!important;
  background:#fff!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer;
}
.gallery-manager-page .boutique-check>input[type="checkbox"]::after{
  content:"";
  width:5px;
  height:9px;
  margin-top:-2px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  opacity:0;
  transform:rotate(45deg) scale(.75);
  transition:opacity .12s,transform .12s;
}
.gallery-manager-page .boutique-check>input[type="checkbox"]:checked{
  border-color:#a5643b!important;
  background:#a5643b!important;
}
.gallery-manager-page .boutique-check>input[type="checkbox"]:checked::after{
  opacity:1;
  transform:rotate(45deg) scale(1);
}
.gallery-manager-page .boutique-check>input[type="checkbox"]:focus-visible{
  outline:2px solid rgba(165,100,59,.28);
  outline-offset:2px;
}
.boutique-photo-card .boutique-rights-check{
  padding:10px 11px;
  border:1px solid #eadfd5;
  border-radius:12px;
  background:#fffaf6;
}
.boutique-gallery-uploader{
  gap:13px!important;
  padding:17px!important;
  border:1px solid #e2d4c8!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(50,31,18,.055)!important;
  cursor:default!important;
  text-align:left!important;
}
.boutique-gallery-uploader:hover{
  border-color:#d8c6b8!important;
  background:#fff!important;
}
.boutique-gallery-uploader-title{
  align-items:center!important;
  text-align:left!important;
}
.boutique-gallery-uploader-title>div{
  min-width:0;
  gap:2px!important;
}
.boutique-gallery-uploader-title strong{
  font-size:12px!important;
  line-height:1.35;
}
.boutique-gallery-uploader-title span:not(.boutique-gallery-uploader-icon){
  margin:0!important;
  font-size:9px!important;
  line-height:1.4;
  text-align:left!important;
}
.boutique-gallery-uploader-icon{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  flex:0 0 40px;
  margin:0!important;
  border:1px solid #ead8ca;
  border-radius:12px!important;
  background:#f7eee7!important;
}
.boutique-gallery-uploader-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:#8a5435;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.boutique-gallery-upload-row{
  grid-template-columns:minmax(0,1.08fr) minmax(220px,.92fr)!important;
  gap:10px!important;
  margin-top:2px!important;
}
.boutique-gallery-upload-row .belleo-upload-control,
.boutique-gallery-upload-row .input{
  min-height:48px!important;
  border-radius:12px!important;
}
.boutique-gallery-upload-row .belleo-upload-control{
  padding:5px!important;
}
.boutique-gallery-upload-row .belleo-upload-action{
  min-height:36px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:9px!important;
}
.boutique-gallery-upload-row .belleo-upload-action::before{
  content:""!important;
  display:block!important;
  flex:0 0 20px;
  width:20px!important;
  height:20px!important;
  margin:0 7px 0 0!important;
  border-radius:50%;
  background:
    linear-gradient(#875439,#875439) center / 8px 1.5px no-repeat,
    linear-gradient(#875439,#875439) center / 1.5px 8px no-repeat,
    rgba(255,255,255,.72)!important;
}
.boutique-gallery-upload-row .belleo-upload-name{
  margin:0!important;
  font-size:9px!important;
  text-align:left!important;
}
.boutique-gallery-upload-row .input{
  padding:0 13px!important;
  font-size:10px!important;
}
.boutique-checks{
  display:grid!important;
  gap:0!important;
  margin:1px 0 0!important;
  overflow:hidden;
  border:1px solid #eadfd5;
  border-radius:13px;
  background:#fffaf6;
}
.boutique-checks .boutique-check{
  min-height:42px;
  padding:11px 12px;
  box-sizing:border-box;
}
.boutique-checks .boutique-check+.boutique-check{
  border-top:1px solid #eadfd5;
}
.boutique-checks .boutique-check span{
  font-size:9.5px!important;
  font-weight:650!important;
  line-height:1.45!important;
}
.boutique-gallery-uploader-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:1px;
}
.boutique-gallery-uploader-footer>span{
  margin:0!important;
  color:var(--b-subtle)!important;
  font-size:8px!important;
  line-height:1.4;
  text-align:left!important;
}
.boutique-gallery-submit{
  width:auto!important;
  min-width:170px;
  min-height:40px!important;
  flex:0 0 auto;
}
.image-editor-head button[data-image-editor-close]{
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  line-height:0!important;
}
.image-editor-head button[data-image-editor-close] svg{
  display:block;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
.gallery-card-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1!important;
}
@media(max-width:760px){
  .boutique-gallery-upload-row{
    grid-template-columns:1fr!important;
  }
  .boutique-gallery-uploader-footer{
    align-items:stretch;
    flex-direction:column;
  }
  .boutique-gallery-submit{
    width:100%!important;
  }
}
