        :root {
            --bg-color: #eaf8ff;      
            --card-bg: #03afc5;     
            --accent-color: #f15a30;  
            --text-main: #131004;     
            --text-muted: rgba(1, 3, 100, 0.95)  
            --motto-color: #fff200;   
        }

        /* --- RÉINITIALISATION GÉNÉRALE --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden; /* Évite tout défilement horizontal bizarre */
        }

        section {
            padding: 90px 20px 60px 20px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 40px;
            position: relative;
            color: var(--text-main);
        }

        .section-title::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: var(--accent-color);
            margin: 10px auto 0 auto;
            border-radius: 2px;
        }

        /* --- BARRE DE NAVIGATION UNIVERSELLE & RESPONSIVE --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(1, 3, 100, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(10px); /* Compatibilité iOS/Safari */
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: bold;
            color: var(--text-main);
            letter-spacing: 1px;
        }

        .logo span {
            color: var(--accent-color);
        }

        .nav-links {
            display: flex;
            list-style: none;
            align-items: center;
            gap: 25px;
        }

        .nav-links li {
            margin: 0;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.3s ease;
            white-space: nowrap; /* Empêche les liens de se casser maladroitement */
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        /* --- SECTION ACCUEIL (HERO) --- */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding-top: 120px; /* Espace initial pour ordinateur */
        }

        .profile-img-container {
            margin-bottom: 25px;
        }

        .profile-img {
            width: 200px;
            height: 200px;
            border-radius: 40%;
            object-fit: cover;
            border: 3px solid var(--accent-color);
            box-shadow: 0 0 50px rgba(0, 242, 254, 0.35);
        }

        .hero h3 {
            font-size: 1.3rem;
            color: var(--text-muted);
            font-weight: 400;
            margin-bottom: 10px;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
            letter-spacing: -1px;
        }

        .hero h2 {
            font-size: 1.8rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-bottom: 15px;
        }

        .highlight {
            color: var(--accent-color);
        }

        .motto {
            font-size: 1.5rem;
            font-style: italic;
            font-weight: bold;
            color: var(--motto-color);
            margin-bottom: 35px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* --- BOUTONS --- */
        .btn-group {
            display: flex;
            gap: 20px;
            justify-content: center;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: var(--accent-color);
            color: var(--bg-color);
            text-decoration: none;
            font-weight: 600;
            border-radius: 5px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
        }

        .btn-outline {
            background: transparent;
            color: var(--accent-color);
            border: 2px solid var(--accent-color);
        }

        .btn-outline:hover {
            background: var(--accent-color);
            color: var(--bg-color);
        }

        /* --- SECTION À PROPOS --- */
        .about-container {
            background: var(--card-bg);
            padding: 35px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            max-width: 850px;
            margin: 0 auto;
            text-align: center;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .about-text p {
            margin-bottom: 20px;
            color: var(--text-muted);
            font-size: 1.1rem;
        }

        .about-text p:last-child {
            margin-bottom: 0;
        }

        .about-text strong {
            color: var(--text-main);
        }

        /* --- SECTION COMPÉTENCES --- */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
        }

        .skill-card {
            background: var(--card-bg);
            padding: 30px 20px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: transform 0.3s, border-color 0.3s;
        }

        .skill-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
        }

        .skill-icon {
            font-size: 2.5rem;
            color: var(--accent-color);
            margin-bottom: 15px;
        }

        .skill-card h3 {
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .skill-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* --- SECTION PROJETS --- */
        .projects-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .project-card {
            background: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 25px;
            transition: transform 0.3s, border-color 0.3s;
        }

        .project-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
        }

        .project-info h3 {
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .project-info p {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tech-tag {
            display: inline-block;
            background: rgba(0, 242, 254, 0.1);
            color: var(--accent-color);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* --- SECTION GALERIE PHOTOS AUTONOME (6 PHOTOS OK) --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .gallery-item {
            background: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .gallery-item img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.04);
        }

        .gallery-caption {
            padding: 12px 15px;
            font-size: 0.9rem;
            text-align: center;
            color: var(--text-muted);
            background: rgba(30, 41, 59, 0.7);
            border-top: 1px solid rgba(255, 255, 255, 0.03);
        }

        /* --- SECTION CONTACT --- */
        .contact-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .contact-item {
            background: var(--card-bg);
            color: var(--text-main);
            text-decoration: none;
            padding: 15px 30px;
            border-radius: 5px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: background 0.3s, border-color 0.3s, color 0.3s;
        }

        .contact-item:hover {
            background: rgba(0, 242, 254, 0.05);
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        /* --- FOOTER --- */
        footer {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
            font-size: 0.9rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            margin-top: 40px;
        }

        /* --- DESIGN ADAPTATIF MÉDIA QUERIES TOUS APPAREILS --- */
        @media (max-width: 868px) {
            .navbar {
                flex-direction: column; /* Aligne le logo au-dessus et les liens en dessous */
                gap: 15px;
                padding: 15px 10px;
            }
           
            .nav-links {
                flex-wrap: wrap; /* Aligne les liens sur plusieurs lignes proprement sur mobile */
                justify-content: center;
                gap: 12px 18px;
            }

            .nav-links a {
                font-size: 0.9rem;
            }

            .hero {
                padding-top: 180px; /* Augmente la marge pour ne pas chevaucher ta photo de profil */
            }

            .hero h1 {
                font-size: 2.6rem;
            }

            .hero h2 {
                font-size: 1.4rem;
            }
        }

        @media (max-width: 480px) {
            .navbar {
                padding: 12px 5px;
            }

            .nav-links {
                gap: 10px 14px; /* Resserre les liens pour les mini-écrans */
            }

            .nav-links a {
                font-size: 0.85rem;
            }

            .hero h1 {
                font-size: 2.1rem;
            }

            .hero h2 {
                font-size: 1.1rem;
            }

            .btn-group {
                flex-direction: column;
                gap: 12px;
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
            }

            .btn {
                width: 100%;
                text-align: center;
            }
        }