/* ==========================================
   MOJEGA TECH - Style Futuriste Néon & Sombre
   ========================================== */

:root {
    --bg-color: #05050a;
    --panel-bg: rgba(15, 13, 30, 0.75);
    --mauve-base: #9945FF;
    --mauve-glow: rgba(153, 69, 255, 0.4);
    --blue-neon: #00f3ff;
    --blue-glow: rgba(0, 243, 255, 0.4);
    --text-main: #ffffff;
    --text-muted: #a0aec0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(153, 69, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 40%);
}

/* En-tête / Barre de navigation supérieure */
header {
    width: 100%;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(153, 69, 255, 0.2);
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-area img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--mauve-base);
    box-shadow: 0 0 10px var(--mauve-glow);
}

.logo-area span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--mauve-base), var(--blue-neon));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Conteneur gauche (Logo + Menu de navigation) */
.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Ajustez cet espace entre le logo et le menu si besoin */
}

/* Menu de navigation principal et sous-catégories (Dropdown) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover, .dropdown:hover .nav-link {
    color: var(--text-main);
    background: rgba(153, 69, 255, 0.1);
    text-shadow: 0 0 8px var(--blue-glow);
}

/* Sous-menu déroulant */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 8, 20, 0.95);
    min-width: 180px;
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 1100;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, rgba(153, 69, 255, 0.2), rgba(0, 243, 255, 0.2));
    color: var(--text-main);
    padding-left: 1.2rem;
}

/* Affichage du menu au survol */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Switcher d'univers (autres sections) */
.universe-switcher {
    display: flex;
    gap: 0.75rem;
}

.switch-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.switch-btn:hover {
    color: var(--text-main);
    border-color: var(--blue-neon);
    box-shadow: 0 0 10px var(--blue-glow);
}

/* Contenu Principal Plein Écran */
main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--mauve-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--panel-bg);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--mauve-base), var(--blue-neon));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-neon);
    box-shadow: 0 0 30px var(--blue-glow), inset 0 0 15px rgba(0, 243, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Boutons néons */
.neon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(0, 243, 255, 0.2));
    border: 1px solid var(--mauve-base);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--mauve-glow);
}

.neon-button:hover {
    background: linear-gradient(135deg, var(--mauve-base), var(--blue-neon));
    border-color: var(--blue-neon);
    box-shadow: 0 0 20px var(--blue-glow);
    color: #000;
}

.discord-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(153, 69, 255, 0.1));
    border: 1px solid #5865F2;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}

.discord-cta h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
}

.discord-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-discord-main {
    background-color: #5865F2;
    border-color: #5865F2;
    color: white;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.btn-discord-main:hover {
    background-color: #4752c4;
    border-color: #fff;
    color: white;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.8);
}

/* Footer */
footer {
    width: 100%;
    padding: 2rem 3rem;
    text-align: center;
    border-top: 1px solid rgba(153, 69, 255, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(5, 5, 10, 0.9);
}

footer a {
    color: var(--blue-neon);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    main {
        padding: 2rem 1rem;
    }
}