/**
 * Styles reserved for the single project template.
 *
 * Loaded only on single entries of the "projets" post type.
 *
 * @package theme_by_socreativ
 */

/* Project header
--------------------------------------------- */
.single-projet-head{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 900px;
    padding: 0 calc(var(--gutters)/2);
}
.single-projet-head-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(60px);
}
.single-projet-head-svg{
    width: 20px;
    height: 20px;
    overflow: hidden;
}
.single-projet-head-svg > span{
    display: block;
    width: 100%;
    height: 100%;
}
.single-projet-head-svg svg{
    display: block;
    width: 100%;
    height: 100%;
}
.single-projet-title{
    color: var(--wp--preset--color--white);
    text-align: center;
    font-family: "Brier", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    max-width: 300px;
    overflow: hidden;
}
.single-projet-categorie, .single-projet-categorie a{
    color: var(--wp--preset--color--white);
    text-align: center;
    font-family: "Mona Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 14px;
}
.single-projet-categorie{
    overflow: hidden;
}
.single-projet-keys-words{
    color: var(--wp--preset--color--white);
    text-align: center;
    font-family: "Mona Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    overflow: hidden;
}
.single-projet-title > span,
.single-projet-categorie > span,
.single-projet-keys-words > span{
    display: block;
}
.single-projet-main-img{
    height: 100%;
    max-height: 700px;
    width: 100%;
    object-fit: cover;
    transform: translateY(100px);
}

/* Arrival state used by the project-card page transition. */
html.vt-project-arrival,
html.vt-project-arrival body {
    overflow: hidden;
}

html.vt-project-arrival .site-header,
html.vt-project-arrival .site-footer,
html.vt-project-arrival .single-projet-content,
html.vt-project-arrival .single-projet-testimonials,
html.vt-project-arrival .single-projet-end {
    opacity: 0;
}

.single-projet-head-reveal {
    opacity: 0;
    transform: translateY(100%);
}

html.vt-project-arrival .single-projet-main-img {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: block;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    transform: none;
}

html.vt-project-arrival.vt-project-measure-final .single-projet-main-img {
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 700px;
    transform: translateY(100px);
}

html.vt-project-arrival.vt-project-reveal-content .site-header,
html.vt-project-arrival.vt-project-reveal-content .site-footer,
html.vt-project-arrival.vt-project-reveal-content .single-projet-content,
html.vt-project-arrival.vt-project-reveal-content .single-projet-testimonials,
html.vt-project-arrival.vt-project-reveal-content .single-projet-end {
    opacity: 1;
    transition: opacity 350ms ease;
}

@media (prefers-reduced-motion: reduce) {
    html.vt-project-arrival .single-projet-main-img {
        position: static;
        inset: auto;
        z-index: auto;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 700px;
        transform: translateY(100px);
    }
}

