:root {
    --bg-color: #0B0E14;
    --text-color: #E2E8F0;
    --primary-color: #3b82f6;
    --primary-glow: hsla(217, 91%, 60%, 0.4);
    --secondary-color: #9333ea;
    --secondary-glow: hsla(270, 67%, 50%, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --baytech-color: #10B981;
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: -1;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background: rgba(11, 14, 20, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-premium);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--glass-shadow);
}

.logo-container .logo {
    max-height: 50px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    transition: transform 0.3s ease;
}

.logo-container .logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition-premium);
}

.nav-links li a:hover {
    color: #fff;
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.connect-btn {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    box-shadow: 0 0 20px var(--primary-glow);
}

.connect-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 10px var(--primary-glow);
    filter: brightness(1.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-separator {
    width: 2px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0 5px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* On annule la ligne du bas spécifiquement pour les icônes sociales (qui sont des liens 'a') */
.social-icon::after {
    display: none !important;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(to right, #60a5fa, #c084fc, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(147, 51, 234, 0.4));
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 1.35rem;
    color: #94a3b8;
    margin-bottom: 45px;
    font-weight: 300;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.discord-btn {
    background: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* Footer Section */
.site-footer {
    padding: 30px 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.95rem;
}

.developer-tag {
    font-weight: 500;
}

.baytech {
    color: var(--baytech-color);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .main-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* =========================================
   NOUVELLES FONCTIONNALITÉS 
   ========================================= */

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 120px;
    animation: pulseLogo 2s infinite ease-in-out;
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 25px var(--primary-color));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 35px;
    /* Restored bottom margin for spacing with button */
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    width: max-content;
    font-size: 1.1rem;
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.hero-discord-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    /* Separator with the button above */
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    background: rgba(88, 101, 242, 0.05);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(88, 101, 242, 0.1);
    transition: var(--transition-premium);
}

.hero-stat-item:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
}

.hero-stat-item span:first-of-type {
    /* Le chiffre */
    font-weight: 800;
    color: #fff;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

#player-count {
    font-weight: 800;
    color: #fff;
}

@keyframes ping {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Sections Globales */
.section {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
}

.alt-bg {
    background: linear-gradient(180deg, rgba(11, 14, 20, 0) 0%, rgba(59, 130, 246, 0.03) 50%, rgba(11, 14, 20, 0) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Features Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    transition: var(--transition-premium);
    backdrop-filter: blur(12px);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: #fff;
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item.photo:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.modal-image-content {
    background: transparent;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: auto;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

.video-placeholder {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #1e1b4b, #312e81);
}

.play-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-icon {
    color: #ef4444;
    transform: scale(1.1);
}

.video-placeholder span {
    z-index: 2;
    margin-top: 15px;
    font-weight: 600;
}

.placeholder-img {
    background: linear-gradient(to bottom right, #111827, #1f2937);
}

/* Section Team/Staff */
.staff-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 250px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-color: #334155;
    border: 3px solid var(--glass-border);
    position: relative;
    transition: var(--transition-premium);
    object-fit: cover;
    display: block;
}

.staff-card:hover .staff-avatar {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    filter: brightness(1.1);
}


.staff-name {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
}

.staff-role {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.staff-roles-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.role-founder {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-gm {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.role-dev {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-admin {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-gd {
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* =========================================
   SECTION DISCORD
   ========================================= */
.discord-section {
    position: relative;
    padding: 80px 0;
}

.discord-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2), transparent 70%);
    pointer-events: none;
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.discord-icon-wrapper {
    font-size: 4rem;
    color: #5865F2;
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.5));
}

.discord-text {
    text-align: left;
}

.discord-text .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: left;
}

.discord-text .section-subtitle {
    margin: 0 0 20px 0;
    text-align: left;
    max-width: 500px;
}

.discord-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.discord-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.total {
    background: #94a3b8;
}

.stat-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-online 2s infinite;
}

.stat-value {
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-online {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.discord-join-btn {
    background: #5865F2;
    border-color: #5865F2;
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.discord-join-btn:hover {
    background: #4752c4;
    border-color: #4752c4;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.6);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .discord-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .discord-content {
        flex-direction: column;
        gap: 20px;
    }

    .discord-text {
        text-align: center;
    }

    .discord-text .section-title,
    .discord-text .section-subtitle {
        text-align: center;
    }
}

/* Boutique VIP Button */
.shop-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    color: #0B0E14;
}

.shop-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.5);
    color: #000;
    filter: brightness(1.1);
}

/* Factions & Jobs Section */
.factions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.faction-card {
    height: 220px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-premium);
    cursor: pointer;
}

.faction-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-glow);
}

.faction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95) 0%, rgba(11, 14, 20, 0.4) 50%, rgba(11, 14, 20, 0) 100%);
    transition: background 0.4s ease;
    z-index: 1;
}

.faction-card:hover .faction-overlay {
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95) 0%, rgba(59, 130, 246, 0.4) 100%);
}

.faction-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    z-index: 2;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.faction-card:hover .faction-content {
    transform: translateY(0);
}

.faction-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    transition: all 0.3s ease;
}

.faction-card:hover .faction-icon {
    color: #fff;
    filter: drop-shadow(0 0 15px #fff);
    transform: scale(1.1);
}

.faction-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.accordion {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px 25px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.accordion i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion.active i {
    transform: rotate(180deg);
    color: #fff;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.panel p {
    padding: 15px 25px 25px 25px;
    color: #94a3b8;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        /* Ensure flex is used */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        gap: 40px;
        /* More space between links on mobile */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
        /* Hide complex actions on mobile navbar */
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-placeholder {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .hero-content {
        text-align: center;
        padding-top: 50px;
    }

    .section-header {
        text-align: center !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 5%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-discord-stats {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-placeholder {
        grid-column: span 1;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .staff-grid,
    .factions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .main-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 0 10px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero-stat-item {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
}

/* =========================================
   CURSOR PERSONNALISÉ
   ========================================= */

/* Masquer le curseur par défaut sur les écrans d'ordinateur */
@media (pointer: fine) {

    *,
    *::before,
    *::after {
        cursor: none !important;
    }

    /* Le petit point central */
    .cursor-dot {
        width: 5px;
        height: 5px;
        background-color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color);
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 20000;
        pointer-events: none;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    /* Le cercle extérieur qui suit avec du retard */
    .cursor-outline {
        width: 25px;
        height: 25px;
        border: 1.5px solid rgba(59, 130, 246, 0.5);
        /* primary-color avec opacité */
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        z-index: 19999;
        pointer-events: none;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    /* Classes d'état activées par JS */
    .cursor-outline.active {
        border-color: var(--primary-color);
        background-color: rgba(59, 130, 246, 0.05);
    }

    .cursor-dot.active {
        background-color: var(--baytech-color);
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 15px var(--baytech-color);
    }
}

/* =========================================
   MODAL (POP-UP) VIDÉO
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 11001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}