.project-detail-container {
    max-width: 800px;
    margin: 32px auto 128px auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #3e3e3e;
    border-radius: 8px;
}

.project-detail-container:hover {
    box-shadow: 0 3px 5px rgba(173, 173, 173, 0.4);
    transition: 0.3s ease-in-out;
}

.project-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

strong {
    color: white;
}

.project-category {
    font-style: italic;
    color: #c9c6c6;
    margin: 0 0 8px 0;
}

.project-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-legend {
    max-width: 30%;
    margin-right: 16px;
}

.zoom-in-legend {
    position: unset;
    text-shadow: unset;
    font-weight: unset;
    letter-spacing: unset;
    text-transform: unset;
    font-size: 0.9em;
    color: #c9c6c6;
    font-style: italic;
    text-align: center;
}

figure {
    aspect-ratio: unset;
}

.project-image {
    max-width: 100%;
    height: auto;
    margin-right: 20px;
    border-radius: 4px;
}

.project-description {
    flex: 1 1 60%; /* 60% of the container width */
    font-size: 1.2em;
}

.project-link {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
}

.project-link:hover {
    background-color: #0056b3;
}

p {
    margin: 16px 0;
    line-height: 20px;
}

.project-header h1 {
    font-size: 3em;
}

@media (max-width: 815px) {

    .project-content {
        flex-direction: column;
    }

}


/* Style pour le fond assombrissant */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

/* Style pour l'image agrandie */
.zoomed-image {
    position: fixed;
    max-width: 80%;
    max-height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    display: none;
    border: none;
    outline: none;
    transition: .3s ease-in-out;
}

