/* --- FONTS & VARS --- */
:root {
    --bg-dark: #030508;
    --panel-bg: rgba(10, 15, 25, 0.7);
    --neon-blue: #00f3ff; /* Valeur par défaut (Bleu) */
    --neon-dim: rgba(0, 243, 255, 0.1);
    --text-primary: #e0f7fa;
    --text-dim: #8ba7ad;
    --border-color: rgba(0, 243, 255, 0.3);
    
    --font-head: 'Orbitron', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-code: 'Share Tech Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
    height: 100vh;
}

/* --- BOOT SCREEN --- */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-code);
}
.boot-terminal { width: 80%; max-width: 600px; }
.boot-line { color: var(--neon-blue); margin-bottom: 5px; font-size: 1.1rem; }
.loading-bar-container {
    width: 100%; height: 10px; border: 1px solid var(--neon-blue); margin: 20px 0;
}
.loading-bar { width: 0%; height: 100%; background: var(--neon-blue); transition: width 0.1s; }
.blink { animation: blink 0.5s infinite; }

/* --- BACKGROUND --- */
#bg-canvas { position: fixed; top: 0; left: 0; z-index: 0; }
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05; z-index: 1; pointer-events: none;
}

/* --- MAIN INTERFACE --- */
.main-interface {
    position: relative; z-index: 10;
    display: flex; height: 100vh;
    opacity: 0; transition: opacity 1s;
}
.main-interface.visible { opacity: 1; }
.hidden { display: none; }

/* --- SIDEBAR --- */
.sidebar {
    width: 300px;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    padding: 30px;
}

.profile-section { text-align: center; margin-bottom: 40px; }
.holo-circle {
    width: 120px; height: 120px; margin: 0 auto 20px;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--neon-blue); z-index: 2;
}
.spin-ring {
    position: absolute; width: 100%; height: 100%;
    border: 1px dashed var(--neon-blue); border-radius: 50%;
    animation: spin 10s linear infinite; z-index: 1;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

h1 { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--neon-blue); background: var(--neon-dim);
    padding: 5px 10px; font-size: 0.8rem; font-family: var(--font-code);
}
.led { width: 8px; height: 8px; background: var(--neon-blue); border-radius: 50%; box-shadow: 0 0 8px var(--neon-blue); }

.nav-menu { display: flex; flex-direction: column; gap: 15px; flex: 1; }
.nav-link {
    text-decoration: none; color: var(--text-dim);
    font-family: var(--font-head); font-size: 1.1rem;
    padding: 10px; border-left: 3px solid transparent;
    transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.nav-link:hover, .nav-link.active {
    color: var(--neon-blue); border-left-color: var(--neon-blue);
    background: linear-gradient(90deg, var(--neon-dim), transparent);
    padding-left: 20px; text-shadow: 0 0 8px var(--neon-blue);
}

.sys-info {
    font-family: var(--font-code); font-size: 0.75rem; color: var(--text-dim);
    border-top: 1px solid var(--border-color); padding-top: 20px;
}

/* --- CONTENT AREA & PANELS --- */
.content-area {
    flex: 1; overflow-y: auto; padding: 60px 80px; scroll-behavior: smooth;
    background: radial-gradient(circle at 50% 50%, #050a10 0%, #000 100%);
}

.panel {
    padding: 50px;
    margin-bottom: 25px;
    background: rgba(10, 15, 25, 0.85); backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative; border-radius: 4px;
    opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out;
}
.panel.visible-panel { opacity: 1; transform: translateY(0); }

/* Decoration brackets */
.panel::before, .panel::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    border: 2px solid var(--neon-blue); transition: 0.3s;
}
.panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.panel-header {
    display: flex; align-items: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.panel-header h2 {
    font-family: var(--font-head); color: var(--neon-blue); font-size: 1.8rem;
}
.deco-line {
    flex: 1; height: 2px; background: linear-gradient(90deg, var(--neon-blue), transparent);
}

/* --- COLOR VARIANTS PER SECTION --- */
.panel.color-purple {
    --neon-blue: #bd00ff; 
    --neon-dim: rgba(189, 0, 255, 0.1);
    --border-color: rgba(189, 0, 255, 0.3);
}
.panel.color-green {
    --neon-blue: #00ff9d;
    --neon-dim: rgba(0, 255, 157, 0.1);
    --border-color: rgba(0, 255, 157, 0.3);
}
.panel.color-orange {
    --neon-blue: #ffae00;
    --neon-dim: rgba(255, 174, 0, 0.1);
    --border-color: rgba(255, 174, 0, 0.3);
}

/* --- SEPARATOR --- */
.cyber-separator {
    height: 100px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; opacity: 0.3;
}
.cyber-separator::before {
    content: ''; width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--text-dim), transparent);
}

