:root {
    --bg-body: #111111;
    --bg-card: #1C1C1C;
    --bg-hover: #252525;
    --border: #2E2E2E;
    --text-main: #EDEDED;
    --text-muted: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.slide-in { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.slide-in-delayed { animation: fadeInUp 0.6s ease-out 0.2s forwards; opacity: 0; }

/* --- LAYOUT --- */
.wrapper {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding: 40px 20px;
}

/* --- SIDEBAR --- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.profile-card { background: var(--bg-body); padding-bottom: 20px; }

.avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}
.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Ajoute cette ligne pour que l'image remplisse le cercle sans être déformée */
    object-fit: cover; 
    /* Ajoute ça pour une petite bordure sombre autour de la photo */
    border: 2px solid #333; 
}
.status-dot {
    position: absolute; bottom: 0; right: 0;
    width: 14px; height: 14px;
    background-color: #10b981;
    border: 2px solid var(--bg-body);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

h1 { font-size: 18px; font-weight: 600; color: var(--text-main); }
.role { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.nav-links { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex; align-items: center; padding: 8px 12px;
    border-radius: 8px; color: var(--text-muted);
    text-decoration: none; transition: 0.2s; font-size: 14px;
}
.nav-item:hover, .nav-item.active {
    background-color: var(--bg-card);
    color: var(--text-main);
    transform: translateX(4px);
}
.nav-icon { margin-right: 10px; opacity: 0.7; }

/* --- BARRE DE RECHERCHE --- */
.cmd-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: text; /* Indique qu'on peut écrire */
    transition: 0.2s;
}

.cmd-bar:focus-within {
    border-color: #555;
    background-color: var(--bg-hover);
}

#search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    width: 100%;
    outline: none;
}
#search-input::placeholder { color: var(--text-muted); }

/* Cache le "Cmd K" quand on écrit */
#search-input:not(:placeholder-shown) + .cmd-key { display: none; }

.cmd-key {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
}

/* --- MAIN CONTENT --- */
.main-content {
    overflow-y: auto;
    padding-right: 10px;
    display: flex; flex-direction: column; gap: 40px;
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

h2 {
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    margin-bottom: 15px; font-weight: 600;
}
.text-block { color: #ccc; margin-bottom: 20px; max-width: 600px; }

/* --- PROJETS --- */
.project-list { display: flex; flex-direction: column; gap: 12px; }

.project-card {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 16px 20px; border-radius: 8px; text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover {
    background: var(--bg-hover);
    border-color: #555;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.project-info h3 {
    font-size: 15px; font-weight: 500; color: var(--text-main);
    margin-bottom: 4px; transition: color 0.2s;
}
.project-card:hover h3 { color: #fff; }
.project-info p { font-size: 13px; color: var(--text-muted); }

.project-meta { text-align: right; }
.badge {
    font-size: 11px; padding: 4px 8px; border-radius: 4px;
    background: #2A2A2A; color: #aaa; border: 1px solid #333;
    font-family: monospace; transition: 0.2s;
}
.project-card:hover .badge { border-color: #666; color: #fff; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    body { overflow: auto; height: auto; }
    .wrapper { grid-template-columns: 1fr; padding: 20px; gap: 40px; }
    .sidebar { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
    .cmd-bar { display: none; }
    .main-content { overflow: visible; padding-right: 0; }
}


/* --- STYLE BOUTON CV (PREMIUM) --- */
.cv-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    margin: 20px 0; /* Espace autour */
    background-color: #EDEDED; /* Blanc cassé */
    color: #000; /* Texte noir */
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #fff;
}

.cv-btn:hover {
    background-color: #fff; /* Blanc pur au survol */
    transform: translateY(-2px); /* Monte un petit peu */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15); /* Lueur blanche */
}

.cv-btn:active {
    transform: translateY(0);
}

/* --- ANIMATION DES BADGES --- */
@keyframes popGreen {
    0% { transform: scale(1); border-color: #333; background: #2A2A2A; }
    50% { transform: scale(1.1); border-color: #10b981; background: rgba(16, 185, 129, 0.2); color: #fff; }
    100% { transform: scale(1); border-color: #333; background: #2A2A2A; }
}

/* La classe qu'on va ajouter avec JS */
.badge-pop {
    animation: popGreen 0.4s ease-in-out;
}