/* ==========================================================================
   En-tête commun TyNox — includes/header/header_core.php
   Tout est rangé sous .tgh : les styles des pages ne s'y mélangent pas.
   Couleurs par site : bloc « Thèmes » en bas du fichier.
   ========================================================================== */

:root{ --tgp-header-h: 68px; }
@media (max-width: 1023px) { :root{ --tgp-header-h: 62px; } }
@media (max-width: 599px)  { :root{ --tgp-header-h: 56px; } }

.tgh{
  /* Valeurs par défaut (= TGP Launcher) */
  --tgh-h: 68px;
  --tgh-font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tgh-bg: #0d121d;
  --tgh-text: #eef1f8;
  --tgh-muted: #a2abc0;
  --tgh-line: rgba(255, 255, 255, .08);
  --tgh-line-strong: rgba(255, 255, 255, .2);
  --tgh-hover: rgba(255, 255, 255, .07);
  --tgh-field: rgba(255, 255, 255, .05);
  --tgh-accent: #fe5de2;
  --tgh-on-accent: #1b0418;
  --tgh-cta-radius: 10px;
  --tgh-panel: rgba(19, 25, 40, .95);
  --tgh-panel-text: #eef1f8;
  --tgh-panel-muted: #98a1b6;
  --tgh-panel-line: rgba(255, 255, 255, .08);
  --tgh-panel-hover: rgba(255, 255, 255, .06);
  --tgh-panel-accent: var(--tgh-accent);
  --tgh-drawer-bg: var(--tgh-bg);
  /* Verre des menus : opacité de la teinte (plus bas = plus transparent) */
  --tgh-panel-tint: 70%;
  --tgh-edge: rgba(255, 255, 255, .16);

  display: block;
  position: relative;
  z-index: 1200;
  height: var(--tgh-h);
  margin: 0;
  padding: 0;
  font-family: var(--tgh-font);
  font-size: 15px;
  line-height: 1.3;
  font-variation-settings: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 1023px) { .tgh{ --tgh-h: 62px; } }
@media (max-width: 599px)  { .tgh{ --tgh-h: 56px; } }

