        /* --- VARIABLES & RESET --- */
        
        :root { 
            --primary: #006aeb; /* Vert émeraude professionnel */
            --primary-dark: #0a5cc1;
            --textform: #006aeb;
            --bg-body: #f9fafb; /* Gris très très clair */
            --bg-white: #ffffff;
            --text-main: #111827; /* Noir adouci */
            --text-muted: #4b5563; /* Gris moyen */
            --border: #e5e7eb;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        
        :root.green { 
            --primary: #1a7431; /* Vert émeraude professionnel */
            --primary-dark: #155d27;
            --textform: #1a7431;
            --bg-body: #f9fafb; /* Gris très très clair */
            --bg-white: #ffffff;
            --text-main: #111827; /* Noir adouci */
            --text-muted: #4b5563; /* Gris moyen */
            --border: #e5e7eb;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        /* Scroll Smooth*/
        html {
        scroll-behavior: smooth;
        }


        



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



        body {
            background-color: var(--bg-body);
            color: var(--text-main);
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }
        
        /* --- TYPOGRAPHY --- */
        h1, h2, h3 {
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.2;
        }

        h1 { font-size: 3rem; letter-spacing: -1px; margin-bottom: 1rem; }
        h2 { font-size: 2rem; margin-bottom: 2rem; position: relative; display: inline-block; }
        h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
        
        p { color: var(--text-muted); margin-bottom: 1rem; }

        .highlight { color: var(--primary); font-weight: 600; }

        /* --- LAYOUT --- */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .n {
            margin: 0px 20px;

        }

        .divider {
            width: 60px;
            height: 4px;
            margin: 20px 0 40px 0;
            border-radius: 2px
    
        }

        section {
            padding: 100px 0;
        }

        /* --- -IGATION --- */
        nav {
            background: var(--bg-body);
            border-bottom: 1px solid var(--border);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(8px);
        }

        .nav-content {
            height: 70px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        /* Cacher le bouton hamburger sur écrans larges */
        .nav-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
        }

        @media (max-width: 768px) {
        .nav-links {
                display: none;
                flex-direction: column;
                gap: 15px;
                background: var(--bg-white);
                position: absolute;
                top: 70px; /* hauteur nav */
                right: 0;
                width: 200px;
                box-shadow: var(--shadow);
                border-radius: 6px;
                padding: 15px 20px;
                z-index: 200;
        }
            .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
    }


        .logo {
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--text-main);
        }

        .nav-links {
              
        }
        .nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
        .nav-links a:hover { color: var(--text-main); }

        /* --- HERO SECTION --- */
        .hero {
            min-height: 90vh; /* Prend presque tout l'écran */
            display: flex;
            align-items: center;
            background: var(--bg-white);
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Texte à gauche, Image à droite */
            gap: 60px;
            align-items: center;
        }

        /* Placeholer pour ta photo */
        .hero-img-placeholder {
            width: 350px;
            height: 350px;
            background-color: var(--bg-body);
            border-radius: 50%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 5px solid var(--bg-white);
            box-shadow: var(--shadow);
        }
        
        .hero-img-placeholder img {
            width: 100%;
            height: 100%;
            object-fit:cover;
        }

        .hero-badge {
            display: inline-block;
            background: #ecf4fd; /* Vert très pâle */
            color: var(--primary);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .btn-primary {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 12px 30px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 10px;
            box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(5, 150, 105, 0.3);
        }

        /* --- CARDS (Projets) --- */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .card {
            background: var(--bg-white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 30px;
            transition: 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
            border-color: var(--primary);
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .tag {
            font-size: 0.75rem;
            background: #f3f4f6;
            color: var(--text-muted);
            padding: 4px 12px;
            border-radius: 4px;
            font-weight: 600;
        }

        
        .link-project a {
            display: inline-block;
            margin: 30px 10px 0px 0px;
            font-weight: 400;
            color: white;
            align-self: flex-start;
            background-color: var(--primary);
            border-radius: 5px;
            padding: 5px 10px;
        }



        .link-project a:hover {
            background-color: var(--primary-dark);

        }

                .link-project a.linkApp {
            background-color: var(--text-main);
            color: white;
        }

        .link-project a.linkApp:hover {
            background-color: var(--text-muted);
        }


        /* --- SKILLS (Grid propre) --- */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
        }

        .skill-item {
            background: var(--bg-white);
            border: 1px solid var(--border);
            padding: 15px;
            text-align: center;
            border-radius: 8px;
            font-weight: 600;
            color: var(--text-main);
        }


        .en-cours {
            background: var(--bg-white);
            border: 1px solid var(--border);
            padding: 15px;
            text-align: center;
            border-radius: 8px;
            font-weight: 600;
            color: var(--text-main);
            opacity: 0.6;
        }

        /* --- TIMELINE (Experience) --- */
        .timeline-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .timeline-group h3 {
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border);
            margin-bottom: 30px;
        }

        .timeline-item {
            margin-bottom: 30px;
            padding-left: 20px;
            border-left: 3px solid var(--border);
            position: relative;
        }
        
        .timeline-item:hover { border-left-color: var(--primary); }

        .date {
            font-size: 0.85rem;
            color: var(--textform);
            font-weight: 600;
            margin-bottom: 4px;
            display: block;
        }

/* --- CONTACT --- */
.contact-box {
    background: var(--bg-white);
    padding: 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 18px;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-box .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    line-height: 1;      /* fixe */
    display: inline-flex;
    align-items: center; /* centre verticalement */
    justify-content: center;

}

.contact-box .btn-primary:hover {
    background: var(--secondary);
    color: var(--primary);
}




/* Info : ville et tel */
.contact-box > div[style*="display: flex"] {
    color: var(--text-muted);
    font-size: 1.05rem;
}


/* Réseaux sociaux */
.contact-box .reseaux {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.contact-box .reseaux a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    font-size: 2rem;
}

.contact-box .reseaux a:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 207, 255, 0.35); /* accent bleu */
    transform: scale(1.1);
}




/* filter-buttons-simple.css */

.filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;

}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-img-placeholder { margin: 0 auto 30px auto; width: 250px; height: 250px; order: -1; }



    .timeline-section { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .contact-box .btn-primary{ 
        width: 100%;
        line-height: 1;      /* fixe */
        display: inline-flex;
        align-items: center; /* centre verticalement */
        justify-content: center;
        white-space: normal;     /* autorise le retour à la ligne */
        word-break: break-word;  /* force la casse si besoin */
                }
    .filter-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }



}

@media(max-width:1000px){
    .container-alex {
        flex-direction: column;
        align-items: start;
        align-items: center;
        gap: 2px;
    }
}

.container-search-form {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.search-input {
    height: 30px;
    margin-bottom: 20px;
    width: 300px;
    text-align: center;
}

.select-tri {
    display: flex;
    flex-direction: column;
    width: 300px;
    background-color: var(--primary);
    color: white;
    height: 30px;
    font-size: large;
}



.container-alex {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.container-alex h1 {
    margin: 0;
    line-height: 1.1;
}

.slide {
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateY(0);
  opacity: 1;
  color: var(--textform);
}

.slide.out {
  transform: translateY(100%);
  opacity: 0;
}

.slide.in {
  transform: translateY(-100%);
  opacity: 0;
}

