/* VESPALYS V1.0.2 — navigation PWA mobile. Aucun effet sur le desktop. */
.vp-mobile-search-toggle,.vp-mobile-bottom-nav{display:none}
.vp-mobile-quicksearch[hidden]{display:none!important}
.vp-mobile-quicksearch{display:none}
@media(max-width:820px){
  :root{--vp-mobile-header:64px;--vp-mobile-nav:66px}
  html{scroll-padding-top:calc(var(--vp-mobile-header) + env(safe-area-inset-top) + 14px)}
  body.vespalys-body{
    padding-top:calc(var(--vp-mobile-header) + env(safe-area-inset-top));
    padding-bottom:calc(var(--vp-mobile-nav) + env(safe-area-inset-bottom));
    overflow-x:clip;
  }
  .vp-site-header{
    position:fixed!important;top:0;left:0;right:0;
    height:calc(var(--vp-mobile-header) + env(safe-area-inset-top));
    padding-top:env(safe-area-inset-top);
    z-index:1500;background:var(--vp-milk);
    border-bottom:1px solid #dce5de;
    box-shadow:0 3px 16px rgba(8,39,29,.065);
  }
  .vp-announcement,.vp-desktop-nav,.vp-header-search{display:none!important}
  .vp-header-main{
    display:flex!important;align-items:center;justify-content:space-between;
    height:var(--vp-mobile-header);min-height:var(--vp-mobile-header);
    gap:8px;margin:0;padding-inline:clamp(10px,3.5vw,20px);
  }
  .vp-logo{display:inline-flex;flex:1 1 auto;min-width:0;max-width:max-content;gap:8px}
  .vp-logo__symbol,.vp-logo__symbol img{display:block;width:35px;height:35px;flex:none}
  .vp-logo__type{min-width:0}
  .vp-logo__type strong{font-size:clamp(1.24rem,5vw,1.55rem);letter-spacing:-.065em}
  .vp-logo__type small{font-size:.47rem;letter-spacing:.13em;margin-top:5px}
  .vp-header-actions{display:flex;flex:none;align-items:center;justify-content:flex-end;grid-column:auto;grid-row:auto;gap:3px}
  .vp-header-help,.vp-cart-label{display:none!important}
  .vp-mobile-search-toggle,.vp-header-actions .vp-cart-link,.vp-header-actions .vp-menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;
    width:42px;height:44px;min-width:0;min-height:0;
    padding:0;border:0;background:transparent;color:var(--vp-forest);
    flex:none;position:relative;
  }
  .vp-header-actions .vp-menu-toggle{flex-direction:column;gap:5px;background:var(--vp-forest);color:#fff}
  .vp-header-actions .vp-menu-toggle span{background:#fff;width:19px;height:2px}
  .vp-header-actions .vp-cart-link{gap:0}
  .vp-header-actions .vp-cart-count{position:absolute;top:1px;right:-2px;min-width:17px;height:17px;padding:0 3px;font-size:.57rem;line-height:1;background:var(--vp-amber);color:var(--vp-deep)}
  .vp-mobile-search-toggle[aria-expanded="true"]{background:#e9f0e9}
  .vp-mobile-quicksearch{
    display:block;position:fixed;
    top:calc(var(--vp-mobile-header) + env(safe-area-inset-top));
    left:0;right:0;z-index:1550;
    background:#fff;padding:19px var(--vp-gutter) 22px;
    border-bottom:2px solid var(--vp-forest);
    box-shadow:0 18px 32px #08241b26;
    max-height:calc(100dvh - var(--vp-mobile-header) - var(--vp-mobile-nav) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y:auto;overscroll-behavior:contain;
  }
  .vp-mobile-quicksearch__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
  .vp-mobile-quicksearch__heading strong{font-size:.74rem;letter-spacing:.13em;color:var(--vp-forest)}
  .vp-mobile-quicksearch__heading button{border:1px solid #dce4dc;background:#fff;color:var(--vp-forest);font-size:22px;width:37px;height:37px}
  .vp-mobile-quicksearch__form label{font-size:.75rem;font-weight:750;color:#596e61;display:block;margin-bottom:7px}
  .vp-mobile-quicksearch__field{display:flex;gap:0;min-width:0;min-height:52px}
  .vp-mobile-quicksearch__field input{min-width:0;flex:1;width:100%;border:1px solid #c8d5c9;background:#f7faf7;padding:12px 13px;font-size:16px;box-shadow:none}
  .vp-mobile-quicksearch__field button{border:0;background:var(--vp-forest);color:#fff;font-size:.7rem;font-weight:900;letter-spacing:.05em;padding:0 13px;white-space:nowrap}
  .vp-mobile-quicksearch__tags{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:15px}
  .vp-mobile-quicksearch__tags span{color:#78867c;font-size:.68rem}
  .vp-mobile-quicksearch__tags a{padding:7px 11px;background:#edf3ec;font-size:.7rem;font-weight:800;color:#235340}
  .vp-mobile-panel{z-index:1602;top:0;bottom:0;padding-top:max(22px,env(safe-area-inset-top));padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .vp-menu-backdrop{z-index:1601}
  .vp-mobile-bottom-nav{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed;left:0;right:0;bottom:0;z-index:1480;
    height:calc(var(--vp-mobile-nav) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
    background:linear-gradient(180deg,#153c30,#102e27);
    border-top:1px solid #537b62;
    box-shadow:0 -8px 27px rgba(5,29,20,.16);
    color:#c6d8ce;
  }
  .vp-mobile-bottom-nav a,.vp-mobile-bottom-nav button{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    min-width:0;gap:4px;height:var(--vp-mobile-nav);padding:6px 1px 5px;
    font-size:clamp(.58rem,2.25vw,.69rem);font-weight:650;letter-spacing:.005em;
    line-height:1.05;text-align:center;color:#c6d8ce!important;
    background:transparent;border:0;border-top:3px solid transparent;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  }
  .vp-mobile-bottom-nav svg{width:22px;height:22px;flex:none;stroke:currentColor}
  .vp-mobile-bottom-nav [aria-current="page"],.vp-mobile-bottom-nav [aria-expanded="true"]{
    color:#f2c675!important;border-top-color:var(--vp-amber);
    background:linear-gradient(180deg,#ffffff0d,#ffffff00);
    font-weight:850;
  }
  .vp-mobile-bottom-nav__icon{position:relative;display:inline-flex;align-items:center;justify-content:center}
  .vp-mobile-bottom-nav__badge{position:absolute;top:-9px;right:-12px;background:var(--vp-amber);color:#102e27;min-width:17px;height:17px;display:grid;place-items:center;font-size:.57rem;font-weight:950;padding:0 3px}
  body.vp-menu-open .vp-mobile-bottom-nav{pointer-events:none}
  body.vp-menu-open .sn-pwa-install,body.vp-search-open .sn-pwa-install{display:none!important}
  body.vp-menu-open .vp-mobile-quicksearch{display:none}
  .vp-detail-mobile-buy{bottom:calc(var(--vp-mobile-nav) + env(safe-area-inset-bottom))!important;z-index:1390!important}
  .vp-detail{padding-bottom:calc(142px + env(safe-area-inset-bottom))!important}
  .vespalys-body .sn-pwa-install{bottom:calc(var(--vp-mobile-nav) + env(safe-area-inset-bottom) + 7px)!important;z-index:1700}
  .vespalys-body .sn-pwa-install__inner{max-height:52dvh;overflow-y:auto}
  #achat,#catalogue{scroll-margin-top:calc(var(--vp-mobile-header) + env(safe-area-inset-top) + 15px)}
}
@media(max-width:360px){
  .vp-logo__symbol,.vp-logo__symbol img{width:29px;height:29px}
  .vp-logo__type strong{font-size:1.12rem}
  .vp-logo__type small{font-size:.39rem}
  .vp-header-main{padding-inline:9px;gap:4px}
  .vp-header-actions{gap:1px}
  .vp-mobile-search-toggle,.vp-header-actions .vp-cart-link,.vp-header-actions .vp-menu-toggle{width:37px;height:41px}
  .vp-mobile-bottom-nav svg{width:20px;height:20px}
}
@media(min-width:821px){.vp-mobile-bottom-nav,.vp-mobile-search-toggle,.vp-mobile-quicksearch{display:none!important}}
@media(prefers-reduced-motion:reduce){.vp-mobile-bottom-nav a,.vp-mobile-bottom-nav button{transition:none}}
