* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

html { 
    scroll-behavior: smooth; 
}

#fixed-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(112,0,255,0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(112,0,255,0.15) 0%, transparent 40%);
}

nav {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 20px 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
}

nav.scrolled { 
    padding: 15px 5%; 
    background: rgba(5, 5, 5, 0.95); 
}

.Logo {
    width: 27%;
}

.nav-center { 
    display: flex; 
    gap: 40px; 
    justify-self: center;
}
.nav-center a { 
    color: white; 
    text-decoration: none; 
    font-size: 1.1rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

.nav-center a:hover { 
    color: #7000ff; 
}

.nav-btn {
    background: #7000ff; 
    color: white !important; 
    padding: 10px 25px; 
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(112,0,255,0.3); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    justify-self: end;
}

.nav-btn:hover { 
    box-shadow: 0 0 25px rgba(112,0,255,0.6); 
}

.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-top-center {
    text-align: center;
    margin-bottom: 80px;
}

.sous-titre p {
    font-size: 1.49rem;
    line-height: 1.2;
    margin-top: -25px;
    margin-bottom: 65px;
    color: rgb(170, 170, 170);
}

.surtitre { 
    color: #C084FC; 
    font-weight: 700; 
    letter-spacing: 3px; 
    font-size: 0.8rem; 
    margin-top: 10px;
    margin-bottom: 20px; 
    display: block; 
}

h1 { 
    font-size: 3.5rem; 
    line-height: 1.2; 
    margin-bottom: 40px; 
    text-transform: uppercase; 
    color: white;
}

.gradient-text {
    background: linear-gradient(to right, #7000ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-h{
    font-size: 3.5rem;
}

.btn-primary {
    display: inline-block; 
    background-color: #e50914;
    color: white;
    padding: 18px 40px; 
    margin-bottom: 60px;
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4); 
    transition: 0.3s;
}

.btn-primary:hover { 
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6); 
    transform: translateY(-3px); 
    background-color: #f40612;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 150px;
}

.code-window {
    flex: 1;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'Fira Code', monospace;
    max-width: 450px;
}
.window-header {
    padding: 12px 15px; 
    background: #252526; 
    border-bottom: 1px solid #333;
    border-radius: 12px 12px 0 0; 
    display: flex; gap: 8px; 
    align-items: center;
}
.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
}

.dot.red { 
    background: #ff5f56; 
}

.dot.yellow { 
    background: #ffbd2e; 
}

.dot.green { 
    background: #27c93f; 
}

.filename {
    margin-left: auto; 
    color: #555; 
    font-size: 0.8rem;
}

.code-body { 
    padding: 25px; 
    color: #d4d4d4; 
    font-size: 0.9rem; 
    line-height: 1.7; 
}

.kw { 
    color: #c586c0; 
} 

.prop { 
    color: #9cdcfe; 
} 

.val { 
    color: #ce9178; 
} 

.commentaire {
    color: green;
    font-style: italic;
}
.punc { 
    color: #d4d4d4;
}

.split-text {
    flex: 1;
    max-width: 450px;
}

.split-text h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: white;
}

.split-text p { 
    font-size: 1rem; 
    color: #aaa; 
    line-height: 1.6; 
    font-weight: 300;
}

.bubbles-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-bottom: 20px;
}

.bubble {
    flex: 1;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: 0.3s;
    max-width: 300px;
}

.bubble:hover { 
    border-color: rgba(112,0,255,0.4); 
    transform: translateY(-5px); 
    background: rgba(30, 30, 30, 0.6); 
}

.icon-circle {
    width: 60px; 
    height: 60px;
    background: rgba(112,0,255,0.15);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #C084FC; 
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.bubble-info h3 { 
    font-size: 1rem; 
    margin-bottom: 10px; 
    color: white; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.bubble-info p { 
    font-size: 1rem; 
    color: #aaa;
    margin: 0; 
    line-height: 1.4; 
}

footer {
    width: 100%;
    padding: 30px 5%;
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 300px;
    font-size: 0.9rem;
    color: #666;
}

.footer-links a { 
    color: #666; 
    text-decoration: none; 
    margin-left: 20px; 
    transition: 0.3s; 
}

.footer-links a:hover { 
    color: white; 
}

.footer-links i {
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    nav { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        justify-items: center; 
        position: relative; 
        background: #050505; 
    }

    .nav-center { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
    
    .nav-btn { 
        justify-self: center; 
    }
    
    .hero-top-center h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-split { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
    }

    .code-window { 
        width: 100%; 
    }
    
    .bubbles-container { 
        flex-direction: column; 
        align-items: center; 
    }

    .bubble { 
        width: 100%; 
    }
}

.mobile-page-title, 
.burger-icon, 
#mobile-menu-overlay {
    display: none; 
}

@media (max-width: 1024px) {
    
    nav {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
    }

    .desktop-only { display: none !important; }

    .mobile-page-title {
        display: block;
        color: #7000ff; 
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 1.1rem;
        letter-spacing: 2px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-transform: uppercase;
        white-space: nowrap;
    }

    .burger-icon {
        display: block;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 10px;
    }

    #mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background-color: #050505;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        opacity: 0;
    }

    #mobile-menu-overlay.active {
        transform: translateX(0);
        opacity: 1;
    }

    .mobile-menu-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 25px 5%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-menu-header .logo-text { font-weight: 800; color: #7000ff; letter-spacing: 2px; }
    .close-btn { font-size: 2rem; color: white; cursor: pointer; }

    .mobile-links {
        flex: 1; display: flex; flex-direction: column;
        justify-content: center; align-items: center; gap: 35px;
    }
    .mobile-links a {
        font-size: 1.8rem; color: white; text-decoration: none;
        font-weight: 700; text-transform: uppercase; transition: 0.3s;
    }
    .mobile-links a:hover { color: #7000ff; }

    @media (min-width: 700px) {
        .mobile-page-title { font-size: 1.6rem; }
        .mobile-links a { font-size: 2.5rem; }
        .burger-icon { font-size: 2rem; }
    }
}
