﻿/* Variables CSS pour assurer la cohérence */
        :root {
            --primary-blue: #3b82f6;
            --bg-secondary: #f8fafc;
            --text-secondary: #6b7280;
        }
        
        /* Assurance que le contenu s'affiche */
        body { 
            visibility: visible !important; 
            opacity: 1 !important; 
            display: block !important;
        }
        
        main { 
            display: block !important; 
            visibility: visible !important; 
        }
        
        .grid { 
            display: grid !important; 
        }
        
        .section { 
            display: block !important; 
        }

/* Styles spécifiques pour la page Projets */
        
        /* Classes utilitaires manquantes */
        .text-center {
            text-align: center;
        }
        
        .d-flex {
            display: flex;
        }
        
        .justify-center {
            justify-content: center;
        }
        
        .gap-md {
            gap: 1rem;
        }
        
        .gap-lg {
            gap: 2rem;
        }
        
        .mb-xl {
            margin-bottom: 3rem;
        }
        
        .section {
            padding: 4rem 2rem;
        }
        
        .section--bg-secondary {
            background-color: var(--bg-secondary);
        }
        
        .section--bg-tertiary {
            background-color: var(--bg-tertiary);
        }
        
        .grid {
            display: grid;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .grid-3 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
        
        .intro-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        /* Styles des boutons */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border: 2px solid transparent;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            font-family: inherit;
            font-size: 0.9rem;
            background-color: transparent;
        }
        
        .btn-primary {
            background: #3b82f6 !important;
            color: white !important;
            border-color: #3b82f6 !important;
        }
        
        .btn-primary:hover {
            background: #2563eb !important;
            border-color: #2563eb !important;
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background: #6b7280 !important;
            color: white !important;
            border-color: #6b7280 !important;
        }
        
        .btn-secondary:hover {
            background: #4b5563 !important;
            border-color: #4b5563 !important;
        }
        
        .btn-outline {
            background: transparent !important;
            border: 2px solid #3b82f6 !important;
            color: #3b82f6 !important;
        }
        
        .btn-outline:hover {
            background: #3b82f6 !important;
            color: white !important;
        }
        
        .filter-btn {
            display: inline-flex !important;
            align-items: center !important;
            gap: 0.5rem !important;
            padding: 0.75rem 1.5rem !important;
            border-radius: 8px !important;
            transition: all 0.3s ease !important;
            cursor: pointer !important;
            text-decoration: none !important;
            font-weight: 500 !important;
        }
        
        .filter-btn.active {
            background: #3b82f6 !important;
            color: white !important;
            border-color: #3b82f6 !important;
        }
        
        /* Styles des cards projets */
        .project-card {
            background: var(--bg-primary);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        }

        .project-header {
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #f3f4f6;
        }

        .project-header h3 {
            color: var(--primary-blue);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .project-header h3 i {
            color: var(--primary-blue);
        }

        .card-subtitle {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
        }

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

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

        .tech-tag {
            background: var(--bg-secondary);
            color: var(--primary-blue);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .project-links {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .project-links .btn {
            flex: 1;
            min-width: 120px;
            justify-content: center;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            max-width: 800px;
            margin: 2rem auto 0;
        }

        .stat-item {
            text-align: center;
            padding: 1.5rem;
            background: var(--bg-primary);
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .stat-number {
            display: block;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .filter-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        @media (max-width: 768px) {
            .grid-3 {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .project-links {
                flex-direction: column;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .d-flex.justify-center.gap-md {
                flex-wrap: wrap;
                gap: 1rem;
            }

            .filter-btn {
                flex: 1;
                min-width: 0;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Dark mode overrides */
        [data-theme="dark"] .section--bg-secondary {
            background-color: #1e293b !important;
        }

        [data-theme="dark"] .section--bg-tertiary {
            background-color: #334155 !important;
        }

        /* Styles pour la modal d'image */
        .modal-overlay {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content-image {
            position: relative;
            max-width: 95%;
            max-height: 95%;
            animation: zoomIn 0.3s ease;
        }

        @keyframes zoomIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-content-image img {
            width: 100%;
            height: auto;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
            z-index: 10001;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .modal-close:hover {
            color: #3b82f6;
        }

        @media (max-width: 768px) {
            .modal-content-image {
                max-width: 98%;
                max-height: 98%;
            }

            .modal-close {
                top: -35px;
                font-size: 35px;
            }
        }