/* --- DASHBOARD --- */
.hero-box {
    background: var(--panel-bg); border: 1px solid var(--border-color);
    padding: 30px; margin-bottom: 30px; position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.hero-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: #fff; }
.hero-desc { font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; color: var(--text-dim); }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat .val { font-family: var(--font-head); font-size: 2rem; color: var(--neon-blue); }
.stat .label { font-size: 0.9rem; font-family: var(--font-code); }

.timeline-box h3 { font-family: var(--font-code); color: var(--text-dim); margin-bottom: 20px; }
.bracket { color: var(--neon-blue); }
.t-item {
    display: flex; gap: 20px; margin-bottom: 25px; border-left: 1px solid var(--border-color);
    padding-left: 20px; position: relative;
}
.t-item::before {
    content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px;
    background: var(--neon-blue); transform: rotate(45deg);
}
.t-date { font-family: var(--font-code); color: var(--neon-blue); width: 120px; flex-shrink: 0; }
.t-content h4 { font-size: 1.2rem; margin-bottom: 5px; }
.place { font-weight: normal; color: var(--text-dim); font-size: 0.9rem; }

/* --- SKILLS --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.skill-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); padding: 20px;
    transition: 0.3s;
}
.skill-card:hover { transform: translateY(-5px); background: var(--neon-dim); }
.card-top { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--text-dim); padding-bottom: 10px; margin-bottom: 15px; }
.card-top h4 { color: var(--neon-blue); font-family: var(--font-head); }
.skill-card ul { list-style: none; }
.skill-card li { font-family: var(--font-code); margin-bottom: 5px; }
.bullet { color: var(--neon-blue); margin-right: 5px; }

/* --- PROJECTS & FILTERS --- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-right: 20px; }
.filter-btn {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-dim); font-family: var(--font-code); font-size: 0.8rem;
    padding: 5px 15px; cursor: pointer; transition: 0.3s all; text-transform: uppercase;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--neon-blue); color: var(--neon-blue);
    background: var(--neon-dim); box-shadow: 0 0 10px var(--neon-dim);
    text-shadow: 0 0 5px var(--neon-blue);
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-unit {
    background: var(--panel-bg); border: 1px solid var(--border-color);
    padding: 25px; position: relative; overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.unit-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.cat-tag {
    font-family: var(--font-code); font-size: 0.7rem; padding: 2px 6px;
    border: 1px solid var(--neon-blue); color: var(--neon-blue);
}
.project-unit h3 { font-family: var(--font-head); font-size: 1.3rem; }
.unit-role { color: var(--text-dim); font-style: italic; font-size: 0.9rem; margin-bottom: 15px; }
.unit-desc { margin-bottom: 20px; line-height: 1.5; }
.unit-stack span {
    display: inline-block; font-size: 0.8rem; background: #000;
    padding: 4px 8px; margin-right: 5px; margin-bottom: 5px; font-family: var(--font-code);
}
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--neon-blue); opacity: 0.5; display: none;
    box-shadow: 0 0 10px var(--neon-blue);
}
.project-unit:hover .scan-line { display: block; animation: scan 2s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* --- CONTACT --- */
.contact-wrapper { display: flex; gap: 40px; flex-wrap: wrap; }
.info-panel { flex: 1; min-width: 250px; }
.info-row {
    display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color);
    padding: 15px 0; font-family: var(--font-code);
}
.info-row a { color: #fff; text-decoration: none; transition: 0.3s; }
.info-row a:hover { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue); }
.lbl { color: var(--neon-blue); }

.qr-code-container {
    width: 160px; height: 160px; margin-top: 30px;
    border: 2px solid var(--neon-blue);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 10px var(--neon-dim);
    padding: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: 0.3s all ease;
}
.qr-code-container:hover { box-shadow: 0 0 30px var(--neon-blue); transform: scale(1.02); }
.qr-img { width: 100%; height: 100%; object-fit: contain; }
.qr-label { margin-top: 10px; font-family: var(--font-code); color: var(--neon-dim); font-size: 0.8rem; }

.form-panel { flex: 1.5; min-width: 300px; }
input, textarea {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color);
    color: var(--neon-blue); padding: 15px; margin-bottom: 20px;
    font-family: var(--font-code);
}
input:focus, textarea:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 10px var(--neon-dim); }
label { display: block; margin-bottom: 5px; font-family: var(--font-head); font-size: 0.9rem; }

.cyber-btn {
    width: 100%; background: var(--neon-dim); border: 1px solid var(--neon-blue);
    color: var(--neon-blue); padding: 15px; font-family: var(--font-head);
    font-size: 1.1rem; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 2px;
}
.cyber-btn:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 20px var(--neon-blue); }
.success-msg { border: 1px solid var(--neon-blue); color: var(--neon-blue); padding: 20px; text-align: center; font-family: var(--font-code); }

/* --- FOOTER & RESPONSIVE --- */
.sys-footer { margin-top: 50px; text-align: center; color: var(--text-dim); font-family: var(--font-code); font-size: 0.8rem; padding-bottom: 50px; opacity: 0.5; }

.mobile-header { display: none; }

@media (max-width: 900px) {
    .main-interface { flex-direction: column; }
    .mobile-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 15px 20px; background: rgba(0,0,0,0.9); border-bottom: 1px solid var(--neon-blue);
        position: fixed; top: 0; width: 100%; z-index: 100;
    }
    .brand { font-family: var(--font-head); color: var(--neon-blue); font-size: 1.2rem; }
    .burger-btn { background: none; border: none; }
    .burger-btn span { display: block; width: 25px; height: 2px; background: var(--neon-blue); margin: 5px 0; }
    
    .sidebar {
        position: fixed; top: 60px; left: 0; width: 100%; height: auto;
        border-right: none; border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%); transition: 0.3s; z-index: 90;
    }
    .sidebar.open { transform: translateY(0); }
    
    .content-area { margin-top: 60px; padding: 20px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .filter-bar { width: 100%; overflow-x: auto; padding-bottom: 5px; margin-right: 0; }
    .panel { padding: 25px; margin-bottom: 25px; }
    .panel-header h2 { font-size: 1.4rem; }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }