:root {
    --bg-deep: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.6);
    --card-bg: rgba(15, 23, 42, 0.5);
    --radius-ui: 20px; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background-color: var(--bg-deep); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* --- LE CANVAS 3D --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    display: block;
    outline: none;
    transform: scale(1.15);
    transition: transform 0.5s ease;
}

@media (min-width: 1200px) {
    #bg-canvas { transform: scale(1); }
}

.overlay-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -1;
}

header { padding: 2rem 5%; }

.logo { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: 3px; color: var(--accent-blue); }

main { padding: 0 5%; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* --- HERO & TITRE --- */
.hero { margin: 8vh 0 4vh 0; text-align: center; z-index: 10; }

.glitch-title {
    font-family: 'Anton', sans-serif; 
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900; line-height: 0.9; text-transform: uppercase;
    position: relative; display: inline-block; letter-spacing: 1px;
    padding: 0 40px;
}

.glitch-title::before, .glitch-title::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-deep);
}

.glitch-title::before { left: 4px; text-shadow: -3px 0 #ff003c; animation: glitch-anim-1 2s infinite linear alternate-reverse; }
.glitch-title::after { left: -4px; text-shadow: 3px 0 var(--accent-blue); animation: glitch-anim-2 2.5s infinite linear alternate-reverse; }

@keyframes glitch-anim-1 { 0%, 100% { clip-path: inset(10% 0 80% 0); } 20% { clip-path: inset(50% 0 10% 0); } 60% { clip-path: inset(30% 0 40% 0); } }
@keyframes glitch-anim-2 { 0%, 100% { clip-path: inset(70% 0 10% 0); } 30% { clip-path: inset(20% 0 60% 0); } 80% { clip-path: inset(40% 0 30% 0); } }

/* --- SOUS-TITRE (Retour à la simplicité) --- */
.subtitle { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    margin-top: 1.5rem; 
    letter-spacing: 2px;
    /* Ombre subtile pour le détacher des cubes sans faire de bloc */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* --- LE BOUTON --- */
.cta-container { margin-top: 3rem; display: flex; justify-content: center; }

.login-btn-main {
    position: relative; padding: 1.2rem 2.5rem; font-size: 1rem; font-weight: 700;
    color: white; background: var(--accent-blue); border: none; border-radius: 50px;
    cursor: pointer; transition: transform 0.3s ease; z-index: 1;
}

.btn-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-blue); border-radius: 50px; z-index: -1; filter: blur(20px);
    opacity: 0.5; animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }
.login-btn-main:hover { transform: scale(1.05); background: #4f8ff7; }

/* --- PHILOSOPHIE (Sans bloc) --- */
.philosophy-block {
    margin-top: 5rem;
    max-width: 700px;
    text-align: center;
    position: relative;
    padding: 0 1rem; /* On enlève l'énorme padding et le fond */
}

.quote-line {
    width: 40px;
    height: 2px;
    background: var(--accent-blue);
    margin: 0 auto 1.5rem auto;
}

.philosophy-block p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    /* Ombre portée pour la lisibilité sur la 3D */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* --- LES COMPÉTENCES --- */
.skills-container { width: 100%; max-width: 800px; margin-top: 4rem; padding-bottom: 5rem; }

h2 { 
    font-size: 0.9rem; 
    letter-spacing: 4px; 
    color: var(--accent-blue); 
    margin-bottom: 2rem; 
    text-align: center; 
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5); 
}

/* Grille de 2 colonnes sur Desktop, 1 sur Mobile */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-ui);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.badge {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.badge-core { background: rgba(220, 38, 38, 0.2); color: #fca5a5; } 
.badge-render { background: rgba(147, 51, 234, 0.2); color: #d8b4fe; } 
.badge-ui { background: rgba(59, 130, 246, 0.2); color: #93c5fd; } 

.skill-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- LA MINI-CONSOLE --- */
.mini-console {
    position: fixed; bottom: 20px; right: 20px; width: 280px;
    border-left: 2px solid rgba(59, 130, 246, 0.3); padding-left: 15px;
    opacity: 0.3; transition: opacity 0.4s ease; pointer-events: none; z-index: 10;
}
body:hover .mini-console { opacity: 0.8; }
.console-header { font-family: 'Courier New', monospace; font-size: 0.7rem; color: var(--accent-blue); margin-bottom: 8px; }
.console-body p { font-family: 'Courier New', monospace; font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.log-date { color: var(--accent-blue); }
.blinking-cursor { display: inline-block; width: 8px; background-color: var(--accent-blue); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 768px) {
    .mini-console { display: none; }
    .philosophy-block { margin-top: 3rem; }
}
