/* Chrome public UMDJ : bandeau + menu latéral.
   Le kiosk ne monte pas ces composants. Voir docs/site-chrome.md. */

umdj-topbar,
umdj-sidebar {
  display: block;
}

.umdj-chrome-stack {
  position: sticky;
  top: 0;
  z-index: 45;
}

.umdj-chrome-stack .umdj-twitch-live-banner {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
}

.umdj-topbar {
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.umdj-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1.15rem;
  box-sizing: border-box;
}

.umdj-topbar-brand {
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.45;
  text-decoration: none;
  color: #fff;
}

.umdj-topbar-brand span {
  color: #379ef6;
}

.umdj-topbar-brand--desktop {
  display: none;
}

.umdj-topbar-search {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 1 13.5rem;
  width: 13.5rem;
  max-width: 100%;
  margin: 0;
  padding: 0.12rem 0.2rem 0.12rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #000;
  box-sizing: border-box;
}

.umdj-topbar-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  box-shadow: none;
}

.umdj-topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.umdj-topbar-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #48b0ee;
  cursor: pointer;
}

.umdj-topbar-search-btn:hover {
  background: rgba(72, 176, 238, 0.14);
}

.umdj-topbar-search-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.umdj-topbar-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}

.umdj-topbar-chip,
.umdj-topbar-patate {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, CanvasText 18%, transparent);
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.umdj-topbar-patate {
  font-family: inherit;
}

.umdj-topbar-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.umdj-topbar-avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.umdj-topbar-mail {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  text-decoration: none;
}

.umdj-topbar-faction {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  display: block;
}

.umdj-topbar-impersonate {
  border: 1px solid #e6c200;
  background: #f5d90a;
  color: #1a1a1a;
  font-weight: 800;
  border-radius: 0.7rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  line-height: 1.15;
}

.umdj-topbar-name {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.28rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.umdj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  body.umdj-has-sidebar {
    padding-bottom: 0;
  }

  .umdj-app-main,
  .home-fil-actu-stage {
    margin-left: 4.5rem;
  }

  .umdj-dock-public {
    display: none !important;
  }

  .umdj-topbar-inner {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 0;
    padding: 0;
  }

  .umdj-topbar-brand--mobile {
    display: none;
  }

  .umdj-topbar-brand--desktop {
    display: block;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    text-align: center;
    white-space: nowrap;
    padding: 0.4rem 0;
    font-size: clamp(1.15rem, 2.15vw, 2.05rem);
  }

  .umdj-topbar-search {
    flex: none;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    width: auto;
    max-width: 13.5rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    margin-left: 0.75rem;
    overflow: hidden;
  }

  .umdj-topbar-account {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    justify-content: flex-end;
    min-width: 0;
    width: auto;
    max-width: none;
    margin-left: 0.35rem;
    margin-right: 0.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.4rem;
    gap: 0.3rem;
    overflow: visible;
  }

  .umdj-topbar-avatar-wrap {
    flex: 0 0 auto;
  }

  .umdj-topbar-avatar {
    width: clamp(2.15rem, 4vw, 3rem);
    height: clamp(2.15rem, 4vw, 3rem);
  }

  .umdj-topbar-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 6.5rem;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  }

  .umdj-topbar-chip,
  .umdj-topbar-patate {
    flex: 0 0 auto;
    min-height: 1.7rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 1280px) {
  .umdj-app-main,
  .home-fil-actu-stage {
    margin-left: 16rem;
  }

  .umdj-topbar-inner {
    grid-template-columns: 16rem minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
  }

  .umdj-topbar-brand--desktop {
    font-size: 2.5rem;
  }

  .umdj-topbar-avatar {
    width: 3.75rem;
    height: 3.75rem;
  }

  .umdj-topbar-name {
    max-width: 11rem;
    font-size: 1.28rem;
  }

  .umdj-topbar-account {
    gap: 0.45rem;
    margin-right: 1.35rem;
  }

  .umdj-topbar-search {
    margin-left: 1rem;
    max-width: 13.5rem;
  }

  .umdj-topbar-chip,
  .umdj-topbar-patate {
    min-height: 2rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.85rem;
  }
}

