:root {
    --primary: #ff71ce;
    --secondary: #01cdfe;
    --accent: #05ffa1;
    --background: #2d0145;
    --text-light: #ffffff;
    --text-dark: #b967ff;
    /* Default Theme - Midnight Mystic */
    --primary-color: #2a0047;
    --secondary-color: #1a002e;
    --accent-color: #4a0077;
    --text-color: #ffffff;
    --text-color-inverse: #1a002e;
    --background-color: #2D0145;
    --nav-background: #2D0145;
    --card-background: #2a0047;
    --hero-background: #2a0047;
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #e0e0e0;
    --contact-background: var(--secondary-color);
    --nav-text-color: #ffffff; /* Ajouter cette variable */
    --transition-speed: 0.4s;
}

/* Rose Theme - Cherry Blossom */
[data-theme="rose"] {
    --primary-color: #ff69b4;
    --secondary-color: #ffb6c1;
    --accent-color: #ff1493;
    --text-color: #2a2a2a;
    --text-color-inverse: #ffffff;
    --background-color: #ffb6c1;
    --nav-background: #ffb6c1;
    --card-background: #ff69b4;
    --hero-background: #ff8fab;
    --section-text: #2a2a2a;
    --panel-text: #ffffff;
    --subtitle-color: #4a4a4a;
    --contact-background: #ff8fab;
    --nav-text-color: #2A2A2A; /* Nouvelle variable pour le texte de la navbar */
}

/* Ocean Theme - Deep Azure */
[data-theme="ocean"] {
    --primary-color: #006994;
    --secondary-color: #004466;
    --accent-color: #0099cc;
    --text-color: #ffffff;
    --text-color-inverse: #004466;
    --background-color: #004466;
    --nav-background: #004466;
    --card-background: #006994;
    --hero-background: #005577;
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #e0e0e0;
    --contact-background: #004466;
}

/* Forest Theme - Emerald Grove */
[data-theme="forest"] {
    --primary-color: #228B22;
    --secondary-color: #006400;
    --accent-color: #32CD32;
    --text-color: #ffffff;
    --text-color-inverse: #006400;
    --background-color: #006400;
    --nav-background: #006400;
    --card-background: #228B22;
    --hero-background: #1b7a1b;
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #e0e0e0;
    --contact-background: #006400;
}

/* Strifed Theme - Discord Colors */
[data-theme="strifed"] {
    --primary-color: #7289DA;
    --secondary-color: #2C2F33; /* Modifié pour être plus sombre */
    --accent-color: #5865F2;
    --text-color: #FFFFFF;
    --text-color-inverse: #2C2F33;
    --background-color: #2C2F33;
    --nav-background: #2C2F33;
    --card-background: #23272A;
    --hero-background: #23272A;
    --section-text: #FFFFFF;
    --panel-text: #FFFFFF;
    --subtitle-color: #99AAB5;
    --light-gray: #B0B0B0; /* Ajouté pour une couleur grise plus foncée */
    --contact-background: #23272A; /* Nouvelle variable pour le fond du contact */
}

/* White Gray Theme */
[data-theme="white-gray"] {
    --primary-color: #E0E0E0;
    --secondary-color: #B0B0B0;
    --accent-color: #A0A0A0;
    --text-color: #2A2A2A;
    --text-color-inverse: #FFFFFF;
    --background-color: #FFFFFF;
    --nav-background: #F0F0F0;
    --card-background: #E0E0E0;
    --hero-background: #D0D0D0;
    --section-text: #2A2A2A;
    --panel-text: #2A2A2A;
    --subtitle-color: #4A4A4A;
    --contact-background: #B0B0B0;
    --nav-text-color: #2A2A2A; /* Nouvelle variable pour le texte de la navbar */
}

/* Solaris Dawn - Thème jaune/or */
[data-theme="solaris"] {
    --primary-color: #FFD700;
    --secondary-color: #B8860B;
    --accent-color: #FFA500;
    --text-color: #2A2A2A;
    --text-color-inverse: #ffffff;
    --background-color: #FFEB99;
    --nav-background: #FFEB99;
    --card-background: #FFD700;
    --hero-background: #FFC125;
    --section-text: #2A2A2A;
    --panel-text: #2A2A2A;
    --subtitle-color: #4a4a4a;
    --contact-background: #B8860B;
    --nav-text-color: #2A2A2A;
}

/* Crimson Cipher - Thème rouge sombre */
[data-theme="crimson"] {
    --primary-color: #DC143C;
    --secondary-color: #8B0000;
    --accent-color: #FF4040;
    --text-color: #ffffff;
    --text-color-inverse: #8B0000;
    --background-color: #8B0000;
    --nav-background: #8B0000;
    --card-background: #DC143C;
    --hero-background: #B22222;
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #e0e0e0;
    --contact-background: #8B0000;
    --nav-text-color: #ffffff;
}

