/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════
   Layout Shell
   ═══════════════════════════════════════════════════════ */
.page-with-fixed-topbar[b-z5kaouk8x3] {
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height */
    padding-top: 5rem;
    padding-top: calc(5rem + env(safe-area-inset-top));
}

/* ── Topbar fixe ── */
.topbar-fixed[b-z5kaouk8x3] {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1200;
    transition: box-shadow 0.3s ease;
    /* Respect de la Safe Area (notch iPhone) */
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
}

/* ── Topbar inner layout ── */
.topbar-inner[b-z5kaouk8x3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════
   Brand
   ═══════════════════════════════════════════════════════ */
.topbar-brand[b-z5kaouk8x3] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-wrap[b-z5kaouk8x3] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-ring[b-z5kaouk8x3] {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.5);
    animation: ringRotate 18s linear infinite;
    pointer-events: none;
}

.brand-logo[b-z5kaouk8x3] {
    display: block;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.topbar-brand:hover .brand-logo[b-z5kaouk8x3] { transform: scale(1.07); }

.brand-name[b-z5kaouk8x3] {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #e8d8b4;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   Nav Links — Desktop
   ═══════════════════════════════════════════════════════ */
.nav-links[b-z5kaouk8x3] {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-close[b-z5kaouk8x3] { display: none; }

.nav-links a[b-z5kaouk8x3], .nav-links .nav-button[b-z5kaouk8x3] {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    color: rgba(232, 216, 180, 0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-links a:hover[b-z5kaouk8x3], .nav-links a.active[b-z5kaouk8x3],
.nav-links .nav-button:hover[b-z5kaouk8x3] {
    color: #c9a96e;
    background: rgba(201,169,110,0.12);
}

.nav-links a.active[b-z5kaouk8x3] {
    color: #c9a96e;
}

/* Boutons CTA dans la nav */
.nav-button--cta[b-z5kaouk8x3] {
    background: rgba(201,169,110,0.18) !important;
    color: #c9a96e !important;
    border: 1px solid rgba(201,169,110,0.35) !important;
}
.nav-button--outline[b-z5kaouk8x3] {
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.nav-button--logout[b-z5kaouk8x3] {
    color: rgba(232,216,180,0.6) !important;
    font-size: 0.78rem !important;
}

/* ═══════════════════════════════════════════════════════
   Topbar Actions (Panier, User, Hamburger)
   ═══════════════════════════════════════════════════════ */
.topbar-actions[b-z5kaouk8x3] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.topbar-action-btn[b-z5kaouk8x3] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(232,216,180,0.85);
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}

.topbar-action-btn:hover[b-z5kaouk8x3] {
    background: rgba(201,169,110,0.15);
    color: #c9a96e;
}

.topbar-badge[b-z5kaouk8x3] {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c9a96e;
    color: #1a1410;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Hamburger ── */
.hamburger[b-z5kaouk8x3] {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1300;
    color: rgba(232,216,180,0.85);
}

.hamburger span[b-z5kaouk8x3] {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.hamburger--open span:nth-child(1)[b-z5kaouk8x3] { transform: translateY(8px) rotate(45deg); }
.hamburger--open span:nth-child(2)[b-z5kaouk8x3] { opacity: 0; transform: scaleX(0); }
.hamburger--open span:nth-child(3)[b-z5kaouk8x3] { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   Nav Overlay (fond sombre mobile)
   ═══════════════════════════════════════════════════════ */
.nav-overlay[b-z5kaouk8x3] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1090;
    backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════════════
   Mobile  ≤ 900px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .topbar-fixed[b-z5kaouk8x3] {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(0.65rem, env(safe-area-inset-top));
        padding-bottom: 0.65rem;
    }

    .page-with-fixed-topbar[b-z5kaouk8x3] {
        padding-top: calc(4.5rem + env(safe-area-inset-top));
    }

    .brand-name[b-z5kaouk8x3] { display: none; }
    .brand-logo[b-z5kaouk8x3] { height: 40px; width: 40px; }

    .hamburger[b-z5kaouk8x3] { display: flex; }
    .nav-overlay[b-z5kaouk8x3] { display: block; }

    /* Slide-in depuis la droite */
    .nav-links[b-z5kaouk8x3] {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: min(320px, 85vw);
        background: rgba(13, 11, 9, 0.98);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.25rem;
        z-index: 1200;
        padding: 1.5rem 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 40px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(201,169,110,0.15);
        /* Safe area bas */
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .nav-links--open[b-z5kaouk8x3] {
        right: 0;
    }

    /* Bouton fermer en haut à droite du panneau */
    .nav-close[b-z5kaouk8x3] {
        display: flex;
        align-self: flex-end;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border: none;
        background: rgba(255,255,255,0.06);
        color: rgba(232,216,180,0.7);
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        margin-bottom: 1rem;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    .nav-close:hover[b-z5kaouk8x3] { background: rgba(201,169,110,0.2); color: #c9a96e; }

    /* Header du panneau — Logo + Nom */
    .nav-links[b-z5kaouk8x3]::before {
        content: 'JoYceLife';
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.4rem;
        letter-spacing: 0.14em;
        color: #c9a96e;
        padding: 0.5rem 0 1rem;
        border-bottom: 1px solid rgba(201,169,110,0.2);
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a[b-z5kaouk8x3], .nav-links .nav-button[b-z5kaouk8x3] {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
        letter-spacing: 0.05em;
        color: rgba(232,216,180,0.85);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links a:hover[b-z5kaouk8x3], .nav-links a.active[b-z5kaouk8x3],
    .nav-links .nav-button:hover[b-z5kaouk8x3] {
        background: rgba(201,169,110,0.1);
        color: #c9a96e;
    }

    .nav-button--cta[b-z5kaouk8x3], .nav-button--outline[b-z5kaouk8x3] {
        margin-top: 0.5rem;
        justify-content: center;
        text-align: center;
    }
    .nav-button--logout[b-z5kaouk8x3] { margin-top: auto; color: rgba(232,216,180,0.5) !important; }
}

/* ── Très petits écrans ≤ 380px ── */
@media (max-width: 380px) {
    .brand-logo[b-z5kaouk8x3] { height: 36px; width: 36px; }
    .topbar-action-btn[b-z5kaouk8x3] { width: 34px; height: 34px; }
}


/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ujf3r7nzew],
.components-reconnect-repeated-attempt-visible[b-ujf3r7nzew],
.components-reconnect-failed-visible[b-ujf3r7nzew],
.components-pause-visible[b-ujf3r7nzew],
.components-resume-failed-visible[b-ujf3r7nzew],
.components-rejoining-animation[b-ujf3r7nzew] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-retrying[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-failed[b-ujf3r7nzew],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ujf3r7nzew] {
    display: block;
}


#components-reconnect-modal[b-ujf3r7nzew] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ujf3r7nzew 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ujf3r7nzew 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ujf3r7nzew 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ujf3r7nzew]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ujf3r7nzew 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ujf3r7nzew {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ujf3r7nzew {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ujf3r7nzew {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ujf3r7nzew] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ujf3r7nzew] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ujf3r7nzew] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ujf3r7nzew] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ujf3r7nzew] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ujf3r7nzew] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ujf3r7nzew] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ujf3r7nzew 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ujf3r7nzew] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ujf3r7nzew {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
