/* Studio Portrait & Prénom — présentation seulement. Le moteur reste celui de la fiche. */
body.pl-studio-page .pl-kicker,
body.pl-studio-page .pl-title,
body.pl-studio-page .pl-intro,
body.pl-studio-page .pl-portrait-from-photo,
body.pl-studio-page .product-trust-line,
body.pl-studio-page .pl-price:not(.am-studio-price),
body.pl-studio-page .pl-price-note:not(.am-studio-price-note),
body.pl-studio-page .pl-start-cta,
body.pl-studio-page .pl-breadcrumb,
body.pl-studio-page .pl-divider,
body.pl-studio-page .six-creations-story,
body.pl-studio-page .pl-acc:not(#pl-acc-sizes),
body.pl-studio-page .share-row,
body.pl-studio-page #pl-sticky-preview,
body.pl-studio-page #pl-m-start-bar,
body.pl-studio-page #pl-photo-gallery{display:none !important;}
body.pl-product-sheet #pl-configurator,
body.pl-product-sheet #pl-m-buy-home{display:none !important;}
body.pl-product-sheet .pl-start-cta{display:block;}
a.pl-start-cta__btn,a.pl-m-start-bar__btn{text-decoration:none;box-sizing:border-box;}

body.pl-studio-page .am-studio{
  position:fixed;top:var(--am-studio-top, 0px);right:0;bottom:auto;left:0;z-index:1;width:100%;
  height:var(--am-studio-h, 100dvh);
  max-height:var(--am-studio-h, 100dvh);
  display:flex;flex-direction:column;min-height:0;
  max-width:none;margin:0;padding:0;overflow:hidden;background:#f4f1ea;
}
body.pl-studio-page .am-studio-body{
  flex:1 1 auto;min-height:0;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,480px);
  grid-template-rows:minmax(0,1fr);
}
body.pl-studio-page .am-studio-stage{
  box-sizing:border-box;min-width:0;min-height:0;height:100%;
  container-type:size;display:flex;align-items:center;justify-content:center;
  background:#f3efe6;padding:1.35rem 1.6rem;
}
body.pl-studio-page .am-studio-stage .pl-gallery,
body.pl-studio-page .am-studio-stage .pl-gallery-home,
body.pl-studio-page .am-studio-stage .pl-gallery-stage,
body.pl-studio-page .am-studio-stage .pl-mockup,
body.pl-studio-page .am-studio-stage .pl-canvas-wrap{
  position:relative !important;top:auto !important;align-self:center !important;
  flex:0 0 auto;width:auto !important;height:auto !important;min-height:0;max-width:100%;
  display:flex;align-items:center;justify-content:center;background:transparent;padding:0;
}
body.pl-studio-page .pl-mockup-frame,
body.pl-studio-page .pl-mockup.is-lifestyle .pl-mockup-frame{
  flex:0 0 auto;
  width:min(100cqi, calc(100cqb * 1169 / 1306)) !important;
  max-width:100% !important;height:auto !important;max-height:100% !important;min-height:0;
  margin:0 auto !important;aspect-ratio:1169 / 1306 !important;border-radius:16px;
}
body.pl-studio-page .pl-mockup-base{
  position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;
  object-fit:contain !important;object-position:center center !important;
}
body.pl-studio-page .am-studio-panel{
  min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;
  background:#fff;border-left:1px solid #ded6f5;
}
body.pl-studio-page .am-studio-scroll{
  flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;
  padding:.85rem .95rem 1.1rem;
}
body.pl-studio-page #pl-flow-nav{
  position:sticky;top:0;z-index:4;background:#fff;margin:0;padding-bottom:.15rem;
}
body.pl-studio-page #pl-config-lead{margin:.4rem 0 .75rem;}
body.pl-studio-page #pl-m-buy-home{flex:0 0 auto;}
body.pl-studio-page #pl-m-buy-bar,
body.pl-studio-page.pl-m-buy-docked .pl-m-buy-bar{
  display:block !important;width:100%;box-shadow:none;border-top:1px solid #ded6f5;z-index:5;
  padding:0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px) !important;
}
body.pl-studio-page.pl-m-buy-docked .pl-m-buy-home{
  display:block !important;pointer-events:auto;
}
@media(min-width:901px){
  body.pl-studio-page #pl-m-buy-bar,
  body.pl-studio-page.pl-m-buy-docked .pl-m-buy-bar{
    position:relative !important;left:auto !important;right:auto !important;bottom:auto !important;
  }
  body.pl-studio-page.pl-m-buy-docked .pl-m-buy-home{
    height:auto !important;min-height:0 !important;
  }
}
body.pl-studio-page .pl-m-buy-bar__inner{
  display:flex;flex-wrap:nowrap;align-items:center;gap:.55rem;
  padding:.5rem .7rem calc(.5rem + env(safe-area-inset-bottom, 0px));
}
body.pl-studio-page .am-studio-price{
  margin:0;flex:0 0 auto;white-space:nowrap;
  font-size:1.05rem;font-weight:800;color:#302b4d;
}
body.pl-studio-page .am-studio-price .pl-price__was,
body.pl-studio-page .am-studio-price-note{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);
}
body.pl-studio-page .pl-m-cart-row{display:flex !important;align-items:center;gap:.45rem;flex:1 1 auto;min-width:0;}
body.pl-studio-page .pl-m-cart-row__add{overflow:visible;min-width:0;}
body.pl-studio-page .pl-m-apercu-btn,
body.pl-studio-page .pl-m-cart-row__add .btn-add{min-height:46px;white-space:nowrap;line-height:1.15;}
body.pl-studio-page #pl-acc-sizes{border:0;margin:.35rem 0 0;}
body.pl-studio-page #pl-acc-sizes .pl-acc-hdr{display:none !important;}
body.pl-studio-page #pl-acc-sizes:not(.open){display:none;}
body.pl-studio-page .pl-pd-ready,
body.pl-studio-page .pl-pd-done,
body.pl-studio-page #pl-pd-global{display:none !important;}
body.pl-studio-page #pl-configurator .pl-divider{display:none;}

