:root {
    --bg-primary: #030307;
    --bg-secondary: #07070f;
    --bg-card: rgba(11, 11, 21, 0.7);
    --accent: #a855f7;
    --accent-rgb: 168, 85, 247;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text-main: #f3f4f6;
    --text-muted: #c7c7c7;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(168, 85, 247, 0.25);
    --neon-blue: #00d2ff;
    --neon-blue-rgb: 0, 210, 255;
    --neon-pink: #ff007f;
    --neon-pink-rgb: 255, 0, 127;
    --tiktok-cyan: #00f2fe;
    --tiktok-pink: #fe0979;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #121222;
    border-radius: 20px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Background Cyber Space Ambient */
.space-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(168, 85, 247, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px, 100px 100px;
    opacity: 0.8;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
    animation: floatingOrb 18s infinite alternate ease-in-out;
}

.orb-primary {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent);
}

.orb-secondary {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--neon-blue);
    animation-delay: -3s;
}

.orb-tertiary {
    top: 40%;
    left: 45%;
    width: 400px;
    height: 400px;
    background: var(--neon-pink);
    animation-delay: -6s;
    opacity: 0.1;
}

@keyframes floatingOrb {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(30px, -50px); }
    100% { transform: scale(0.95) translate(-40px, 40px); }
}

/* Premium & Modern Centered Section Header Component */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: sectionHeaderFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionHeaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(90deg, var(--accent), var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.4));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.section-header:hover .section-tag {
    filter: drop-shadow(0 2px 15px rgba(168, 85, 247, 0.7));
    transform: scale(1.05);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.25));
    position: relative;
    display: inline-block;
    transition: filter 0.4s ease;
}

.section-header:hover h2 {
    filter: drop-shadow(0 0 45px rgba(168, 85, 247, 0.4));
}

.section-header h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--neon-blue), var(--neon-pink), transparent);
    margin: 1.2rem auto 0;
    border-radius: 5px;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.section-header:hover h2::after {
    width: 180px;
    box-shadow: 0 0 25px var(--accent);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 680px;
    margin: 1.2rem auto 0;
    text-align: center;
}

/* Header & Global Nav styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    padding: 1.8rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 0.8rem 0;
    background-color: rgb(3 3 7 / 32%);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo img {
    height: 48px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.logo:hover img {
    transform: rotate(10deg) scale(1.15);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.4rem;
}

.desktop-nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.desktop-nav ul li a i {
    font-size: 0.85rem;
}

.desktop-nav ul li a:hover, 
.desktop-nav ul li a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.desktop-nav ul li a.nav-cta {
    background: linear-gradient(135deg, #5865F2, #404eed);
    color: white;
    border-radius: 50px;
    padding: 1.00rem 1.0rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.desktop-nav ul li a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.55);
    background: linear-gradient(135deg, #6c78ff, #404eed);
}

/* Discord Premium User Profile Card in Navigation */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 50px;
    padding: 0.35rem 1.1rem 0.35rem 0.4rem;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-profile-menu:hover {
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5865F2;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

.nav-username {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.logout-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, transform 0.3s;
    margin-left: 0.3rem;
}

.logout-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
}

/* Discord */
.tag-role {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.tag-role.Admin {
    background: #ff3b3b;
    color: white;
}

.tag-role.Staff {
    background: #ff9f1c;
    color: white;
}

.tag-role.Membre {
    background: #4caf50;
    color: white;
}


/* Dynamic welcome card in Hero section */
.welcome-user-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5), 
        0 0 25px rgba(168, 85, 247, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: cardPulse 3s infinite alternate ease-in-out;
}

.welcome-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--neon-blue);
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.welcome-user-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
}

.welcome-user-card h2 span {
    background: linear-gradient(135deg, #5865F2, var(--accent), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.welcome-user-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

@keyframes cardPulse {
    from { border-color: rgba(168, 85, 247, 0.2); }
    to { border-color: rgba(168, 85, 247, 0.5); }
}

/* Mobile Sidebar Drawer */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(4, 4, 8, 0.97);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: var(--accent);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.drawer-links a:hover,
.drawer-links a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.drawer-links a.drawer-cta {
    background: #5865F2;
    color: white;
    justify-content: center;
    border-radius: 50px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.mobile-profile-menu {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    background: rgba(88, 101, 242, 0.1);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: block;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Global Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2.2rem;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.55);
    background: linear-gradient(135deg, #b55fe6, #7c3aed);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

/* Toast alert system */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(11, 11, 21, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-glow);
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.fade-out {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-success i { color: #10b981; filter: drop-shadow(0 0 5px #10b981); }
.toast-error i { color: #ef4444; filter: drop-shadow(0 0 5px #ef4444); }
.toast-info i { color: var(--neon-blue); filter: drop-shadow(0 0 5px var(--neon-blue)); }

.toast-text {
    font-size: 0.92rem;
    font-weight: 700;
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 0.5rem;
}

.toast-close:hover {
    color: var(--text-main);
}

/* Interactive light saber effect */
.light-saber {
    position: fixed;
    top: 0;
    width: 250px;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-saber::before {
    content: "";
    position: absolute;
    top: -10%;
    width: 320px;
    height: 120%;
    filter: blur(80px);
}

.light-left { left: 0; }
.light-left::before {
    background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    left: -160px;
}

.light-right { right: 0; }
.light-right::before {
    background: radial-gradient(circle, rgba(255, 0, 127, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    right: -160px;
}

/* Back to Top with progress ring */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 52px;
    height: 52px;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px var(--accent);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s;
    transform-origin: 50% 50%;
}

/* Global Footer Styles */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 6rem 2rem 3rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 450px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--text-main);
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Responsiveness for global base */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        background-color: rgba(3, 3, 7, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.1rem 0;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .back-to-top {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .toast-container {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: none;
    }
}