/* Projects Archive */
.post-type-archive-project .page-cross {
    position: sticky;
}

.post-type-archive-project .site-header {
    margin-top: -100vh;
}

.landing-projects {
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    padding-left: calc(33% + 12px);
    z-index: 0;
}

.landing-projects > div {
    flex: 1;
}

.landing-projects-grid {
    display: flex;
    flex-direction: column;
    gap: 160px;
    flex: 2;
    padding-bottom: 128px;
}

.project-excerpt {
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: var(--spacing-medium);
}

/* Single Project */
.single-project .project-header {
    padding-top: 258px;
    height: calc(100vh - 240px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.single-project .project-header .project-title, .single-project .project-header .project-description {
    max-width: 541px;
}
.project-featured-image {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    margin-bottom: var(--spacing-large);
}

.project-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header-right {
    flex: 1;
    /* display: flex;
    flex-direction: row;
    justify-content: flex-end; */
}

.project-header-right > div {
    flex: 1;
}

.project-header-right .project-description {
    width: 541px;
}

.project-description {
    margin-bottom: 35px;
}

.project-main-image {
    margin: var(--spacing-large) 0;
}

.project-main-image img {
    width: 100%;
    height: auto;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-large);
    padding-top: var(--spacing-large);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-previous a,
.nav-next a {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-small);
}


.projects-page {
    padding: 4rem 0;
}

.project-card {
   text-align: right;
   padding: 0;
   
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.project-card:first-child {
    height: calc(100vh - 128px);
}

.project-card .project-title {
    
text-align: right;

}

.project-card .project-client-name {
    text-align: right;
   
    text-transform: uppercase;
}

.project-thumbnail img {
    width: auto;
    height: 470px;
    border-radius: 10px;
    object-fit: cover;
}

.project-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    text-decoration: none;
    text-align: right;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.project-thumbnail-container {
    border-radius: 10px;
}

.projects-filters {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    position: sticky;
    bottom: 0;
    width: calc(33% + 12px);
    z-index: 1;
}

.filter-group {
    margin-bottom: 48px;
    /* width: 427px; */
}

.filter-group h2 {
    color: var(--color-primary);
    leading-trim: both;
    text-edge: cap;

    /* Common/Body button */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-option {
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(3px);

    /* Common/Body button */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
    text-transform: uppercase;

    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-option .count {
font-feature-settings: 'sups' on;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 22.4px */
letter-spacing: -0.32px;
}

.filter-option:hover {
    background-color: #000;
    color: #fff;
}

.filter-option.active {
    background-color: #000;
    color: #fff;
} 

.single-project .project-navigation-block {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
justify-content: center;
align-items: center;
}

.project-navigation-block-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.single-project article footer {
    height: auto;
}

.single-project .project-footer {
    background-color: var(--color-background);
    color: var(--color-primary);
    margin-left: -48px;
    margin-right: -48px;
    padding: 0px;
    min-height: 100vh;
    /* padding-bottom: 123px; */
}

/* Animation de fondu pour les projets */
.project-card.fade-in {
    opacity: 0;
}

.project-card:first-child.fade-in {
    transform: translateY(20px);
}
.project-card:first-child.fade-in-visible {
    transform: translateY(0);
}

.project-card.fade-in-visible {
    opacity: 1;
    transition: opacity 2s cubic-bezier(0.25, 0.71, 0.27, 1), transform 2s cubic-bezier(0.25, 0.71, 0.27, 1);
}

/* Ajouter un délai pour chaque projet suivant */
.project-card:nth-child(2).fade-in {
    transition-delay: 0.1s;
}

.project-card:nth-child(3).fade-in {
    transition-delay: 0.2s;
}

.project-card:nth-child(4).fade-in {
    transition-delay: 0.3s;
}

.project-card:nth-child(5).fade-in {
    transition-delay: 0.4s;
}

.project-card:nth-child(n+6).fade-in {
    transition-delay: 0.5s;
}

.single-project .project-navigation-block .page-cross {
    top: 0;
}

.single-project .project-content > * {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.single-project .project-content .pixelis-break-fullwidth {
    max-width: none;
    margin-left: -48px;
    margin-right: -48px;
}

.single-project .project-content .pixelis-break-fullwidth .pixelis-break-fullwidth__image {
    max-width: 1440px;
}

@media (max-height: 800px) and (min-width: 1024px) {
    .single-project .project-header {
        padding-top: 80px;
    }

    .project-thumbnail img {
        height: 270px;
    }
}

@media screen and (max-width: 1024px) {
    .projects-filters {
        display: none;
    }

    .post-type-archive-project .site-header {
        margin-top: 0;
    }

    .single-project .project-header {
        flex-direction: column;
        padding-top: 168px;
        height: auto;
        gap: 76px;
    }
    
    .project-description {
        margin-bottom: 24px;
    }
    
    .project-thumbnail img {
        height: auto;
        min-width: 100%;
    }

    .project-link {
        width: 100%;
    }

    .landing-projects {
        padding-left: 0;
        flex-direction: column;
    }

    .landing-projects-grid {
        gap: 80px;
        padding-top: 88px;
        padding-bottom: 115px;
    }

    .landing-projects > div {
        flex: auto;
    }

    .project-card:first-child {
        height: auto;
    }

    .project-header-right {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .pixelis-text-paragraph.has-offset {
        margin-left: 0;
    }

    .pixelis-text-paragraph {
        padding: 80px 0;
    }

    .pixelis-break-fullwidth {
        padding: 80px 8px;
        margin: 80px -8px;
    }

    .pixelis-break-fullwidth__title {
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 24px */
        letter-spacing: -0.4px;
    }

    .pixelis-break-fullwidth__content {
        font-size: 32px;
        font-style: normal;
        font-weight: 300;
        line-height: 100%; /* 32px */
        margin-bottom: 80px;
    }

    .pixelis-text-paragraph__title {
        font-size: 24px;
        font-style: normal;
        font-weight: 300;
        line-height: 120%; /* 28.8px */
        letter-spacing: -0.48px;
    }
    

    .single-project .project-footer {
        min-height: auto;
        margin-left: -8px;
        margin-right: -8px;
        height: 100vw;
    }

    .single-project .project-navigation-block {
        height: 100vw;
    }

    .project-navigation-block .page-cross {
        height: 100%;
    }

    .article-navigation-block-title {
        border-bottom: 1px solid var(--Black, #000);
        gap: 8px;
    }

    .project-navigation-block img.arrow-down {
        width: 27px;
        height: 24px;
    }

    .single-project .landing-projects .project-card:first-child {
        height: auto;
    }

    .project-header-left {
        gap: 16px;
        flex: auto;
    }

    .project-header-right {
        flex: auto;
    }

    .project-header-right > div {
        flex: auto;
    }

    .project-header-right .project-description {
        width: 100%;
    }

    .single-project .project-content > * {
        margin-left: 0;
        margin-right: 0;
    }

    .single-project .project-content .pixelis-break-fullwidth {
        max-width: none;
        margin-left: -8px;
        margin-right: -8px;
    }

    .single-project .project-content .pixelis-break-fullwidth .pixelis-break-fullwidth__image {
        max-width: 100%;
    }
}
