/* Styles boutique : header fixe, bandeau shop — chargé depuis header_boutique.php */
*{margin:0;padding:0;box-sizing:border-box}
/* overflow-x sur body casse position:sticky sur mobile ; on le garde sur html uniquement */
html{
  overflow-x:hidden;
  max-width:100%;
}
body{
  max-width:100%;
}

:root{
  --bh-header-h:198px;
  --lilas:#E8E4F3;
  --lilas-2:#E8E4F3;
  --lilas-d:#302B4D;
  --lilas-t:#302B4D;
  --rose-d:#d86fa5;
  --blanc:#ffffff;
  --creme:#FFFFFF;
  --texte:#302B4D;
  --texte-soft:#625B8C;
  --muted:#454052;
  --border:#A9A1D1;
  --ombre:0 6px 24px rgba(48,43,77,.14);
}

body{
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--creme);
  color:var(--texte);
  padding-top:var(--bh-header-h);
}

/* Tunnel paiement : pas de second scroll sur body */
body.bh-payment-flow{
  overflow:visible !important;
}
body.bh-payment-flow .bh-overlay,
body.bh-payment-flow #bh-cart-panel{
  display:none !important;
  pointer-events:none !important;
}

body.bh-account-page .account-container{
  position:relative;
  z-index:1;
}

.bh-hdr{
  background:rgba(255,255,255,.96);
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:300;
  padding-top:env(safe-area-inset-top, 0px);
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 18px rgba(48,43,77,.08);
  backdrop-filter:blur(10px);
  overflow:visible;
}

.bh-top{
  max-width:1320px;
  margin:0 auto;
  padding:.78rem 1.35rem;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:1rem;
}

.bh-fps{
  justify-self:start;
  grid-column:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:var(--lilas-t);
  font-weight:800;
  font-size:1rem;
  line-height:1.1;
  min-width:0;
}

.bh-fps:hover{
  color:var(--lilas-d);
}

.bh-fps-blob{
  width:36px;
  height:36px;
  flex:0 0 auto;
  background:var(--lilas);
  border-radius:60% 40% 55% 45%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.bh-fps-accent{
  color:var(--rose-d);
  font-weight:800;
}

.bh-logo{
  justify-self:center;
  grid-column:2;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.1;
  min-width:0;
  text-align:center;
}

.bh-logo-main{
  font-size:1.2rem;
  color:var(--lilas-t);
  font-weight:800;
  letter-spacing:.01em;
  font-family:inherit;
}

.bh-logo-main span{
  color:var(--rose-d);
  font-weight:800;
}

.bh-logo-sub{
  font-size:.68rem;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-top:4px;
}

.bh-actions{
  justify-self:end;
  grid-column:3;
  display:flex;
  align-items:center;
  gap:.55rem;
  min-width:0;
}

/* Mobile-only header controls (cachés sur PC) */
.bh-m-menu-btn,
.bh-m-logo,
.bh-m-menu,
.bh-m-menu-backdrop{
  display:none;
}

.bh-pill{
  height:36px;
  border-radius:999px;
  border:1px solid var(--border);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:all .18s ease;
  font-family:"DM Sans",sans-serif;
  position:relative;
  white-space:nowrap;
}

.bh-pill-icn{
  width:15px;
  height:15px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  flex:0 0 auto;
}

/* BOUTON COMPTE */
.bh-account-btn{
  gap:6px;
  background:var(--blanc);
  color:var(--lilas-t);
  padding:0 10px;
  font-weight:700;
  font-size:.78rem;
  max-width:185px;
}

.bh-account-btn:hover{
  background:var(--lilas);
  border-color:var(--lilas-d);
  transform:translateY(-1px);
}

.bh-account-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  min-width:0;
}

