  /* Variables CSS Personnalisées */
        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
            --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
            --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
            --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
        }

        /* Mode sombre */
        [data-theme="dark"] {
            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --bg-primary: #0a0a0a;
            --bg-secondary: #1a1a1a;
            --border-color: rgba(255, 255, 255, 0.1);
        }

        /* Mode clair */
        [data-theme="light"] {
            --text-primary: #18181b;
            --text-secondary: #71717a;
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --border-color: rgba(0, 0, 0, 0.1);
        }

        /* Reset et base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-primary);
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            transition: var(--transition-smooth);
        }

        /* Particules animées en arrière-plan */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-gradient);
            border-radius: 50%;
            opacity: 0.6;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
            50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1rem 0;
            backdrop-filter: blur(20px);
            background: var(--glass-bg);
            border-bottom: 1px solid var(--glass-border);
            transition: var(--transition-smooth);
        }

        /* Mode light - Navigation */
        [data-theme="light"] .navbar {
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid rgba(148, 163, 184, 0.2);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .navbar.scrolled {
            background: rgba(10, 10, 10, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

         .nav-container a{
            text-decoration: none;
        }

        .logo {
            font-family: var(--font-display);
            font-size: 1.75rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            transition: var(--transition-smooth);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-gradient);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .theme-toggle {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            padding: 0.5rem 1rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .theme-toggle:hover {
            background: var(--primary-gradient);
            transform: scale(1.05);
        }

        /* ===============================
        MENU BURGER - STYLES AMÉLIORÉS
        ===============================*/

        /* Menu hamburger - Version moderne */
        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 0.75rem;
            gap: 4px;
            transition: var(--transition-smooth);
            position: relative;
            width: 44px;
            height: 44px;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        /* Mode light - Bouton hamburger */
        [data-theme="light"] .mobile-menu-btn {
            background: var(--light-card-bg);
            border: 1px solid var(--light-card-border);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .mobile-menu-btn:hover {
            background: var(--light-hover-bg);
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
        }

        .mobile-menu-btn:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(102, 126, 234, 0.3);
        }

        .mobile-menu-btn:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        .hamburger-line {
            width: 20px;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: var(--transition-smooth);
            transform-origin: center;
        }

        /* Mode light - Lignes hamburger */
        [data-theme="light"] .hamburger-line {
            background: var(--text-primary);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* Animation des lignes lors de l'ouverture */
        .mobile-menu-btn.active .hamburger-line:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
        }

        /* Menu mobile - Overlay moderne */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-smooth);
        }

        [data-theme="light"] .mobile-menu-overlay {
            background: rgba(255, 255, 255, .8);
            backdrop-filter: blur(15px);
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Menu mobile - Container principal */
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: min(350px, 85vw);
            height: 100vh;
            background: var(--glass-bg);
            border-left: 1px solid var(--glass-border);
            backdrop-filter: blur(25px);
            z-index: 9999;
            transition: var(--transition-smooth);
            display: flex;
            flex-direction: column;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
            overflow: hidden; /* Empêche le scroll sur le container principal */
        }

        [data-theme="light"] .mobile-menu {
            background: var(--light-card-bg);
            border-left: 1px solid var(--light-card-border);
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
        }

        .mobile-menu.active {
            right: 0;
        }

        /* En-tête du menu mobile */
        .mobile-menu-header {
            padding: 2rem 1.5rem 1rem;
            border-bottom: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(10px);
        }

        [data-theme="light"] .mobile-menu-header {
            background: var(--light-accent-bg);
        }

        .mobile-menu-logo {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: var(--transition-smooth);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

        .mobile-menu-close:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(90deg);
        }

        [data-theme="light"] .mobile-menu-close:hover {
            background: var(--light-hover-bg);
            color: #667eea;
        }

        .mobile-menu-close:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* Navigation mobile */
        .mobile-nav {
            flex: 1;
            padding: 2rem 0;
            overflow-y: auto; /* Permet le scroll dans la zone de navigation */
            overflow-x: hidden;
        }

        /* Personnalisation de la scrollbar pour le menu mobile */
        .mobile-nav::-webkit-scrollbar {
            width: 4px;
        }

        .mobile-nav::-webkit-scrollbar-track {
            background: transparent;
        }

        .mobile-nav::-webkit-scrollbar-thumb {
            background: var(--primary-gradient);
            border-radius: 2px;
        }

        [data-theme="light"] .mobile-nav::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.5);
        }

        .mobile-nav-links {
            list-style: none;
            padding: 0 1.5rem;
            margin: 0;
        }

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

        .mobile-nav-links a {
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            border-radius: 12px;
            transition: var(--transition-smooth);
            position: relative;
            overflow: hidden;
        }

        [data-theme="light"] .mobile-nav-links a {
            color: var(--text-primary);
            font-weight: 600;
        }

        .mobile-nav-links a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 0;
            height: 100%;
            background: var(--primary-gradient);
            transition: width 0.3s ease;
            z-index: -1;
        }

        .mobile-nav-links a:hover::before,
        .mobile-nav-links a:focus::before {
            width: 100%;
        }

        .mobile-nav-links a:hover,
        .mobile-nav-links a:focus {
            color: white;
            transform: translateX(10px);
            background: rgba(102, 126, 234, 0.1);
        }

        [data-theme="light"] .mobile-nav-links a:hover,
        [data-theme="light"] .mobile-nav-links a:focus {
            background: var(--light-hover-bg);
            transform: translateX(8px);
        }

        .mobile-nav-links a:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* État inactif des liens (quand le menu est fermé) */
        .mobile-menu:not(.active) .mobile-nav-links a,
        .mobile-menu:not(.active) .mobile-menu-close,
        .mobile-menu:not(.active) .mobile-theme-toggle {
            pointer-events: none;
            opacity: 0.5;
        }

        /* Réactivation des liens quand le menu est ouvert */
        .mobile-menu.active .mobile-nav-links a,
        .mobile-menu.active .mobile-menu-close,
        .mobile-menu.active .mobile-theme-toggle {
            pointer-events: auto;
            opacity: 1;
        }

        /* Icônes pour les liens (optionnel) */
        .mobile-nav-links a::after {
            content: '→';
            margin-left: auto;
            opacity: 0;
            transform: translateX(-10px);
            transition: var(--transition-smooth);
        }

        .mobile-nav-links a:hover::after {
            opacity: 1;
            transform: translateX(0);
        }

        /* Footer du menu mobile */
        .mobile-menu-footer {
            padding: 1.5rem;
            border-top: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
        }

        [data-theme="light"] .mobile-menu-footer {
            background: var(--light-accent-bg);
        }

        .mobile-theme-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .mobile-theme-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .mobile-theme-toggle {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 0.5rem 1rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: var(--transition-smooth);
            font-size: 0.9rem;
        }

        [data-theme="light"] .mobile-theme-toggle {
            background: var(--light-card-bg);
            border: 1px solid var(--light-card-border);
        }

        .mobile-theme-toggle:hover {
            background: var(--primary-gradient);
            color: white;
            transform: scale(1.05);
        }

        .mobile-contact-info {
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-align: center;
            line-height: 1.5;
        }

        .mobile-contact-info a {
            color: #667eea;
            text-decoration: none;
        }

        .mobile-contact-info a:hover {
            text-decoration: underline;
        }

        /* Responsive - Affichage du menu mobile */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: flex;
            }

            .theme-toggle {
                display: none; /* Cache le toggle desktop sur mobile */
            }
        }

        @media (max-width: 480px) {
            .mobile-menu {
                width: 100vw;
                right: -100vw;
            }

            .mobile-menu.active {
                right: 0;
            }

            .mobile-menu-header {
                padding: 1.5rem 1rem 1rem;
            }

            .mobile-nav {
                padding: 1.5rem 0;
            }

            .mobile-nav-links {
                padding: 0 1rem;
            }

            .mobile-nav-links a {
                font-size: 1rem;
                padding: 0.875rem 1rem;
            }

            /* Grille de projets */
            .projects-grid {
                display: block;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                margin-bottom: 3rem;
            }
        }

        /* Animations d'entrée pour les éléments du menu */
        .mobile-menu.active .mobile-nav-links li {
            animation: slideInFromRight 0.4s ease forwards;
        }

        .mobile-menu.active .mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(2) { animation-delay: 0.15s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(3) { animation-delay: 0.2s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(4) { animation-delay: 0.25s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(5) { animation-delay: 0.3s; }

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

        /* États d'accessibilité */
        @media (prefers-reduced-motion: reduce) {
            .mobile-menu,
            .mobile-menu-overlay,
            .hamburger-line,
            .mobile-nav-links a,
            .mobile-theme-toggle {
                transition: none;
            }

            .mobile-menu.active .mobile-nav-links li {
                animation: none;
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Focus visible amélioré pour l'accessibilité */
        .mobile-menu-btn:focus-visible,
        .mobile-menu-close:focus-visible,
        .mobile-nav-links a:focus-visible,
        .mobile-theme-toggle:focus-visible {
            outline: 2px solid #667eea;
            outline-offset: 2px;
            border-radius: 4px;
        }

        /* Mode high contrast */
        @media (prefers-contrast: high) {
            [data-theme="light"] .mobile-menu {
                border-left: 2px solid #000;
            }

            [data-theme="light"] .mobile-nav-links a:hover {
                background: #000;
                color: #fff;
            }
        }

        @media (max-width: 768px) {

            .nav-links {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }

            .mobile-menu-btn {
                display: flex;
            }

            .theme-toggle {
                display: none; /* Cache aussi le toggle desktop sur mobile */
            }
        }

        .demo-environment {
            margin-top: 80px;
            padding: 4rem 0;
            background: var(--bg-primary);
            position: relative;
            overflow: hidden;
        }

        .demo-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .demo-header {
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
            z-index: 2;
        }

        .demo-title {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 1rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: fadeInUp 1s ease;
        }

        .demo-subtitle {
            font-size: 1.25rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
            animation: fadeInUp 1s ease 0.2s both;
        }

        /* Filtres de catégorie */
        .demo-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            animation: fadeInUp 1s ease 0.4s both;
        }

        .filter-btn {
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: var(--transition-smooth);
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--primary-gradient);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }

        /* Grille de projets */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .project-card {
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            overflow: hidden;
            backdrop-filter: blur(20px);
            transition: var(--transition-smooth);
            position: relative;
            animation: fadeInUp 1s ease;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
            border-color: var(--glass-border);
        }

        .project-preview {
            position: relative;
            height: 300px;
            overflow: hidden;
            cursor: pointer;
        }

        .project-mockup {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition-smooth);
        }

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

        .project-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition-smooth);
        }

        .project-card:hover .project-overlay {
            opacity: 1;
        }

        .preview-btn {
            background: white;
            color: #667eea;
            border: none;
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transform: translateY(20px);
            transition: var(--transition-smooth);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .project-card:hover .preview-btn {
            transform: translateY(0);
        }

        .project-info {
            padding: 2rem;
        }

        .project-title {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .project-category {
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 1rem;
        }

        .project-description {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

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

        .tag {
            background: var(--bg-secondary);
            color: var(--text-secondary);
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .project-actions {
            display: flex;
            padding-top: 2rem;
            gap: 1rem;
        }

        .action-btn {
            position: absolute;
            bottom: 0;
            width: 70%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 0.75rem;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition-smooth);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

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

        .btn-secondary {
            background: var(--glass-bg);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }
        /* Modal de prévisualisation */
        .preview-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(20px);
        }

        .modal-content {
            background: var(--bg-primary);
            border-radius: 20px;
            width: 90%;
            max-width: 1200px;
            max-height: 90%;
            overflow: hidden;
            position: relative;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-color);
        }

        .modal-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 600;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-smooth);
        }

        .close-btn:hover {
            background: var(--glass-bg);
            color: var(--text-primary);
        }

        .modal-body {
            height: 70vh;
            overflow: hidden;
        }

        .preview-iframe {
            width: 100%;
            height: 100%;
            border: none;
            background: white;
        }

        /* Statistiques */
        .demo-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
            padding: 3rem 0;
            border-top: 1px solid var(--border-color);
        }

        .stat-item {
            text-align: center;
            animation: fadeInUp 1s ease;
        }

        .stat-number {
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
        }

        .stat-label {
            color: var(--text-secondary);
            font-weight: 500;
            margin-top: 0.5rem;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        
       /* Section CTA adaptée au design global */
.portfolio-cta {
    background: linear-gradient(#1e293b 30%, #667eea 70%);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 25s ease-in-out infinite;
    opacity: 0.6;
}

.cta-title {
    font-family: var(--font-display);
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-description {
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 300;
}

.btn-primary:hover {
    box-shadow: 2px 10px 30px rgba(0, 0, 0, 0.9);
}


.btn-secondary {
    background: var(--glass-bg);
    color: #ffffff;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(15px);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* MODE DARK - Adaptations */
[data-theme="dark"] .portfolio-cta {
    background: linear-gradient(#1e293b 30%, #667eea 70%);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cta-title {
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cta-description {
    color: rgba(248, 250, 252, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(248, 250, 252, 0.12);
    border-color: rgba(248, 250, 252, 0.25);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(248, 250, 252, 0.2);
    border-color: rgba(248, 250, 252, 0.35);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* Animations améliorées */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6; 
    }
    33% { 
        transform: translateY(-15px) rotate(60deg); 
        opacity: 0.8; 
    }
    66% { 
        transform: translateY(-8px) rotate(120deg); 
        opacity: 0.4; 
    }
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .portfolio-cta {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
        border-radius: 20px;
    }
    
    .cta-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .portfolio-cta {
        padding: 2.5rem 1.25rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* === Nouvelles règles pour desktop (≥ 1024px) pour diminuer taille globale === */
@media (min-width: 1024px) {
    .portfolio-cta {
        padding: 3rem 2rem;
        margin: 3rem 0;
        border-radius: 20px;
    }

    .cta-title {
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .cta-description {
        font-size: 1.125rem;
        max-width: 600px;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}
