﻿:root {
            --primary-color: #10B981;
            --secondary-color: #059669;
            --dark-bg: #1F2937;
            --light-bg: #F3F4F6;
            --text-dark: #111827;
            --text-light: #6B7280;
            --accent: #34D399;
            --white: #FFFFFF;
            --gray-light: #E5E7EB;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-dark);
            background-color: var(--light-bg);
            display: flex;
        }

        /* Sidebar Navigation */
        .sidebar {
            width: 280px;
            background: linear-gradient(180deg, var(--dark-bg) 0%, #374151 100%);
            color: var(--white);
            position: fixed;
            height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 2rem 0;
            z-index: 1000;
            box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        }

        .sidebar-header {
            text-align: center;
            padding: 0 1.5rem;
            margin-bottom: 2rem;
        }

        .profile-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
            border: 3px solid var(--primary-color);
        }

        .profile-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sidebar-header h1 {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .sidebar-header p {
            font-size: 0.9rem;
            color: #D1D5DB;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .social-links a:hover {
            background: var(--accent);
            transform: translateY(-3px);
        }

        .nav-menu {
            flex: 1;
            padding: 0 1rem;
        }

        .nav-menu ul {
            list-style: none;
        }

        .nav-menu li {
            margin-bottom: 0.5rem;
        }

        .nav-menu a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            color: #D1D5DB;
            text-decoration: none;
            border-radius: 10px;
            transition: all 0.3s;
            font-size: 0.95rem;
        }

        .nav-menu a i {
            width: 20px;
            font-size: 1.1rem;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            background: var(--primary-color);
            color: var(--white);
            transform: translateX(5px);
        }

        .sidebar-footer {
            padding: 1.5rem;
            text-align: center;
            font-size: 0.75rem;
            color: #9CA3AF;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Menu burger pour mobile */
        .burger {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 2000;
            background: var(--dark-bg);
            padding: 10px;
            border-radius: 8px;
        }

        .burger span {
            width: 25px;
            height: 3px;
            background: var(--white);
            border-radius: 3px;
            transition: 0.3s;
        }

        /* Main Content */
        .main-content {
            margin-left: 280px;
            flex: 1;
            width: calc(100% - 280px);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--dark-bg) 0%, #4B5563 100%);
            position: relative;
            overflow: hidden;
            padding: 2rem;
        }

        .hero::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            background: var(--primary-color);
            border-radius: 50%;
            filter: blur(150px);
            opacity: 0.2;
            top: -250px;
            right: -250px;
        }

        /* Particules animées sur le fond */
        .hero-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            overflow: hidden;
            z-index: 0;
        }

        .particle {
            position: absolute;
            background: var(--primary-color);
            border-radius: 50%;
            opacity: 0.2;
            animation: float-particle 20s infinite ease-in-out;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
        }

        /* Variation de tailles et positions pour 20 particules */
        .particle:nth-child(1) { width: 80px; height: 80px; left: 5%; top: 10%; animation-duration: 15s; }
        .particle:nth-child(2) { width: 120px; height: 120px; left: 15%; top: 60%; animation-duration: 20s; animation-delay: -5s; }
        .particle:nth-child(3) { width: 60px; height: 60px; left: 25%; top: 30%; animation-duration: 18s; animation-delay: -10s; }
        .particle:nth-child(4) { width: 100px; height: 100px; left: 35%; top: 70%; animation-duration: 22s; animation-delay: -3s; }
        .particle:nth-child(5) { width: 90px; height: 90px; left: 45%; top: 20%; animation-duration: 17s; animation-delay: -8s; }
        .particle:nth-child(6) { width: 70px; height: 70px; left: 55%; top: 50%; animation-duration: 19s; animation-delay: -12s; }
        .particle:nth-child(7) { width: 110px; height: 110px; left: 65%; top: 15%; animation-duration: 21s; animation-delay: -6s; }
        .particle:nth-child(8) { width: 85px; height: 85px; left: 75%; top: 65%; animation-duration: 16s; animation-delay: -14s; }
        .particle:nth-child(9) { width: 95px; height: 95px; left: 10%; top: 80%; animation-duration: 23s; animation-delay: -2s; }
        .particle:nth-child(10) { width: 75px; height: 75px; left: 20%; top: 45%; animation-duration: 19s; animation-delay: -9s; }
        .particle:nth-child(11) { width: 65px; height: 65px; left: 30%; top: 85%; animation-duration: 17s; animation-delay: -11s; }
        .particle:nth-child(12) { width: 105px; height: 105px; left: 40%; top: 25%; animation-duration: 20s; animation-delay: -4s; }
        .particle:nth-child(13) { width: 88px; height: 88px; left: 50%; top: 75%; animation-duration: 18s; animation-delay: -7s; }
        .particle:nth-child(14) { width: 72px; height: 72px; left: 60%; top: 35%; animation-duration: 21s; animation-delay: -13s; }
        .particle:nth-child(15) { width: 115px; height: 115px; left: 70%; top: 55%; animation-duration: 16s; animation-delay: -1s; }
        .particle:nth-child(16) { width: 82px; height: 82px; left: 80%; top: 40%; animation-duration: 22s; animation-delay: -15s; }
        .particle:nth-child(17) { width: 68px; height: 68px; left: 12%; top: 25%; animation-duration: 19s; animation-delay: -5s; }
        .particle:nth-child(18) { width: 92px; height: 92px; left: 42%; top: 90%; animation-duration: 17s; animation-delay: -10s; }
        .particle:nth-child(19) { width: 78px; height: 78px; left: 58%; top: 10%; animation-duration: 20s; animation-delay: -8s; }
        .particle:nth-child(20) { width: 98px; height: 98px; left: 85%; top: 80%; animation-duration: 18s; animation-delay: -12s; }

        @keyframes float-particle {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg);
                opacity: 0.2;
            }
            25% {
                transform: translate(60px, -120px) rotate(90deg);
                opacity: 0.3;
            }
            50% {
                transform: translate(-40px, -80px) rotate(180deg);
                opacity: 0.25;
            }
            75% {
                transform: translate(50px, -150px) rotate(270deg);
                opacity: 0.35;
            }
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-text h1 {
            font-size: 3.5rem;
            color: var(--white);
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .hero-text h1 span {
            color: var(--accent);
        }

        .hero-text p {
            font-size: 1.3rem;
            color: #D1D5DB;
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .hero-buttons {
            display: flex;
            gap: 1.5rem;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }

        .btn-primary {
            background: var(--primary-color);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
        }

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

        .btn-outline:hover {
            background: var(--white);
            color: var(--primary-color);
            transform: translateY(-3px);
        }

        .hero-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-circle {
            width: 350px;
            height: 350px;
            border-radius: 50%;
            overflow: hidden;
            border: 5px solid var(--primary-color);
            box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        .profile-circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Sections communes */
        .section {
            padding: 5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--text-dark);
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-light);
            font-size: 1.1rem;
            margin-bottom: 4rem;
        }

        /* A Propos */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .about-text p {
            color: var(--text-light);
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .about-text strong {
            color: var(--primary-color);
            font-weight: 600;
        }

        .skills {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .skill-item {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s;
        }

        .skill-item:hover {
            transform: translateY(-5px);
        }

        .skill-item i {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .skill-item h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .skill-item p {
            font-size: 0.9rem;
            color: var(--text-light);
            margin: 0;
        }

        /* Parcours */
        .timeline {
            position: relative;
            padding: 2rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: var(--primary-color);
        }

        .timeline-item {
            display: flex;
            justify-content: flex-end;
            padding-right: calc(50% + 40px);
            position: relative;
            margin-bottom: 3rem;
        }

        .timeline-item:nth-child(even) {
            justify-content: flex-start;
            padding-left: calc(50% + 40px);
            padding-right: 0;
        }

        .timeline-content {
            background: var(--white);
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            max-width: 450px;
        }

        .timeline-content h3 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .timeline-content .date {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: var(--primary-color);
            border: 4px solid var(--white);
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
        }

        /* Bouton fiche de compétence */
        .btn-secondary {
            background: var(--accent);
            color: var(--white);
            padding: 0.7rem 1.5rem;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            margin-top: 1rem;
            transition: all 0.3s;
        }

        .btn-secondary:hover {
            background: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
        }

        /* Projets */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .project-image {
            width: 100%;
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

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

        .project-content {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .project-content h3 {
            font-size: 1.4rem;
            margin-bottom: 1rem;
            color: var(--text-dark);
        }

        .project-content p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .tag {
            background: #D1FAE5;
            color: var(--secondary-color);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .project-link-single {
            display: block;
            text-align: center;
            padding: 0.8rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            background: var(--primary-color);
            color: var(--white);
            margin-top: auto;
        }

        .project-link-single:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
        }

        /* Veille Technologique */
        .veille-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .veille-intro {
            background: var(--white);
            padding: 2rem;
            border-radius: 12px;
            margin-bottom: 3rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            border-left: 5px solid var(--primary-color);
        }

        .veille-intro h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.4rem;
        }

        .veille-intro p {
            color: var(--text-light);
            line-height: 1.8;
        }

        .veille-list {
            list-style: none;
        }

        .veille-item {
            background: var(--white);
            padding: 2rem;
            border-radius: 12px;
            margin-bottom: 2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s;
        }

        .veille-item:hover {
            transform: translateX(10px);
        }

        .veille-item-header {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }

        .veille-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .veille-item h3 {
            color: var(--text-dark);
            font-size: 1.3rem;
            margin-bottom: 0.3rem;
        }

        .veille-date {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        .veille-item p {
            color: var(--text-light);
            line-height: 1.7;
            margin-bottom: 1rem;
        }

        .veille-sources {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .source-tag {
            background: var(--gray-light);
            color: var(--text-dark);
            padding: 0.4rem 1rem;
            border-radius: 6px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .source-tag i {
            color: var(--primary-color);
        }

        /* Contact */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .contact-form {
            background: var(--white);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-dark);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--gray-light);
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            background: var(--white);
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .contact-item i {
            font-size: 2rem;
            color: var(--primary-color);
        }

        .contact-item-text h3 {
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }

        .contact-item-text p {
            color: var(--text-light);
            margin: 0;
        }

        /* Footer */
        footer {
            background: var(--dark-bg);
            color: var(--white);
            text-align: center;
            padding: 2rem;
        }

        /* Notification Toast */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-weight: 500;
            animation: slideIn 0.3s ease;
        }

        .notification.success {
            background: var(--primary-color);
            color: white;
        }

        .notification.error {
            background: #EF4444;
            color: white;
        }

        /* Animation de code */
        .hero-code-animation {
            max-width: 500px;
            animation: fadeInRight 1s ease;
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .code-window {
            background: #1e1e1e;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .code-window-header {
            background: #2d2d2d;
            padding: 0.8rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dot.red { background: #ff5f56; }
        .dot.yellow { background: #ffbd2e; }
        .dot.green { background: #27c93f; }

        .file-name {
            margin-left: auto;
            color: #888;
            font-size: 0.85rem;
            font-family: 'Courier New', monospace;
        }

        .code-content {
            padding: 1.5rem;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.8;
            color: #d4d4d4;
            min-height: 280px;
        }

        .code-content pre {
            margin: 0;
        }

        .keyword { color: #569cd6; }
        .variable { color: #9cdcfe; }
        .property { color: #9cdcfe; }
        .string { color: #ce9178; }
        .cursor {
            display: inline-block;
            width: 8px;
            height: 18px;
            background: var(--primary-color);
            animation: blink 0.7s infinite;
            margin-left: 2px;
        }

        @keyframes blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }

        @keyframes slideIn {
            from { transform: translateX(400px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(400px); opacity: 0; }
        }

        /* ==========================================
           RESPONSIVE MOBILE COMPACT ET OPTIMISÉ
           ========================================== */
        
        @media (max-width: 1024px) {
            /* Sidebar coulissante */
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                width: 85%;
                max-width: 320px;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .sidebar.active::after {
                content: '';
                position: fixed;
                top: 0;
                left: 100%;
                width: 100vw;
                height: 100vh;
                background: rgba(0, 0, 0, 0.5);
                z-index: -1;
            }

            .burger {
                display: flex;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            }

            .main-content {
                margin-left: 0;
                width: 100%;
            }

            /* Hero Section Mobile */
            .hero {
                min-height: 100svh;
                padding: 6rem 1.25rem 3rem;
            }

            .hero-content {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }

            .hero-text h1 {
                font-size: 2rem;
                line-height: 1.3;
                margin-bottom: 1rem;
            }

            .hero-text p {
                font-size: 0.95rem;
                margin-bottom: 1.75rem;
                line-height: 1.6;
            }

            .hero-buttons {
                flex-direction: column;
                gap: 0.9rem;
                width: 100%;
            }

            .btn {
                width: 100%;
                padding: 0.95rem 1.75rem;
                font-size: 0.95rem;
                min-height: 48px;
            }

            .hero-code-animation {
                max-width: 100%;
                order: -1;
            }

            .code-window {
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            }

            .code-content {
                font-size: 0.7rem;
                padding: 0.9rem;
                min-height: 180px;
                line-height: 1.5;
            }

            .particle {
                display: none;
            }

            .particle:nth-child(-n+6) {
                display: block;
            }

            /* Sections Mobile COMPACTES */
            .section {
                padding: 2.75rem 1.25rem;
            }

            .section-title {
                font-size: 1.65rem;
                margin-bottom: 0.6rem;
            }

            .section-subtitle {
                font-size: 0.88rem;
                margin-bottom: 2rem;
                padding: 0 0.5rem;
            }

            /* À Propos Mobile COMPACT */
            .about-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .about-text p {
                font-size: 0.88rem;
                line-height: 1.65;
                margin-bottom: 1.1rem;
            }

            /* Skills en 2 colonnes compactes */
            .skills {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.9rem;
            }

            .skill-item {
                padding: 1.1rem 0.9rem;
                text-align: center;
            }

            .skill-item i {
                font-size: 1.9rem;
                margin-bottom: 0.6rem;
            }

            .skill-item h3 {
                font-size: 0.95rem;
                margin-bottom: 0.3rem;
            }

            .skill-item p {
                font-size: 0.8rem;
                line-height: 1.4;
            }

            /* Timeline Mobile COMPACTE */
            .timeline {
                padding: 0.75rem 0;
            }

            .timeline::before {
                left: 16px;
            }

            .timeline-item,
            .timeline-item:nth-child(even) {
                padding-left: 48px;
                padding-right: 0;
                justify-content: flex-start;
                margin-bottom: 1.5rem;
            }

            .timeline-dot {
                left: 16px;
                width: 14px;
                height: 14px;
                border-width: 3px;
            }

            .timeline-content {
                max-width: 100%;
                padding: 1.2rem;
            }

            .timeline-content h3 {
                font-size: 1rem;
                margin-bottom: 0.4rem;
            }

            .timeline-content .date {
                font-size: 0.82rem;
                margin-bottom: 0.7rem;
            }

            .timeline-content p {
                font-size: 0.88rem;
                line-height: 1.5;
                margin-bottom: 0.8rem;
            }

            .btn-secondary {
                width: 100%;
                text-align: center;
                padding: 0.75rem 1.3rem;
                min-height: 44px;
                font-size: 0.88rem;
            }

            /* Projets Mobile COMPACTS */
            .projects-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .project-card {
                box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
            }

            .project-image {
                height: 180px;
            }

            .project-content {
                padding: 1.2rem;
            }

            .project-content h3 {
                font-size: 1.1rem;
                margin-bottom: 0.7rem;
            }

            .project-content p {
                font-size: 0.85rem;
                margin-bottom: 1rem;
                line-height: 1.5;
            }

            .project-tags {
                gap: 0.5rem;
                margin-bottom: 1rem;
            }

            .tag {
                font-size: 0.75rem;
                padding: 0.4rem 0.8rem;
            }

            .project-link-single {
                padding: 0.85rem;
                font-size: 0.9rem;
                min-height: 46px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
            }

            /* Veille Mobile COMPACTE */
            .veille-intro {
                padding: 1.2rem;
                margin-bottom: 1.5rem;
            }

            .veille-intro h3 {
                font-size: 1.05rem;
                margin-bottom: 0.7rem;
            }

            .veille-intro p {
                font-size: 0.85rem;
                line-height: 1.6;
            }

            .veille-item {
                padding: 1.2rem;
                margin-bottom: 1.2rem;
            }

            .veille-item:hover {
                transform: translateX(0);
            }

            .veille-item-header {
                flex-direction: row;
                align-items: center;
                gap: 1rem;
                margin-bottom: 0.8rem;
            }

            .veille-icon {
                width: 45px;
                height: 45px;
                font-size: 1.2rem;
            }

            .veille-item h3 {
                font-size: 1rem;
                margin-bottom: 0.2rem;
            }

            .veille-date {
                font-size: 0.75rem;
            }

            .veille-item p {
                font-size: 0.85rem;
                line-height: 1.55;
                margin-bottom: 0.8rem;
            }

            .veille-sources {
                gap: 0.5rem;
            }

            .source-tag {
                font-size: 0.75rem;
                padding: 0.4rem 0.7rem;
            }

            /* Contact Mobile */
            .contact-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .contact-form {
                padding: 1.5rem;
            }

            .form-group {
                margin-bottom: 1.1rem;
            }

            .form-group input,
            .form-group textarea {
                padding: 0.95rem;
                font-size: 0.95rem;
                min-height: 48px;
            }

            .form-group textarea {
                min-height: 120px;
            }

            .form-group label {
                font-size: 0.9rem;
                margin-bottom: 0.5rem;
            }

            .contact-info {
                gap: 1rem;
            }

            .contact-item {
                padding: 1.1rem;
            }

            .contact-item i {
                font-size: 1.6rem;
            }

            .contact-item-text h3 {
                font-size: 0.95rem;
            }

            .contact-item-text p {
                font-size: 0.85rem;
            }

            /* Footer Mobile */
            footer {
                padding: 1.5rem 1.25rem;
                font-size: 0.85rem;
            }

            /* Notifications Mobile */
            .notification {
                left: 1rem;
                right: 1rem;
                top: 1rem;
                max-width: calc(100% - 2rem);
            }
        }

        /* Très petits écrans (< 375px) */
        @media (max-width: 374px) {
            .hero-text h1 {
                font-size: 1.75rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .code-content {
                font-size: 0.65rem;
            }

            .btn {
                padding: 0.85rem 1.5rem;
                font-size: 0.9rem;
            }

            .skills {
                grid-template-columns: 1fr;
            }
        }

        /* Landscape mobile */
        @media (max-width: 1024px) and (orientation: landscape) {
            .hero {
                min-height: auto;
                padding: 4rem 1.25rem 2rem;
            }

            .hero-content {
                gap: 1.5rem;
            }

            .hero-text h1 {
                font-size: 1.8rem;
            }

            .code-content {
                min-height: 140px;
            }
        }
