/* 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}
}
/* === 30/11/2026 (c) : refonte Cartes validée par Cédric (téléphone et ordinateur) ===
   1. Pastille « langue des cartes » au bout des sous-onglets (<details>, un clic, sans JS) : code au téléphone (« FR ▾ »), titre sur PC (« Cartes françaises ▾ »).
   2. Recherche de l'en-tête avec jeton « dans Aventures Ensemble ✕ » (page d'une extension). */
.gh-sous-lg{position:relative}
.gh-sous-lg .gh-sous-in{padding-right:96px}
.gh-lgc{position:absolute;right:12px;top:0;bottom:0;display:flex;align-items:center;z-index:60}   /* pas de transform : il ferait de la pastille le repère de la feuille (position:fixed) */
.gh-lgc>summary{list-style:none;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px 0 14px;border:1px solid #3a414d;border-radius:999px;background:#14171d;color:#e9eef5;font:700 14px/1 var(--gh-font,Inter,system-ui,sans-serif);cursor:pointer;white-space:nowrap;position:relative}
.gh-lgc>summary::-webkit-details-marker{display:none}
.gh-lgc>summary::after{content:"";position:absolute;inset:-4px -2px}
.gh-lgc>summary:hover{border-color:#5a6270}
.gh-lgc>summary:focus-visible{outline:2px solid #d9a45a !important;outline-offset:2px}
.gh-lgc-t{display:none}
.gh-lgc-v{width:7px;height:7px;margin-top:-3px;border:solid #97a0ac;border-width:0 2px 2px 0;transform:rotate(45deg)}
.gh-lgc[open]>summary{border-color:#e6e8ec}
.gh-lgc-m{position:absolute;right:0;top:calc(50% + 26px);width:240px;padding:6px;border-radius:14px;background:#14171d;border:1px solid #2a2f38;box-shadow:0 18px 40px rgba(0,0,0,.55)}
.gh-lgc-h{margin:4px 10px 6px;font:700 12px/1.3 var(--gh-font,Inter,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:#8a929f}
.gh-lgc-m a,.gh-lgc-m a:visited{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;border-radius:9px;color:#e9eef5;font:600 15px var(--gh-font,Inter,system-ui,sans-serif);text-decoration:none}
.gh-lgc-m a:hover{background:#1c2027}
.gh-lgc-m a[aria-current]::after{content:"";width:6px;height:11px;margin-right:3px;border:solid #f3f5f8;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px)}
.gh-lgc-m a:focus-visible{outline:2px solid #d9a45a;outline-offset:-2px}
@media (min-width:900px){
  .gh-sous-lg .gh-sous-in{padding-right:220px}
  .gh-lgc{right:28px}
  .gh-lgc-c{display:none}.gh-lgc-t{display:inline}
  .gh-lgc>summary{font-weight:600}
}
/* téléphone : la liste devient une feuille en bas de l'écran, avec un voile */
@media (max-width:599.98px){
  .gh-lgc[open]>summary::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(5,6,9,.6);cursor:default}
  .gh-lgc-m{position:fixed;left:0;right:0;top:auto;bottom:0;width:auto;z-index:130;padding:12px 16px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;border:0;border-top:1px solid #2a2f38}
  .gh-lgc-m::before{content:"";display:block;width:40px;height:4px;margin:0 auto 10px;border-radius:2px;background:#3a414d}
  .gh-lgc-m a{min-height:48px;font-size:16px;border-bottom:1px solid #1f232b;border-radius:0}
}
/* recherche avec jeton */
.gh-search .gh-jeton{flex:none;display:inline-flex;align-items:center;gap:4px;max-width:58%;height:24px;padding:0 2px 0 10px;border-radius:999px;background:#262b34;color:#e9eef5;font:600 12.5px/1 var(--gh-font,Inter,system-ui,sans-serif);white-space:nowrap;overflow:hidden}
.gh-search .gh-jeton b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.gh-search .gh-jeton-l{color:#b7bec9}
.gh-search .gh-jeton-x{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;margin:0;padding:0;border:0;border-radius:50%;background:none;color:#97a0ac;font-size:12px;cursor:pointer;position:relative}
.gh-search .gh-jeton-x::after{content:"";position:absolute;inset:-11px -8px}
.gh-search .gh-jeton-x:hover{color:#fff;background:#3a414d}
.gh-search .gh-jeton-x:focus-visible{outline:2px solid #d9a45a;outline-offset:1px}
/* téléphone, recherche ouverte : le jeton passe sur sa propre ligne, sous le champ (le champ garde toute sa largeur pour taper) */
@media (max-width:1000px){
  .gh-search.gh-search-jeton .gh-jeton{display:none}
  body.gh-sopen .gh-search.gh-search-jeton .gh-jeton{display:inline-flex;order:3;height:32px;max-width:100%;margin:10px 0 0;padding-left:12px;font-size:14px}
  body.gh-sopen .gh-search.gh-search-jeton input{order:1}
  body.gh-sopen .gh-search.gh-search-jeton .gh-sx{order:2}
  body.gh-sopen .gh-search.gh-search-jeton .gh-sug{order:4}
}
body.gh-sopen .gh-lgc{display:none}   /* recherche plein écran ouverte : la pastille ne passe pas par-dessus */

@media (min-width:1001px){.gh-search.gh-search-jeton{width:400px;max-width:36vw}}