.umdj-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .umdj-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: var(--umdj-chrome-offset, 0px);
    bottom: 0;
    width: 4.5rem;
    z-index: 40;
    margin: 0;
    padding: 0 0 1rem;
    gap: 0;
    box-sizing: border-box;
    overflow: auto;
    background: #000;
    color: #fff;
    border-right: 1px solid #2e323e;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .umdj-sidebar {
    overflow: visible;
  }
}

@media (min-width: 1280px) {
  .umdj-sidebar {
    width: 16rem;
    padding: 0 0 1.25rem;
  }
}

.umdj-nav-home,
.umdj-nav-toggle,
.umdj-nav-link,
.umdj-nav-direct {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.umdj-nav-home,
.umdj-nav-home.is-active {
  background: #f59e0b;
  color: #1a1a1a;
}

.umdj-nav-home:hover {
  background: #d97706;
  color: #1a1a1a;
}

.umdj-nav-toggle,
.umdj-nav-direct {
  background: #152134;
  color: #fff;
}

.umdj-nav-toggle:hover,
.umdj-nav-direct:hover {
  background: #1d2c45;
  color: #fff;
}

.umdj-nav-toggle.is-current,
.umdj-nav-block.is-open > .umdj-nav-toggle,
.umdj-nav-direct.is-active {
  background: #379ef6;
  color: #fff;
}

.umdj-nav-toggle.is-current:hover,
.umdj-nav-block.is-open > .umdj-nav-toggle:hover,
.umdj-nav-direct.is-active:hover {
  background: #2b8de0;
  color: #fff;
}

.umdj-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
}

.umdj-nav-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.umdj-nav-block {
  position: relative;
}

.umdj-nav-toggle {
  justify-content: flex-start;
}

