/* css/style.css */
:root {
    --glass-bg: rgba(255, 255, 255, 0.45);
    --primary: #8b5cf6;
    --secondary: #ec4899;
}

body {
    background: linear-gradient(270deg, #fbcfe8, #e9d5ff, #bae6fd);
    background-size: 600% 600%;
    animation: gradientBG 20s ease infinite;
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    padding-top: 100px; 
    color: #334155;
}

@keyframes gradientBG { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }

/* --- NAVBAR & MEGA MENU --- */
.crystal-nav {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6); 
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    padding: 10px 20px;
}

.brand-title { 
    font-family: 'Dancing Script', cursive; 
    font-size: 1.8rem; 
    font-weight: 800; 
    background: linear-gradient(to right, #7c3aed, #db2777); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-decoration: none; 
}

.navbar-nav .nav-link {
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px !important;
    transition: 0.3s;
    font-size: 0.95rem;
    border-radius: 12px;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link[aria-expanded="true"] {
    color: #8b5cf6; 
    background: rgba(139, 92, 246, 0.1);
}

@media (min-width: 992px) {
    .crystal-nav { position: fixed; width: 100%; top: 0; z-index: 1030; }
    .mega-dropdown-menu {
        width: 90vw !important;
        max-width: 1200px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 15px;
    }
}

.mega-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 30px;
    border-top: 3px solid #8b5cf6;
}

.mega-category-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    color: #334155;
    transition: 0.3s;
}
.mega-item:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}
.mega-item-icon {
    font-size: 1.5rem;
    color: #8b5cf6;
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.mega-item-content h6 { margin: 0 0 4px 0; font-weight: 800; font-size: 1rem; color: #1e293b; }
.mega-item-content p { margin: 0; font-size: 0.8rem; color: #64748b; line-height: 1.4; }

/* --- CONNEXION & PROFIL UTILISATEUR --- */
#auth-zone { display: flex; align-items: center; }

.btn-login-nav {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    cursor: pointer;
}
.btn-login-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }

.nav-separator { width: 2px; height: 25px; background: rgba(139, 92, 246, 0.3); border-radius: 5px; }
.nav-separator-sm { width: 2px; height: 15px; background: rgba(139, 92, 246, 0.2); margin: 0 2px; }

.btn-logout-nav {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}
.btn-logout-nav:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.user-profile-pill {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.user-profile-pill .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.user-profile-pill .user-pseudo { font-weight: 800; font-size: 0.9rem; color: #1e293b; }

/* --- BADGES DE RÔLES --- */
.role-badge { 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    padding: 4px 12px; 
    border-radius: 12px; 
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Couleurs Statiques */
.bg-visiteur { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.bg-vip { background: #fbcfe8; color: #be185d; border: 1px solid #f9a8d4; }
.bg-vendeur { background: #bbf7d0; color: #166534; border: 1px solid #86efac; }

/* Base pour les animations chromatiques */
.chromatic-role {
    background-size: 200% 100%;
    animation: chromaFlow 3s linear infinite;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Bleu Ciel Chromatique (Modérateur) */
.bg-mod {
    background-image: linear-gradient(90deg, #bae6fd, #38bdf8, #0ea5e9, #38bdf8, #bae6fd);
}

/* Orange Clair Chromatique (Responsable) */
.bg-resp {
    background-image: linear-gradient(90deg, #fed7aa, #f97316, #ea580c, #f97316, #fed7aa);
}

/* Nitro Style : Rose Clair & Bleu Ciel (Administrateur) */
.bg-admin {
    background-image: linear-gradient(90deg, #f9a8d4, #7dd3fc, #fbcfe8, #7dd3fc, #f9a8d4);
}

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

/* --- CARDS SERVEURS --- */
.section-title { 
    font-family: 'Dancing Script', cursive; font-weight: 800; font-size: clamp(2.5rem, 5vw, 3rem); 
    background: linear-gradient(to right, #ec4899, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    text-align: center; margin: 20px 0 40px 0; 
}

.card-crystal { 
    background: var(--glass-bg); backdrop-filter: blur(15px); border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.6); padding: 20px; text-align: center; 
    height: 100%; transition: 0.4s ease; display: flex; flex-direction: column;
}
.card-crystal:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15); }

.img-wrapper { 
    width: 100%; height: 140px; border-radius: 20px; margin-bottom: 20px; overflow: hidden; 
    background: rgba(255,255,255,0.6); border: 3px solid white; display: flex;
    align-items: center; justify-content: center; box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
}
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.img-wrapper i { font-size: 3rem; color: #cbd5e1; }

.btn-crystal { 
    background: linear-gradient(90deg, #ec4899, #8b5cf6); color: white !important; 
    border: none; border-radius: 50px; padding: 10px 20px; font-weight: 700; 
    text-decoration: none; display: inline-block; text-transform: uppercase;
    font-size: 0.85rem; transition: 0.3s; margin-top: auto;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.btn-crystal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }

.server-divider { display: flex; align-items: center; justify-content: center; width: 100%; margin: 50px 0; }
.server-divider span { height: 2px; width: 35%; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent); border-radius: 10px; }
.server-divider i { color: #8b5cf6; opacity: 0.5; margin: 0 20px; font-size: 1.5rem; }
html, body { overflow-x: hidden; }

/* --- LOGO BULLE DECONNEXION --- */
.logout-pill {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
    transition: 0.3s;
    cursor: pointer;
}
.logout-pill:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}
.logout-pill .logout-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}