/* Project content
--------------------------------------------- */
.single-projet-content{
    padding:  200px var(--gutters) 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
}
.single-projet-col{
    display: flex;
    flex-direction: column;
    width: 50%;
}
.single-projet-col.is-sticky{
    position: sticky;
    top: var(--single-projet-sticky-top, 0px);
    align-self: flex-start;
    height: fit-content;
}
.single-projet-col.is-sticky.has-scrolltrigger-sticky{
    position: relative;
    top: auto;
    will-change: transform;
}
.single-projet-content-wrapper{
    display: flex;
    flex-direction: column;
    width: 90%;
    padding-bottom: 2rem;
}
.single-projet-content-wrapper h2{
    margin-top: 0;
}
.single-projet-content-wrapper img.alignleft{
    margin-bottom: 0.5rem;
}
.single-projet iframe{
    width: 100% !important;
    height: 400px !important;
}
.single-projet-col:nth-child(2){
    align-items: flex-end;
}
.single-projet-content-wrapper p:first-child{
    margin-top: 0;
}
.single-projet-content-wrapper p{
    margin-bottom: 0;
}
.single-projet-content-wrapper.link-wrapper {
    flex-direction: row;
    gap: 1rem;
}
.single-projet-content-wrapper .single-projet-content-img{
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

/* Testimonial
--------------------------------------------- */

.single-projet-testimonials{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 calc(var(--gutters)/2);
    position: relative;
}
.single-projet-testimonial-img{
    height: 100%;
    max-height: 700px;
    width: 100%;
    object-fit: cover;
}
.single-projet-testimonial-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.single-projet-testimonial-portrait{
    width: 64px;
    height: 64px;
    object-fit: cover;
    padding: 2px;
    background: var(--wp--preset--color--white);
    transform: translateY(50%);
}
.single-projet-testimonial-text{
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background: var(--wp--preset--color--white);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
    display: inline-flex;
    padding: 50px 19px 23px 21px;
    flex-direction: column;
    align-items: center;
    width: 400px;
}
/* End message
--------------------------------------------- */
.single-projet-end-msg{
    display: flex;
    width: 100%;
    padding: 50px var(--gutters);
}

/* Related projects
--------------------------------------------- */
.footer-underlay{
    overflow: hidden;
}

.single-projet-footer{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 calc(var(--gutters)*1.5);
}
.single-projet-footer p{
    display: flex;
    justify-content: center;
    margin: 0;
    text-align: center;
    font-family: "Mona Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}
.single-projet-footer-title{
    text-align: center;
    font-family: "Brier", sans-serif;
    font-size: 60px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
}
.last-single-projets-wrapper{
    display: flex;
    gap: 1rem;
    margin-bottom: 250px;
}
.archive-projets-card{
    display: flex;
    flex-direction: column;
    width: 33%;
    height: 360px;
    position: relative;
    overflow: hidden;
}
.archive-projets-card-link{
    display: flex;
    width: 100%;
    height: 100%;
}
.archive-projets-card-media{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.archive-projets-card-img,
.archive-projets-card-video,
.archive-projets-card-media img,
.archive-projets-card-media video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    flex: 0 0 100%;
}
.archive-projets-card-img{
    transition: transform 0.3s ease;
}
.archive-projets-card-content{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.archive-project-card-category{
    color: var(--wp--preset--color--blanc);
    font-family: "Brier", serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}
.archive-projets-card-title{
    margin: 0;
    color: var(--wp--preset--color--blanc) !important;
    font-family: "Mona Sans", sans-serif;
    font-size: 18px!important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}
.archive-projets-card:hover .archive-projets-card-img{
    transform: scale(1.1);
}
.archive-projets-card:hover .archive-projets-card-content{
    opacity: 1;
}
/* Responsive styles
--------------------------------------------- */
@media (max-width: 767px){
    .single-projet-col.is-sticky{
        position: static;
    }
}

/* Final mobile layout; the fixed full-screen arrival image keeps its own rules. */
@media (max-width: 767px) {
    .single-projet-head {
        height: auto;
        padding: 100px 0 0;
    }

    .single-projet-head-wrapper {
        padding-inline: var(--gutters);
        transform: none;
    }

    .single-projet-main-img,
    html.vt-project-arrival.vt-project-measure-final .single-projet-main-img {
        height: 350px;
        max-height: 350px;
        flex-shrink: 0;
        margin-top: 40px;
        transform: none;
    }

    .single-projet-content {
        flex-direction: column;
        padding: 0;
    }

    .single-projet-content > .single-projet-col {
        width: 100%;
        padding: 40px var(--gutters);
        align-items: stretch;
    }

    .single-projet-content > .single-projet-col.is-sticky {
        position: static;
        background-color: var(--single-projet-color);
        color: #fff;
    }

    .single-projet-col.is-sticky * {
        color: #fff !important;
    }

    .single-projet-col.is-sticky .socreativ-btn {
        border-color: #fff;
    }

    .single-projet-content .single-projet-content-wrapper {
        width: 100%;
    }

    .single-projet-content-wrapper > p:first-of-type:has(img) {
        display: none;
    }

    .single-projet-content-wrapper.link-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .single-projet-end-msg {
        flex-direction: column;
        padding-top: 0;
    }
    .single-projet-col:nth-child(2){
        align-items: flex-start;
    }

    .single-projet-end-msg > .single-projet-col {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .last-single-projets-wrapper {
        flex-direction: column;
        margin-bottom: 100px;
    }

    .last-single-projets-wrapper > .archive-projets-card {
        width: 100%;
    }

    .single-projet-footer-title {
        font-size: 45px;
    }
}

@media (max-width: 767px) {
    .last-single-projets-wrapper > .archive-projets-card {
        height: 250px;
    }

    .last-single-projets-wrapper .archive-projets-card-content {
        opacity: 1;
    }
}
