/* ============================================================
   PF2026 — Components (nav, buttons, cards, badges, footer, etc.)
   ============================================================ */

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 66px;
    gap: 4px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 28px;
    flex-shrink: 0;
    line-height: 1;
    height: 38px;
}
.nav-logo-text { display: flex; flex-direction: column; justify-content: center; height: 38px; line-height: 1.05; }

.nav-logo-ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    overflow: hidden;
    position: relative;
    background: var(--white);
    flex-shrink: 0;
}
.nav-logo-ball .ball-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--red);
}
.nav-logo-ball .ball-mid {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--ink);
    transform: translateY(-50%);
}
.nav-logo-ball .ball-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--ink);
    z-index: 2;
}

.nav-logo-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.nav-logo-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--ink-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex: 1;
    margin: 0;            /* reset défaut <ul> */
    padding: 0;
    height: 38px;         /* aligne sur la hauteur de .nav-logo */
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Pont invisible sous chaque nav-item : couvre le gap de 12px (et un peu plus
   à gauche/droite) entre le link et le mega-menu, pour que le hover ne se
   perde pas quand la souris descend vers le menu. */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 18px;
    pointer-events: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;          /* remplit la hauteur du nav-item pour alignement parfait */
    padding: 0 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-mid);
    border-radius: var(--r-xs);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active,
.current-menu-item > .nav-link,
.current-menu-parent > .nav-link {
    color: var(--ink);
    background: var(--cream);
}
.nav-link.active,
.current-menu-item > .nav-link {
    position: relative;
}
.nav-link.active::after,
.current-menu-item > .nav-link::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--yellow);
    border-radius: 1px;
}
.nav-link--news {
    font-weight: 500;
    color: var(--ink-faint);
    font-size: 13px;
}
.nav-arrow {
    font-size: 9px;
    opacity: .5;
    transition: transform .15s;
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--r-full);
}

/* ---------- Mega menu ---------- */
.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    min-width: 480px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transition: all .22s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.mega-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.mega-col h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 8px 10px 4px;
    margin-bottom: 2px;
}
.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-mid);
    border-radius: var(--r-xs);
    transition: all .12s;
}
.mega-link:hover {
    background: var(--cream);
    color: var(--ink);
}
.mega-featured {
    margin-top: 12px;
    padding: 12px;
    background: var(--cream);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}
.mega-featured-img {
    width: 48px;
    height: 48px;
    border-radius: var(--r-xs);
    background: var(--border);
    overflow: hidden;
    flex-shrink: 0;
}
.mega-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mega-featured-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--yellow-dark);
    letter-spacing: .05em;
}
.mega-featured-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

/* ---------- Nav right ---------- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.btn-search {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--r-xs);
    cursor: pointer;
    color: var(--ink-mid);
    font-size: 18px;
    transition: all .15s;
}
.btn-search:hover {
    background: var(--cream);
    color: var(--ink);
}
.btn-login {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mid);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all .15s;
}
.btn-login:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.btn-register {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    background: var(--yellow);
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all .15s;
}
.btn-register:hover { background: var(--yellow-dark); }

/* ---------- Search bar (popup ancré à droite sous 🔍) ---------- */
.nav-search-popup {
    position: absolute;
    top: 70px;
    right: max(16px, calc((100vw - 1200px) / 2 + 16px));
    z-index: 250;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px;
    width: 420px;
    max-width: calc(100vw - 32px);
    animation: pf26-search-slide .22s cubic-bezier(.16, 1, .3, 1);
}
@keyframes pf26-search-slide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-search-form input[type="search"] {
    flex: 1;
    padding: 9px 14px;
    font-family: var(--font);
    font-size: 14px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    color: var(--ink);
    transition: border-color .15s, background .15s;
}
.nav-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--white);
}
.btn-search-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--cream);
    border-radius: var(--r-full);
    cursor: pointer;
    color: var(--ink-light);
    font-size: 13px;
    transition: all .15s;
}
.btn-search-close:hover {
    background: var(--ink);
    color: white;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 203, 5, .4);
}
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: var(--ink-mid); transform: translateY(-1px); }
.btn-white { background: white; color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn-ghost {
    background: rgba(255, 255, 255, .15);
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .25); }
.btn-outline {
    background: transparent;
    color: var(--ink-mid);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* ---------- Type badges (cf. taxonomie pokemon_type) ---------- */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: white;
}
.type-badge.normal   { background: var(--type-normal); }
.type-badge.feu      { background: var(--type-feu); }
.type-badge.eau      { background: var(--type-eau); }
.type-badge.insecte  { background: var(--type-insecte); }
.type-badge.vol      { background: var(--type-vol); color: var(--ink); }
.type-badge.poison   { background: var(--type-poison); }
.type-badge.sol      { background: var(--type-sol); }
.type-badge.roche    { background: var(--type-roche); color: var(--ink); }
.type-badge.combat   { background: var(--type-combat); }
.type-badge.psy      { background: var(--type-psy); }
.type-badge.spectre  { background: var(--type-spectre); }
.type-badge.glace    { background: var(--type-glace); color: var(--ink); }
.type-badge.dragon   { background: var(--type-dragon); }
.type-badge.tenebre  { background: var(--type-tenebre); }
.type-badge.acier    { background: var(--type-acier); color: var(--ink); }
.type-badge.fee      { background: var(--type-fee); color: var(--ink); }
.type-badge.electrik { background: var(--type-electrik); color: var(--ink); }
.type-badge.plante   { background: var(--type-plante); }

