/* Structure générale */
/* .Corps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 1rem;
    font-family: "Lexend", sans-serif;
} */

/* --- Catégorie --- */
.project-category {
    width: 80%;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Bouton de titre */
.category-toggle {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1rem;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.category-toggle:hover {
    background: linear-gradient(to right, #ffb73335, #d6840035);
}

/* Contenu déroulant */
.category-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease;
}

/* Quand la catégorie est ouverte */
.project-category.active .category-content {
    max-height: 2000px; /* assez grand pour contenir plusieurs cartes */
    opacity: 1;
}

/* --- Cartes de projet --- */
.project-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin: 1rem;
    padding: 1rem;
    color: white;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255,165,0,0.3);
}

/* Image du projet */
.project-img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 1.5rem;
}

/* Informations */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-info {
    display: grid;
    grid-template-rows: auto auto 1fr;  /* nom + auteur + description */
    flex: 1;
    justify-content: start;
    gap: 0.3rem;
}

.project-name {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.project-author {
    margin: 0.3rem 0 0 0;
    color: #ccc;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 700px) {
    .project-card {
        flex-direction: column;
        text-align: center;
    }

    .project-img {
        margin: 0 0 1rem 0;
        width: 100%;
        max-width: 250px;
        height: auto;
    }
}


/* Séparation entre catégories */
.category-separator {
    width: 80%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0rem 0 0rem 0;
    /* background-color: aqua; */
}

.category-separator::before,
.category-separator::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,165,0,0.7), transparent);
    margin: 0 0rem;
}

.category-title {
    font-family: "Lexend", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}