/* ==========================================================================
   STYLE COMMUN ASTRALYTE
   ========================================================================== */

/* 1. VARIABLES */
:root {
    --bg-dark: #050505;
    --primary-purple: #8a2be2;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --navbar-height: 70px;
}

/* 2. RESET & ANIMATION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 3. BODY */
body {
    background-color: var(--bg-dark);
    background-image: url('../image/fond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-white);
    min-height: 100vh;
    padding-top: var(--navbar-height);
    animation: fadeIn 0.5s ease-in-out;
}

/* 4. NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--navbar-height);
    z-index: 1000; display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; background-color: var(--bg-dark); border-bottom: 1px solid #222;
    overflow: visible;
}

.navbar::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--primary-purple);
    box-shadow: 0 0 20px var(--primary-purple), 0 0 40px var(--primary-purple);
    z-index: 1001;
}

/* --- LOGO & NAV LINKS --- */
.nav-left { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 40px; width: auto; }
.logo-title { height: 30px; width: auto; }

.nav-links { display: flex; flex-grow: 1; justify-content: center; gap: 30px; }
.nav-links a { position: relative; color: var(--text-gray); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active-tab { color: var(--text-white); }

.nav-links a.active-tab::after {
    content: '';
    position: absolute; bottom: -28px; left: 0; width: 100%; height: 4px;
    background: var(--primary-purple);
    box-shadow: 0 0 10px var(--primary-purple), 0 0 20px var(--primary-purple), 0 0 30px var(--primary-purple);
    border-radius: 2px;
}

.nav-links a.active-tab::before {
    content: '';
    position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%);
    border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid var(--primary-purple);
    filter: drop-shadow(0 0 8px var(--primary-purple)) drop-shadow(0 0 15px var(--primary-purple));
}

/* --- PROFIL UTILISATEUR & AVATAR --- */
.nav-right-container { display: flex; align-items: center; gap: 20px; }

.user-profile { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* Avatar Réel */
.user-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid var(--primary-purple);
    flex-shrink: 0;
}

/* Placeholder Initiales (utilisé si pas de photo) */
.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.user-text-container { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.user-name { font-size: 0.85rem; font-weight: bold; }
.btn-small-link { background: none; border: none; color: var(--primary-purple); text-decoration: underline; font-size: 0.75rem; cursor: pointer; padding: 0; }

.btn-play-img img { height: 45px; transition: transform 0.3s; }
.btn-play-img:hover img { transform: scale(1.05); }

/* 5. FOOTER */
.footer { background-color: var(--bg-dark); border-top: 1px solid #222; padding: 50px 40px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col-right { align-items: center; justify-content: center; }

.f-title { color: var(--primary-purple); font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 1px; }
.f-col a { color: var(--text-gray); text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.f-col a:hover { color: var(--text-white); }
.f-desc { color: var(--text-gray); font-size: 0.85rem; line-height: 1.5; }

.f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.f-logo { height: 30px; }
.f-logo-big { height: 60px; margin-bottom: 10px; }
.f-brand-name { font-weight: bold; letter-spacing: 2px; }
.f-copyright { color: var(--text-gray); font-size: 0.8rem; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    .navbar { padding: 0 15px; }
    .nav-links { gap: 15px; }
}

@media (max-width: 850px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .f-col { align-items: center; }
}