/* ---------- Section headers ---------- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--ink);
}
.section-sub {
    font-size: 14px;
    color: var(--ink-light);
    margin-top: 3px;
    font-weight: 400;
}
.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.section-link:hover { color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-light);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-light); font-weight: 500; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { opacity: .4; font-size: 12px; }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

/* ---------- Cards (gameuse / article tease) ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.game-card {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.game-card-thumb {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}
.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-card-thumb-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.game-card-body { padding: 12px 14px; }
.game-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
    line-height: 1.3;
}
.game-card-meta {
    font-size: 11px;
    color: var(--ink-light);
}

/* ---------- "Vos Aventures" — 4 cards curatées (Jeux, Pokédex, Animé, JCC) ---------- */
.aventures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.aventure-card {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.aventure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.aventure-card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--cream);
}
.aventure-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.aventure-card:hover .aventure-card-thumb img {
    transform: scale(1.04);
}
.aventure-card-body { padding: 14px 16px; }
.aventure-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}
.aventure-card-sub {
    font-size: 12px;
    color: var(--ink-light);
    margin-top: 3px;
}
@media (max-width: 920px) { .aventures-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .aventures-grid { grid-template-columns: 1fr; } }

/* ---------- Games by generation grid ---------- */
/* Réutilise les classes .game-box / .game-box-cover de archive.css
   (mêmes aspect-ratio par plateforme + rotation variantes 3s). */
.games-by-gen { padding: 40px 0; }
.games-by-gen .gen-grid {
    margin-top: 18px;
    /* Override : un peu plus serré que la bibliothèque pour caser 9 gens. */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}
.games-by-gen .gen-card-gen {
    font-size: 10px;
    font-weight: 700;
    color: var(--yellow-dark);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}