.pl-flow-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.28rem;margin:0 0 .35rem;}
.pl-flow-tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.08rem;
  min-width:0;min-height:3.05rem;margin:0;padding:.4rem .15rem;
  border:1.5px solid #ded6f5;border-radius:12px;background:#fff;color:#1c1633;
  font-family:"DM Sans",sans-serif;font-size:.78rem;font-weight:800;line-height:1.15;text-align:center;cursor:pointer;
}
.pl-flow-tab__n{font-size:.62rem;color:#625B8C;}
.pl-flow-tab__l{display:block;max-width:100%;font-size:.72rem;line-height:1.1;}
.pl-flow-tab.is-on{background:#766ac8;border-color:#766ac8;color:#fff;}
.pl-flow-tab.is-on .pl-flow-tab__n{color:rgba(255,255,255,.88);}
.pl-flow-next{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:2.75rem;margin:.45rem 0 0;
  padding:.55rem .8rem;border:1.5px solid #766ac8;border-radius:12px;background:#fff;color:#4b3fb1;
  font-family:"DM Sans",sans-serif;font-size:.92rem;font-weight:800;cursor:pointer;
}
body.pl-studio-page #pl-configurator[data-pl-flow="shirt"] #pl-tools-home,
body.pl-studio-page #pl-configurator[data-pl-flow="shirt"] #pl-flow-cite,
body.pl-studio-page #pl-configurator[data-pl-flow="shirt"] #pl-flow-recap,
body.pl-studio-page #pl-configurator[data-pl-flow="portrait"] #pl-sec-panier,
body.pl-studio-page #pl-configurator[data-pl-flow="portrait"] #pl-flow-cite,
body.pl-studio-page #pl-configurator[data-pl-flow="portrait"] #pl-flow-recap,
body.pl-studio-page #pl-configurator[data-pl-flow="citations"] #pl-sec-panier,
body.pl-studio-page #pl-configurator[data-pl-flow="citations"] #pl-tools-home,
body.pl-studio-page #pl-configurator[data-pl-flow="citations"] #pl-flow-recap,
body.pl-studio-page #pl-configurator[data-pl-flow="recap"] #pl-sec-panier,
body.pl-studio-page #pl-configurator[data-pl-flow="recap"] #pl-tools-home,
body.pl-studio-page #pl-configurator[data-pl-flow="recap"] #pl-flow-cite{display:none !important;}
body.pl-studio-page #pl-flow-recap{display:flex;flex-direction:column;align-items:stretch;}
body.pl-studio-page #pl-flow-recap > #pl-flow-summary{order:1;}
body.pl-studio-page #pl-flow-recap > #pl-valid-wrap{order:2;}
body.pl-studio-page #pl-flow-recap > .pl-human-check{order:3;}
.pl-flow-summary{margin:0 0 .85rem;}
.pl-flow-sum{list-style:none;margin:0;padding:0;border:1px solid #ded6f5;border-radius:12px;overflow:hidden;}
.pl-flow-sum li{display:flex;justify-content:space-between;gap:.75rem;padding:.55rem .75rem;border-top:1px solid #ded6f5;font-size:.86rem;}
.pl-flow-sum li:first-child{border-top:0;}
.pl-flow-sum span{color:#625B8C;font-weight:700;}
.pl-flow-sum strong{font-weight:700;text-align:right;}
.pl-flow-sum li.is-long{flex-direction:column;}
.pl-flow-sum li.is-long strong{text-align:left;}
.pl-flow-price{display:flex;align-items:baseline;gap:.45rem;margin:.8rem 0 0;font-size:1.45rem;font-weight:800;}
.pl-flow-price s{font-size:.85rem;font-weight:600;color:#8a849e;}
.pl-flow-price__note{margin:.2rem 0 0;font-size:.82rem;color:#625B8C;}
body.pl-studio-page .am-studio-scroll{scroll-padding-top:4.6rem;}
body.pl-studio-page #pl-texte.pl-txt-inp{
  position:relative !important;
  z-index:2;
  display:block !important;
  width:100% !important;
  min-height:48px !important;
  height:auto !important;
  margin:0 !important;
  padding:10px 12px !important;
  overflow:hidden !important;
  clip:auto !important;
  border:1.5px solid #cfc6ea !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#1c1633 !important;
  caret-color:#1c1633;
  font-family:"DM Sans",sans-serif !important;
  font-size:16px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  pointer-events:auto !important;
  user-select:text !important;
  -webkit-user-select:text !important;
  touch-action:manipulation;
  scroll-margin-top:4.8rem;
}
body.pl-studio-page #pl-texte.pl-txt-inp::placeholder{color:#8a849e;opacity:1;}
body.pl-studio-page #pl-texte.pl-txt-inp--on-dark{
  background:#fff !important;
  color:#1c1633 !important;
  border-color:#cfc6ea !important;
}

@media(max-width:900px){
  html:has(body.pl-studio-page),
  body.pl-studio-page{height:auto;min-height:0;overflow-x:clip;overflow-y:visible;}
  body.pl-studio-page .bh-cta,
  body.pl-studio-page .bh-footer,
  body.pl-studio-page .bh-back-top,
  body.pl-studio-page > div:has(> svg){display:none !important;}
  body.pl-studio-page .am-studio{
    position:relative;top:auto;right:auto;bottom:auto;left:auto;
    height:auto;max-height:none;overflow:visible;
  }
  body.pl-studio-page .am-studio-scroll{overflow:visible;overscroll-behavior:auto;flex:none;height:auto;}
  body.pl-studio-page #pl-m-buy-bar,
  body.pl-studio-page.pl-m-buy-docked .pl-m-buy-bar{
    position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;z-index:420;
  }
  body.pl-studio-page.pl-m-buy-docked .pl-m-buy-home{
    height:var(--pl-m-buy-h, 4.5rem) !important;
    min-height:var(--pl-m-buy-h, 4.5rem) !important;
  }
  body.pl-studio-page .am-studio-body{display:flex;flex-direction:column;}
  body.pl-studio-page .am-studio-stage{
    flex:0 0 auto;height:auto;container-type:normal;padding:.4rem .55rem .15rem;
  }
  body.pl-studio-page .am-studio-stage .pl-gallery,
  body.pl-studio-page .am-studio-stage .pl-gallery-home,
  body.pl-studio-page .am-studio-stage .pl-gallery-stage,
  body.pl-studio-page .am-studio-stage .pl-mockup,
  body.pl-studio-page .am-studio-stage .pl-canvas-wrap{width:100% !important;}
  body.pl-studio-page .am-studio-panel{flex:1 1 auto;height:auto;border-left:0;border-top:1px solid #ded6f5;}
  body.pl-studio-page .pl-mockup-frame{
    width:min(100%, calc(min(58svh, 100svh - 18.5rem) * 1169 / 1306)) !important;
    max-height:min(58svh, calc(100svh - 18.5rem)) !important;
    aspect-ratio:1169 / 1306 !important;border-radius:12px;
  }
  .pl-flow-tab{min-height:2.85rem;padding:.28rem .04rem;}
  .pl-flow-tab__l{font-size:.62rem;}
  body.pl-studio-page .pl-m-buy-bar__inner{
    gap:.4rem;
    padding:.4rem .55rem calc(.4rem + env(safe-area-inset-bottom, 0px));
  }
  body.pl-studio-page .am-studio-price{order:2;font-size:1rem;}
  body.pl-studio-page .pl-m-cart-row{order:1;gap:.4rem;}
  body.pl-studio-page .pl-m-cart-row__add .btn-add{
    font-size:.78rem;padding:.4rem .5rem;min-height:44px;
  }
}
@media(max-width:430px){
  .pl-flow-nav{gap:.2rem;}
}
