/* ==========================================================================
   site-mobile-nav.css — Menu latéral mobile (v2) + sous-barre GameZone
   Actif avec body.header-nav-icons-test, ≤768 px uniquement pour le visuel.
   ========================================================================== */

@media (max-width: 768px) {
  /* Pas de bande orange claire sous le header (box-shadow style.css) */
  body.header-nav-icons-test .site-header {
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 0;
  }

  body.header-nav-icons-test .site-nav-drawer--v2[hidden] {
    display: none !important;
  }

  body.header-nav-icons-test .site-nav-drawer--v2 {
    width: min(340px, 92vw);
    padding: 0;
    background: linear-gradient(180deg, #1a0d3a 0%, #120628 100%);
    border-left: 2px solid rgba(232, 148, 88, 0.72);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0;
    --site-nav-drawer-divider: rgba(194, 178, 228, 0.72);
    --site-nav-drawer-divider-inset: 0.75rem;
  }

  body.header-nav-icons-test .site-nav-drawer-head {
    padding: 1rem 1rem 0;
    border-bottom: none;
  }

  body.header-nav-icons-test .site-nav-drawer-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }

  body.header-nav-icons-test .site-nav-drawer-logo-link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
  }

  body.header-nav-icons-test .site-nav-drawer-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: min(220px, 72vw);
    object-fit: contain;
    object-position: left center;
  }

  body.header-nav-icons-test .site-nav-drawer-logo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.72rem;
    color: #fff;
    text-decoration: none;
  }

  body.header-nav-icons-test .site-nav-drawer-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }

  body.header-nav-icons-test .site-nav-drawer-close span {
    display: block;
    line-height: 1;
    transform: translateY(-2px);
  }

  body.header-nav-icons-test .site-nav-drawer-close:hover,
  body.header-nav-icons-test .site-nav-drawer-close:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
  }

  body.header-nav-icons-test .site-nav-drawer-close:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.62);
    transform: scale(0.96);
  }

  body.header-nav-icons-test .site-nav-drawer-tagline {
    margin: 0.1rem 0 0;
    padding: 0.15rem 0 0;
    font-family: 'Exo 2', 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(236, 210, 150, 0.94);
    letter-spacing: 0.015em;
    line-height: 1.35;
  }

  body.header-nav-icons-test .site-nav-drawer-tagline::after {
    content: '';
    display: block;
    height: 1px;
    margin: 0.75rem var(--site-nav-drawer-divider-inset) 0.75rem;
    background: var(--site-nav-drawer-divider);
  }

  body.header-nav-icons-test .site-nav-drawer-section {
    padding: 0 1rem;
  }

  body.header-nav-icons-test .site-nav-drawer-section:first-of-type {
    padding-top: 0;
  }

  body.header-nav-icons-test .site-nav-drawer-section + .site-nav-drawer-section::before {
    content: '';
    display: block;
    height: 1px;
    margin: 0.75rem var(--site-nav-drawer-divider-inset) 0.75rem;
    background: var(--site-nav-drawer-divider);
  }

  body.header-nav-icons-test .site-nav-drawer-section + .site-nav-drawer-section {
    padding-top: 0;
  }

  body.header-nav-icons-test .site-nav-drawer-section--social {
    padding-bottom: 1.25rem;
  }

  body.header-nav-icons-test .site-nav-drawer-section-title {
    margin: 0 0 0.55rem;
    font-family: 'Exo 2', 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
  }

  body.header-nav-icons-test .site-nav-drawer-cards {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  body.header-nav-icons-test .site-nav-drawer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
  }

  body.header-nav-icons-test a.site-nav-drawer-card.is-nav-disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
  }

  body.header-nav-icons-test .site-nav-drawer-card:hover,
  body.header-nav-icons-test .site-nav-drawer-card:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  body.header-nav-icons-test .site-nav-drawer-card.is-active {
    background: rgba(164, 66, 216, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  body.header-nav-icons-test .site-nav-drawer-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  body.header-nav-icons-test .site-nav-drawer-card-icon .site-nav-icon-img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
  }

  body.header-nav-icons-test .site-nav-drawer-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
  }

  body.header-nav-icons-test .site-nav-drawer-card-label {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
  }

  body.header-nav-icons-test .site-nav-drawer-card-sub {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 500;
  }

  body.header-nav-icons-test .site-nav-drawer-card.is-active .site-nav-drawer-card-sub {
    color: rgba(255, 255, 255, 0.72);
  }

  body.header-nav-icons-test .site-nav-drawer-tools {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
  }

  body.header-nav-icons-test .site-nav-drawer-tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.8rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
  }

  body.header-nav-icons-test .site-nav-drawer-tool-link > :first-child {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }

  body.header-nav-icons-test .site-nav-drawer-tool-link:hover,
  body.header-nav-icons-test .site-nav-drawer-tool-link:focus {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
  }

  body.header-nav-icons-test a.site-nav-drawer-tool-link.is-nav-disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
  }

  body.header-nav-icons-test .site-nav-drawer-tool-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  body.header-nav-icons-test .site-nav-drawer-tool-icon--search {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.92;
  }

  body.header-nav-icons-test .site-nav-drawer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
  }

  body.header-nav-icons-test .site-nav-drawer-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    width: auto;
    min-width: 52px;
    height: auto;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: transform 0.15s, filter 0.15s;
  }

  body.header-nav-icons-test a.site-nav-drawer-social-btn.is-nav-disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
  }

  body.header-nav-icons-test .site-nav-drawer-social-btn:hover,
  body.header-nav-icons-test .site-nav-drawer-social-btn:focus {
    background: transparent;
    filter: brightness(1.1);
    transform: scale(1.04);
  }

  body.header-nav-icons-test .site-nav-drawer-social-btn img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
  }

  body.header-nav-icons-test .site-nav-drawer-social-label {
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.02em;
  }

  body.header-nav-icons-test .site-nav-drawer-social-btn:hover .site-nav-drawer-social-label,
  body.header-nav-icons-test .site-nav-drawer-social-btn:focus .site-nav-drawer-social-label {
    color: rgba(255, 255, 255, 0.62);
  }

  /* ── GameZone : sous-barre mobile (point 1 maquette) ───────────────────── */

  body.header-nav-icons-test .gamezone-categories-menu {
    background: #fffaf3;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
  }

  body.header-nav-icons-test .gz-cat-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(164, 66, 216, 0.12);
  }

  body.header-nav-icons-test .gz-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    text-decoration: none;
    color: var(--mauve, #a442d8);
    font-weight: 800;
    font-size: 1.05rem;
    font-family: 'Exo 2', 'Inter', sans-serif;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    transition: color 0.15s;
  }

  body.header-nav-icons-test .gamezone-categories-menu .gz-mobile-brand:hover,
  body.header-nav-icons-test .gamezone-categories-menu .gz-mobile-brand:focus-visible {
    color: #ffcc00;
    background: transparent;
  }

  body.header-nav-icons-test .gamezone-categories-menu .gz-mobile-brand:hover::after,
  body.header-nav-icons-test .gamezone-categories-menu .gz-mobile-brand:focus-visible::after {
    display: none !important;
    content: none !important;
  }

  body.header-nav-icons-test .gamezone-categories-menu .gz-mobile-brand:hover .gz-mobile-brand-icon,
  body.header-nav-icons-test .gamezone-categories-menu .gz-mobile-brand:focus-visible .gz-mobile-brand-icon {
    filter: brightness(1.12);
  }

  /* Masquer la barre GameZone quand le méga-menu catégories est ouvert */
  body.header-nav-icons-test .gamezone-categories-menu.open .gz-cat-mobile-bar {
    display: none;
  }

  body.header-nav-icons-test .gz-mobile-brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  body.header-nav-icons-test .gz-mobile-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.35rem 0.1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--mauve, #a442d8);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
  }

  body.header-nav-icons-test .gz-mobile-cat-btn:hover,
  body.header-nav-icons-test .gz-mobile-cat-btn:focus-visible {
    background: transparent;
    color: var(--orange, #ff7f11);
  }

  body.header-nav-icons-test .gz-mobile-cat-icon {
    display: none;
  }

  body.header-nav-icons-test .gamezone-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.3rem 0.65rem 0.55rem;
    background: #fffaf3;
  }

  body.header-nav-icons-test .gamezone-topbar-breadcrumb {
    display: none;
  }

  body.header-nav-icons-test .gamezone-topbar-actions {
    width: 100%;
  }

  body.header-nav-icons-test .gamezone-topbar-search {
    justify-content: stretch;
  }

  body.header-nav-icons-test .gamezone-topbar-search-form {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.header-nav-icons-test .gamezone-topbar-search-form input[type="text"] {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  body.header-nav-icons-test .gamezone-charte-wrapper .gz-cat-menu-wrap + .gamezone-main .gamezone-topbar,
  body.header-nav-icons-test .gamezone-charte-wrapper > .gamezone-main > .gamezone-topbar {
    margin-top: 0;
  }

  /* ── JoL : sous-barre mobile (alignée GameZone) ─────────────────────────── */

  body.header-nav-icons-test .jol-subnav {
    background: #fffaf3;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
  }

  body.header-nav-icons-test .jol-subnav.open .jol-subnav-mobile-bar {
    display: none;
  }

  body.header-nav-icons-test .jol-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    text-decoration: none;
    color: var(--mauve, #a442d8);
    font-weight: 800;
    font-size: 1.05rem;
    font-family: 'Exo 2', 'Inter', sans-serif;
    letter-spacing: 0.01em;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    transition: color 0.15s;
  }

  body.header-nav-icons-test .jol-subnav .jol-mobile-brand:hover,
  body.header-nav-icons-test .jol-subnav .jol-mobile-brand:focus-visible {
    color: #ffcc00;
    background: transparent;
  }

  body.header-nav-icons-test .jol-subnav .jol-mobile-brand:hover::after,
  body.header-nav-icons-test .jol-subnav .jol-mobile-brand:focus-visible::after {
    display: none !important;
    content: none !important;
  }

  body.header-nav-icons-test .jol-mobile-brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  body.header-nav-icons-test .jol-subnav .jol-mobile-brand:hover .jol-mobile-brand-icon,
  body.header-nav-icons-test .jol-subnav .jol-mobile-brand:focus-visible .jol-mobile-brand-icon {
    filter: brightness(1.12);
  }

  body.header-nav-icons-test .jol-subnav-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(164, 66, 216, 0.12);
  }

  body.header-nav-icons-test .jol-mobile-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.35rem 0.1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--mauve, #a442d8);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
  }

  body.header-nav-icons-test .jol-mobile-cat-btn:hover,
  body.header-nav-icons-test .jol-mobile-cat-btn:focus-visible {
    background: transparent;
    color: var(--orange, #ff7f11);
  }

  body.header-nav-icons-test .jol-mobile-cat-icon {
    display: none;
  }

  body.header-nav-icons-test .jol-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.3rem 0.65rem 0.55rem;
    background: #fffaf3;
  }

  body.header-nav-icons-test .jol-breadcrumb {
    display: none;
  }

  body.header-nav-icons-test .jol-topbar-actions {
    width: 100%;
  }

  body.header-nav-icons-test .jol-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.header-nav-icons-test .jol-search-form {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.header-nav-icons-test .jol-search-form input[type="text"] {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}
