/* =========================================================
   assets/css/projets.css - Style pour le Tableau de Bord des Projets
   ========================================================= */

.projets-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.projets-section h2 {
    font-family: var(--font-terminal);
    color: var(--color-text-grey);
    text-align: center;
    margin-bottom: 40px;
}

/* --- Grille des Projets --- */
.project-grid {
    display: grid;
    /* 3 colonnes, s'ajuste pour des cartes d'au moins 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

/* --- Carte de Projet --- */
.project-card {
    background-color: #1a1a1a;
    padding: 25px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Assurer une taille minimale pour l'uniformité */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Bordure colorée selon le type de projet */
.project-card.system-infra { border-left: 5px solid var(--color-accent); }
.project-card.web-dev { border-left: 5px solid var(--color-secondary); }
.project-card.network-security { border-left: 5px solid orange; }

/* --- En-tête de la Carte --- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    font-family: var(--font-terminal);
    color: var(--color-text-light);
    font-size: 1.3em;
    margin: 0;
}

.card-header i {
    margin-right: 8px;
    color: var(--color-secondary);
}

/* --- Statut du Projet --- */
.project-status {
    font-family: var(--font-terminal);
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    /* Utilisation des mêmes tags que dans formations.css pour la cohérence */
}

.tag-success { 
    background-color: rgba(0, 255, 65, 0.2); 
    color: var(--color-accent); 
    border: 1px solid var(--color-accent); 
}
.tag-current { 
    background-color: rgba(0, 255, 255, 0.2); 
    color: var(--color-secondary); 
    border: 1px solid var(--color-secondary); 
}
.tag-project { /* Pour les outils */
    background-color: rgba(255, 165, 0, 0.2); 
    color: orange; 
    border: 1px solid orange; 
}


/* --- Description et Technologies --- */
.project-desc {
    color: var(--color-text-grey);
    margin-bottom: 20px;
    flex-grow: 1; /* Pousse le lien vers le bas */
}

.tech-stack {
    margin-bottom: 20px;
}

.tech-stack h4 {
    font-family: var(--font-terminal);
    font-size: 1em;
    margin-bottom: 10px;
    border-bottom: 1px dotted #444;
    padding-bottom: 5px;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-list li {
    font-family: var(--font-terminal);
    font-size: 0.9em;
    background-color: #222;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #444;
    color: var(--color-text-light);
}

.tech-list i {
    margin-right: 5px;
    color: var(--color-secondary);
}

/* --- Lien du Projet --- */
.project-link {
    align-self: flex-start;
    margin-top: auto; /* Assure que le bouton reste en bas de la carte */
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}