/* ============================================================
   VIRILACCESSORIES — loader.css
   Animation de chargement au lancement de la page
   Ajoutez ce fichier et linkez-le dans votre HTML
   ============================================================ */

/* ── ÉCRAN DE CHARGEMENT ── */
#viril-loader {
    position: fixed;
    inset: 0;
    background: #292a29;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#viril-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── LOGO ── */
.loader-logo {
    width: 90px;
    height: auto;
    animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.95); }
}

/* ── NOM DE LA MARQUE ── */
.loader-brand {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 4vw, 1.4rem);
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    animation: loaderFadeIn 0.8s ease 0.3s forwards;
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── TAGLINE ── */
.loader-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
    opacity: 0;
    animation: loaderFadeIn 0.8s ease 0.6s forwards;
}

/* ── BARRE DE PROGRESSION ── */
.loader-bar-container {
    width: clamp(160px, 40vw, 260px);
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: loaderFadeIn 0.5s ease 0.4s forwards;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #906543, #FF9E6D, #906543);
    background-size: 200% 100%;
    border-radius: 2px;
    animation:
        loaderBarFill 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards,
        loaderBarShine 1.5s linear 0.5s infinite;
}

@keyframes loaderBarFill {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

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

/* ── LIGNE DÉCORATIVE ── */
.loader-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF9E6D, transparent);
    opacity: 0;
    animation: loaderFadeIn 0.5s ease 0.8s forwards;
}