/* ---------- Guide chapter navigation (prev / next) ---------- */
.guide-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 32px 0 24px;
}
.guide-nav-prev, .guide-nav-next {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    transition: all .15s;
}
.guide-nav-prev:hover, .guide-nav-next:hover { background: var(--white); border-color: var(--ink); }
.guide-nav-prev { text-align: left; }
.guide-nav-next { text-align: right; }
.guide-nav-arrow { font-size: 18px; color: var(--ink); font-weight: 700; }
.guide-nav-label { font-size: 11px; color: var(--ink-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.guide-nav-title { font-size: 14px; color: var(--ink); font-weight: 700; line-height: 1.25; }
@media (max-width: 640px) { .guide-nav { grid-template-columns: 1fr; } }

/* ---------- Bento dex pill ---------- */
.bento-dex-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    backdrop-filter: blur(8px);
    margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: white;
    padding: 56px 0 28px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}
.footer-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 8px;
}
.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.75;
    max-width: 220px;
}
.footer-since {
    font-size: 11px;
    font-weight: 700;
    color: var(--yellow);
    margin-top: 14px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.footer-col h4 {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 9px;
    transition: color .15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
    width: 30px;
    height: 30px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    transition: all .15s;
    text-decoration: none;
}
.footer-social:hover {
    background: rgba(255, 255, 255, .15);
    color: white;
}

/* ---------- Mobile breakpoint baseline ---------- */
@media (max-width: 900px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .nav-menu { display: none; }
}

/* ============================================================
   Header — Waffle button & Mobile mega-menu drawer
   ============================================================ */

/* Le waffle est masqué sur desktop (le mega-menu inline suffit),
   visible uniquement < 901px. */
.nav-waffle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--r-sm, 8px);
    color: var(--ink);
    cursor: pointer;
    transition: background-color .15s ease;
}
.nav-waffle:hover,
.nav-waffle:focus-visible { background: rgba(13, 13, 28, 0.06); outline: none; }
.nav-waffle:focus-visible { box-shadow: 0 0 0 2px var(--blue, #2563EB); }

@media (max-width: 900px) {
    .nav-waffle { display: inline-flex; }
    /* État NON connecté : cache le bouton "Connexion" — le "S'inscrire"
       reste en CTA visible (un seul CTA en haut, pas de doublon). */
    .btn-login--desktop { display: none !important; }
    /* Compact le bouton "S'inscrire" pour qu'il tienne sur petit écran. */
    .nav-right .btn-register {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* État CONNECTÉ : la classe `.pf-passlord-logged-in` est posée sur
       <html> par `mu-plugins/pf-passlord-integration.php` après fetch
       /auth/session OK. Le bouton .btn-login devient le chip pseudo
       (texte muté par le JS d'hydratation), la "Déconnexion" reste
       accessible via le drawer mobile (footer). */
    html.pf-passlord-logged-in .btn-login--desktop {
        display: inline-flex !important;
        align-items: center;
        padding: 7px 12px;
        font-size: 13px;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    html.pf-passlord-logged-in .nav-right .btn-register {
        /* "Déconnexion" muté par le JS — caché sur mobile (présent dans
           le drawer footer). */
        display: none !important;
    }
}

/* Compact le sous-titre "Depuis 1999" sur très petit écran (< 380px,
   typiquement iPhone SE) pour éviter le retour à la ligne disgracieux. */
@media (max-width: 380px) {
    .nav-logo-sub { font-size: 10px; }
    .nav-logo-name { font-size: 15px; }
}

/* ---------- Mobile drawer ---------- */

.nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
}
.nav-mobile[hidden] { display: none; }

.nav-mobile__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 28, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: pf26-fade-in .18s ease both;
}

.nav-mobile__panel {
    position: relative;
    z-index: 1;
    width: min(360px, 86vw);
    max-width: 100%;
    height: 100dvh;
    background: var(--cream, #F7F6F2);
    box-shadow: 4px 0 24px rgba(13, 13, 28, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pf26-slide-in .25s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes pf26-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pf26-slide-in {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* ---------- Header du drawer ---------- */

.nav-mobile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(13, 13, 28, 0.08);
    background: #fff;
}

.nav-mobile__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}
.nav-logo-ball--sm { transform: scale(.7); margin-left: -6px; }

.nav-mobile__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--ink-mid);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.nav-mobile__close:hover,
.nav-mobile__close:focus-visible {
    background: rgba(13, 13, 28, 0.06);
    color: var(--ink);
    outline: none;
}

/* ---------- Body scroll + sections ---------- */

.nav-mobile__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
}

.nav-mobile__home,
.nav-mobile__flat-link {
    display: block;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 13, 28, 0.06);
    transition: background .15s ease;
}
.nav-mobile__home:hover,
.nav-mobile__home:focus-visible,
.nav-mobile__flat-link:hover,
.nav-mobile__flat-link:focus-visible {
    background: rgba(255, 203, 5, 0.10); /* yellow soft hover */
    outline: none;
}

.nav-mobile__section {
    border-bottom: 1px solid rgba(13, 13, 28, 0.06);
}
.nav-mobile__section > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .15s ease;
}
.nav-mobile__section > summary::-webkit-details-marker { display: none; }
.nav-mobile__section > summary:hover,
.nav-mobile__section > summary:focus-visible {
    background: rgba(255, 203, 5, 0.10);
    outline: none;
}

.nav-mobile__section-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    width: 22px;
    text-align: center;
}

.nav-mobile__chevron {
    margin-left: auto;
    color: var(--ink-light);
    font-size: 13px;
    transition: transform .2s ease;
}
.nav-mobile__section[open] > summary > .nav-mobile__chevron {
    transform: rotate(180deg);
}

.nav-mobile__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--red, #CC0000);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.nav-mobile__group {
    padding: 4px 12px 12px;
    background: rgba(13, 13, 28, 0.02);
}
.nav-mobile__group + .nav-mobile__group { padding-top: 8px; }
.nav-mobile__group h5 {
    margin: 12px 8px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.nav-mobile__group a {
    display: block;
    padding: 10px 12px;
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background .12s ease, color .12s ease;
}
.nav-mobile__group a:hover,
.nav-mobile__group a:focus-visible {
    background: #fff;
    color: var(--ink);
    outline: none;
}

/* "Voir tous les jeux →" — CTA en bas de section Jeux & Guides (mobile only).
   Sur desktop, le clic sur le titre de section ouvre l'archive ; sur mobile,
   le clic sur le summary expand/collapse, donc on a besoin d'un lien explicite. */
.nav-mobile__see-all {
    display: block;
    margin: 8px 12px 12px;
    padding: 12px 14px;
    background: var(--ink, #111);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: opacity .12s ease;
}
.nav-mobile__see-all:hover,
.nav-mobile__see-all:focus-visible {
    color: #fff;
    opacity: .85;
    outline: none;
}

/* ---------- Footer CTA (Connexion + S'inscrire) ---------- */

.nav-mobile__footer {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid rgba(13, 13, 28, 0.08);
}
.nav-mobile__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.nav-mobile__cta--ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.nav-mobile__cta--primary {
    background: var(--yellow, #FFCB05);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--yellow-dark, #E6B600) inset, 0 2px 8px rgba(255, 203, 5, .25);
}
.nav-mobile__cta:active {
    transform: translateY(1px);
}

/* ---------- Body lock when drawer open ---------- */

body.pf26-menu-open {
    overflow: hidden;
    /* Évite que le contenu derrière scroll iOS-style. */
}
