/* Glorion Outsingoula Oumona - extracted from templates/base.html and templates/main/base.html */
/* LINKEDIN-STYLE ULTRA-PREMIUM SKELETON SYSTEM */

/* 1. ÉTAT INITIAL : MASQUAGE RADICAL ET INSTANTANÉ */
html:not(.icons-ready) .material-symbols-outlined,
html:not(.icons-ready) .fas, html:not(.icons-ready) .fab, html:not(.icons-ready) .far, html:not(.icons-ready) .fa,
html:not(.icons-ready) .profile img, html:not(.icons-ready) .profile-photo img, html:not(.icons-ready) .profile-photo svg, html:not(.icons-ready) .profile-photo div, html:not(.icons-ready) .profile-photo,
html:not(.icons-ready) .nav-profile-img img, html:not(.icons-ready) .nav-initials, html:not(.icons-ready) .user-menu .nav-profile-img, html:not(.icons-ready) aside .top .logo img {
    visibility: hidden !important;
    opacity: 0 !important;
    position: relative !important;
}

/* 2. LE SKELETON (PSEUDO-ÉLÉMENT) */
html:not(.icons-ready) .material-symbols-outlined::before,
html:not(.icons-ready) .fas::before, html:not(.icons-ready) .fab::before, html:not(.icons-ready) .far::before, html:not(.icons-ready) .fa::before,
html:not(.icons-ready) .profile::before, html:not(.icons-ready) .profile-photo::before, html:not(.icons-ready) .nav-profile-img::before, html:not(.icons-ready) aside .top .logo::before {
    content: "" !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 24px !important;
    min-height: 24px !important;
    background: #eef3f8 !important; /* Couleur LinkedIn */
    background: linear-gradient(90deg, #eef3f8 0%, #f3f6f8 50%, #eef3f8 100%) !important;
    background-size: 200% 100% !important;
    animation: linkedin-shimmer 1.5s infinite linear !important;
    border-radius: 4px !important;
    z-index: 10000 !important;
}

html:not(.icons-ready) .profile::before, html:not(.icons-ready) .profile-photo::before, html:not(.icons-ready) .nav-profile-img::before, html:not(.icons-ready) aside .top .logo::before {
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
}

@keyframes linkedin-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 3. REVEAL : RESTAURATION INVISIBLE ET FLUIDE */
html.icons-ready .material-symbols-outlined,
html.icons-ready .fas, html.icons-ready .fab, html.icons-ready .far, html.icons-ready .fa,
html.icons-ready .profile img, html.icons-ready .profile-photo img,
html.icons-ready .profile-photo svg, html.icons-ready .profile-photo div,
html.icons-ready .profile-photo, html.icons-ready .nav-profile-img img,
html.icons-ready .nav-initials, html.icons-ready .user-menu .nav-profile-img,
html.icons-ready aside .top .logo img {
    visibility: visible !important;
    opacity: 1 !important;
    animation: linkedin-fade-in 0.3s ease-out !important;
}

/* Suppression du skeleton au reveal */
html.icons-ready .material-symbols-outlined::before,
html.icons-ready .fas::before, html.icons-ready .fab::before,
html.icons-ready .far::before, html.icons-ready .fa::before,
html.icons-ready .profile::before,
html.icons-ready .profile-photo::before,
html.icons-ready .nav-profile-img::before,
html.icons-ready aside .top .logo::before {
    display: none !important;
    content: none !important;
}

@keyframes linkedin-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
