/* GradedHunter — menu du site (Graphisme, 30/11/2026 ; oui de Cédric). Voir inc/menu.php.
 * Ordinateur ≥ 900 px : onglets Cartes · Portefeuille · Scanner · Deals dans l'en-tête.
 * Téléphone et tablette < 900 px : barre du bas de l'appli (60 px + zone système, fond #141820, actif en or, disque Scanner de 64 px).
 * Empilement : en-tête collé 60 (sa feuille « Votre compte » passe donc au-dessus de la barre), barre 55, tiroirs du Deal Finder 80-90. */

/* ---------- onglets de l'en-tête (ordinateur) ---------- */
.gh-top .gh-top-nav .gh-top-tab{gap:7px;font-size:14px;padding:8px 14px}
/* même couleur sur toutes les pages (les feuilles du catalogue et de Mon Pokédex colorent leurs liens) */
.gh-top .gh-top-nav a.gh-top-tab,.gh-top .gh-top-nav a.gh-top-tab:visited{color:#8b93a1 !important;font-weight:600 !important;text-decoration:none}
.gh-top .gh-top-nav a.gh-top-tab:hover{color:#e9eef5 !important}
.gh-top .gh-top-nav a.gh-top-tab.here{color:#d9a45a !important;background:rgba(192,138,62,.13)}
.gh-top .gh-top-nav .gh-top-tab svg{flex:none}
.gh-top-in > .ghap-nav .ghap-pop{left:auto;right:0}   /* « L'appli » est à droite : son panneau s'ouvre vers la gauche */

/* ---------- sous-onglets à un toucher (Deals, Cartes) : texte gras, actif blanc + trait or, comme « Mon portefeuille | Envies » ---------- */
.gh-sous{background:#0c0e12;border-bottom:1px solid #262a33}
.gh-sous-in{display:flex;gap:24px;max-width:1240px;margin:0 auto;padding:0 16px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gh-sous-in::-webkit-scrollbar{display:none}
.gh-sous a,.gh-sous a:visited{position:relative;flex:none;display:inline-flex;align-items:center;height:48px;font:700 16px/1 var(--gh-font,Inter,system-ui,sans-serif);color:#8a929f;text-decoration:none;white-space:nowrap}
.gh-sous a:hover{color:#e9eef5}
.gh-sous a.on{color:#fff}
.gh-sous a.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:#e0ad5f}
.gh-sous a:focus-visible{outline:2px solid #d9a45a !important;outline-offset:-12px !important;border-radius:12px;padding:0 10px;margin:0 -10px}   /* anneau serré autour du mot, couleur de focus du site */
/* ordinateur : alignés à gauche sous le logo, même marge que l'en-tête (le cadre est le même sur toutes les pages, quelle que soit la largeur du contenu) */
@media (min-width:900px){.gh-sous-in{max-width:none;gap:28px;padding:0 28px}.gh-sous a{height:52px}}

/* ---------- barre du bas ---------- */
.gh-barre{display:none}
@media (max-width:899.98px){
  .gh-top .gh-top-nav{display:none !important}                       /* les 4 entrées sont en bas */
  .gh-top .gh-acct-in,.gh-top .gh-acct-me{display:none !important}   /* le compte est en bas ; son panneau reste dans l'en-tête */
  .gh-top .gh-top-brand{display:flex !important}
  .gh-top .gh-top-word{display:inline !important;font-size:16px}
  .gh-top .gh-sbtn{margin-left:auto;width:44px;height:44px;flex:0 0 44px}
  .gh-barre{position:fixed;left:0;right:0;bottom:0;z-index:55;display:grid;grid-template-columns:repeat(5,1fr);height:calc(60px + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);background:#141820;border-top:1px solid #262a33;font-family:var(--gh-font,Inter,system-ui,sans-serif)}
  .gh-barre a,.gh-barre a:visited{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;height:60px;color:#8a929f;
    font:600 12px/16px var(--gh-font,Inter,system-ui,sans-serif);text-decoration:none;-webkit-tap-highlight-color:transparent}
  .gh-barre a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .gh-barre a.on{color:#e0ad5f}
  .gh-barre a:focus-visible{outline:2px solid #f3f5f8;outline-offset:-4px;border-radius:10px}
  .gh-barre .gh-barre-scan{position:relative}
  .gh-barre .gh-barre-scan svg{position:absolute;left:50%;top:-22px;transform:translateX(-50%);width:64px;height:64px;border-radius:50%;
    box-shadow:0 8px 22px rgba(0,0,0,.5),0 0 0 4px #0b0c10}
  .gh-barre .gh-barre-scan:active svg{transform:translateX(-50%) scale(.96)}
  body:not(.mp):has(.gh-barre){padding-bottom:calc(60px + env(safe-area-inset-bottom)) !important}   /* nav.css met 0 !important */
  body.mp .gh-barre{display:none !important}   /* Mon Pokédex connecté : sa propre barre du bas (inc/mp_ui.php) */
}
/* jamais dans l'appli native (sa barre est native) */
html.gh-appli .gh-barre{display:none !important}
html.gh-appli body{padding-bottom:0}
@media (prefers-reduced-motion:reduce){.gh-barre .gh-barre-scan:active svg{transform:translateX(-50%)}}
/* === 30/11/2026 (b) : rangées qui défilent au doigt (défaut signalé par Cédric : « on ne sait pas dérouler les filtres vers la droite »).
   Une rangée trop large défile EN ENTIER ; un dégradé de bord n'apparaît que du côté où il reste du contenu (classes gh-fg / gh-fd posées par menu.js) ;
   l'élément actif est ramené en vue au chargement (menu.js, scrollLeft seul : la page ne saute pas). Ordinateur : rien ne déborde, rien ne change. */
.gh-defile{overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
[data-gh-defile]{overflow-x:auto}
.gh-defile::-webkit-scrollbar{display:none}
.gh-defile > *{scroll-snap-align:start}
html body .gh-defile:not(.gh-fg):not(.gh-fd){-webkit-mask-image:none;mask-image:none}
html body .gh-defile.gh-fd:not(.gh-fg){-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
html body .gh-defile.gh-fg:not(.gh-fd){-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px);mask-image:linear-gradient(90deg,transparent,#000 28px)}
html body .gh-defile.gh-fg.gh-fd{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
.gh-sous-in.gh-defile{scroll-padding-inline:16px}
@media (max-width:479.98px){.gh-sous-in{gap:20px}}
/* Deal Finder, téléphone : « Filtres · Tri · puces » = UNE rangée qui défile (avant : seules les puces, écrasées à 29-81 px) */
@media (max-width:760px){
  html body.gh-df .df-row3.gh-defile{flex-wrap:nowrap;overflow-x:auto;scroll-padding-inline:0;padding-bottom:2px}
  html body.gh-df .df-row3.gh-defile > *{flex:0 0 auto}
  html body.gh-df .df-row3.gh-defile .chips{flex:0 0 auto;min-width:auto;overflow:visible;-webkit-mask-image:none;mask-image:none;padding:2px 0}
  html body.gh-df .df-row3.gh-defile .chips > *{scroll-snap-align:start}
  html body.gh-df .df-feeds.gh-defile{padding-right:3px}
}
