/*
 * LOGUETOWN — corrections de la revue d'interface (10/11/2026).
 * Chargé en tout dernier par includes/header-universel.php (après la DA comics),
 * d'où les sélecteurs renforcés et quelques !important face à loguetown-theme-modes.css.
 *
 *  2. Menu ordinateur lisible (13 px, encre pleine)
 *  5. Logo : « .FR » masqué sur petit écran au lieu d'être coupé
 *  6. Bouton « + Déposer » : cible 44 × 44, sans reflet blanc
 *  8. Menu mobile fermé : plus d'ombre sur le bord droit
 *  1. Thème : pastille flottante masquée sous 1280 px, réglage dans le menu
 * 12. Recherche de l'en-tête : le texte n'est plus coupé par la loupe
 * 13. Une seule action principale dans l'en-tête : « Déposer » en doré
 */

/* ── 2. Liens du menu (≥ 1280 px) ─────────────────────────────────────── */
html body.lt26-grain a.lt-gl-nlink {
  font-size: 0.8125rem;          /* 13 px, comme les liens des menus déroulants */
  letter-spacing: 0.06em;
  padding: 0.5rem 0.45rem;
}
html[data-theme="light"] body.lt26-grain a.lt-gl-nlink:not(.is-active):not(:hover) {
  color: var(--lt-sun-ink, #17202a) !important;
}
html[data-theme="dark"] body.lt26-grain a.lt-gl-nlink:not(.is-active):not(:hover) {
  color: var(--lt-moon-ink, #f3f0e9) !important;
}

/* ── 12. Champ de recherche de l'en-tête ──────────────────────────────── */
html body.lt26-grain .lt-gl-nav__search .lt26-nav__search-input {
  padding-right: 44px !important; /* place réservée à la loupe (32 px + marge) */
  text-overflow: ellipsis;
}

/* ── 13 + 6. « Déposer » = action principale dorée, sans reflet ────────── */
html body.lt26-grain .lt-gl-nav__deposit {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px;
  transform: none;
}
html body.lt26-grain .lt-gl-nav__deposit::after { content: none !important; }
/* Sélecteurs renforcés : lt-gl-app-light.css impose sinon un texte doré sur fond doré */
html[data-theme="light"] body.lt26-grain .lt26-nav .lt-gl-nav__deposit.lt26-magnetic,
html[data-theme="light"] body.lt26-grain .lt26-nav .lt-gl-nav__deposit.lt26-magnetic:hover {
  background: linear-gradient(135deg, #d99a18 0%, #f1c45d 55%, #b9780d 100%) !important;
  color: #17120a !important;
}
html[data-theme="dark"] body.lt26-grain .lt26-nav .lt-gl-nav__deposit.lt26-magnetic,
html[data-theme="dark"] body.lt26-grain .lt26-nav .lt-gl-nav__deposit.lt26-magnetic:hover {
  background: linear-gradient(135deg, #f0c842 0%, #d4a017 55%, #9a6b0c 100%) !important;
  color: #050a1a !important;
}
html body.lt26-grain .lt-gl-nav__deposit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* « Mon compte » : le libellé respire dans sa pastille */
html body.lt26-grain .lt26-nav--grand-line .lt26-nav__user-btn:not(:has(img)) {
  padding-inline: 14px;
}

@media (max-width: 480px) {
  html body.lt26-grain .lt-gl-nav__deposit {
    width: 44px;
    height: 44px;
    padding: 0 !important;
  }
}

/* ── 5. Logo texte : « .FR » masqué sur petit écran ───────────────────── */
@media (max-width: 420px) {
  .lt-gl-nav__brand .lt-brand-logo__fallback > span { display: none; }
}

/* ── 8. Menu mobile fermé : pas d'ombre qui déborde sur la page ────────── */
.lt26-nav__mobile:not(.is-open) { box-shadow: none !important; }

/* ── 1. Choix du thème ────────────────────────────────────────────────── */
/* Version rangée dans le menu mobile */
.lt26-theme-toggle.lt26-theme-toggle--drawer {
  position: static;
  align-self: flex-start;
  margin: 6px 16px 0;
  box-shadow: none !important;
}
.lt26-theme-toggle__label {
  padding: 0 8px 0 10px;
  font-size: 0.875rem;
  color: inherit;
}
/* Tant que le menu hamburger existe (< 1280 px), le thème se règle dans le menu :
   la pastille flottante recouvrait filtres, cartes et boutons (téléphone et tablette). */
@media (max-width: 1279px) {
  .lt26-theme-toggle:not(.lt26-theme-toggle--drawer) { display: none !important; }
}
@media (min-width: 1280px) {
  .lt26-theme-toggle.lt26-theme-toggle--drawer { display: none !important; }
}
