/* SCROLL */

#projects_introduction {
    scroll-margin-top: 18dvh;
}

/* FIN SCROLL */

/* DÉBUT BADGE NOUVEAU PORTFOLIO */

.new-portfolio-badge {
    position: relative;
    display: inline-block;
    background-color: var(--card);
    color: var(--foreground);
    border: 1px solid var(--secondary-foreground);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: var(--font-size-content-XS);
    font-weight: var(--font-weight-button);
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.new-portfolio-badge:hover {
    background-color: var(--secondary);
    border-color: var(--foreground);
}

.new-portfolio-badge .tooltip {
    visibility: hidden;
    position: absolute;
    width: 220px;
    background-color: var(--foreground);
    color: var(--background);
    text-align: center;
    border-radius: 4px;
    padding: 10px 15px;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: var(--font-size-content-XXS);
    font-weight: var(--font-weight-text);
    letter-spacing: 0.5px;
}

.new-portfolio-badge .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--foreground) transparent transparent transparent;
}

.new-portfolio-badge:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* FIN BADGE NOUVEAU PORTFOLIO */

/* DÉBUT HERO PAGE */

.hero_principale {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero_principale .title-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero_principale h2.hero_title {
    display: inline-block;
}

.hero_principale aside {
    display: inline-flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero_principale {
        flex-wrap: wrap;
    }
    
    .hero_principale .new-portfolio-badge {
        width: fit-content;
    }
    
    .hero_principale h2.hero_title {
        display: inline-block;
    }
    
    .hero_principale aside {
        margin-left: auto;
    }
}

.hero_aside {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10vw;
}

.hero_aside header {
    width: var(--width-content-S);

    >h4 {
        font-style: italic;
        font-size: var(--font-size-content-S);
        padding-bottom: 1vw;
        font-family: "Cambay", sans-serif;
        font-weight: var(--font-weight-text);
    }

    >h1 {
        font-size: var(--font-size-content-S);
        line-height: 150%;
        font-weight: var(--font-weight-button);
    }
}

.hero_aside h1 span:not(.hero_weight) {
    position: relative;
    white-space: nowrap;

    &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(50%);
        background: var(--foreground);
        width: 100%;
        height: 2px;
    }
}

.hero_weight {
    font-weight: var(--font-weight-title);
}

/* FIN HERO PAGE */

/* DÉBUT PROJECT SECTION */

.projects {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 5%;
        background-color: var(--foreground);
        width: 90%;
        height: 1px;
    }
}

.projects_introduction {
    position: relative;
    width: 100%;
    padding: 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5vw;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 5%;
        background-color: var(--foreground);
        width: 90%;
        height: 1px;
    }
}

.projects_introduction header,
.projects_introduction aside {
    width: 450px;
}

.projects_introduction aside {
    display: flex;
    flex-direction: column;
    gap: 6dvh;
}

.projects_introduction h2 {
    width: fit-content;
    font-size: var(--font-size-content-XL);
    text-transform: uppercase;

    >span {
        font-size: var(--font-size-content-L);
        color: var(--secondary-foreground);
    }
}

.projects_introduction h3 {
    font-size: var(--font-size-content-S);
    line-height: 150%;
    font-weight: var (--font-weight-text);
    font-family: "Cambay", sans-serif;
}

.wrapp {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 5vw;
}

.work {
    display: flex;
}

.work_left {
    position: relative;
    width: 45%;
}

.work_left-bl {
    display: flex;
    flex-direction: column;
}

.work_text {
    width: 100%;
}

.work_info {
    position: relative;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5vw;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: var(--foreground);
        width: 100%;
        height: 1px;
    }
}

.work_num {
    display: block;
    text-align: right;
    font-size: var(--font-size-content-S);
    transform: skewX(-20deg);
}

.work_title {
    font-size: var(--font-size-content-L);
    font-weight: var(--font-weight-text);
    color: var(--foreground);
    line-height: 150%;
    padding-bottom: 1vw;
}

.work_description {
    width: 60%;
    font-size: var(--font-size-content-S);
    line-height: 150%;
    font-weight: var(--font-weight-button);
    font-family: "Cambay", sans-serif;
    margin-bottom: 6dvh;
}

.work_right {
    width: 55%;
    height: auto;
}

.work_right-bl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    width: 100%;
    height: 100dvh;
    top: 0;
}

