.project-archive {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    margin: 0 auto;
}

.project-archive .search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.project-archive .search-bar {
    display: flex;
    align-items: center;
    width: fit-content;
    height: fit-content;
    padding-bottom: 5px;
    border-bottom: 2px solid #4f48d6;
}

.project-archive .search-bar-container {
    position: relative;
}

.project-archive .category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.project-archive a {
    width: fit-content;
    height: fit-content;
}

.project-archive .post {
    display: flex;
    flex: 1 1 48%; /* Two posts per row, considering the gap */
    aspect-ratio: 16 / 10; /* Maintain aspect ratio */
    max-width: 49%;
    margin: 0 auto;
    background: center / cover no-repeat;
    position: relative;
    transition: border-radius 0.3s ease-in-out;
    overflow: hidden;
}

.project-archive .post a {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255, 0.75);
    text-decoration: none;
    color: #4f48d6;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.project-archive .post:hover a {
    display: flex;
}

.project-archive .post:hover {
    border-radius: 20px;
}

.project-archive .post img {
    width: auto;
    height: auto;
}

.project-archive .post h5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    max-width: 65%;
}

.project-archive .page-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.project-archive .see-more-container,
.project-container .see-more-container {
    margin: 40px 0;
}

.project-archive .bouton-voir-plus,
.project-container .bouton-voir-plus {
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    padding: 0 10px;
    color: #4f48d6;
    background-color: #99e6ff;
    border: none;
}

.project-archive .bouton-voir-plus:hover,
.project-container .bouton-voir-plus:hover {
    background-color: #99e6ff;
    color: #4f48d6;
}

.project-archive .bouton-voir-plus:focus,
.project-container .bouton-voir-plus:focus {
    background-color: #99e6ff;
    color: #4f48d6;
}

.project-archive .search-container h2 {
    color: #4f48d6;
}

.project-archive .search-bar input {
    border: none;
    width: 200px;
    color: #4f48d6;
    padding: 0;
}

.project-archive .search-bar input::placeholder {
    color: #4f48d6;
}

.project-archive .search-bar input:focus {
    outline: none;
}

.project-archive .category-filter,
.project-container .category-filter {
    font-family: "VT323", monospace;
    font-size: 1.3rem;
    padding: 0 10px;
    color: #4f48d6;
    border: none;
    border-radius: 10px;
}

.project-archive #search-button {
    border: none;
    padding: 0 10px;
}

.project-archive #search-button img {
    width: 16px;
    height: auto;
}

.project-archive #search-button:hover {
    background-color: transparent;
}

.project-archive #search-button:focus {
    background-color: transparent;
}

.project-archive .category-buttons > *:nth-child(3n + 1),
.project-container .category-buttons > *:nth-child(3n + 1) {
    background-color: #fee664;
    color: #f83d49;
}

.project-archive .category-buttons > *:nth-child(3n + 2),
.project-container .category-buttons > *:nth-child(3n + 2) {
    background-color: #4f48d6;
    color: #fff;
}

.project-archive .category-buttons > *:nth-child(3n + 3),
.project-container .category-buttons > *:nth-child(3n + 3) {
    background-color: #99e6ff;
    color: #4f48d6;
}

.project-archive .category-buttons > *:nth-child(3n + 1):hover,
.project-container .category-buttons > *:nth-child(3n + 1):hover {
    background-color: #fee664;
    color: #f83d49;
}

.project-archive .category-buttons > *:nth-child(3n + 2):hover,
.project-container .category-buttons > *:nth-child(3n + 2):hover {
    background-color: #4f48d6;
    color: #fff;
}

.project-archive .category-buttons > *:nth-child(3n + 3):hover,
.project-container .category-buttons > *:nth-child(3n + 3):hover {
    background-color: #99e6ff;
    color: #4f48d6;
}
.project-archive .category-buttons > *:nth-child(3n + 1):focus,
.project-container .category-buttons > *:nth-child(3n + 1):focus {
    background-color: #fee664;
    color: #f83d49;
}

.project-archive .category-buttons > *:nth-child(3n + 2):focus,
.project-container .category-buttons > *:nth-child(3n + 2):focus {
    background-color: #4f48d6;
    color: #fff;
}

.project-archive .category-buttons > *:nth-child(3n + 3):focus,
.project-container .category-buttons > *:nth-child(3n + 3):focus {
    background-color: #99e6ff;
    color: #4f48d6;
}

.project-archive .autocomplete-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
    position: absolute;
    background: white;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.project-archive .autocomplete-list li {
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #4f48d6;
}

.project-archive .autocomplete-list li:hover {
    background: #f0f0f0;
}

.project-archive .autocomplete-list li:active {
    background: #dcdcdc;
}

@media (max-width: 768px) {
    .project-archive .search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px 0;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .project-archive .post {
        display: flex;
        flex: 1 1 48%; /* Two posts per row, considering the gap */
        aspect-ratio: 16 / 10; /* Maintain aspect ratio */
        max-width: 100%;
        margin: 0 auto;
        background: center / cover no-repeat;
        position: relative;
        transition: border-radius 0.3s ease-in-out;
        overflow: hidden;
    }
}
