/* Zone13OR V6.0 — couche mobile/PWA publique */
:root{--zapp:#6c3cff;--zapp-ink:#151629;--zapp-muted:#7b7890;--zapp-border:#ebe8f5;--zapp-bg:#fff}
.z13-app-bottom,.z13-install-card{display:none}
@media (max-width:860px){
  html{scroll-padding-bottom:92px}
  body{padding-bottom:84px!important;-webkit-tap-highlight-color:transparent}
  body.z13-standalone{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .z13-app-bottom{position:fixed;z-index:2147482000;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:68px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:rgba(255,255,255,.96);border:1px solid var(--zapp-border);border-radius:22px;box-shadow:0 16px 44px rgba(19,17,46,.18);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:5px 4px}
  .z13-app-bottom a{height:56px;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-decoration:none;color:#77738b;border-radius:17px;font:800 10px/1.05 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
  .z13-app-bottom a .z13-app-ico{font-size:21px;line-height:1;height:24px;min-height:24px;display:flex;align-items:center;justify-content:center}
  .z13-app-bottom a .z13-app-ico img{width:24px;height:24px;object-fit:contain;display:block}

  .z13-app-bottom a .z13-app-ico,
  .z13-app-bottom a .z13-app-ico svg,
  .z13-app-bottom a .z13-app-ico img{
    width:22px!important;height:22px!important;
    min-width:22px!important;min-height:22px!important;
    max-width:22px!important;max-height:22px!important;
    flex:0 0 22px!important;object-fit:contain!important;
  }

  .z13-app-bottom a.z13-active{background:#f1edff;color:var(--zapp)}
  .z13-app-bottom a:active{transform:scale(.97)}
  .z13-install-card{position:fixed;z-index:2147482500;left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));background:#17192d;color:#fff;border-radius:20px;padding:15px 16px;box-shadow:0 18px 55px rgba(0,0,0,.32);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
  .z13-install-card.z13-show{display:block}
  .z13-install-row{display:flex;align-items:center;gap:12px}.z13-install-logo{width:45px;height:45px;border-radius:12px;flex:0 0 auto}.z13-install-copy{min-width:0;flex:1}.z13-install-copy b{display:block;font-size:14px}.z13-install-copy span{display:block;color:#c9c8d4;font-size:11px;line-height:1.35;margin-top:2px}.z13-install-actions{display:flex;gap:7px;margin-top:11px}.z13-install-actions button{border:0;border-radius:11px;padding:9px 12px;font-weight:900;cursor:pointer}.z13-install-ok{background:var(--zapp);color:#fff;flex:1}.z13-install-close{background:#2b2d43;color:#fff}
  /* Tactile : évite les contrôles minuscules sans casser le design existant */
  button,input,select,textarea{font-size:16px}
  a,button{touch-action:manipulation}
}
@media (display-mode:standalone){.z13-browser-only{display:none!important}}

/* Zone13OR V6.0.1 — finition accueil mobile */
@media (max-width:860px){
  body.theme-home .site-header .header-inner{min-height:66px!important;padding:8px 14px!important;display:flex!important;align-items:center!important}
  body.theme-home .site-header .logo{font-size:28px!important;line-height:1!important}
  body.theme-home .site-header .nav{display:none!important}
  body.theme-home .site-header .account{font-size:0!important;width:42px;height:42px;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important}
  body.theme-home .site-header .account::before{content:'👤';font-size:20px}
  body.theme-home .z53-home{padding-top:8px!important}
  body.theme-home .z53-hero{padding:20px 16px 18px!important;gap:18px!important;border-radius:22px!important;background-position:62% center!important}
  body.theme-home .z53-kicker{padding:6px 10px!important;font-size:9px!important}
  body.theme-home .z53-hero h1{font-size:36px!important;line-height:.98!important;margin:14px 0 10px!important}
  body.theme-home .z53-hero-copy>p{font-size:14px!important;line-height:1.4!important;margin-bottom:14px!important}
  body.theme-home .z53-search{padding:5px!important;border-radius:15px!important}
  body.theme-home .z53-search input{padding:11px!important}
  body.theme-home .z53-search button{padding:11px!important}
  body.theme-home .z53-dashboard{padding:14px!important;border-radius:22px!important}
}
@media (max-width:420px){
  body.theme-home .z53-hero h1{font-size:34px!important}
}


/* Zone13OR V6.0.4 — barre mobile OR, contraste renforcé */
@media (max-width:700px){
  .z13-mobile-nav{
    background:linear-gradient(180deg,#ffe66b 0%,#ffc928 42%,#e9a900 100%)!important;
    border:1px solid rgba(116,76,0,.38)!important;
    box-shadow:0 -8px 28px rgba(91,56,0,.18),0 8px 28px rgba(0,0,0,.16)!important;
  }
  .z13-mobile-nav a{
    color:#17131d!important;
    text-shadow:none!important;
  }
  .z13-mobile-nav a .z13-nav-ico,
  .z13-mobile-nav a .ico{
    color:#17131d!important;
  }
  .z13-mobile-nav a.active{
    color:#ffd33d!important;
    background:linear-gradient(180deg,#211728,#0f0c13)!important;
    border:1px solid rgba(255,221,86,.92)!important;
    box-shadow:0 0 0 2px rgba(255,205,40,.24),0 0 20px rgba(255,191,0,.46)!important;
  }
  .z13-mobile-nav a.active .z13-nav-ico,
  .z13-mobile-nav a.active .ico{color:#ffd33d!important}
  .z13-mobile-back{
    position:fixed;left:12px;top:calc(env(safe-area-inset-top,0px) + 12px);z-index:10050;
    display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 13px;
    border-radius:999px;border:1px solid rgba(255,207,54,.68);
    background:rgba(19,13,25,.92);color:#ffd13d!important;text-decoration:none!important;
    font:900 13px/1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    box-shadow:0 7px 22px rgba(0,0,0,.24);backdrop-filter:blur(10px);
    -webkit-tap-highlight-color:transparent
  }
  .z13-mobile-back:active{transform:scale(.97)}
}
@media (min-width:701px){.z13-mobile-back{display:none!important}}
