/* PhoenixCustom's V15-AF.3 - mobile-first responsive overlay.
 * Does not change business rules, prices, catalogue, accounts or payment flags.
 * Loaded after the existing V15-AF.2 stylesheet. */
html{scroll-padding-top:18px}
body.pc-premium-home{max-width:100%;overflow-x:clip}
body.pc-premium-home main,body.pc-premium-home main>section,
body.pc-premium-home #catalogue,body.pc-premium-home #products{min-width:0;max-width:100%}
body.pc-premium-home img,body.pc-premium-home video{max-width:100%;height:auto}
body.pc-premium-home .pc-premium-search input,
body.pc-premium-home input,body.pc-premium-home select,
body.pc-premium-home textarea{max-width:100%}
/* No phantom grid slots when search/category filters remove cards. */
body.pc-premium-home #catalogue #products.grid{
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr))!important;
 grid-auto-flow:row dense!important;grid-auto-rows:auto!important;
 grid-template-rows:none!important;gap:clamp(12px,1.4vw,22px)!important;
 min-height:0!important;height:auto!important;align-items:stretch!important
}
body.pc-premium-home #catalogue #products.grid>.card:not([hidden]):not(.pc-af-search-hidden){
 min-width:0!important;max-width:100%!important;width:auto!important;
 margin:0!important;grid-column:auto!important;grid-row:auto!important
}
body.pc-premium-home #catalogue #products.grid>.card[hidden],
body.pc-premium-home #catalogue #products.grid>.card.pc-af-search-hidden{display:none!important}
body.pc-premium-home #catalogue .sectionhead{flex-wrap:wrap;gap:12px}
/* Comfortable touch controls; never force gigantic desktop controls. */
body.pc-premium-home button,body.pc-premium-home select,
body.pc-premium-home input[type="submit"],body.pc-premium-home .pc-af3-menu-trigger{
 touch-action:manipulation
}
body.pc-premium-home :where(button,a,input,textarea,select):focus-visible{
 outline:3px solid #ffbf68!important;outline-offset:2px!important
}
/* Invisible until the mobile breakpoint and JS are ready. */
body.pc-premium-home .pc-af3-menu-trigger{display:none!important}
@media (max-width:1024px){
 body.pc-premium-home .pc-premium-utility-inner{display:flex!important;flex-wrap:wrap!important;gap:7px 15px!important;justify-content:center!important;padding:7px 14px!important}
 body.pc-premium-home main>.hero{min-width:0!important;max-width:100%!important}
 body.pc-premium-home .benefits{display:flex!important;flex-wrap:wrap!important;gap:12px!important;justify-content:center!important}
 body.pc-premium-home .pc-v15z-footer{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:880px){
 body.pc-premium-home>header.pc-premium-header{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto auto!important;
  grid-template-areas:none!important;gap:10px!important;
  padding:12px clamp(12px,3.5vw,24px)!important
 }
 body.pc-premium-home>header.pc-premium-header>.brand{
  grid-area:auto!important;grid-column:1!important;grid-row:1!important;
  max-width:100%!important;font-size:clamp(21px,5vw,32px)!important;
  white-space:normal!important;overflow:visible!important
 }
 body.pc-premium-home>header.pc-premium-header>.brand img{
  width:clamp(58px,10vw,78px)!important;height:clamp(58px,10vw,78px)!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-v15ab-actions{
  grid-area:auto!important;grid-column:1!important;grid-row:2!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;width:100%!important;max-width:100%!important;
  gap:8px!important;justify-self:stretch!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-v15ab-actions>.pc-v15aa-action{
  min-width:0!important;width:100%!important;max-width:100%!important;
  min-height:52px!important;justify-content:center!important;gap:7px!important;
  padding:8px 5px!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-v15ab-actions .pc-v15aa-action-label{
  font-size:clamp(11px,2vw,14px)!important;line-height:1.2!important;overflow-wrap:anywhere!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-v15ab-actions .pc-v15aa-action-label small{
  display:none!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-premium-search{
  grid-area:auto!important;grid-column:1!important;grid-row:3!important;
  max-width:100%!important;width:100%!important;min-width:0!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-premium-search input{
  font-size:16px!important;min-width:0!important;width:100%!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-premium-search button{
  min-height:44px!important;padding:7px 12px!important;font-size:13px!important
 }
 body.pc-premium-home .pc-af3-menu-trigger{
  grid-area:auto!important;grid-column:1!important;grid-row:4!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:10px!important;width:100%!important;min-height:46px!important;
  border:1px solid #c88a42!important;border-radius:9px!important;
  background:#2b190f!important;color:#ffe5b7!important;font-weight:800!important;font-size:15px!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-premium-navigation{
  grid-area:auto!important;grid-column:1!important;grid-row:5!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;padding:6px 0!important;position:static!important;
  overflow:visible!important;max-height:none!important
 }
 body.pc-premium-home>header.pc-premium-header>.pc-premium-navigation>a{
  display:flex!important;min-height:46px!important;min-width:0!important;
  width:100%!important;max-width:100%!important;grid-column:auto!important;
  flex-basis:auto!important;border:1px solid #7e4e25!important;border-radius:8px!important;
  padding:8px!important;justify-content:center!important;text-align:center!important;
  font-size:clamp(12px,2vw,15px)!important;line-height:1.3!important
 }
 /* Progressive enhancement: with JS, one touch opens the whole menu. */
 html.pc-af3-ready:not(.pc-af3-nav-open) body.pc-premium-home>header.pc-premium-header>.pc-premium-navigation{
  display:none!important
 }
 body.pc-premium-home main>.hero{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;gap:clamp(15px,3vw,26px)!important;
  height:auto!important;min-height:0!important;padding:clamp(20px,4vw,38px)!important;
  overflow:hidden!important;align-items:start!important
 }
 body.pc-premium-home main>.hero>.pc-premium-hero-copy{
  display:block!important;grid-column:1!important;grid-row:1!important;
  position:relative!important;z-index:9!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding:0!important;transform:none!important
 }
 body.pc-premium-home main>.hero>.pc-premium-hero-copy h1{
  font-size:clamp(32px,6vw,58px)!important;line-height:1.1!important;
  max-width:100%!important;overflow-wrap:normal!important
 }
 body.pc-premium-home main>.hero>.pc-premium-hero-copy .intro{
  font-size:clamp(14px,2.25vw,17px)!important;line-height:1.5!important
 }
 body.pc-premium-home main>.hero #pc-premium-gallery{
  grid-column:1!important;grid-row:2!important;position:relative!important;
  z-index:10!important;width:min(100%,680px)!important;max-width:100%!important;
  min-width:0!important;margin:0 auto!important;transform:none!important
 }
 body.pc-premium-home main>.hero #pc-premium-gallery .showcase,
 body.pc-premium-home main>.hero #pc-premium-gallery .slide-stage{
  width:100%!important;max-width:100%!important;min-width:0!important
 }
 body.pc-premium-home main>.hero .pc-v15h-machine-scene,
 body.pc-premium-home main>.hero .pc-v15e-hero-art{display:none!important}
 body.pc-premium-home main>.hero::before{width:100%!important;opacity:.47!important}
 body.pc-premium-home .pc-premium-category-list{max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain}
 body.pc-premium-home .delivery{display:grid!important;grid-template-columns:1fr!important;gap:15px!important}
 body.pc-premium-home .pc-reviews-layout{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
 body.pc-premium-home .pc-v15z-footer{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:580px){
 body.pc-premium-home main>.hero{padding:24px 15px!important}
 body.pc-premium-home main>.hero>.pc-premium-hero-copy h1{font-size:clamp(31px,8vw,43px)!important}
 body.pc-premium-home main>.hero>.pc-premium-hero-copy .intro br{display:none}
 body.pc-premium-home main>.hero #pc-premium-gallery{padding:10px!important}
 body.pc-premium-home #catalogue #products.grid{
  grid-template-columns:minmax(0,1fr)!important;gap:15px!important
 }
 body.pc-premium-home .pc-v15z-footer{grid-template-columns:1fr!important}
 body.pc-premium-home .pc-v15z-footer>a{min-height:46px!important;font-size:14px!important}
 body.pc-premium-home .pc-premium-search input,
 body.pc-premium-home input,body.pc-premium-home select,
 body.pc-premium-home textarea{font-size:16px!important}
 body.pc-premium-home dialog#cart,body.pc-premium-home dialog#config,
 body.pc-premium-home dialog#pc-v15aa-favorites-dialog,
 body.pc-premium-home dialog#pc-v15ab-snap-dialog{
  width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
  min-width:0!important;max-height:calc(100dvh - 16px)!important;
  height:auto!important;overflow:auto!important;padding:16px!important;
  overscroll-behavior:contain!important
 }
 body.pc-premium-home dialog :where(input,textarea,select,button){max-width:100%!important}
 body.pc-premium-home dialog .pc-promo-inline{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
 body.pc-premium-home dialog .pc-promo-inline input{min-width:0!important}
 body.pc-premium-home .pc-review-form{min-width:0!important;max-width:100%!important}
 body.pc-premium-home .pc-rating-options{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 body.pc-premium-home .pc-rating-options label{min-height:40px!important}
 body.pc-premium-home .benefits{padding:12px!important;gap:8px!important}
 body.pc-premium-home .benefits>span{flex:1 1 100%!important;text-align:center!important}
}
/* Secondary pages: forms and customer area never overflow a phone. */
@media(max-width:680px){
 body.pc-af-page .pc-af-main{width:calc(100% - 24px)!important;margin:20px auto 40px!important}
 body.pc-af-page .pc-af-panel,body.pc-af-page .pc-af-tile{padding:16px!important}
 body.pc-af-page .pc-af-page-header{padding:12px!important}
 body.pc-af-page :where(input,select,textarea,button){max-width:100%;font-size:16px}
 body.pc-af-page .pc-af-page-header nav{gap:8px 15px}
}
@media (prefers-reduced-motion:reduce){
 body.pc-premium-home *,body.pc-premium-home *::before,body.pc-premium-home *::after{
  scroll-behavior:auto!important;animation-duration:.01ms!important;
  transition-duration:.01ms!important
 }
}

/* Integration AF.4: sur telephone, AE.9 conserve son bouton menu unique. */
@media (max-width:780px){
 body.pc-premium-home .pc-af3-menu-trigger{display:none!important}
}