.bh-account-top{
  font-size:.62rem;
  font-weight:700;
  color:var(--muted);
  letter-spacing:.01em;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bh-account-main{
  font-size:.76rem;
  font-weight:800;
  color:var(--lilas-t);
}

.bh-account-mini{
  display:none;
}

/* BOUTON PANIER */
.bh-cart-btn{
  gap:6px;
  background:var(--lilas-d);
  color:var(--blanc);
  border-color:var(--lilas-d);
  padding:0 11px;
  cursor:pointer;
  font-weight:800;
  font-size:.78rem;
  box-shadow:0 4px 14px rgba(48,43,77,.18);
}

.bh-cart-btn:hover{
  background:var(--lilas-t);
  border-color:var(--lilas-t);
  transform:translateY(-1px);
}

.bh-cart-badge{
  background:var(--blanc);
  color:var(--lilas-t);
  border-radius:50%;
  min-width:17px;
  height:17px;
  padding:0 3px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:800;
  border:1px solid rgba(169,161,209,.15);
}

/* Bandeau boutique + filtres (PC et mobile, même bloc sous Florence) */
.bh-shop-nav{
  border-top:1px solid rgba(169,161,209,.65);
  background:var(--blanc);
  padding:.48rem 1.35rem .58rem;
  overflow:visible;
}

.bh-shop-nav-inner{
  max-width:1320px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:.75rem 1.25rem;
}

.bh-shop-nav-head{
  flex:1 1 200px;
  min-width:0;
  text-align:left;
  color:var(--muted);
  font-size:.82rem;
  font-weight:600;
}

.bh-shop-title-link{
  color:inherit;
  text-decoration:none;
  font-weight:800;
}

.bh-shop-logo-link{
  display:inline-block;
  line-height:0;
  max-width:100%;
  box-sizing:border-box;
}

.bh-shop-logo-link:hover .bh-shop-logo-img{
  opacity:0.92;
}

.bh-shop-logo-link:focus-visible{
  outline:2px solid var(--lilas-d);
  outline-offset:3px;
  border-radius:6px;
}

/*
 * Logo : srcset 800w + 1200w (shop-nav.php). Affichage ≤400px × 77px sur mobile/tablette
 * = pas d’upscale au-delà du fichier 800w @2x ni 1200w @3x (154px natif → 77px CSS max).
 */
.bh-shop-logo-img{
  display:block;
  width:auto;
  height:77px;
  max-height:77px;
  max-width:min(400px,94vw);
  aspect-ratio:800 / 154;
  object-fit:contain;
  margin:0 auto;
}

.bh-shop-sub{
  display:block;
  margin-top:6px;
  font-size:.76rem;
  font-weight:600;
  line-height:1.35;
  color:var(--muted);
  text-decoration:none;
  transition:color .15s;
}

.bh-shop-sub:hover{
  color:var(--lilas-t);
  text-decoration:underline;
}

.bh-shop-nav-aside{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-end;
  gap:.4rem;
  min-width:0;
  min-height:3.6rem;
  overflow:visible;
}

.bh-shop-submenu{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:.15rem .35rem;
  font-family:inherit;
  font-size:.78rem;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}

.bh-shop-submenu a{
  color:var(--lilas-t);
  text-decoration:none;
  transition:color .15s;
}

.bh-shop-submenu a:hover{
  color:var(--lilas-d);
  text-decoration:underline;
}

.bh-shop-submenu-sep{
  color:var(--muted);
  font-weight:600;
  user-select:none;
  padding:0 3px;
}

.bh-nav-dd{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}
.bh-nav-dd-btn{
  all:unset;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  font:inherit;
  font-weight:700;
  color:var(--lilas-t);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:.32em;
  line-height:1.2;
}
.bh-nav-dd-btn::after{
  content:"";
  width:.38em;
  height:.38em;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  margin-top:-.18em;
}
.bh-nav-dd-btn:hover{
  color:var(--lilas-d);
  text-decoration:underline;
}
.bh-nav-dd-panel{
  display:none !important;
  position:absolute !important;
  top:100%;
  left:0;
  width:max-content;
  min-width:11.8rem;
  padding:8px 0 0;
  background:transparent;
  border:0;
  box-shadow:none;
  z-index:400;
}
.bh-nav-dd-panel-inner{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 10px 24px rgba(48,43,77,.12);
  padding:.28rem 0;
}
.bh-nav-dd:hover .bh-nav-dd-panel,
.bh-nav-dd.is-open .bh-nav-dd-panel{
  display:block !important;
}
.bh-shop-submenu .bh-nav-dd-panel a{
  display:block;
  padding:.55rem .95rem;
  white-space:nowrap;
  text-decoration:none;
}
.bh-shop-submenu .bh-nav-dd-panel a:hover{
  background:var(--lilas-2);
  text-decoration:none;
  color:var(--lilas-t);
}

@media(max-width:991px){
  .bh-shop-logo-img{
    height:77px;
    max-height:77px;
    max-width:min(400px, 94vw);
  }
}

@media(min-width:992px){
  :root{ --bh-header-h:210px; }
  .bh-shop-logo-img{
    height:96px;
    max-height:96px;
    max-width:min(680px, 100%);
  }
}

@media(min-width:1200px){
  :root{ --bh-header-h:220px; }
  .bh-shop-logo-img{
    height:108px;
    max-height:108px;
    max-width:min(760px, 100%);
  }
}

@media(max-width:980px){
  .bh-top{
    padding:.7rem .9rem;
  }

  .bh-logo-main{
    font-size:1rem;
  }

  .bh-logo-sub{
    display:none;
  }

  .bh-actions{
    gap:.45rem;
  }

  .bh-account-btn{
    max-width:138px;
    padding:0 8px;
  }

  .bh-account-top{
    font-size:.6rem;
  }

  .bh-account-main{
    font-size:.74rem;
  }

  .bh-cart-btn{
    padding:0 9px;
  }
}

@media(max-width:700px){
  :root{ --bh-header-h:72px; }

  .bh-top{
    padding:.45rem .7rem;
    gap:.4rem;
    grid-template-columns:40px minmax(0,1fr) auto;
    align-items:center;
  }

  .bh-m-menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    grid-column:1;
    justify-self:start;
    width:40px;
    height:40px;
    padding:0;
    border:0;
    border-radius:10px;
    background:transparent;
    color:var(--texte);
    cursor:pointer;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .bh-m-menu-btn__bars,
  .bh-m-menu-btn__bars::before,
  .bh-m-menu-btn__bars::after{
    display:block;
    width:20px;
    height:2px;
    background:currentColor;
    border-radius:2px;
    transition:transform .2s ease, opacity .2s ease;
  }
  .bh-m-menu-btn__bars{
    position:relative;
  }
  .bh-m-menu-btn__bars::before,
  .bh-m-menu-btn__bars::after{
    content:"";
    position:absolute;
    left:0;
  }
  .bh-m-menu-btn__bars::before{ top:-6px; }
  .bh-m-menu-btn__bars::after{ top:6px; }
  .bh-m-menu-btn.is-open .bh-m-menu-btn__bars{ background:transparent; }
  .bh-m-menu-btn.is-open .bh-m-menu-btn__bars::before{
    top:0;
    transform:rotate(45deg);
  }
  .bh-m-menu-btn.is-open .bh-m-menu-btn__bars::after{
    top:0;
    transform:rotate(-45deg);
  }

  .bh-fps,
  .bh-logo{
    display:none !important;
  }

  .bh-m-logo{
    display:flex;
    grid-column:2;
    justify-self:center;
    align-items:center;
    justify-content:center;
    min-width:0;
    max-width:100%;
    text-decoration:none;
  }
  .bh-m-logo-img{
    display:block;
    height:46px;
    width:auto;
    max-width:min(280px, 62vw);
    object-fit:contain;
  }

  .bh-actions{
    grid-column:3;
    gap:.3rem;
  }

  .bh-pill{
    height:36px;
  }

  .bh-account-btn{
    width:36px;
    min-width:36px;
    max-width:36px;
    padding:0;
    justify-content:center;
    border-radius:50%;
  }

  .bh-account-text,
  .bh-account-mini{
    display:none !important;
  }

  .bh-pill-icn{
    width:16px;
    height:16px;
  }

  .bh-cart-btn{
    width:40px;
    min-width:40px;
    padding:0;
    justify-content:center;
    border-radius:50%;
  }

  .bh-cart-badge{
    position:absolute;
    top:-4px;
    right:-2px;
    min-width:16px;
    height:16px;
    font-size:.66rem;
    background:#fff;
  }

  /* Ancien bandeau logos / sous-titre / filtres : masqué sur mobile */
  .bh-shop-nav{
    display:none !important;
  }

  .bh-m-menu-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:298;
    background:rgba(18,16,26,.35);
  }
  .bh-m-menu-backdrop[hidden]{display:none!important;}

  .bh-m-menu{
    display:flex;
    flex-direction:column;
    gap:0;
    position:fixed;
    top:calc(var(--bh-header-h, 64px) + env(safe-area-inset-top, 0px));
    left:0;
    z-index:299;
    width:min(90vw, 340px);
    max-height:calc(100dvh - var(--bh-header-h, 64px) - env(safe-area-inset-top, 0px));
    overflow:auto;
    padding:.45rem .55rem .75rem;
    background:#fff;
    border-right:1px solid var(--border);
    box-shadow:8px 12px 28px rgba(48,43,77,.16);
    -webkit-overflow-scrolling:touch;
  }
  .bh-m-menu[hidden]{display:none!important;}
  .bh-m-menu > a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.6rem;
    padding:.95rem .85rem;
    color:var(--lilas-t);
    font-weight:700;
    font-size:.95rem;
    text-decoration:none;
    border-bottom:1px solid rgba(169,161,209,.55);
  }
  .bh-m-menu > a:last-child{border-bottom:0;}
  .bh-m-menu > a:active{background:var(--lilas-2);}
  .bh-m-menu > a::after{
    content:"";
    width:.42em;
    height:.42em;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(-45deg);
    flex-shrink:0;
    margin-right:.1rem;
  }
  .bh-m-menu-dd{
    border-bottom:1px solid rgba(169,161,209,.55);
  }
  .bh-m-menu-dd[open]{
    background:#E8E4F3;
    border-radius:16px;
    border-bottom:0;
    margin:.1rem 0 .35rem;
  }
  .bh-m-menu-dd summary{
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.6rem;
    padding:.95rem .85rem;
    color:var(--lilas-t);
    font-weight:700;
    font-size:.95rem;
    cursor:pointer;
  }
  .bh-m-menu-dd summary::-webkit-details-marker{display:none;}
  .bh-m-menu-dd summary::marker{display:none;content:"";}
  .bh-m-menu-dd summary::after{
    content:"";
    width:.42em;
    height:.42em;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
    flex-shrink:0;
    margin:-.28em .1rem 0 0;
  }
  .bh-m-menu-dd[open] summary::after{
    transform:rotate(-135deg);
    margin:.12em .1rem 0 0;
  }
  .bh-m-menu-dd-list{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:.42rem;
    padding:0 .7rem .85rem 1.55rem;
  }
  .bh-m-menu-dd-list::before{
    content:"";
    position:absolute;
    left:.78rem;
    top:1.05rem;
    bottom:1.55rem;
    width:2px;
    background:var(--lilas-t);
    border-radius:2px;
  }
  .bh-m-menu-dd-list a{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.5rem;
    padding:.82rem .9rem;
    color:var(--lilas-t);
    font-weight:700;
    font-size:.92rem;
    text-decoration:none;
    background:#fff;
    border:1px solid rgba(169,161,209,.75);
    border-radius:12px;
    box-shadow:0 4px 12px rgba(48,43,77,.1);
  }
  .bh-m-menu-dd-list a:active{background:#fff;filter:brightness(.98);}
  .bh-m-menu-dd-list a::before{
    content:"";
    position:absolute;
    left:-.92rem;
    top:50%;
    width:9px;
    height:9px;
    margin-top:-4.5px;
    border-radius:50%;
    background:var(--lilas-t);
    box-shadow:0 0 0 3px #E8E4F3;
  }
  .bh-m-menu-dd-list a::after{
    content:"";
    width:.38em;
    height:.38em;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(-45deg);
    flex-shrink:0;
  }

  body.bh-m-menu-open{
    overflow:hidden;
  }

  .bh-mob-hide{
    display:none !important;
  }
}

@media(max-width:390px){
  :root{ --bh-header-h:62px; }
  .bh-m-logo-img{
    height:42px;
    max-width:min(240px, 58vw);
  }
  .bh-account-btn{
    width:34px;
    min-width:34px;
    max-width:34px;
  }
}

/* Fil d'Ariane — police et taille cohérents sur tout le site */
.breadcrumb-wrap,
.prod-breadcrumb-wrap{
  max-width:1140px;
  margin:1rem auto 0;
  padding:0 1.5rem;
}
.breadcrumb,
.pl-breadcrumb,
.seo-ld-bc{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.35rem;
  font-family:"DM Sans",sans-serif;
  font-size:.78rem;
  line-height:1.4;
  color:var(--muted);
}
.breadcrumb a,
.pl-breadcrumb a,
.seo-ld-bc a{
  color:var(--lilas-t);
  text-decoration:none;
  font-weight:700;
}
.breadcrumb a:hover,
.pl-breadcrumb a:hover,
.seo-ld-bc a:hover{
  text-decoration:underline;
}
.breadcrumb > span:last-child,
.pl-breadcrumb > span:last-child,
.seo-ld-bc > span:last-child{
  color:var(--texte-soft);
  font-weight:600;
}
