/*
 * Styles pour les cartes de projet et la modale.
 */

/* ===== Grille des projets ===== */
#projets-list {
    padding: 2rem 0;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Grille des projets */

/* ===== Carte de projet ===== */
.projet-card {
    background-color: var(--bg-color-alt);
    border-radius: 12px;
    border: 1px solid var(--text-color-alt);
    border-bottom: 2px solid var(--text-color-alt);
    position: relative;
    padding: 1.5rem;
}

/* En-tête du projet */
.projet-card h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--text-color-alt);
}

p.projet-date {
    color: var(--text-color-sec);
    font-size: 0.9rem;
    font-style: italic;
    padding-top: 0;
    margin-top: -2px;
    margin-bottom: 1rem;
    font-style: italic;
}

.projet-tags {
    color: var(--text-color-sec);
    font-size: 0.9rem;
    font-style: italic;
    padding-top: 0;
    margin-top: -2px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-evenly;
}

.projet-res-item-tags {
    color: var(--text-color-sec);
    font-size: 0.9rem;
    font-style: italic;
    padding-top: 0;
    margin-top: -2px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-evenly;

}

/* ===== Détails du projet ===== */
.projet-detail {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--text-color-sec);
}

.projet-card .projet-detail {
    display: none; /* Masqué par défaut */
}

/* Temps, problème, contribution */
p.projet-contrib {
    border-left: 3px solid var(--text-color-alt);
    padding-left: 6px;
    color: var(--text-color-sec);
}

/* ===== Ressources ===== */
.projet-res {
    margin-top: 2rem;
    border-top: 2px dashed var(--text-color-sec);
    padding-top: 1rem;
}

.projet-res-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ===== Modale ===== */
#modalProjet {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 10%;
    top: 10vh;
    width: 80%;
    max-height: 80vh;
    background-color: var(--bg-color);
    border: 1px solid var(--text-color-sec);
    border-bottom: 2px solid var(--text-color-alt);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: auto;
    border-radius: 12px;
    padding: 1.5rem;
}

#modalProjet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-color-sec);
}

#modalProjet-content {
    margin: 3% auto;
    border-radius: 12px;
}

#modalProjet-closed {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

#modalProjet-closed:hover {
    color: var(--text-color-alt);
}

/* ===== Responsive ===== */
