        /* Variables CSS pour les thèmes */
        :root {
            /* Light Mode (par défaut) */
            --bg-color: #f4f7f6;
            --text-color: #333;
            --card-bg: #ffffff;
            --primary-accent: #3498db;
            --secondary-accent: #2c3e50;
            --tertiary-accent: #27ae60; /* Green */
            --warning-color: #e67e22; /* Orange */
            --error-color: #e74c3c; /* Red */
            --border-color: #ddd;
            --shadow-color: rgba(0, 0, 0, 0.1);
            --header-bg: linear-gradient(135deg, #3498db, #2c3e50);
            --profile-border-color: #2c3e50;
        }

        /* Dark Mode */
        body.dark-mode {
            --bg-color: #282c34;
            --text-color: #abb2bf;
            --card-bg: #2f343f;
            --primary-accent: #61afef; /* Blue */
            --secondary-accent: #c678dd; /* Violet */
            --tertiary-accent: #98c379; /* Green */
            --warning-color: #e6c07b; /* Yellow */
            --error-color: #e06c75; /* Red */
            --border-color: #4b5263;
            --shadow-color: rgba(0, 0, 0, 0.4);
            --header-bg: linear-gradient(135deg, #1e2127, #282c34);
            --profile-border-color: #c678dd;
        }

        body {
            font-family: 'Roboto Mono', monospace;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 30px auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        @media (min-width: 768px) {
            .container {
                grid-template-columns: 300px 1fr;
            }
        }

        header {
            background: var(--header-bg);
            color: var(--text-color);
            padding: 40px 20px;
            text-align: center;
            border-bottom: 2px solid var(--primary-accent);
            box-shadow: 0 5px 15px var(--shadow-color);
            grid-column: 1 / -1;
            position: relative;
            overflow: hidden;
        }

        .header-bg-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            opacity: 0.1;
        }

        header h1 {
            margin: 0;
            font-size: 2.8em;
            font-weight: 700;
            color: var(--primary-accent);
            z-index: 1;
            position: relative;
        }

        header .subtitle {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.4em;
            font-weight: 300;
            margin-top: 5px;
            color: var(--tertiary-accent);
            z-index: 1;
            position: relative;
        }

        .profile-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 3px solid var(--profile-border-color);
            margin-bottom: 20px;
            object-fit: cover;
            box-shadow: 0 0 0 5px rgba(198, 120, 221, 0.3);
            display: block;
            margin-left: auto;
            margin-right: auto;
            position: relative;
            z-index: 1;
            transition: transform 0.3s ease-in-out, border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .profile-img:hover {
            transform: scale(1.05) rotate(2deg);
        }

        .card {
            background-color: var(--card-bg);
            padding: 25px;
            border-radius: 6px;
            box-shadow: 0 5px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
            transition: transform 0.2s ease-in-out, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            opacity: 0;
            transform: translateY(20px);
        }
        .card.fade-in {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        .card:hover {
            transform: translateY(-5px);
        }

        .card h2 {
            color: var(--primary-accent);
            font-size: 1.4em;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 8px;
            font-weight: 700;
            transition: color 0.3s ease, border-color 0.3s ease;
        }

        .card ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .card ul li {
            margin-bottom: 8px;
            display: flex;
            align-items: flex-start;
            font-size: 0.9em;
            color: var(--text-color);
        }
        .card ul li i {
            margin-right: 10px;
            color: var(--secondary-accent);
            font-size: 1.1em;
            flex-shrink: 0;
            padding-top: 2px;
            transition: color 0.3s ease;
        }

        .card ul li a {
            color: var(--text-color); /* Lien par défaut */
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .card ul li a:hover {
            color: var(--primary-accent);
            text-decoration: underline;
        }


        .tags-list {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .tag {
            background-color: var(--border-color);
            color: var(--text-color);
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.8em;
            font-weight: 400;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }
        .tag:hover {
            background-color: var(--primary-accent);
            color: var(--card-bg); /* Ou une couleur de texte contrastante */
        }

        .main-content .card {
            margin-bottom: 30px;
        }

        .about-me p {
            font-family: 'Montserrat', sans-serif;
            font-size: 1em;
            color: var(--text-color);
            margin-bottom: 15px;
        }
        .about-me p strong {
            color: var(--warning-color);
        }
        .about-me p a {
            color: var(--primary-accent);
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s ease;
        }
        .about-me p a:hover {
            text-decoration: underline;
        }

        .experience-item, .education-item {
            margin-bottom: 25px;
            padding-left: 15px;
            border-left: 2px solid var(--tertiary-accent);
            position: relative;
            transition: border-color 0.3s ease;
        }
        .experience-item::before, .education-item::before {
            content: '';
            position: absolute;
            left: -7px;
            top: 5px;
            width: 12px;
            height: 12px;
            background-color: var(--tertiary-accent);
            border-radius: 50%;
            box-shadow: 0 0 0 3px rgba(152, 195, 121, 0.2); /* Adjust alpha for light mode */
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .experience-item h3, .education-item h3 {
            margin-top: 0;
            margin-bottom: 5px;
            color: var(--primary-accent);
            font-size: 1.15em;
            font-weight: 700;
            transition: color 0.3s ease;
        }

        .experience-item .date, .education-item .date {
            font-family: 'Roboto Mono', monospace;
            font-size: 0.85em;
            color: var(--border-color); /* Utilise la couleur de bordure pour les dates */
            margin-bottom: 10px;
            display: block;
            transition: color 0.3s ease;
        }

        .periode-date {
            color: #ddd;
        }

        .experience-item ul {
            list-style: none;
            padding-left: 0;
            margin-top: 5px;
        }
        .experience-item ul li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 5px;
            font-size: 0.9em;
            color: var(--text-color);
            font-family: 'Montserrat', sans-serif;
        }
        .experience-item ul li::before {
            content: '>';
            position: absolute;
            left: 0;
            color: var(--secondary-accent);
            font-weight: bold;
            transition: color 0.3s ease;
        }

        footer {
            text-align: center;
            padding: 20px;
            margin-top: 30px;
            color: var(--border-color);
            font-size: 0.8em;
            width: 100%;
            border-top: 1px solid var(--border-color);
            transition: color 0.3s ease, border-top-color 0.3s ease;
        }

        footer span {
            color: var(--secondary-accent);
            transition: color 0.3s ease;
        }

        /* Styles pour le modal de compétence */
        .skill-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.8);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
        }

        .modal-content {
            background-color: var(--card-bg);
            margin: auto;
            padding: 30px;
            border: 1px solid var(--primary-accent);
            border-radius: 6px;
            width: 80%;
            max-width: 500px;
            box-shadow: 0 5px 20px var(--shadow-color);
            position: relative;
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.3s ease-out;
        }

        .skill-modal.show .modal-content {
            transform: scale(1);
            opacity: 1;
        }

        .close-button {
            color: var(--text-color);
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            top: 10px;
            right: 20px;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-button:hover,
        .close-button:focus {
            color: var(--error-color);
            text-decoration: none;
        }

        .modal-content h3 {
            color: var(--primary-accent);
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 1.5em;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
            transition: color 0.3s ease, border-color 0.3s ease;
        }

        .modal-content p {
            color: var(--text-color);
            font-family: 'Montserrat', sans-serif;
            margin-bottom: 15px;
        }

        .modal-content .modal-skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .modal-content .modal-skill-tag {
            background-color: var(--secondary-accent);
            color: var(--card-bg);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 600;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Toggle Button for Dark Mode */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 2px 5px var(--shadow-color);
            z-index: 1001;
            transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .theme-toggle i {
            font-size: 1.4em;
            color: var(--primary-accent);
            transition: color 0.3s ease;
        }