/* ===============================================
   YIZA SHOP — nav.css  v3 (clean, no categories)
   =============================================== */

:root {
    --blue:      #2563eb;
    --blue2:     #60a5fa;
    --blue3:     #1d4ed8;
    --bg:        #03030a;
    --s1:        #080810;
    --b1:        rgba(255,255,255,0.055);
    --b2:        rgba(96,165,250,0.18);
    --b3:        rgba(96,165,250,0.07);
    --accent:    #f0f0ff;
    --text-dim:  rgba(240,240,255,0.32);
    --text-mid:  rgba(240,240,255,0.58);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* ── NAVBAR WRAPPER ── */
.y-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    transition: transform 0.4s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}

/* ── PILL ── */
.y-nav-pill {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: rgba(6,6,16,0.82);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 6px 8px 6px 10px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 32px rgba(0,0,0,0.4);
    pointer-events: auto;
    transition: border-color .3s;
}
.y-nav-pill:hover { border-color: rgba(255,255,255,0.09); }

/* ── LOGO ── */
.y-logo {
    display: flex; align-items: center; gap: 7px;
    font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 800;
    color: #fff; letter-spacing: -0.02em;
    text-decoration: none; flex-shrink: 0; user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.y-logo img {
    width: 28px; height: 28px; border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07);
}
.y-logo-dot {
    display: inline-block; width: 4px; height: 4px;
    background: var(--blue2); border-radius: 50%;
    animation: ydot 2.8s ease-in-out infinite;
}
@keyframes ydot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.6); }
}

/* ── LIENS DESKTOP ── */
.y-links {
    display: flex; gap: 2px; align-items: center;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.y-link {
    font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim); text-decoration: none;
    padding: 6px 10px; border-radius: 7px;
    transition: color .18s, background .18s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex; align-items: center; gap: 5px;
}
.y-link:hover  { color: rgba(240,240,255,0.85); background: rgba(255,255,255,0.05); }
.y-link.y-active { color: var(--blue2); }

.y-collections {
    position: relative;
    gap: 4px;
    cursor: default;
}
.y-collections svg { opacity: .7; transition: transform .2s ease; }
.y-collections:hover svg { transform: translateY(1px); }
.y-collections-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 180px;
    background: rgba(6,6,16,0.96);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.y-collections:hover .y-collections-menu,
.y-collections:focus-within .y-collections-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.y-collection-item {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(240,240,255,0.65);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color .18s, background .18s;
}
.y-collection-item:hover {
    color: #fff;
    background: rgba(96,165,250,0.14);
}
.y-collection-item.y-active {
    color: var(--blue2);
    background: rgba(96,165,250,0.12);
}

/* ── DROITE ── */
.y-nav-r {
    display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}

/* Panier */
.y-cart {
    position: relative; width: 34px; height: 34px;
    background: var(--b3); border: 1px solid var(--b2);
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background .2s, border-color .2s;
    -webkit-tap-highlight-color: transparent;
}
.y-cart:hover { background: rgba(96,165,250,0.13); border-color: rgba(96,165,250,0.35); }
.y-cart svg { width: 14px; height: 14px; stroke: var(--blue2); stroke-width: 2; fill: none; }
.y-cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--blue); color: #fff; font-size: 8px; font-weight: 900;
    width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
    animation: ypop .25s cubic-bezier(.22,1,.36,1);
}
@keyframes ypop { from { transform: scale(0); } to { transform: scale(1); } }

/* Connexion */
.y-btn-login {
    display: flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--blue2); background: var(--b3); border: 1px solid var(--b2);
    padding: 6px 11px; border-radius: 9px; text-decoration: none;
    transition: background .2s, border-color .2s; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.y-btn-login:hover { background: rgba(96,165,250,0.13); border-color: rgba(96,165,250,0.32); }
.y-btn-login svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Déconnexion */
.y-btn-logout {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); border: 1px solid var(--b1);
    border-radius: 9px; color: #fff; text-decoration: none; transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.y-btn-logout:hover { border-color: rgba(239,68,68,0.35); color: #f87171; background: rgba(239,68,68,0.06); }
.y-btn-logout svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Username */
.y-username {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-dim); padding: 0 2px;
}

/* Admin badge */
.y-admin {
    font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--blue2); text-decoration: none;
    padding-left: 10px; border-left: 1px solid var(--b1);
    transition: opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.y-admin:hover { opacity: 0.65; }

