:root {
    --bg-color: #05070a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; height: 100vh; width: 100vw;
}

#webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: auto; }
#css3d-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
#ui-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* TITRE */
#main-title-3d { 
    width: 4000px; text-align: center; padding: 2rem; 
    pointer-events: none; user-select: none;
}
#main-title-3d h1 { 
    font-size: 25rem; color: #ffffff; text-transform: uppercase; 
    font-weight: 800; letter-spacing: 40px; line-height: 1; margin: 0; 
    text-shadow: 0 0 80px rgba(0, 242, 255, 0.2); 
}
#main-title-3d h2 { 
    font-size: 4rem; color: var(--accent); font-family: monospace; 
    letter-spacing: 15px; margin-top: 2rem; text-transform: uppercase; 
    font-weight: 700; background: rgba(0, 0, 0, 0.8); display: inline-block; 
    padding: 1rem 3rem; border-radius: 8px; border: 1px solid rgba(0, 242, 255, 0.3);
}
.scroll-hint { margin-top: 5rem; font-size: 1.5rem; color: var(--text-muted); letter-spacing: 5px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-15px);} 60% {transform: translateY(-7px);} }

/* UI */
nav { padding: 2rem 5%; position: absolute; top: 0; width: 100%; pointer-events: auto; }
.logo { font-weight: 800; font-size: 1.8rem; letter-spacing: 2px; color: var(--text-main); text-shadow: 0 0 10px var(--accent-glow);}
#planet-title { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); text-align: center; transition: opacity 0.5s ease; opacity: 0; pointer-events: none; }
#planet-title.active { opacity: 1; pointer-events: auto; }
#current-skill-name { font-size: 4rem; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 2rem; text-shadow: 0 0 40px rgba(0,0,0,0.5); letter-spacing: 5px; }
#back-to-overview-btn { background: rgba(0, 0, 0, 0.7); border: 1px solid var(--text-main); color: var(--text-main); padding: 1rem 2.5rem; border-radius: 50px; cursor: pointer; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; transition: 0.3s; backdrop-filter: blur(10px); }
#back-to-overview-btn:hover { background: var(--text-main); color: #000; box-shadow: 0 0 30px var(--text-main); }

/* --- CARTES PROJETS --- */
.card {
    width: 220px; 
    height: auto;
    background: rgba(0, 0, 0, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden; 
    display: flex; flex-direction: column;
    cursor: pointer; pointer-events: auto !important; user-select: none;
    backface-visibility: visible; -webkit-backface-visibility: visible; transform-style: preserve-3d;
    transition: transform 0.3s ease-out, border-color 0.3s, box-shadow 0.3s, opacity 0.3s ease;
}

/* IMPORTANT : PAS DE TRANSFORM ICI, ON LAISSE JS GÉRER L'ÉCHELLE */
.card.highlight {
    border-color: #ffffff !important;      
    background: rgba(20, 20, 35, 0.95);    
    box-shadow: 0 0 50px var(--accent-glow); 
    z-index: 500; 
    opacity: 1 !important;
}

.card img { width: 100%; height: 100px; object-fit: cover; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: block; }
.card-content { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.card h4 { font-size: 1rem; color: var(--text-main); font-weight: 700; text-transform: uppercase; margin: 0; line-height: 1.2; }
.card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; margin: 0; margin-bottom: 5px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto;}
.tech-tags span { font-size: 0.6rem; color: var(--accent); border: 1px solid rgba(0, 242, 255, 0.3); padding: 2px 6px; border-radius: 4px; background: rgba(0, 242, 255, 0.05); text-transform: uppercase; font-weight: 600;}