/* --- Remise à zéro locale (les pages stylent souvent button, ul, img…) --- */
.tgh, .tgh *, .tgh *::before, .tgh *::after{ box-sizing: border-box; }
.tgh ul, .tgh li{ list-style: none; margin: 0; padding: 0; }
.tgh p{ margin: 0; }
.tgh a{ color: inherit; text-decoration: none; background: none; }
.tgh img{ max-width: none; border: 0; }
.tgh button{
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: none;
  background: none; border: 0; margin: 0; padding: 0; width: auto; min-width: 0; height: auto;
  box-shadow: none; cursor: pointer; line-height: inherit; -webkit-appearance: none; appearance: none;
}
.tgh input{ font: inherit; color: inherit; margin: 0; box-shadow: none; }
.tgh .tgh-ico{ flex-shrink: 0; display: block; }
.tgh .tgh-sr{
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.tgh :focus{ outline: none; }
.tgh :focus-visible{ outline: 2px solid var(--tgh-accent); outline-offset: 2px; border-radius: 8px; }
.tgh .tgh-panel :focus-visible, .tgh .tgh-drawer :focus-visible{ outline-color: var(--tgh-panel-accent); }

/* --- Barre ---------------------------------------------------------------- */
.tgh .tgh-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--tgh-h);
  margin: 0;
  padding: 0 clamp(12px, 2.2vw, 28px);
  background: transparent;
  color: var(--tgh-text);
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: box-shadow .2s ease;
}
.tgh .tgh-bar::before{
  /* Fond plein (le verre est réservé aux menus déroulants) */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: var(--tgh-bg);
  border-bottom: 1px solid var(--tgh-line);
}
.tgh .tgh-defs{ position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.tgh.is-scrolled .tgh-bar{ box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }

/* Les menus déroulants se placent sous la barre, alignés sur leur bouton */
.tgh [data-tgh-menu]{ position: relative; display: flex; align-items: center; height: 100%; }

/* --- Marque --------------------------------------------------------------- */
.tgh .tgh-brand{ flex-shrink: 0; gap: 2px; }
.tgh .tgh-brand__home{
  display: flex; align-items: center;
  height: calc(var(--tgh-h) - 20px);
  padding: 0 6px;
  border-radius: 10px;
}
.tgh .tgh-brand__logo{ display: block; height: 40px; width: auto; }
.tgh .tgh-brand__logo.is-cropped{ object-fit: cover; object-position: left center; }
.tgh .tgh-brand__logo.is-inverted{ filter: invert(1); }
.tgh .tgh-brand__switch.tgh-btn{ width: 28px; min-width: 28px; height: 28px; border-radius: 8px; }
.tgh .tgh-brand__switch .tgh-ico{ transition: transform .2s ease; }
.tgh .tgh-brand__switch[aria-expanded="true"] .tgh-ico{ transform: rotate(180deg); }

/* Logo du projet de la page (affiché seulement s'il a une image) */
.tgh .tgh-project{
  display: flex; align-items: center; flex-shrink: 0;
  height: 34px; margin-left: 4px; padding-left: 12px;
  border-left: 1px solid var(--tgh-line-strong);
}
.tgh .tgh-project img{ display: block; height: 34px; width: auto; }
.tgh .tgh-project img:not([src]){ display: none; }
.tgh .tgh-project:not(:has(img[src])){ display: none; }

/* --- Navigation principale ------------------------------------------------ */
.tgh .tgh-nav{ flex: 1 1 auto; min-width: 0; height: 100%; margin-left: clamp(4px, 1.6vw, 24px); }
.tgh .tgh-nav__list{ display: flex; align-items: stretch; height: 100%; gap: 2px; }
.tgh .tgh-nav__link{
  position: relative;
  display: flex; align-items: center; gap: 5px;
  height: 100%;
  padding: 0 12px;
  font-size: 15px; font-weight: 500;
  color: var(--tgh-muted);
  white-space: nowrap;
  transition: color .15s ease;
}
.tgh .tgh-nav__link::after{
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px 2px 0 0;
  background: var(--tgh-accent);
  opacity: 0; transform: scaleX(.3);
  transition: opacity .18s ease, transform .18s ease;
}
.tgh .tgh-nav__link:hover{ color: var(--tgh-text); }
.tgh .tgh-nav__link:hover::after{ opacity: .45; transform: scaleX(1); }
.tgh .tgh-nav__link[aria-current="page"]{ color: var(--tgh-text); font-weight: 600; }
.tgh .tgh-nav__link[aria-current="page"]::after{ opacity: 1; transform: scaleX(1); }
.tgh .tgh-nav__link:focus-visible{ outline-offset: -6px; }
.tgh .tgh-nav__link .tgh-ico{ opacity: .6; }

/* --- Actions (droite) ----------------------------------------------------- */
.tgh .tgh-actions{ display: flex; align-items: center; gap: 4px; height: 100%; margin-left: auto; flex-shrink: 0; }

.tgh .tgh-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 10px;
  border-radius: 10px;
  color: var(--tgh-muted);
  transition: background-color .15s ease, color .15s ease;
}
.tgh .tgh-btn:hover,
.tgh .tgh-btn[aria-expanded="true"]{ background: var(--tgh-hover); color: var(--tgh-text); }
.tgh .tgh-btn--icon{ width: 38px; padding: 0; }
.tgh .tgh-bell{ position: relative; }
.tgh .tgh-bell.has-unread{ color: var(--tgh-text); }
.tgh .tgh-bell__count{
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 9px; border: 2px solid var(--tgh-bg);
  background: var(--tgh-accent); color: var(--tgh-on-accent);
  font: 700 10px/1 var(--tgh-font); letter-spacing: 0;
}
.tgh .tgh-btn__code{ font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.tgh .tgh-btn--avatar{ padding: 0 6px 0 3px; gap: 4px; }
.tgh .tgh-btn--avatar img, .tgh .tgh-who img{ display: block; object-fit: cover; border-radius: 9px; }
.tgh .tgh-btn--avatar img{ width: 32px; height: 32px; }
.tgh .tgh-btn--avatar > .tgh-ico{ transition: transform .2s ease; }
.tgh .tgh-btn--avatar[aria-expanded="true"] > .tgh-ico{ transform: rotate(180deg); }
.tgh .tgh-avatar-fallback{
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--tgh-accent); color: var(--tgh-on-accent);
  font-size: 14px; font-weight: 700;
}
.tgh .tgh-avatar-fallback--lg{ width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; }
.tgh .tgh-panel .tgh-avatar-fallback, .tgh .tgh-drawer .tgh-avatar-fallback{ background: var(--tgh-panel-accent); }

