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


body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #0a192f;
    color: #ccd6f6;
    font-size: 16px;
    line-height: 1.6;
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: rgba(10, 25, 47, 0.9);
    z-index: 100;
}

/* Le logo "B" en haut à gauche */
.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #64ffda;
    border: 2px solid #64ffda;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* La liste des liens de navigation */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Chaque lien dans la navigation */
.nav-links a {
    text-decoration: none;
    color: #ccd6f6;
    font-size: 14px;
    transition: color 0.3s;
}

/* Quand on passe la souris sur un lien */
.nav-links a:hover {
    color: #64ffda;
}

/* Les numéros "01." "02." en vert */
.nav-links span {
    color: #64ffda;
    margin-right: 4px;
}

/* Le bouton "Resume" avec bordure verte */
.btn-resume {
    border: 1px solid #64ffda;
    color: #64ffda !important;
    padding: 10px 18px;
    border-radius: 4px;
    transition: background-color 0.3s !important;
}

/* Survol du bouton Resume */
.btn-resume:hover {
    background-color: rgba(100, 255, 218, 0.1);
}


/* ============================================
   ICONES SOCIALES (colonne gauche)
   ============================================ */

/* La colonne d'icônes fixée à gauche */
.side-left {
    position: fixed;
    bottom: 0;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Chaque icône dans la colonne gauche */
.side-left a {
    color: #8892b0;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

/* Survol des icônes */
.side-left a:hover {
    color: #64ffda;
    transform: translateY(-4px);
}

/* La ligne verticale sous les icônes */
.side-left::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: #8892b0;
    margin-top: 10px;
}


/* ============================================
   EMAIL (colonne droite)
   ============================================ */

/* La colonne email fixée à droite */
.side-right {
    position: fixed;
    bottom: 0;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le texte de l'email, affiché verticalement */
.side-right a {
    color: #8892b0;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transition: color 0.3s, transform 0.3s;
}

/* Survol de l'email */
.side-right a:hover {
    color: #64ffda;
    transform: translateY(-4px);
}

/* La ligne verticale sous l'email */
.side-right::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: #8892b0;
    margin-top: 10px;
}


/* ============================================
   SECTION HERO (la grande section d'accueil)
   ============================================ */

/* La section prend toute la hauteur de l'écran */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 150px;
    overflow: hidden;
}

/* L'image de fond derrière le texte */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    z-index: 0;
}

/* Le bloc de texte par-dessus l'image */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

/* "Hi, my name is" en petit vert */
.hero-intro {
    color: #64ffda;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Le grand nom en blanc */
.hero-name {
    font-size: 72px;
    font-weight: bold;
    color: #ccd6f6;
    line-height: 1.1;
    margin-bottom: 10px;
}

/* La phrase en dessous, plus grise */
.hero-tagline {
    font-size: 60px;
    font-weight: bold;
    color: #8892b0;
    line-height: 1.1;
    margin-bottom: 30px;
}

/* Le paragraphe de description */
.hero-desc {
    max-width: 480px;
    color: #8892b0;
    font-size: 16px;
    margin-bottom: 50px;
}

/* Le bouton principal "Voir mes projets" */
.btn-primary {
    display: inline-block;
    text-decoration: none;
    color: #64ffda;
    border: 1px solid #64ffda;
    padding: 16px 28px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

/* Survol du bouton principal */
.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}


/* ============================================
   RESPONSIVE — Pour les petits écrans
   (téléphones et tablettes)
   ============================================ */

/* Quand l'écran est plus petit que 768px */
@media (max-width: 768px) {

    /* Navigation plus petite */
    nav {
        padding: 15px 25px;
    }

    /* Les liens de nav disparaissent sur mobile */
    .nav-links {
        display: none;
    }

    /* La section hero a moins de padding sur mobile */
    .hero {
        padding: 0 30px;
    }

    /* Le nom est plus petit sur mobile */
    .hero-name {
        font-size: 42px;
    }

    /* La phrase est plus petite aussi */
    .hero-tagline {
        font-size: 34px;
    }

    /* Les colonnes latérales sont cachées sur mobile */
    .side-left,
    .side-right {
        display: none;
    }
}

        .projects-section {
            min-height: 100vh;
            padding: 120px 150px 80px;
        }

        .projects-section h1 {
            font-size: 28px;
            color: #ccd6f6;
            margin-bottom: 50px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .projects-section h1 span {
            color: #64ffda;
            font-size: 20px;
        }

        .projects-section h1::after {
            content: '';
            display: block;
            height: 1px;
            width: 200px;
            background-color: #233554;
        }

        .projects-grid {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .projects-grid li a {
            display: block;
            background-color: #112240;
            border: 1px solid #233554;
            border-radius: 6px;
            padding: 28px;
            text-decoration: none;
            color: #ccd6f6;
            font-size: 18px;
            font-weight: 600;
            transition: transform 0.2s, border-color 0.2s, color 0.2s;
        }

        .projects-grid li a::before {
            content: '→';
            color: #64ffda;
            margin-right: 10px;
            font-size: 16px;
        }

        .projects-grid li a:hover {
            transform: translateY(-5px);
            border-color: #64ffda;
            color: #64ffda;
        }

        .back-link {
            display: inline-block;
            margin-top: 50px;
            text-decoration: none;
            color: #64ffda;
            font-size: 14px;
            letter-spacing: 1px;
            border: 1px solid #64ffda;
            padding: 12px 22px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        .back-link:hover {
            background-color: rgba(100, 255, 218, 0.1);
        }

        @media (max-width: 768px) {
            .projects-section {
                padding: 100px 30px 60px;
            }
            .projects-section h1::after {
                width: 80px;
            }
        }