.umdj-nav-chevron {
  margin-left: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.umdj-nav-block.is-open .umdj-nav-chevron {
  transform: rotate(225deg);
  margin-top: 0.3rem;
}

.umdj-nav-children {
  display: none;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
}

.umdj-nav-block.is-open > .umdj-nav-children {
  display: block;
}

.umdj-nav-link {
  border-radius: 0;
  font-weight: 600;
  min-height: 2.3rem;
  background: #000;
  color: #fff;
}

.umdj-nav-link:hover {
  background: #1a1a1a;
  color: #fff;
}

.umdj-nav-link.is-active,
.umdj-nav-link.is-active:hover {
  background: #93cdff;
  color: #152134;
}

.umdj-nav-badge {
  min-width: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2rem;
  text-align: center;
  text-decoration: none;
}

.umdj-nav-row {
  position: relative;
}

.umdj-nav-row > .umdj-nav-badge {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.umdj-nav-cart-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #e11d48;
  margin-left: auto;
}

@media (max-width: 1279px) {
  .umdj-nav-label,
  .umdj-nav-chevron {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .umdj-nav-home,
  .umdj-nav-toggle,
  .umdj-nav-direct {
    position: relative;
    justify-content: center;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .umdj-nav-row > .umdj-nav-badge,
  .umdj-nav-direct > .umdj-nav-cart-dot {
    position: absolute;
    top: 0.15rem;
    right: 0.2rem;
    margin: 0;
  }

  .umdj-nav-block.is-open > .umdj-nav-children {
    position: absolute;
    left: calc(100% + 0.35rem);
    top: 0;
    width: 15.5rem;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 1px solid #2e323e;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    z-index: 50;
    max-height: min(24rem, calc(100svh - var(--umdj-chrome-offset, 0px) - 1rem));
    overflow: auto;
  }

  .umdj-nav-children .umdj-nav-label,
  .umdj-nav-children .umdj-nav-badge {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
}

@media (min-width: 1280px) {
  .umdj-nav-children .umdj-nav-link {
    padding-left: 0.85rem;
  }
}

.umdj-topbar-mark,
.umdj-topbar-burger {
  display: none;
}

.umdj-topbar-burger {
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 0 0 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.umdj-topbar-burger svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.umdj-topbar-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.umdj-sidebar-backdrop {
  display: none;
}

@media (max-width: 767px) {
  .umdj-topbar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.4rem;
    padding: 0.45rem 0.7rem 0.55rem;
  }

  .umdj-topbar-burger {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    margin: 0;
  }

  .umdj-topbar-brand--mobile {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
    max-width: calc(100% - 5.5rem);
    font-size: 1.25rem;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
  }

  .umdj-topbar-search {
    grid-column: 1 / 3;
    grid-row: 2;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .umdj-topbar-account {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
    gap: 0.3rem;
  }

  .umdj-topbar-name {
    display: none;
  }

  .umdj-topbar-avatar {
    width: 2.45rem;
    height: 2.45rem;
  }

  .umdj-topbar-chip,
  .umdj-topbar-patate {
    min-height: 1.6rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.75rem;
  }

  .umdj-sidebar.is-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(16rem, 48vw);
    z-index: 200;
    overflow: auto;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.45);
  }

  .umdj-sidebar.is-drawer .umdj-nav-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }

  .umdj-sidebar.is-drawer .umdj-nav-chevron {
    position: static;
    width: 0.45rem;
    height: 0.45rem;
    margin: 0.15rem 0 0 auto;
    padding: 0;
    overflow: visible;
    clip: auto;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .umdj-sidebar.is-drawer .umdj-nav-home,
  .umdj-sidebar.is-drawer .umdj-nav-toggle,
  .umdj-sidebar.is-drawer .umdj-nav-direct {
    justify-content: flex-start;
    padding: 0.55rem 0.9rem;
  }

  .umdj-sidebar.is-drawer .umdj-nav-block.is-open > .umdj-nav-children {
    position: fixed;
    top: 0;
    bottom: 0;
    left: min(16rem, 48vw);
    width: calc(100vw - min(16rem, 48vw) - 2.5rem);
    z-index: 201;
    display: block;
    margin: 0;
    padding: 0.35rem 0 1rem;
    background: #000;
    color: #fff;
    border: 0;
    border-left: 1px solid #2e323e;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: auto;
  }

  .umdj-sidebar.is-drawer .umdj-nav-row > .umdj-nav-badge {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
  }

  body.umdj-sidebar-drawer .umdj-sidebar-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 190;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
  }
}

@media (min-width: 768px) {
  .umdj-topbar-mark {
    display: block;
    position: relative;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
}

.home-fil-actu-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100svh;
  min-height: 0;
}

.home-fil-actu-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.home-fil-actu-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* Sous-menu interne des rubriques (sorties, tendances, à l'affiche, Mon UMDJ).
   La ligne d'onglets de section est dans le menu latéral. */
.games-section { width: 100%; }
.games-section-crumb {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: #c5d0e0;
}
.games-section-crumb a { color: inherit; text-decoration: none; }
.games-section-crumb a:hover { text-decoration: underline; }
.games-section-crumb [aria-hidden="true"] { margin: 0 0.35rem; }
.games-section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
.games-section-title svg {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  color: #4da3ff;
  display: block;
}
.games-section-lead {
  margin: 0.45rem 0 0;
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #d5dbe6;
}
.games-section-menu.games-explore-subtabs {
  display: grid;
  grid-template-columns: repeat(var(--menu-count, 1), minmax(0, 1fr));
  gap: clamp(0.45rem, 1vw, 0.8rem);
  width: 100%;
  margin: 1.15rem 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  filter: none;
  box-shadow: none;
}
.games-section-menu.games-explore-subtabs > .games-explore-subtab {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: none;
  min-height: clamp(2.75rem, 5vw, 3.35rem);
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(226, 232, 240, 0.28);
  border-radius: 0.95rem;
  background: #1b2433;
  color: #f8fafc;
  font-size: clamp(0.78rem, calc(0.62rem + 1.5rem / var(--menu-count, 4)), 1.12rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.games-section-menu.games-explore-subtabs > .games-explore-subtab:hover {
  background: #243044;
  color: #fff;
}
.games-section-menu.games-explore-subtabs > .games-explore-subtab.is-active,
.games-section-menu.games-explore-subtabs > .games-explore-subtab.is-active:hover {
  background: #f5c518;
  border-color: #f5c518;
  color: #1a1d24;
}
.games-section-menu.games-explore-subtabs > .games-explore-subtab.is-active:hover {
  background: #e6b40e;
}
.games-section-menu .games-explore-subtab__label {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