/* Recherche */
.tgh .tgh-search{
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 8px 0 12px;
  border-radius: 10px;
  background: var(--tgh-field);
  border: 1px solid var(--tgh-line);
  color: var(--tgh-muted);
  transition: border-color .15s ease, background-color .15s ease, width .2s ease;
}
.tgh .tgh-search input{
  flex: 1; min-width: 0; height: 100%;
  padding: 0; border: 0; outline: 0; background: none;
  font-size: 14px; color: var(--tgh-text);
}
.tgh .tgh-search input::placeholder{ color: var(--tgh-muted); opacity: 1; }
.tgh .tgh-search input::-webkit-search-decoration{ -webkit-appearance: none; }
.tgh .tgh-search{ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tgh .tgh-search:focus-within{ border-color: var(--tgh-accent); }
.tgh .tgh-search--inline{ width: 210px; margin-right: 4px; }
.tgh .tgh-search--inline:focus-within{ width: 260px; }
.tgh .tgh-kbd{
  font: 600 11px/1 var(--tgh-font);
  padding: 3px 6px; border-radius: 5px;
  border: 1px solid var(--tgh-line-strong); color: var(--tgh-muted);
}
.tgh .tgh-search:focus-within .tgh-kbd{ display: none; }
.tgh .tgh-searchpop{ display: none !important; }

/* Bouton « Se connecter » et bouton d'action du site */
.tgh .tgh-signin{
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; margin-left: 4px;
  border-radius: 10px;
  border: 1px solid var(--tgh-line-strong);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--tgh-text);
  transition: border-color .15s ease, background-color .15s ease;
}
.tgh .tgh-signin:hover{ border-color: var(--tgh-accent); background: var(--tgh-hover); }
.tgh .tgh-cta{
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; margin-right: 6px;
  border-radius: var(--tgh-cta-radius);
  background: var(--tgh-accent); color: var(--tgh-on-accent);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: filter .15s ease;
}
.tgh .tgh-cta:hover{ filter: brightness(1.1); }

/* Bouton menu (mobile) */
.tgh .tgh-burger{ display: none; }
.tgh .tgh-burger__lines{ display: grid; gap: 4px; width: 18px; }
.tgh .tgh-burger__lines span{ display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.tgh .tgh-burger[aria-expanded="true"] .tgh-burger__lines span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.tgh .tgh-burger[aria-expanded="true"] .tgh-burger__lines span:nth-child(2){ opacity: 0; }
.tgh .tgh-burger[aria-expanded="true"] .tgh-burger__lines span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* --- Panneaux déroulants -------------------------------------------------- */
.tgh .tgh-panel{
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: var(--tgh-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .02) 34%, transparent 62%, rgba(255, 255, 255, .05) 100%),
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tgh-panel-accent) 16%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--tgh-panel-accent) 8%, transparent) 0%, transparent 60%),
    color-mix(in srgb, var(--tgh-panel) var(--tgh-panel-tint), transparent);
  color: var(--tgh-panel-text);
  border: 1px solid var(--tgh-panel-edge, rgba(255, 255, 255, .16));
  box-shadow:
    inset 0 1.2px 0 rgba(255, 255, 255, .34),
    inset 1px 0 0 rgba(255, 255, 255, .12),
    inset -1px 0 0 rgba(255, 255, 255, .06),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 30px 60px -20px rgba(0, 0, 0, .6),
    0 2px 10px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  font-size: 14px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
