:root {
    --bg-deep: #0a0c10;
    --accent: #3b82f6;
    --discord: #8570ff;
    --success-green: #22c55e;
    --text: #f8fafc;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-deep);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* Structure du fond moderne */
.bg-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-color: var(--bg-deep);
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    mix-blend-mode: screen;
}

.orb-1 {
    background: var(--accent);
    top: -20%; left: -10%;
    animation: float Orb1 20s infinite alternate;
}

.orb-2 {
    background: #6366f1;
    bottom: -10%; right: -5%;
    animation: float Orb2 25s infinite alternate;
}

.orb-3 {
    background: #0ea5e9;
    top: 30%; right: 20%;
    animation: float Orb3 18s infinite alternate;
}

.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.bg-noise {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 3;
}

/* Navbar Moderne */
.modern-navbar {
    background: rgba(10, 12, 16, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border) !important;
    padding: 0.25rem 2rem;
    margin: 1rem auto;
    width: fit-content;
    max-width: 95vw;
    border-radius: 50px;
    position: fixed !important;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    z-index: 1000;
    overflow: hidden;
}

.brand-title {
    font-weight: 800;
    font-size: 1.5rem !important;
    letter-spacing: -1px;
    color: #fff !important;
}

.online-tag {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    color: var(--success-green) !important;
}

/* Typographie */
.title, .subtitle, p {
    color: var(--text) !important;
}

.title.main-title {
    font-weight: 800;
    font-size: 4rem;
    letter-spacing: -3px;
    background: linear-gradient(to bottom, #fff 30%, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cartes Glassmorphism */
.glass-card {
    background: var(--glass) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Boutons */
.modern-btn {
    background: var(--discord) !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(133, 112, 255, 0.4);
    transition: all 0.3s ease !important;
}

.modern-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-discord-nav {
    background-color: var(--discord) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin: 0 5px !important;
    box-shadow: 0 4px 15px rgba(133, 112, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px; /* Rapprochement logo/texte Discord */
}

.btn-discord-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(133, 112, 255, 0.6);
}

.rounded-img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
}

/* Animations Fluides */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

@keyframes Orb1 { from { transform: translate(0,0); } to { transform: translate(15%, 10%); } }
@keyframes Orb2 { from { transform: translate(0,0); } to { transform: translate(-10%, -15%); } }
@keyframes Orb3 { from { transform: translate(0,0); } to { transform: translate(-5%, 20%); } }

.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--order) * 0.15s);
}

.section-title {
    font-weight: 700;
    letter-spacing: -1px;
}

.op-7 { opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .title.main-title { font-size: 2.5rem; }
    .bg-glow { display: none; }
}

/* Bulma Override */
.navbar-item, .navbar-link {
    display: flex !important;
    align-items: center !important;
    color: #94a3b8 !important;
    background-color: transparent !important;
    transition: color 0.3s ease !important;
    padding: 0.5rem 0.5rem !important;
    font-size: 0.85rem;
    white-space: nowrap;
    gap: 6px; /* Espace précis entre l'icône et le texte */
}

.navbar-item .icon {
    margin-right: 0 !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transform: translateY(1px); /* Redescend légèrement l'icône pour l'aligner visuellement */
}

.navbar-item:hover, .navbar-link:hover {
    color: #fff !important;
    background-color: transparent !important;
}

/* Mobile & Tablette */
@media screen and (max-width: 1023px) {
    .modern-navbar {
        width: 95%;
        border-radius: 25px;
        padding: 0.25rem 1rem;
    }
    
    .navbar-menu {
        background: rgba(10, 12, 16, 0.98) !important;
        border-radius: 20px;
        margin-top: 10px;
        border: 1px solid var(--border);
        padding: 1rem 0;
    }

    .navbar-item {
        justify-content: center;
        padding: 0.75rem !important;
    }
    
    .navbar-burger {
        color: #fff !important;
    }
}

/* Desktop uniquement */
@media screen and (min-width: 1024px) {
    .navbar-menu {
        display: flex !important;
        flex-basis: auto !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .navbar-end {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center;
        margin-left: 0.5rem !important;
    }
}