:root[data-theme="light"] {
            --bg-color: #f4f6f8;
            --card-bg: #ffffff;
            --text-color: #1a1a1a;
            --text-secondary: #666666;
            --border-color: #e2e8f0;
            --primary-color: #3b82f6;
            --primary-hover: #2563eb;
            --tag-bg: #eff6ff;
            --tag-color: #1d4ed8;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        }

        :root[data-theme="dark"] {
            --bg-color: #0f172a;
            --card-bg: #1e293b;
            --text-color: #f8fafc;
            --text-secondary: #94a3b8;
            --border-color: #334155;
            --primary-color: #60a5fa;
            --primary-hover: #3b82f6;
            --tag-bg: #1e3a8a;
            --tag-color: #93c5fd;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        }

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

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            padding: 20px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .main-wrapper {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
        }

        .theme-switch-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .theme-switch {
            display: inline-block;
            height: 30px;
            position: relative;
            width: 54px;
        }

        .theme-switch input { display: none; }

        .slider {
            background-color: #cbd5e1;
            bottom: 0;
            cursor: pointer;
            left: 0;
            position: absolute;
            right: 0;
            top: 0;
            transition: 0.3s;
            border-radius: 30px;
        }

        .slider:before {
            background-color: #ffffff;
            bottom: 3px;
            content: "";
            height: 24px;
            left: 3px;
            position: absolute;
            transition: 0.3s;
            width: 24px;
            border-radius: 50%;
        }

        input:checked + .slider { background-color: var(--primary-color); }
        input:checked + .slider:before { transform: translateX(24px); }

        .card {
            background-color: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 28px;
            box-shadow: var(--shadow);
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .card h2 {
            font-size: 1.5rem;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 8px;
            transition: border-color 0.3s ease;
        }

        .card p {
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

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

        /* 5. SECTION PROJETS (GRILLE) */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .project-item {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 16px;
            background-color: var(--bg-color);
            transition: transform 0.2s ease, border-color 0.3s ease, background-color 0.3s ease;
        }

        .project-item:hover {
            transform: translateY(-3px);
        }

        .project-item h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }

        .tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
        }

        .tag {
            background-color: var(--tag-bg);
            color: var(--tag-color);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
        }