/* Cyber Mint - Thème vert/cyan futuriste */
[data-theme="cyber"] {
    --primary-color: #00FFB3;
    --secondary-color: #008B8B;
    --accent-color: #00CED1;
    --text-color: #ffffff;
    --text-color-inverse: #008B8B;
    --background-color: #004242;
    --nav-background: #004242;
    --card-background: #006666;
    --hero-background: #005555;
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #00FFB3;
    --contact-background: #008B8B;
    --nav-text-color: #00FFB3;
}

/* Nebula Dreams - Thème violet/rose spatial */
[data-theme="nebula"] {
    --primary-color: #9370DB;
    --secondary-color: #483D8B;
    --accent-color: #DA70D6;
    --text-color: #ffffff;
    --text-color-inverse: #483D8B;
    --background-color: #2F2F4F;
    --nav-background: #2F2F4F;
    --card-background: #483D8B;
    --hero-background: #4B0082;
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #e0e0e0;
    --contact-background: #483D8B;
    --nav-text-color: #ffffff;
}

/* Rainbow Pride Theme - Celebration Colors */
[data-theme="rainbow"] {
    --primary-color: #ff1a75;
    --secondary-color: #4B0082;
    --accent-color: #ffcc00;
    --text-color: #ffffff;
    --text-color-inverse: #333333;
    /* Utiliser un dégradé linéaire statique pour le background-color */
    --background-color: #9900cc; /* Couleur de secours */
    background: linear-gradient(270deg, rgba(238, 130, 238, 0.8), rgba(75, 0, 130, 0.8), rgba(0, 0, 255, 0.8), rgba(0, 128, 0, 0.8), rgba(255, 255, 0, 0.8), rgba(255, 165, 0, 0.8), rgba(255, 0, 0, 0.8));
    --nav-background: linear-gradient(90deg, rgba(255, 0, 0, 0.8), rgba(255, 165, 0, 0.8), rgba(255, 255, 0, 0.8), rgba(0, 128, 0, 0.8), rgba(0, 0, 255, 0.8), rgba(75, 0, 130, 0.8), rgba(238, 130, 238, 0.8));
    --card-background: rgba(0, 0, 0, 0.2);
    --hero-background: linear-gradient(135deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff);
    --section-text: #ffffff;
    --panel-text: #ffffff;
    --subtitle-color: #ffffff;
    --contact-background: linear-gradient(90deg, rgba(255, 0, 0, 0.7), rgba(255, 165, 0, 0.7), rgba(255, 255, 0, 0.7), rgba(0, 128, 0, 0.7), rgba(0, 0, 255, 0.7), rgba(75, 0, 130, 0.7));
    --nav-text-color: #ffffff;
}

/* Matrixed Theme - Terminal Matrix Style */
[data-theme="matrixed"] {
    --primary-color: #00FF00;
    --secondary-color: #003300;
    --accent-color: #00DD00;
    --text-color: #00FF00;
    --text-color-inverse: #000000;
    --background-color: #000000;
    --nav-background: rgba(0, 0, 0, 0.9);
    --card-background: #001100;
    --hero-background: #001100;
    --section-text: #00FF00;
    --panel-text: #00FF00;
    --subtitle-color: #00BB00;
    --contact-background: #001500;
    --nav-text-color: #00FF00;
}

/* Effets spéciaux pour le thème Matrixed */
[data-theme="matrixed"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(0, 20, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%),
                linear-gradient(90deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0) 50%);
    background-size: 100% 2px, 3px 100%;
    z-index: 10001;
    opacity: 0.6;
    animation: crt-flicker 5s infinite;
}

/* Ajouter un effet de scintillement léger au thème Matrixed */
@keyframes crt-flicker {
    0% { opacity: 0.6; }
    5% { opacity: 0.65; }
    10% { opacity: 0.55; }
    15% { opacity: 0.6; }
    20% { opacity: 0.6; }
    30% { opacity: 0.6; }
    40% { opacity: 0.6; }
    50% { opacity: 0.55; }
    60% { opacity: 0.6; }
    70% { opacity: 0.6; }
    80% { opacity: 0.58; }
    90% { opacity: 0.6; }
    100% { opacity: 0.6; }
}

/* Effet de distortion périphérique */
[data-theme="matrixed"] body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 80%, rgba(0, 20, 0, 0.15) 100%);
    z-index: 10000;
}

/* Renforcer l'effet de luminosité pour les textes */
[data-theme="matrixed"] .hero-content h1,
[data-theme="matrixed"] .subtitle,
[data-theme="matrixed"] h2,
[data-theme="matrixed"] h3 {
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8), 0 0 12px rgba(0, 255, 0, 0.4);
}

