/* --- VARIABLES & RESET (Cohérent avec Index) --- */
        :root {
            --primary-color: #2563EB;
            --primary-dark: #1E40AF;
            --secondary-color: #0F172A;
            --accent-color: #F59E0B;
            --text-color: #334155;
            --light-bg: #F8FAFC;
            --white: #FFFFFF;
            --success-color: #10B981;
            --transition: all 0.3s ease;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        
        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--light-bg);
            overflow-x: hidden;
        }

        h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--secondary-color); font-weight: 700; }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* --- NAVIGATION --- */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            position: fixed;
            width: 100%; top: 0; z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: var(--transition);
        }

        .navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
        .logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--secondary-color); }
        .logo-highlight { color: var(--primary-color); }
        .nav-menu { display: flex; gap: 20px; align-items: center; } /* Gap réduit pour faire place au bouton */
        
        .nav-menu a {
            font-weight: 500; font-size: 0.95rem; color: var(--secondary-color);
            transition: var(--transition); position: relative;
        }
        .nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }
        
        /* Soulignement au survol (sauf boutons) */
        .nav-menu a:not(.btn-nav)::after {
            content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
            background-color: var(--primary-color); transition: var(--transition);
        }
        .nav-menu a:not(.btn-nav):hover::after { width: 100%; }

        /*efgrergerge*/

        .btn-contact {
            background-color: var(--primary-color);
            color: white !important;
            padding: 10px 20px;
            border-radius: 50px;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
        }

        .btn-contact:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            color: white !important;
        }
        
        .btn-contact::after { display: none !important; }

        .btn-nav {
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: var(--transition);
            display: inline-flex; align-items: center; gap: 8px;
        }

        .btn-login-nav {
            background-color: var(--secondary-color); color: white !important;
        }
        .btn-login-nav:hover { background-color: #334155; transform: translateY(-2px); }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--secondary-color);
            cursor: pointer;
        }
        
        /* --- STYLES SPÉCIFIQUES PORTFOLIO --- */
        .portfolio-header {
            padding: 140px 0 60px; /* Ajusté pour la navbar fixe */
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .portfolio-header::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.1;
       }

        .portfolio-intro {
            position: relative;
            z-index: 1;
        }
        .portfolio-intro h1 {
            color: white;
            font-size: 2.8rem;
            margin-bottom: 1.5rem;
        }

        .portfolio-intro p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto 2.5rem;
            color: #e2e8f0;
        }

        /* --- FILTRES --- */
        .portfolio-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 3rem;
            position: relative;
            z-index: 10;
        }
        
        .filter-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 10px 25px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            transition: var(--transition);
            backdrop-filter: blur(5px);
        }
        
        .filter-btn:hover,
        .filter-btn.active {
            background: var(--accent-color);
            color: var(--secondary-color);
            border-color: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        /* --- GRILLE PROJETS --- */
        .portfolio-section { padding: 40px 0 80px; }
        
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 40px;
            margin-top: 2rem;
        }
        
        .portfolio-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            opacity: 1; /* Pour l'animation JS */
        }
        
        .portfolio-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border-color: var(--primary-color);
        }
        
        .portfolio-image {
            height: 220px;
            overflow: hidden;
            position: relative;
        }
        
        .portfolio-image img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform 0.6s ease;
        }
        
        .portfolio-card:hover .portfolio-image img { transform: scale(1.1); }
        
        .portfolio-badge {
            position: absolute; top: 15px; right: 15px;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(5px);
            color: white;
            padding: 5px 15px; border-radius: 20px;
            font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        .portfolio-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
        
        .portfolio-content h3 {
            color: var(--secondary-color);
            margin-bottom: 5px;
            font-size: 1.3rem;
        }
        
        .portfolio-category {
            color: var(--primary-color);
            font-weight: 500; font-size: 0.9rem;
            margin-bottom: 15px; display: block;
        }
        
        .portfolio-description {
            color: #64748b; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6;
        }
        
        .portfolio-challenge {
            background-color: #f1f5f9;
            padding: 15px; border-radius: 10px;
            margin-bottom: 20px; border-left: 3px solid var(--accent-color);
        }
        
        .portfolio-challenge h4 {
            color: var(--secondary-color); margin-bottom: 5px; font-size: 0.9rem;
        }
        
        .portfolio-challenge p { font-size: 0.85rem; color: #475569; margin: 0; }
        
        .portfolio-tech {
            display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; margin-top: auto;
        }
        
        .tech-tag {
            background-color: #eff6ff; color: var(--primary-color);
            padding: 4px 12px; border-radius: 50px;
            font-size: 0.75rem; font-weight: 600; border: 1px solid #dbeafe;
        }
        
        .portfolio-links { display: flex; gap: 15px; border-top: 1px solid #e2e8f0; padding-top: 20px; }
        
        .btn-portfolio {
            flex: 1; text-align: center; padding: 10px; border-radius: 8px;
            font-weight: 500; font-size: 0.9rem; transition: var(--transition);
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        
        .btn-view {
            background-color: var(--secondary-color); color: white;
        }
        .btn-view:hover { background-color: var(--primary-color); }
        
        .btn-details {
            background-color: transparent; color: var(--secondary-color);
            border: 1px solid #e2e8f0;
        }
        .btn-details:hover { background-color: #f8fafc; border-color: var(--secondary-color); }

        /* --- CTA SECTION --- */
        .cta-portfolio {
            text-align: center; padding: 80px 0;
            background: white; margin-top: 40px;
        }
        .cta-portfolio h2 { margin-bottom: 15px; font-size: 2rem; }
        .cta-portfolio p { color: #64748b; max-width: 600px; margin: 0 auto 30px; }
        
        .btn-large { padding: 15px 35px; font-size: 1.1rem; }
        .btn-primary { background: var(--primary-color); color: white; padding: 12px 25px; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; }
        .btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
        .btn-outline-dark { border: 2px solid var(--secondary-color); color: var(--secondary-color); padding: 12px 25px; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; }
        .btn-outline-dark:hover { background: var(--secondary-color); color: white; }

        /* --- FOOTER (Identique) --- */
        .footer {
            background-color: var(--secondary-color); color: #cbd5e1;
            padding: 80px 0 20px;
        }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
        .footer-col h3 { color: white; margin-bottom: 25px; font-size: 1.3rem; }
        .social-links { display: flex; gap: 15px; margin-top: 20px; }
        .social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
        .social-links a:hover { background: var(--primary-color); color: white; transform: translateY(-3px); }
        .footer-col ul li { margin-bottom: 12px; }
        .footer-col ul li a:hover { color: var(--primary-color); padding-left: 5px; transition: var(--transition); }
        .contact-info li { display: flex; align-items: flex-start; gap: 10px; }
        .contact-info i { margin-top: 5px; color: var(--accent-color); }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
        .footer-links { display: flex; gap: 20px; }

        /* --- RESPONSIVE --- */
        @media (max-width: 991px) {
            .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
        }

        @media (max-width: 768px) {
            .menu-toggle { display: block; }
            .nav-menu {
                position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
                background: white; flex-direction: column; padding: 40px 20px; gap: 20px;
                transition: 0.4s ease-in-out; box-shadow: 0 10px 15px rgba(0,0,0,0.05);
            }
            .nav-menu.active { left: 0; }
            .nav-menu li { width: 100%; text-align: center; }
            .btn-contact { display: block; width: 100%; }
            .portfolio-filter { flex-direction: column; align-items: center; }
            .filter-btn { width: 100%; text-align: center; }
            .footer-bottom { flex-direction: column; text-align: center; }
        }
        
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
        .reveal.active { opacity: 1; transform: translateY(0); }
