/* --- VARIABLES ET BASE --- */
:root {
    --bg: #0f172a;
    --card: #1e293b;
    --cyan: #22d3ee;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b; /* Ajout pour le statut "En cours" */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    line-height: 1.6;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- NAVBAR --- */
.navbar { 
    background: #0b0f1a; 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: #fff; 
    text-decoration: none; 
}

.logo span { color: var(--cyan); }

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
    align-items: center; 
    margin: 0; 
}

.nav-links a { 
    color: var(--text-dim); 
    text-decoration: none; 
    transition: 0.3s; 
}

.nav-links a:hover { color: var(--cyan); }

/* --- HERO ACCUEIL (3 COLONNES) --- */
.hero-home {
    padding: 100px 0 80px 0;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-side {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.hero-center {
    flex: 1;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin: 20px auto 30px auto;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.home-img-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.home-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-right {
    max-width: 160px;
    height: auto;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.company-logo-right:hover {
    transform: scale(1.05);
}

.update-badge {
    font-size: 0.75rem;
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

/* --- BADGES DE STATUT --- */
.status-badge {
    display: inline-block;
    padding: 6px 15px; /* Même padding que tes badges existants */
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Statut : Terminé (Vert) */
.status-termine {
    background: rgba(16, 185, 129, 0.1); /* Fond vert très léger */
    color: #10b981; /* Texte vert */
    border: 1px solid rgba(16, 185, 129, 0.3); /* Bordure verte */
}

/* Statut : En cours (Jaune/Orange) */
.status-encours {
    background: rgba(245, 158, 11, 0.1); /* Fond orange très léger */
    color: #f59e0b; /* Texte orange */
    border: 1px solid rgba(245, 158, 11, 0.3); /* Bordure orange */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}
/* --- PAGE DÉTAIL PROJET --- */
.detail-wrapper {
    padding: 40px 0;
}

.detail-nav {
    margin-bottom: 25px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--cyan);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.back-link:hover {
    color: var(--text);
    transform: translateX(-5px);
}

.detail-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.detail-badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.description-text {
    line-height: 1.8;
    color: var(--text);
    white-space: pre-line;
    margin-top: 20px;
}

.btn-doc {
    background: var(--success);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-doc:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* --- BOUTONS UNIFIÉS --- */
.btn-github, .btn-download {
    display: inline-block;
    background-color: var(--cyan);
    color: #0f172a !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    text-align: center;
}

.btn-github:hover, .btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
    opacity: 0.9;
}

.link-view {
    display: block;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
    color: var(--text) !important;
    border: 2px solid var(--border);
}

.link-view:hover {
    border-color: var(--cyan);
    color: var(--cyan) !important;
}

/* --- GRILLE & CARTES --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; 
    padding: 40px 0;
}

.card { 
    background: var(--card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border);
    transition: 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card:hover { 
    border-color: var(--cyan); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 30px;
    }
    .hero-side { order: 1; flex: none; }
    .hero-center { order: 2; flex: none; }
    .hero-logo { order: 3; flex: none; }
    
    .hero-text h1 { font-size: 2.8rem; }
    .hero-btns { flex-direction: column; }
    
    .about-content { grid-template-columns: 1fr; }
    .cv-card { position: static; }
}