[data-theme="matrixed"] .project-card,
[data-theme="matrixed"] .skill-card,
[data-theme="matrixed"] .contact-card {
    border-color: #00FF00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

[data-theme="matrixed"] .project-card:hover,
[data-theme="matrixed"] .skill-card:hover,
[data-theme="matrixed"] .contact-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

[data-theme="matrixed"] .hero-content h1 {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

/* Theme selector et panel styles */
.theme-selector {
    position: relative;
}

.theme-panel {
    position: fixed;
    top: 65px; /* juste en dessous de la navbar */
    right: 20px;
    width: 250px;
    max-height: 80vh; /* Limite la hauteur à 80% de la vue */
    background: var(--card-background);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto; /* Active le défilement vertical */
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .theme-panel {
        right: 10px;
        width: 90vw;
        max-width: 250px;
    }
}

/* Theme Panel Styles */
.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.theme-options {
    display: grid;
    gap: 10px;
    max-height: calc(80vh - 100px); /* Hauteur max en tenant compte du header */
    overflow-y: auto;
    padding-right: 10px; /* Espace pour la scrollbar */
}

/* Style de la scrollbar */
.theme-options::-webkit-scrollbar {
    width: 8px;
}

.theme-options::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}

.theme-options::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.theme-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Support Firefox */
.theme-options {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--secondary-color);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    color: var(--text-color);
    background: var(--card-background);
}

.theme-option:hover {
    background-color: var(--accent-color);
}