/* ── HAMBURGER ── */
.y-hbg {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--b1);
    display: none; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, border-color .2s;
}
.y-hbg:hover { background: var(--b3); border-color: var(--b2); }
.y-hbg svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2; fill: none; }

/* ── MENU MOBILE ── */
.y-mmenu {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(3,3,10,0.97);
    backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    transform: translateX(110%); visibility: hidden;
    transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s linear .38s;
    padding-top:    max(56px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    text-align: center; overflow-y: auto; pointer-events: none;
}
.y-mmenu.open {
    transform: translateX(0); visibility: visible;
    transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s;
    pointer-events: auto;
}
.y-mclose {
    position: absolute;
    top:   max(16px, calc(env(safe-area-inset-top) + 6px));
    right: max(16px, env(safe-area-inset-right));
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--b1);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s, border-color .2s;
    -webkit-tap-highlight-color: transparent; z-index: 1;
}
.y-mclose:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.y-mclose svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.y-mlink {
    font-family: 'Syne', sans-serif; font-weight: 800; text-transform: uppercase;
    font-size: clamp(1.5rem, 6.5vw, 2rem); letter-spacing: -0.02em;
    color: rgba(240,240,255,0.75); text-decoration: none;
    padding: 6px 0; display: block; width: 100%;
    transition: color .18s;
    -webkit-tap-highlight-color: transparent;
}
.y-mlink:hover, .y-mlink:active { color: #fff; }
.y-mlink.y-mactive { color: var(--blue2); }
.y-mdivider { width: 24px; height: 1px; background: rgba(255,255,255,0.06); flex-shrink: 0; margin: 4px 0; }
.y-mcollections {
    width: min(320px, 86vw);
}
.y-mcollections > summary {
    list-style: none;
    cursor: pointer;
}
.y-mcollections > summary::-webkit-details-marker { display: none; }
.y-mcollections-list {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}
.y-mlink-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(240,240,255,0.65);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    transition: border-color .2s, color .2s, background .2s;
}
.y-mlink-sub:hover,
.y-mlink-sub:active {
    color: #fff;
    border-color: rgba(96,165,250,0.45);
    background: rgba(96,165,250,0.12);
}
.y-mlink-sub.y-mactive {
    color: var(--blue2);
    border-color: rgba(96,165,250,0.45);
    background: rgba(96,165,250,0.12);
}
.y-mlink-sm {
    font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(240,240,255,0.25); text-decoration: none; transition: color .18s;
    padding: 4px 0; display: block;
    -webkit-tap-highlight-color: transparent;
}
.y-mlink-sm:hover { color: #fff; }
.y-mlink-sm.accent { color: var(--blue2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .y-links    { display: none; }
    .y-hbg      { display: flex; }
    .y-username { display: none; }
    .y-admin    { display: none; }
}
@media (max-width: 400px) {
    .y-btn-login span { display: none; }
    .y-nav-pill { padding: 5px 7px; }
}

/* ── CURSEUR CUSTOM (desktop) ── */
@media (pointer: fine) {
    body.custom-cursor { cursor: none; }
    .y-cursor {
        position: fixed; pointer-events: none; z-index: 99999;
        width: 8px; height: 8px; background: var(--blue2);
        border-radius: 50%; top: 0; left: 0;
        mix-blend-mode: difference;
        transition: width .22s, height .22s;
        transform: translate(-50%, -50%);
    }
    .y-cursor-ring {
        position: fixed; pointer-events: none; z-index: 99998;
        width: 30px; height: 30px;
        border: 1px solid rgba(96,165,250,0.38); border-radius: 50%;
        top: 0; left: 0;
        transform: translate(-50%, -50%);
    }
    .y-cursor.hover { width: 14px; height: 14px; }
    .y-cursor-ring.hover { border-color: rgba(96,165,250,0.6); }
}

/* ── TOAST ── */
.y-toast {
    position: fixed; z-index: 9999;
    left:   max(12px, env(safe-area-inset-left));
    right:  max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(8,8,18,0.95);
    border: 1px solid rgba(96,165,250,0.2); border-radius: 14px;
    padding: 12px 16px; color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    transform: translateY(100px); opacity: 0;
    transition: all .38s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.y-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.y-toast-icon {
    width: 22px; height: 22px; border-radius: 6px;
    background: rgba(96,165,250,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.y-toast-icon svg { width: 11px; height: 11px; stroke: var(--blue2); stroke-width: 2.5; fill: none; }

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.022; pointer-events: none; z-index: 9998;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--blue3); border-radius: 2px; }