.work_photo {
    width: 45vw;
    height: 30vw;
    position: relative;
}

.work_photo-item {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    cursor: none;
}

.work_photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work_photo-item-hover-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 250ms ease-out;
}

.work_photo-item:hover .work_photo-item-hover-container {
    opacity: 1;
}

.work_photo-item-hover-description {
    padding: 2vw;
    pointer-events: none;

    >ul {
        list-style-type: none;

        >li {
            display: flex;
            align-items: center;
            border-top: 1px solid var(--secondary-foreground);
            padding: 8px 0;
            max-width: 70%;

            >span {
                font-style: italic;
                font-weight: var(--font-weight-button);
                font-size: var(--font-size-content-XS);
                color: var(--foreground);
                margin-right: 4vw;
                font-family: "Lugrasimo", cursive;
                min-width: 100px;
            }

            >h3 {
                font-weight: var(--font-weight-text);
                color: var(--secondary-foreground);
            }
        }
    }
}

.work_photo-item-mobile,
.work_photo-mobile {
    display: none;
}

.work_right-pc {
    display: inline-block;
}

/* FIN PROJECT SECTION */

/* ABOUT */

.about {
    position: relative;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5vw;
    padding: 10vw 15vw;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 5%;
        background-color: var(--foreground);
        width: 90%;
        height: 1px;
    }
}

.about_presentation,
.about_description {
    width: 100%;
}

.about_presentation h4 {
    padding-bottom: 1vw;
}

.about_presentation h2 {
    font-size: var(--font-size-content-XL);
    line-height: 130%;
    font-weight: var(--font-weight-text);
}

.about_description {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15vw 5vw;
}

.about_description_list h4 {
    padding-bottom: 1vw;
}

.about_description_list {
    flex: 3;
}

.about_description ul {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    list-style-type: none;

    >li {
        font-size: var(--font-size-content-M);
        line-height: 200%;
    }
}

.about_description_content {
    display: flex;
    flex-direction: column;
    gap: 6dvh;
    flex: 3;

    >h3 {
        width: 100%;
        font-size: var(--font-size-content-M);
        line-height: 200%;
        font-weight: var(--font-weight-text);
        font-family: "Cambay", sans-serif;
    }
}

/* FIN ABOUT */


@media (max-width: 1050px) {

    .right {
        gap: 2em;
    }

    .hero {
        padding: 15dvh 5vw 10dvh 5vw;
    }

    .hero_title {
        --font-size-title-XL: clamp(60px, 8vw, 100px);
    }

    .hero_aside header {
        width: auto;

        >h4 {
            padding-bottom: 2vw;
        }
    }

    .projects_introduction,
    .wrapp,
    .about {
        padding: 15vw 5vw;
    }

    .about {
        gap: 15vw;
    }

    .about_presentation h2 {
        width: 100%;
    }

    .text_cursive {
        padding-bottom: 0;
    }

    .about_description article {
        width: 100%;
    }

    .about_description_content,
    .about_description_list {
        flex: none;
    }

    .about_description ul {
        gap: 3vw;
    }

    .projets {
        padding: 0 5vw;
    }

    .projects aside div:not(.button_general_container) {
        gap: 10vw;
    }

    /* SECTION PROJECTS */

    .work_photo-item-mobile,
    .work_photo-mobile {
        display: inline-block;
    }

    .work_right-pc {
        display: none;
    }

    .work_left {
        width: 100%;
    }

    .work_photo {
        width: clamp(200px, 100%, 700px);
        height: clamp(150px, 50vw, 550px);
        position: relative;
    }

    .work_info {
        height: auto;
        align-items: center;

        &::after {
            bottom: -15vw;
        }
    }

    .work_info:last-child {
        &::after {
            height: 0;
        }
    }

    .work_text {
        display: flex;
        flex-direction: column;
        gap: 30vw;
    }

    .work_description {
        margin-bottom: 3dvh;
    }

    .work_left-content {
        width: 75%;
    }

    .work_description {
        width: auto;
        color: var(--foreground);
    }

    .work_title {
        padding: 2vw 0;
    }

    .work_num {
        text-align: left;
    }

    .hero_principale .title-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero_principale .title-container aside {
        margin-top: 10px;
    }

    /* FIN SECTION PROJECTS */
}