/* Overlay de chargement — navigation admin / vitrine */
#page-nav-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 250, 250, .78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

#page-nav-loader.is-active {
    opacity: 1;
    pointer-events: auto;
}

#page-nav-loader .pnl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 30px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    min-width: 200px;
}

#page-nav-loader .pnl-mark-wrap {
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-nav-loader .pnl-mark-wrap .brand-mark {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Tracé « A » — longueurs réelles (plus fiable que pathLength="1") */
#page-nav-loader .brand-stroke,
#page-nav-loader.is-active .brand-stroke {
    fill: none;
    stroke: var(--museum-gold, #c9a86a);
    stroke-width: 2.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(201, 168, 106, .35));
}

#page-nav-loader .brand-stroke-left {
    stroke-dasharray: 46;
    stroke-dashoffset: 46;
}

#page-nav-loader .brand-stroke-right {
    stroke-dasharray: 46;
    stroke-dashoffset: 46;
}

#page-nav-loader .brand-stroke-bar {
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
}

@keyframes pnl-draw-left {
    0% { stroke-dashoffset: 46; opacity: .4; }
    45% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 46; opacity: .4; }
}

@keyframes pnl-draw-right {
    0% { stroke-dashoffset: 46; opacity: .4; }
    45% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 46; opacity: .4; }
}

@keyframes pnl-draw-bar {
    0% { stroke-dashoffset: 28; opacity: .4; }
    45% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 28; opacity: .4; }
}

#page-nav-loader.is-active .brand-stroke-left {
    animation: pnl-draw-left 2s ease-in-out infinite;
}

#page-nav-loader.is-active .brand-stroke-right {
    animation: pnl-draw-right 2s ease-in-out infinite;
    animation-delay: .22s;
}

#page-nav-loader.is-active .brand-stroke-bar {
    animation: pnl-draw-bar 2s ease-in-out infinite;
    animation-delay: .44s;
}

#page-nav-loader .pnl-label {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
    #page-nav-loader .brand-stroke {
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
        animation: none !important;
        filter: none;
    }
}