.tgh.tgh-liquid .tgh-panel{ backdrop-filter: url(#tgh-liquid) blur(20px) saturate(190%); }
.tgh .tgh-panel[hidden]{ display: none; }
.tgh .tgh-panel:not([hidden]){ animation: tgh-in .16s ease-out; }
@keyframes tgh-in { from { opacity: 0; transform: translateY(-4px); } }

.tgh .tgh-panel__title, .tgh .tgh-eco__title{
  padding: 8px 10px 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--tgh-panel-muted);
}

.tgh .tgh-item{
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px;
  border-radius: 9px;
  font-size: 14px; font-weight: 500;
  color: var(--tgh-panel-text);
  transition: background-color .12s ease;
}
.tgh .tgh-item .tgh-ico{ color: var(--tgh-panel-muted); }
.tgh .tgh-item:hover, .tgh .tgh-item:focus-visible{ background: var(--tgh-panel-hover); }
.tgh .tgh-item:hover .tgh-ico{ color: var(--tgh-panel-text); }
.tgh .tgh-item--quiet{ color: var(--tgh-panel-muted); }
.tgh .tgh-item.is-current{ font-weight: 600; justify-content: space-between; }
.tgh .tgh-item.is-current .tgh-ico{ color: var(--tgh-panel-accent); }
.tgh .tgh-sep{ height: 1px; margin: 6px 4px; background: var(--tgh-panel-line); }

.tgh .tgh-who{ display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.tgh .tgh-who:hover{ background: var(--tgh-panel-hover); }
.tgh .tgh-who img{ width: 40px; height: 40px; flex-shrink: 0; }
.tgh .tgh-who span{ display: flex; flex-direction: column; min-width: 0; }
.tgh .tgh-who strong{ font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgh .tgh-who small{ font-size: 12.5px; color: var(--tgh-panel-muted); }

.tgh .tgh-panel--account{ width: 264px; }
.tgh .tgh-panel--lang{ width: 400px; }
.tgh .tgh-langs{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; max-height: min(70vh, 460px); overflow-y: auto; scrollbar-width: thin; }
.tgh .tgh-panel--search{ width: 340px; padding: 8px; }
.tgh .tgh-panel--search .tgh-search{ width: 100%; height: 44px; background: rgba(255, 255, 255, .05); border-color: var(--tgh-panel-line); color: var(--tgh-panel-muted); }
.tgh .tgh-panel--search .tgh-search input{ color: var(--tgh-panel-text); }
.tgh .tgh-panel--search .tgh-search input::placeholder{ color: var(--tgh-panel-muted); }
.tgh .tgh-panel--search .tgh-search:focus-within{ border-color: var(--tgh-panel-accent); }

/* Carte de l'écosystème (bouton à côté du logo) */
.tgh .tgh-panel--eco{
  left: 0; right: auto;
  width: min(880px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4px 6px;
  padding: 10px;
  max-height: calc(100vh - var(--tgh-h) - 20px);
  overflow-y: auto;
}
.tgh .tgh-eco__group{ min-width: 0; }
.tgh .tgh-eco__list{ display: grid; gap: 2px; }
.tgh .tgh-eco__item{
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .12s ease;
}
.tgh .tgh-eco__item:hover{ background: var(--tgh-panel-hover); }
.tgh .tgh-eco__item.is-current{
  background: color-mix(in srgb, var(--tgh-panel-accent) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--tgh-panel-accent);
}
.tgh .tgh-eco__text{ display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.tgh .tgh-eco__wordmark{ display: block; height: 24px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; }
.tgh .tgh-eco__wordmark.is-cropped{ object-fit: cover; }
.tgh .tgh-eco__icon{ width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; object-fit: contain; background: rgba(255, 255, 255, .04); }
.tgh .tgh-eco__name{ font-size: 14px; font-weight: 600; color: var(--tgh-panel-text); }
.tgh .tgh-eco__desc{ font-size: 12.5px; line-height: 1.35; color: var(--tgh-panel-muted); }
.tgh .tgh-eco__here{
  margin-left: auto; flex-shrink: 0; align-self: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--tgh-panel-accent); color: var(--tgh-on-panel-accent, var(--tgh-on-accent));
  font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* --- Menu mobile ---------------------------------------------------------- */
.tgh .tgh-drawer{
  position: fixed;
  top: var(--tgh-h); left: 0; right: 0; bottom: 0;
  z-index: 1199;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--tgh-drawer-bg);
  background: color-mix(in srgb, var(--tgh-drawer-bg) 84%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  color: var(--tgh-text);
}
.tgh .tgh-drawer[hidden]{ display: none; }
.tgh .tgh-drawer:not([hidden]){ animation: tgh-in .18s ease-out; }
.tgh .tgh-drawer__inner{ display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.tgh .tgh-search--drawer{ width: 100%; height: 46px; }
.tgh .tgh-search--drawer input{ font-size: 16px; } /* pas de zoom automatique sur iOS */
.tgh .tgh-dnav{ display: grid; gap: 2px; }
.tgh .tgh-dnav a{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 12px; border-radius: 10px;
  font-size: 17px; font-weight: 500;
}
.tgh .tgh-dnav a:hover{ background: var(--tgh-hover); }
.tgh .tgh-dnav a[aria-current="page"]{ background: var(--tgh-hover); box-shadow: inset 3px 0 0 var(--tgh-accent); font-weight: 600; }
.tgh .tgh-cta--block{ display: flex; width: 100%; height: 46px; margin: 8px 0 0; font-size: 15px; }
.tgh .tgh-dsection{ display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--tgh-line); }
.tgh .tgh-drawer .tgh-item, .tgh .tgh-drawer .tgh-who{ color: var(--tgh-text); }
.tgh .tgh-drawer .tgh-item .tgh-ico, .tgh .tgh-drawer .tgh-who small{ color: var(--tgh-muted); }
.tgh .tgh-drawer .tgh-item:hover, .tgh .tgh-drawer .tgh-who:hover{ background: var(--tgh-hover); }
.tgh .tgh-drawer .tgh-item--quiet{ color: var(--tgh-muted); }
.tgh .tgh-drawer .tgh-avatar-fallback{ background: var(--tgh-accent); color: var(--tgh-on-accent); }
.tgh .tgh-dlink{ display: block; padding: 12px; text-align: center; font-size: 14.5px; font-weight: 500; color: var(--tgh-muted); }
.tgh .tgh-dlink:hover{ color: var(--tgh-text); }
.tgh .tgh-dlang summary{
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 10px;
  list-style: none; cursor: pointer; font-weight: 500;
}
.tgh .tgh-dlang summary::-webkit-details-marker{ display: none; }
.tgh .tgh-dlang summary:hover{ background: var(--tgh-hover); }
.tgh .tgh-dlang__cur{ margin-left: auto; color: var(--tgh-muted); font-size: 14px; }
.tgh .tgh-dlang summary > .tgh-ico:last-child{ transition: transform .2s ease; color: var(--tgh-muted); }
.tgh .tgh-dlang[open] summary > .tgh-ico:last-child{ transform: rotate(180deg); }
.tgh .tgh-dlang__list{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px 0 4px; }
.tgh .tgh-dlang__list a{ display: block; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--tgh-line); font-size: 14px; }
.tgh .tgh-dlang__list a:hover{ background: var(--tgh-hover); }
.tgh .tgh-dlang__list a[aria-current="true"]{ border-color: var(--tgh-accent); font-weight: 600; }

html.tgh-lock, html.tgh-lock body{ overflow: hidden; }

/* --- Largeurs d'écran ----------------------------------------------------
   is-tight / is-compact sont aussi posées par le script quand le menu
   ne tient pas (menus longs, polices larges, zoom du navigateur). */
@media (max-width: 1279px) {
  .tgh .tgh-search--inline{ display: none; }
  .tgh .tgh-searchpop{ display: flex !important; }
}
.tgh.is-tight .tgh-search--inline{ display: none; }
.tgh.is-tight .tgh-searchpop{ display: flex !important; }

@media (max-width: 1023px) {
  .tgh .tgh-nav, .tgh .tgh-searchpop, .tgh .tgh-lang, .tgh .tgh-search--inline{ display: none !important; }
  .tgh .tgh-burger{ display: inline-flex; }
}
.tgh.is-compact .tgh-nav, .tgh.is-compact .tgh-searchpop,
.tgh.is-compact .tgh-lang, .tgh.is-compact .tgh-search--inline{ display: none !important; }
.tgh.is-compact .tgh-burger{ display: inline-flex; }

@media (max-width: 599px) {
  .tgh .tgh-bar{ gap: 2px; padding: 0 8px 0 10px; }
  .tgh .tgh-brand__logo{ height: 32px; }
  .tgh .tgh-project, .tgh .tgh-project img{ height: 28px; }
  .tgh .tgh-project{ padding-left: 10px; }
  .tgh .tgh-actions > .tgh-cta{ display: none; }
  .tgh .tgh-signin{ width: 38px; padding: 0; justify-content: center; margin-left: 0; border-color: transparent; }
  .tgh .tgh-signin span{ display: none; }

  .tgh .tgh-panel{
    position: fixed;
    top: calc(var(--tgh-h) + 6px); left: 8px; right: 8px;
    width: auto !important; min-width: 0;
    max-height: calc(100vh - var(--tgh-h) - 16px);
    max-height: calc(100dvh - var(--tgh-h) - 16px);
    overflow-y: auto;
  }
  .tgh .tgh-panel--eco{ grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
  .tgh .tgh-project{ display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tgh *, .tgh *::before, .tgh *::after{ animation: none !important; transition: none !important; }
}
@media print { .tgh{ display: none !important; } }

/* ==========================================================================
   Thèmes (un par site)
   ========================================================================== */

/* TyNox Interactive — violet du logo */
.tgh--ti{
  --tgh-bg: #07080e; --tgh-muted: #aaa4c0; --tgh-accent: #a97bff; --tgh-on-accent: #13061f;
  --tgh-panel: rgba(22, 18, 38, .96); --tgh-panel-muted: #a39cbb;
}

/* TyNox Games Production — cyan sur noir */
.tgh--tgp{
  --tgh-bg: #000; --tgh-muted: #9ea8ae; --tgh-accent: #00e5ff; --tgh-on-accent: #00161a;
  --tgh-panel: rgba(14, 17, 19, .96); --tgh-panel-muted: #98a2a8;
}

/* TGP Launcher — valeurs par défaut (rose) */
.tgh--launcher{ }

/* Voxen — rouge info */
.tgh--voxen{
  --tgh-bg: #111827; --tgh-muted: #a0aabc; --tgh-accent: #ff4537; --tgh-on-accent: #fff;
  --tgh-panel: rgba(24, 32, 50, .96); --tgh-panel-muted: #9aa4b6;
}

/* Elite Legal Force — vert d'eau */
.tgh--elf{
  --tgh-bg: #222227; --tgh-muted: #aeaeb8; --tgh-accent: #7cf2d0; --tgh-on-accent: #05271d;
  --tgh-panel: rgba(42, 42, 49, .97); --tgh-panel-muted: #a6a6b0;
}

/* Tutorial — barre claire couleur parchemin, texte encre */
.tgh--tutorial{
  --tgh-bg: #b08e53; --tgh-text: #1d1406; --tgh-muted: #3a2b14;
  --tgh-line: rgba(29, 20, 6, .16); --tgh-line-strong: rgba(29, 20, 6, .34);
  --tgh-hover: rgba(29, 20, 6, .09); --tgh-field: rgba(255, 248, 232, .32);
  --tgh-accent: #2e2109; --tgh-on-accent: #f7eedb;
  --tgh-panel: rgba(40, 30, 15, .97); --tgh-panel-text: #f6ecd9; --tgh-panel-muted: #cbb791;
  --tgh-panel-line: rgba(246, 236, 217, .1); --tgh-panel-hover: rgba(246, 236, 217, .07);
  --tgh-panel-accent: #e7bf6e; --tgh-on-panel-accent: #2a1d07;
}
.tgh--tutorial .tgh-search input::placeholder{ color: #4d3c20; }

/* KDS Shop (partenaire) */
.tgh--kds{
  --tgh-font: "Archivo", system-ui, sans-serif;
  --tgh-bg: #0a0a0a; --tgh-text: #f2f2f0; --tgh-muted: #8b8b88; --tgh-line: #232323;
  --tgh-accent: #d7ff3a; --tgh-on-accent: #000; --tgh-cta-radius: 0;
  --tgh-panel: rgba(20, 20, 20, .97); --tgh-panel-muted: #96968f;
}
.tgh--kds .tgh-nav__link{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.tgh--kds .tgh-cta{ font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* M1NUT3MAN Studios (partenaire) — bannière rayée rouge / crème */
.tgh--m1{
  --tgh-font: "Big Shoulders Display", Impact, sans-serif;
  --tgh-bg: #0b1730; --tgh-text: #f3ead8; --tgh-muted: #d2c7ae; --tgh-line: transparent;
  --tgh-accent: #c8102e; --tgh-on-accent: #fff; --tgh-cta-radius: 0;
  --tgh-panel: rgba(18, 34, 74, .97); --tgh-panel-muted: #c9bfa8; --tgh-panel-accent: #ff4a5f;
}
.tgh--m1 .tgh-bar::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #c8102e 0 40px, #f3ead8 40px 80px);
}
.tgh--m1 .tgh-nav__link{ font-size: 17px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tgh--m1 .tgh-cta{ font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tgh--m1 .tgh-nav__link::after{ background: #f3ead8; }
.tgh--m1 .tgh-panel, .tgh--m1 .tgh-drawer{ font-family: "Inter", system-ui, sans-serif; }

/* Nayve. (partenaire) — barre blanche, panneaux sombres */
.tgh--nayve{
  --tgh-font: "Geist", "Inter", system-ui, sans-serif;
  --tgh-bg: rgba(255, 255, 255, .86); --tgh-text: #0a0a0a; --tgh-muted: #5f5f5f;
  --tgh-line: #e6e6e6; --tgh-line-strong: #d0d0d0; --tgh-hover: rgba(0, 0, 0, .05); --tgh-field: #f4f4f4;
  --tgh-accent: #0a0a0a; --tgh-on-accent: #fff; --tgh-cta-radius: 999px;
  --tgh-panel: rgba(17, 17, 17, .96); --tgh-panel-text: #f4f4f4; --tgh-panel-muted: #a3a3a3;
  --tgh-panel-accent: #fff; --tgh-on-panel-accent: #0a0a0a;
  --tgh-drawer-bg: #fff;
}
.tgh--nayve{ --tgh-bg: #fff; }