.color-preview {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

/* Modification du color-preview pour Midnight Mystic */
.color-preview.default { 
    background-color: #2a0047;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.color-preview.rose { background-color: #ff69b4; }
.color-preview.ocean { background-color: #006994; }
.color-preview.forest { background-color: #228B22; }
.color-preview.strifed { background-color: #7289DA; }
.color-preview.white-gray { background-color: #E0E0E0; }
.color-preview.solaris { background-color: #FFD700; }
.color-preview.crimson { background-color: #DC143C; }
.color-preview.cyber { background-color: #00FFB3; }
/* Correction de cette ligne qui avait un crochet en trop */
.color-preview.nebula { background-color: #9370DB; }
.color-preview.rainbow { 
    background: linear-gradient(to right, 
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff); 
    border: 2px solid #ffffff;
}

.color-preview.matrixed { 
    background-color: #00FF00; 
    border: 1px solid #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.theme-panel-header h3 {
    color: var(--text-color);
}

.theme-option span {
    color: var(--panel-text);
}

/* Section Headers Update */
section h2 {
    color: var(--section-text);
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

section p {
    color: var(--text-color);
}

.hero-content h1, .subtitle, .brief-intro p {
    color: var(--text-color);
}

/* Ajuster pour le responsive */
@media screen and (max-width: 768px) {
    .theme-panel {
        position: fixed;
        top: 60px;
        right: 1rem;
    }
}

.theme-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Modifier les couleurs existantes pour utiliser les variables */
body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar styles */
.navbar {
    position: fixed;
    width: 100%;
    background-color: var(--nav-background);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar > div {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(255, 113, 206, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto; /* Pour pousser le logo vers la gauche */
}

.nav-subtitle {
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.8;
    font-weight: normal;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--nav-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a i {
    margin-right: 0.3rem;
    font-size: 1.1em;
}

.nav-links a:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Mise à jour des liens de la navbar */
.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-link:hover {
    color: #7289DA;
}

.hero {
    min-height: 200px;
    padding: 5rem 0 4rem 0; /* Réduit de 12rem à 5rem */
    margin-top: -2rem; /* Ajout d'une marge négative pour remonter encore plus */
    display: flex;
    align-items: flex-start; /* Changer en flex-start au lieu de center */
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--hero-background) 0%,
        var(--card-background) 100%
    );
    position: relative;
    overflow: hidden;
    background-color: var(--hero-background);
    transition: background var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet scanlines simple */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.22) 0px,
        rgba(0, 0, 0, 0.22) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.hero-content, .brief-intro, .profile-image-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    margin-top: 0; /* Enlever la marge du haut */
    position: relative;
    z-index: 1;
    animation: ledGlow 2s ease-out forwards;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    animation: ledGlow 2s ease-out forwards;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    animation: ledGlow 2s ease-out 0.3s forwards;
    text-shadow: 0 0 10px var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-color); /* Utiliser accent-color au lieu de secondary */
    color: var(--text-light);
    backdrop-filter: blur(5px);
    transition: border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-color);
}

.skill-card h3 {
    color: var(--text-color);
}

.skill-card p {
    color: var(--subtitle-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.pixel-art-avatar {
    width: 150px;
    height: 150px;
    margin: 2rem auto;
    background: url('path-to-your-pixel-art.png') center/cover;
    image-rendering: pixelated;
    border: 4px solid var(--accent);
}

@keyframes glitch {
    0% { text-shadow: 2px 2px var(--primary); }
    25% { text-shadow: -2px -2px var(--secondary); }
    50% { text-shadow: 2px -2px var(--accent); }
    75% { text-shadow: -2px 2px var(--primary); }
    100% { text-shadow: 2px 2px var(--secondary); }
}

@keyframes ledGlow {
    0% {
        text-shadow: none;
        opacity: 0.2;
    }
    10% {
        text-shadow: 0 0 15px rgba(255, 113, 206, 1),
                     0 0 25px rgba(255, 113, 206, 0.8);
        opacity: 0.9;
    }
    20% {
        text-shadow: none;
        opacity: 0.3;
    }
    30% {
        text-shadow: 0 0 20px rgba(255, 113, 206, 1),
                     0 0 30px rgba(255, 113, 206, 0.8),
                     0 0 40px rgba(255, 113, 206, 0.6);
        opacity: 1;
    }
    40% {
        text-shadow: 0 0 10px rgba(255, 113, 206, 0.8);
        opacity: 0.8;
    }
    50%, 100% {
        text-shadow: 0 0 20px rgba(255, 113, 206, 1),
                     0 0 30px rgba(255, 113, 206, 0.8),
                     0 0 40px rgba(255, 113, 206, 0.6),
                     0 0 50px rgba(255, 113, 206, 0.4);
        opacity: 1;
    }
}

h1:hover {
    animation: glitch 0.5s infinite;
}

.projects {
    padding: 4rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(45, 1, 69, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--card-background);
    will-change: transform;
    contain: content;
    transition: border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-info h3 {
    color: var(--text-color);
}

.project-info p {
    color: var(--subtitle-color);
}

.tech-stack {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--accent);
    color: var(--background);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.dev-projects .project-card {
    border-color: var(--accent);
}

.dev-projects .project-card:hover {
    box-shadow: 0 0 20px var(--accent);
}

.project-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: underline;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--accent-color);
}

.contact {
    padding: 4rem 0;
    background-color: var(--contact-background);
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(45, 1, 69, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 250px;
    background-color: var(--card-background);
    transition: border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-color);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.contact-icon.bluesky {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2301cdfe' d='M21.302 8.433c-.259-.25-.571-.453-.921-.598l-1.073-.445c-.432-.172-.91-.182-1.346-.029-.437.153-.805.466-1.031.877 0 0-1.125 2.249-1.661 3.317l-.487.972c-.846 1.69-1.409 2.819-2.016 2.819-.607 0-1.132-1.129-1.979-2.819l-.487-.972c-.536-1.068-1.661-3.317-1.661-3.317-.226-.411-.594-.724-1.031-.877-.436-.153-.914-.143-1.346.029l-1.073.445c-.35.145-.662.348-.921.598-.26.25-.464.55-.602.881L2 12.032l2.728 5.457c.147.293.342.559.577.786.235.227.509.413.807.549l1.073.444c.432.171.91.181 1.346.028.437-.153.805-.466 1.031-.877 0 0 1.125-2.248 1.661-3.316l.487-.972c.846-1.69 1.409-2.819 2.016-2.819.607 0 1.132 1.129 1.979 2.819l.487.972c.536 1.068 1.661 3.316 1.661 3.316.226.411.594.724 1.031.877.436.153.914.143 1.346-.028l1.073-.444c.298-.136.572-.322.807-.549.235-.227.43-.493.577-.786L22 12.032l-2.096-2.718c-.138-.331-.342-.631-.602-.881z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}

.bluesky-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.contact-card:hover .bluesky-icon {
    transform: scale(1.1);
}

.contact-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--subtitle-color);
}

/* Style pour le message Discord */
.discord-message {
    background-color: rgba(114, 137, 218, 0.2);
    border-left: 3px solid #7289DA;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

.discord-message strong {
    color: #7289DA;
}

/* Styles pour le message de partage Discord */
.discord-share-note {
    margin-top: 15px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

.discord-share-note p {
    margin: 0;
}

.discord-share-note strong {
    color: var(--accent-color);
}

/* Modification du brief-intro */
.brief-intro {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 600px;
    background: var(--card-background); /* Remplacer la couleur fixe par la variable */
    border: 2px solid var(--accent-color);
    margin-top: 2rem;  /* Réduit de 3rem à 2rem */
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px var(--accent-color);
    position: relative;
    z-index: 1;
    animation: ledGlow 2s ease-out 0.6s forwards;
    opacity: 0.3;
}

.brief-intro p {
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
}

.brief-intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 113, 206, 0.8);
    margin-top: 1rem; /* Réduire la marge du haut */
    margin-bottom: 2rem; /* Ajouter une marge en bas */
    position: relative;
    z-index: 1;
    animation: ledGlow 2s ease-out 0.9s forwards;
    opacity: 0.3;
}

.main-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .brief-intro-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .theme-selector {
        margin-left: auto; /* Pour garder l'icône à droite sur mobile */
    }
}

@media screen and (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media screen and (max-width: 968px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        justify-content: flex-end;
    }

    .nav-logo {
        flex: 0 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .navbar > div {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
        margin-left: 0;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .theme-selector {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-subtitle {
        font-size: 0.7rem;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    .theme-panel {
        width: 90vw;
    }
}

.tech-skills {
    padding: 4rem 0;
    /* Garde la couleur de fond normale */
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    background-color: var(--card-background);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajuster pour Midnight Mystic (default) */
[data-theme="default"] .skill-category {
    background-color: #1a002e; /* Plus foncé que le card-background habituel */
}

/* Ajuster pour White Gray */
[data-theme="white-gray"] .skill-category {
    background-color: #a0a0a0; /* Plus foncé que le card-background habituel */
    background-color: #808080; /* Encore plus foncé */
}

[data-theme="white-gray"] .skill-category h3,
[data-theme="white-gray"] .skill-item {
    color: #ffffff; /* Texte en blanc pour meilleur contraste */
}

.skill-category h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.skill-item i {
    font-size: 1.5rem;
    width: 30px;
}

.skill-level {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.skill-level.advanced {
    background-color: #4CAF50;
}

.skill-level.intermediate {
    background-color: #2196F3;
}

.skill-level.basic {
    background-color: #FF9800;
}

/* Ajouter des couleurs spécifiques pour chaque bouton de thème */
.theme-btn[data-theme="default"] {
    background-color: #2a0047;
    color: white;
}

.theme-btn[data-theme="rose"] {
    background-color: #ff69b4;
    color: white;
}

.theme-btn[data-theme="ocean"] {
    background-color: #006994;
    color: white;
}

.theme-btn[data-theme="forest"] {
    background-color: #228B22;
    color: white;
}

/* Theme option style adjustment */
.theme-option[data-theme="default"] {
    background-color: #2a0047;
    color: var(--text-color);
}

[data-theme="white-gray"] .skill-category {
    background-color: #606060;
}

[data-theme="white-gray"] .skill-category h3,
[data-theme="white-gray"] .skill-item {
    color: #ffffff;
}

/* Mise à jour du subtitle dans le hero pour le thème par défaut */
[data-theme="default"] .hero-content .subtitle {
    color: var(--accent);
}

body,
.navbar,
.hero,
.skill-card,
.project-card,
.contact-card,
.theme-panel,
.skill-category,
.hero-content h1,
.subtitle,
.brief-intro,
.tech-tag,
.project-link,
section h2,
.nav-links a,
.footer {
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transition pour les textes */
h1, h2, h3, p, span, a {
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transition pour les bordures */
.skill-card,
.project-card,
.contact-card {
    transition: border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--nav-background);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links a {
        flex-direction: column;
        align-items: center;
        font-size: 0.8rem;
        gap: 0.3rem;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-links a i {
        font-size: 1.2rem;
        margin: 0;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        transform: translateY(-3px);
    }

    .theme-selector {
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .theme-panel {
        top: auto;
        bottom: 80px;
        right: 10px;
        max-height: 60vh;
    }

    .nav-logo {
        margin-left: 1rem;
    }

    /* Ajuster le padding du contenu principal pour la navbar bottom */
    main {
        padding-bottom: 80px;
    }
}

/* Ajustements pour les très petits écrans */
@media screen and (max-width: 380px) {
    .nav-links a {
        font-size: 0.7rem;
    }

    .nav-links a i {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.8rem;
    }

    .nav-links {
        position: fixed;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        background: var(--nav-background);
        padding: 0.8rem 0.3rem;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-links a {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        color: var(--text-color);
    }

    .nav-links a span {
        display: none;
    }

    .nav-links a i {
        font-size: 1rem;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        transform: translateX(3px);
    }

    .theme-selector {
        width: 35px;
        height: 35px;
    }

    #theme-toggle {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        padding: 0;
    }

    /* Ajuster le contenu principal */
    main {
        padding-left: 4rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.8rem;
    }

    .nav-links {
        position: fixed;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        background: var(--nav-background);
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-links a i {
        font-size: 1.2rem;
        margin: 0;
    }

    .nav-links a span {
        display: none;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        transform: translateX(5px);
    }

    .theme-selector {
        margin-top: 0.5rem;
    }

    /* Ajuster le padding du contenu */
    main {
        padding-left: 4.5rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.8rem;
    }

    .nav-links {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: var(--nav-background);
        padding: 0.6rem 1rem;
        display: flex;
        justify-content: space-around;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-links a {
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
        gap: 0.2rem;
        padding: 0.4rem;
        border-radius: 12px;
        width: 48px;
        transition: all 0.3s ease;
    }

    .nav-links a i {
        font-size: 1.1rem;
        margin: 0;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
    }

    /* Ajuster l'espace en bas du contenu */
    main {
        padding-bottom: 5rem;
    }
}

/* Effet de texte arc-en-ciel pour "Rainbow Pride" */
.rainbow-text {
    background-image: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: bold;
    text-shadow: none !important;
}

/* Ajustements spécifiques pour le thème arc-en-ciel */
[data-theme="rainbow"] .project-card,
[data-theme="rainbow"] .skill-card,
[data-theme="rainbow"] .contact-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-image: linear-gradient(
        45deg,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    ) 1;
    border-width: 2px;
    border-style: solid;
}

[data-theme="rainbow"] .hero {
    background: linear-gradient(
        135deg,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    animation: rainbow-shift 10s linear infinite;
    background-size: 600% 600%;
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme="rainbow"] .hero::before {
    opacity: 0.2;
}

[data-theme="rainbow"] .navbar {
    background: linear-gradient(
        to right,
        rgba(255, 0, 0, 0.8),
        rgba(255, 128, 0, 0.8),
        rgba(255, 255, 0, 0.8),
        rgba(0, 255, 0, 0.8),
        rgba(0, 128, 255, 0.8),
        rgba(128, 0, 255, 0.8)
    );
}

[data-theme="rainbow"] .section-title {
    background-image: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

[data-theme="rainbow"] .footer {
    background: linear-gradient(
        to right,
        rgba(255, 0, 0, 0.8),
        rgba(255, 128, 0, 0.8),
        rgba(255, 255, 0, 0.8),
        rgba(0, 255, 0, 0.8),
        rgba(0, 128, 255, 0.8),
        rgba(128, 0, 255, 0.8)
    );
}

/* Nouveaux styles pour le thème rainbow */
[data-theme="rainbow"] .skill-category {
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.3),
        rgba(255, 165, 0, 0.3),
        rgba(255, 255, 0, 0.3),
        rgba(0, 128, 0, 0.3),
        rgba(0, 0, 255, 0.3),
        rgba(75, 0, 130, 0.3)
    );
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="rainbow"] h2 {
    background-image: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

[data-theme="rainbow"] .contact-icon {
    background-image: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="rainbow"] .tech-tag {
    background: linear-gradient(
        90deg,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: rainbow-shift 3s linear infinite;
    background-size: 600% 600%;
}

[data-theme="rainbow"] .project-card:hover,
[data-theme="rainbow"] .skill-card:hover,
[data-theme="rainbow"] .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.3),
        rgba(255, 165, 0, 0.3),
        rgba(255, 255, 0, 0.3),
        rgba(0, 128, 0, 0.3),
        rgba(0, 0, 255, 0.3),
        rgba(75, 0, 130, 0.3)
    );
}

[data-theme="rainbow"] .nav-links a:hover {
    text-shadow: 0 0 10px white;
    background-image: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Style spécial pour les titres du thème rainbow */
[data-theme="rainbow"] .hero-content h1 {
    background-image: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-shift 5s linear infinite;
    background-size: 600% 600%;
    text-shadow: none;
}

/* Styles pour les thèmes verrouillés */
.theme-option.locked {
    position: relative;
    opacity: 0.6;
    filter: grayscale(70%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.theme-option.locked.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    pointer-events: all;
}

.lock-icon {
    position: absolute;
    right: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.theme-option.unlocked .lock-icon {
    display: none;
}

/* Style pour le bouton de réinitialisation */
.theme-panel-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.reset-button {
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Élément caché pour l'easter egg "Nebula Dreams" */
.hidden-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.hidden-trigger:hover {
    opacity: 0.3;
    transform: rotate(15deg);
}

/* Animation pour l'élément débloqué */
@keyframes unlock-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px var(--accent-color); }
    100% { transform: scale(1); }
}

.theme-unlocked {
    animation: unlock-animation 0.6s ease;
}

/* Tooltip pour les indices d'easter eggs */
.easteregg-tooltip {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
    pointer-events: none;
}

.easteregg-tooltip.show {
    opacity: 1;
}

/* Styles pour l'easter egg "GAME" - version panneau */
.game-panel {
    position: fixed;
    top: 65px; /* même position que le panneau de thèmes */
    right: 20px;
    width: 300px;
    background: var(--card-background);
    box-shadow: 0 0 25px var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.game-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.game-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-panel-header h3 {
    color: var(--accent-color);
    margin: 0;
}

.close-game-panel {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.game-panel p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.game-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.game-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-btn-yes {
    background-color: var(--accent-color);
    color: var(--text-color-inverse);
}

.game-btn-no {
    background-color: rgba(100, 100, 100, 0.5);
    color: var(--text-color);
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Terminal panneau */
.terminal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.terminal-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.terminal-header {
    height: 40px;
    background-color: #111;
    border-bottom: 1px solid #0f0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.terminal-title {
    color: #0f0;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    margin-right: auto; /* Pousse le titre vers la gauche */
}

.close-terminal {
    background: none;
    border: 1px solid #0f0;
    border-radius: 4px;
    color: #0f0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin-right: 10px; /* Ajoute une marge à droite pour décaler de la bordure */
    position: relative; /* Permettre le positionnement relatif */
    right: 5px; /* Décalage vers la gauche */
}

.close-terminal:hover {
    background-color: #0f0;
    color: #000;
    transform: scale(1.1);
}

.terminal-content {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background-color: #000;
}

.terminal-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #0f0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #0f0;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@media screen and (max-width: 768px) {
    .game-panel {
        right: 10px;
        width: 90%;
        max-width: 300px;
    }
    
    .terminal-panel {
        width: 95%;
        max-height: 70vh;
    }
    
    .terminal-content {
        height: 350px;
    }
}

/* Terminal input */
.terminal-input-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
}

.terminal-prompt {
    color: #0f0;
    margin-right: 10px;
    font-size: 1.1rem;
}

.terminal-input {
    flex: 1;
    background-color: #111;
    border: none;
    outline: none;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    caret-color: #0f0;
    padding: 5px;
}

.terminal-submit {
    background-color: #222;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.terminal-submit:hover {
    background-color: #0f0;
    color: #000;
}

/* Effet glitch et écran noir */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); filter: hue-rotate(90deg); }
    40% { transform: translate(-5px, -5px); filter: hue-rotate(180deg); }
    60% { transform: translate(5px, 5px); filter: hue-rotate(270deg); }
    80% { transform: translate(5px, -5px); filter: hue-rotate(360deg); }
    100% { transform: translate(0); }
}

.terminal-panel.glitching {
    animation: glitch 0.3s ease infinite;
}

.terminal-panel.black-screen .terminal-header,
.terminal-panel.black-screen .terminal-content {
    display: none;
}

.terminal-panel.black-screen {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.black-screen-text {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Animation du curseur */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #0f0;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Styles pour les notifications de thèmes débloqués */
#notifications-container {
    position: fixed;
    bottom: 20px;
    left: 50%; /* Centré horizontalement */
    transform: translateX(-50%); /* Ajustement pour un centrage parfait */
    z-index: 2000;
    width: 300px;
    pointer-events: none;
}

.notification-toast {
    position: absolute;
    left: 0; /* Aligné à gauche du conteneur (qui est centré) */
    bottom: 0;
    width: 100%;
    background: var(--card-background);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(50px); /* Animation du bas vers le haut */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0); /* Position finale (visible) */
}

.notification-toast.hide {
    opacity: 0;
    transform: translateY(50px); /* Disparaît vers le bas */
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Variation du style pour le thème Rainbow */
[data-theme="rainbow"] .notification-toast {
    border-image: linear-gradient(
        to bottom,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    ) 1 100%;
    border-left-width: 4px;
}

[data-theme="rainbow"] .notification-icon {
    background: linear-gradient(
        to right,
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #0080ff, #8000ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Version mobile des notifications */
@media screen and (max-width: 768px) {
    #notifications-container {
        width: 85%;
        max-width: 280px;
        bottom: 70px; /* Au-dessus de la navbar mobile */
    }
}

.hidden {
    display: none !important;
}

#speedrun-trophy {
    position: fixed;
    top: 80px; /* Positionné sous le bouton de thème */
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

#speedrun-trophy:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color, #ff00ff);
}

#speedrun-trophy i {
    font-size: 20px;
}

#speedrun-panel,
#name-prompt-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color, #121212);
    color: var(--text-color, #ffffff);
    border: 2px solid var(--accent-color, #ff00ff);
    border-radius: 15px;
    padding: 25px;
    z-index: 1001;
    min-width: 350px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
}

#speedrun-panel.active,
#name-prompt-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.panel-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--accent-color, #ff00ff);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.close-panel {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color, #ff00ff);
    color: var(--bg-color, #121212);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.close-panel:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--accent-color, #ff00ff);
}

#speedrun-timer {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    text-shadow: 0 0 5px var(--accent-color, #ff00ff);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.leaderboard {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.leaderboard h4 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color, #ff00ff);
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.leaderboard-entry:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.leaderboard-entry .rank {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color, #ff00ff);
    margin-right: 15px;
    min-width: 30px;
}

.leaderboard-entry .player-info {
    flex: 1;
}

.leaderboard-entry .player-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.leaderboard-entry .player-time {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.leaderboard-entry .score-date {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 8px;
}

.leaderboard-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Styles pour les états du leaderboard */
.leaderboard-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    font-style: italic;
}

.leaderboard-error {
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 5px;
    margin: 10px 0;
}

.leaderboard-error .error-details {
    font-size: 12px;
    opacity: 0.8;
    margin: 5px 0;
}

#player-name {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent-color, #ff00ff);
    color: var(--text-color, #ffffff);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

#player-name:focus {
    box-shadow: 0 0 10px var(--accent-color, #ff00ff);
}

#submit-score,
#start-speedrun {
    background: linear-gradient(135deg, var(--accent-color, #ff00ff), var(--secondary-color, #8800ff));
    color: #fff;
    border: none;
    padding: 14px;
    margin: 15px 0;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#submit-score:hover,
#start-speedrun:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#submit-score:active,
#start-speedrun:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none !important;
}

.speedrun-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.speedrun-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Supprimer les styles pour les boutons d'export et d'import */

/* Supprimer ces styles car ils ne sont plus nécessaires */
.export-button, .import-button {
    display: none;
}

#speedrun-panel .export-button, #speedrun-panel .import-button {
    display: none;
}

.leaderboard {
    position: relative;
}

/* Styles supplémentaires pour le leaderboard */
.source-indicator {
    font-size: 12px;
    color: var(--accent-color, #ff00ff);
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.retry-button {
    background-color: var(--accent-color, #ff00ff);
    color: var(--bg-color, #121212);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background-color: var(--text-color, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.leaderboard-loading, 
.leaderboard-empty, 
.leaderboard-error {
    padding: 15px;
    text-align: center;
}

.leaderboard-loading {
    color: var(--text-color, #ffffff);
    font-style: italic;
}

.leaderboard-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 5px;
}

.error-details {
    font-size: 12px;
    opacity: 0.7;
    margin: 8px 0;
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 3px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Terminal controls */
.terminal-controls {
    margin: 15px 0;
    display: flex;
    justify-content: flex-end;
}

.terminal-skip {
    background-color: #333;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.terminal-skip:hover {
    background-color: #444;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.terminal-skip.active {
    background-color: #0f0;
    color: #000;
}

/* Styles pour le badge speedrun trophée */
#speedrun-trophy {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: gold;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

#speedrun-trophy:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

#speedrun-trophy.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Styles pour le badge speedrun trophée */
#speedrun-trophy {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: gold;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

#speedrun-trophy:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

#speedrun-trophy.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Amélioration de la visibilité des liens pour tous les thèmes */
.project-link, .contact-card a {
    color: #00c8ff !important; /* Bleu clair visible sur fond sombre et clair */
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
}

.project-link:hover, .contact-card a:hover {
    background-color: rgba(0, 200, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
}

/* Thème spécifique pour Matrixed - liens verts */
[data-theme="matrixed"] .project-link, 
[data-theme="matrixed"] .contact-card a {
    color: #00FF00 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

[data-theme="matrixed"] .project-link:hover,
[data-theme="matrixed"] .contact-card a:hover {
    background-color: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

/* Feedback panel and modal styles */
.feedback-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feedback-panel.active {
    opacity: 1;
    visibility: visible;
}

.feedback-container {
    width: 90%;
    max-width: 500px;
    background-color: var(--card-background);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.feedback-panel.active .feedback-container {
    transform: scale(1);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
}

.close-feedback {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-feedback:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-feedback {
    background-color: var(--accent-color);
    color: var(--text-color-inverse);
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-feedback:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-feedback:active {
    transform: translateY(0);
}

.thank-you-message {
    text-align: center;
    display: none;
}

.thank-you-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.thank-you-gif {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style de l'icône Feedback */
.contact-icon.feedback {
    color: var(--accent-color);
}

/* Supprimer ou commenter les anciennes media queries conflictuelles pour la navbar */

/* Nouvelle version optimisée de la navbar mobile - remplace les styles mobile existants */
@media screen and (max-width: 768px) {
    /* Structure principale de la navbar */
    .navbar {
        padding: 0.5rem;
        height: auto;
    }

    .navbar > div {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Ajustement du logo */
    .nav-logo {
        font-size: 1.1rem;
        flex-shrink: 1;
        max-width: 30%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-subtitle {
        font-size: 0.6rem;
        opacity: 0.8;
    }

    /* Navigation principale en style compact */
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        background: transparent;
        padding: 0;
        box-shadow: none;
        gap: 0.4rem;
        flex-wrap: wrap;
        margin: 0;
        max-width: 70%;
    }

    .nav-links a {
        width: auto;
        height: auto;
        font-size: 0;
        padding: 0.4rem;
        border-radius: 50%;
        transition: all 0.2s ease;
        margin: 0;
        background-color: transparent;
    }

    .nav-links a i {
        font-size: 1.2rem;
        margin: 0;
    }

    .nav-links a span {
        display: none;
    }

    .nav-links a:hover, 
    .nav-links a:active {
        transform: scale(1.2);
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Style du sélecteur de thème */
    .theme-selector {
        position: static;
        margin-left: 0.2rem;
    }

    #theme-toggle {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 0;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Ajustement du panel de thèmes */
    .theme-panel {
        top: 60px;
        right: 0.5rem;
    }

    /* Supprimer le padding-bottom excessif */
    main {
        padding-bottom: 1rem !important;
        padding-left: 0 !important;
    }
}

/* Ajustements pour les très petits écrans */
@media screen and (max-width: 420px) {
    .nav-logo {
        font-size: 1rem;
        max-width: 25%;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-links a {
        padding: 0.3rem;
    }

    .nav-links a i {
        font-size: 1.1rem;
    }

    #theme-toggle {
        width: 30px;
        height: 30px;
    }
}

/* Supprimer ou commenter les anciennes media queries conflictuelles pour la navbar */
.hidden {
    display: none !important;
}

/* Styles pour le lazy loading d'images */
.image-placeholder {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: 200px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

img.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}
