* { 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;
    align-items: center; 
}

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 80% 10%, rgba(112,0,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 60%, rgba(112,0,255,0.1) 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, .nav-center a.active-link { 
    color: #7000ff; 
}

.portfolio-section {
    padding: 140px 5% 0 5%;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-header { 
    margin-bottom: 80px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.intro-text {
    font-size: 1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card {
    margin-bottom: 140px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card:last-of-type {
    margin-bottom: 60px;
}

.image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    aspect-ratio: 16/9;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-wrapper:hover .project-img {
    transform: scale(1.05);
}

.image-wrapper.square-format {
    aspect-ratio: 1 / 1;
    max-width: 500px; 
    margin-left: auto;
    margin-right: auto;
}
.project-meta {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category {
    color: #7000ff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.badge {
    background: #222;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid #333;
}

.project-card h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: white;
}

.project-desc {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto 30px auto; 
}

.tags-container {
    width: 100%; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centré */
    gap: 15px;
    margin-bottom: 40px;
}

.tech-tag {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #eee;
    font-weight: 600;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: white;
    background: white;
    color: black;
}

.current-site-indicator {
    color: #7000ff;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-footer-cta {
    margin-top: 0; 
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 150px; 
}

.footer-note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    margin-bottom: 60px;
    max-width: 1000px;
    width: 100%;
    padding-left: 20px; padding-right: 20px;
}

.final-cta-box h3 {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 800;
    margin-bottom: 30px;
}

.btn-primary-glow {
    background: #7000ff;
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.4);
    transition: 0.3s;
}

.btn-primary-glow:hover {
    background: #8533ff;
    box-shadow: 0 0 40px rgba(112, 0, 255, 0.6);
    transform: translateY(-3px);
}

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;
    flex-wrap: wrap;
}

.footer-links { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.footer-links a { 
    color: #666; 
    text-decoration: none; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    font-size: 1rem; 
    line-height: 1; 
}

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

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

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

    .nav-center { 
        flex-direction: column; 
        gap: 10px; 
    }

    .portfolio-section { 
        padding-top: 180px; 
    }
    
    .project-card h2 { 
        font-size: 1.8rem; 
    }
    
    footer { 
        flex-direction: column; 
        gap: 15px; 
    }
}

.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; }
    }
}