/* Theme Name: Portfolio 2025
   URI: http://www.VOTRE-SITE.COM
   Description: Mon portfolio 2025 
   Version: 1.0
   Author: Xiao Alex
*/

/* Light */
@font-face {
    font-family: 'Helvetica-Neue';
    src: url('fonts/HelveticaNeueLight.otf') format('opentype');
    font-weight: 300;
    /* Light = 300 */
    font-style: normal;
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: 'Helvetica-Neue';
    src: url('fonts/HelveticaNeueRoman.otf') format('opentype');
    font-weight: 400;
    /* Regular = 400 */
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Helvetica-Neue';
    src: url('fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    /* Medium = 500 */
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Helvetica-Neue';
    src: url('fonts/HelveticaNeueBold.otf') format('opentype');
    font-weight: 700;
    /* Bold = 700 */
    font-style: normal;
    font-display: swap;
}

/* Heavy */
@font-face {
    font-family: 'Helvetica-Neue';
    src: url('fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 800;
    /* Heavy = 800 */
    font-style: normal;
    font-display: swap;
}

/* Black */
@font-face {
    font-family: 'Helvetica-Neue';
    src: url('fonts/HelveticaNeueBlack.otf') format('opentype');
    font-weight: 900;
    /* Black = 900 */
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    --blanc: #FFFFF0;
    --noir: #200200;
    --rouge: #FF1205;
    --gris: #8E8E8E;
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 400;
    /* Default to Regular */
    color: var(--noir);
    background-color: var(--blanc);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2rem;
}

span {
    color: var(--gris);
}

section {
    display: flex;
    flex-direction: column;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 12rem;
    width: 80%;
}

header {
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 999;
}

.menu-burger {
    display: none;
    position: relative;
    z-index: 999;
}

.burgermenu {
    width: 30px;
    height: auto;
    cursor: pointer;
}

.logo {
    width: 150px;
    height: auto;
}

ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;

    transition: all 0.2s ease-in-out;
}

ul a {
    padding: 1rem 2rem;
    border-radius: 5rem;
}

ul a:hover,
ul a:focus {
    background-color: var(--gris);
    color: var(--blanc);
}

ul a:focus {
    outline: none;
}

.lien-contact {
    color: var(--rouge);
    padding: 1rem 2rem;
    transition: all 0.2s ease-in-out;
}

.lien-contact:hover,
.lien-contact:focus {
    background-color: var(--rouge);
    color: var(--blanc);
    border-radius: 5rem;
}


/* Hero Section */

.hero {
    position: relative;
    gap: 2rem;
    margin: 0 10%;
    margin-top: 3rem;
    overflow: hidden;
    width: 80%;
}

.titre {
    position: absolute;
    bottom: 0;
    writing-mode: sideways-lr;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* animation: FadeInTitre 3s ease-in-out; */
}

.titre h1 {
    font-size: 3.2rem;
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

.titre h2 {
    font-size: 2.5rem;
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 500;
    align-self: flex-end;
    font-weight: 300;
    color: var(--gris);
}

.photo {
    position: relative;
    width: 35%;
    margin: 0 auto;
    display: flex;
    margin-left: 10rem;
    overflow: visible;
}

.photo-profil {
    z-index: 10;
    background-color: transparent;
    width: 100%;
    position: relative;
    /* animation: FadeIn 3s ease-in-out; */
}

.photo-text {
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 1;
    /* animation: FadeInText 3s ease-in-out; */
}

.photo-text .alex {
    width: 50%;
}

.photo-text .xiao {
    width: 45%;
}

.visible {
    position: relative;
    z-index: 20;
    background-color: transparent;
}

.intro {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 40%;
    height: 100%;
    /* animation: FadeInBlabla 3s ease-in-out; */
}

.intro h2 {
    font-size: 2rem;
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 500;
    font-weight: 600;
    color: var(--gris);
}

.info {
    gap: 0.2rem;
    display: flex;
    flex-direction: column;
    color: red;
}

.info p:hover {
    text-decoration: underline;
}

@keyframes FadeIn {
    from {
        opacity: 0;
        transform: translateX(350px);
    }

    40% {
        opacity: 1;
        transform: translateX(350px);
    }

    60% {
        opacity: 1;
        transform: translateX(350px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes FadeInText {
    from {
        opacity: 0;
        transform: translateX(350px);
    }

    40% {
        opacity: 0;
        transform: translateX(350px);
    }

    50% {
        opacity: 1;
        transform: translateX(350px);
    }

    60% {
        opacity: 1;
        transform: translateX(350px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes FadeInTitre {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    60% {
        opacity: 0;
        transform: translateY(-100px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes FadeInBlabla {
    from {
        opacity: 0;
        transform: translateX(500px);
    }

    60% {
        opacity: 0;
        transform: translateX(500px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Présentation */

.presentation {
    display: flex;
    flex-direction: row;
    width: 80%;
    margin: 0 10%;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 10rem;
}

.sub-pres {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: 45%;
}

.block-pres {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.block-pres div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

h3 {
    font-size: 3.5rem;
    font-weight: bold;
    position: relative;
}

.block-pres h3::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--rouge);
    margin-top: 0.5rem;
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    border-radius: 15px;
}

.block-pres .qualités {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.qualités p {
    border: solid 2px var(--rouge);
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: 5rem;
}


/* Projets */

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

.projets-titre h3 {
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 500;
}

.projets-lien {
    transition: all 0.2s ease-in-out;
    position: relative;
}

.projets-lien span {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: inline-block;
}

.projets-lien:hover,
.projets-lien:focus {
    transform: translateX(-10px);
}

.projets-lien:hover span,
.projets-lien:focus span {
    opacity: 1;
    transform: translateX(0);
    color: var(--rouge);
}

.projets-lien:hover,
.projets-lien:focus {
    color: var(--rouge);
}

.projets-liste {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.no-result {
    text-align: center;
    margin-top: 2rem;
}

.section-projets .projets-liste {
    margin-top: 2rem;
}

.projet {
    border: solid 2px var(--noir);
    border-radius: 1rem;
    aspect-ratio: 16 / 9;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    display: flex;
    width: 30%;
    overflow: hidden;
}

.projet-desc {
    /* opacity: 1; */
    overflow: hidden;
    /* transition: all 0.8s ease-in-out; */
    max-width: 30%;
    margin-top: 2rem;
}

.projet-desc.hiding {
    opacity: 0;
    max-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.projet:hover .projet-overlay,
.projet:focus .projet-overlay,
.projet-overlay:focus-within {
    opacity: 100%;
}


.projet-overlay>* {
    color: var(--blanc);
    background-color: transparent;
}

.lien-projet {
    transition: all 0.2s ease-in-out;
}

.lien-projet:hover,
.lien-projet:focus {
    text-decoration: underline;
}

/* Page Projet */

.projet-detail {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 3rem;
}

.projet-titre {
    width: 33.33%;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;

}

.projet-titre h1 {
    font-size: 3rem;
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 900;
}

.projet-titre h3 {
    font-size: 1.5rem;
    font-family: "Helvetica-Neue", sans-serif;
    font-weight: 500;
    color: var(--gris);
}

.projet-titre div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.categorie h3 {
    margin-right: 1rem;
    width: fit-content;
}

.date {
    color: var(--gris);
    font-size: 1.2rem;
}

.projet-images {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.projet-images img:hover,
.video-container:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.projet-images img,
.video-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1rem;
    transition: all 0.2s ease-in-out;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.projet-images .img-width-2 {
    grid-column: span 2;
    width: 100%;
    height: 100% !important;
    aspect-ratio: unset;
}

.lien-projet {
    margin-top: 2rem;
    width: fit-content;
}

.projet-navigation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.previous {
    align-self: flex-start;
}

.next {
    align-self: flex-end;
}

.project-link {
    margin-top: 2rem;
}

.projet-content a:hover {
    text-decoration: underline;
}

.projet-content a {
    color: var(--rouge);
    padding: 1rem 2rem;
    transition: all 0.2s ease-in-out;
    margin-top: 2rem;
}

.projet-content a:hover,
.projet-content a:focus {
    background-color: var(--rouge);
    color: var(--blanc);
    border-radius: 5rem;
}

/* Modal */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0;
    z-index: 1000;
}

.modal img {
    max-width: 60%;
    max-height: 90%;
    border-radius: 1rem;
}

.modal-open {
    overflow: hidden;
}

.active {
    display: flex;
}

/* Page projets */

.projets {
    margin-top: 5rem;
    min-height: 70vh;
}

section .page-projets {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: calc(10% / 2);
}

.filtre {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filtre>* {
    padding: 1rem 1.5rem;
    border: solid 2px var(--gris);
    border-radius: 5rem;
}

.filtre select option {
    color: var(--gris);
}

.filtre select {
    color: var(--gris);
}

.filtre select:hover,
.filtre select:focus {
    background-color: var(--gris);
    color: var(--blanc);
}

.filtre select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url('../../uploads/2025/07/arrow-down-solid.svg');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.filtre select::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #b5b5b5;
    transition: none;
}

.button-filtre {
    transition: all 0.2s ease-in-out;
}

.button-filtre:hover {
    background-color: var(--gris);
    color: var(--blanc);
    cursor: pointer;
}

.button-reset {
    opacity: 20%;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

/* Page contact */

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wpcf7-form-control-wrap input {
    border-radius: 50px;
    border: solid 2px var(--gris);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    margin-top: .5rem;
}

.wpcf7-form-control-wrap textarea {
    border-radius: 15px;
    width: 100%;
    border: solid 2px var(--gris);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    margin-top: .5rem;
}

.wpcf7-form-control {
    padding: .5rem 2rem;
    border-radius: 50px;
    border: solid 2px var(--gris);
    margin: 0 auto;
}

.contact .wpcf7-form p:last-of-type {
    display: flex;
    justify-content: center;
}

.wpcf7-spinner {
    display: none;
}

/* Footer */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10rem;
    padding: 2rem;
    background-color: var(--gris);
}

footer p {
    color: var(--blanc);
    background-color: transparent;
    font-size: 1.2rem;
}

.open {
    transform: translateX(0) !important;
}

.invisible {
    display: none;
}

.lien {
    margin-top: 3rem;
}


/* Media Queries */

@media screen and (max-width: 768px) {

    .logo {
        width: 100px;
        height: auto;
    }

    .menu-burger {
        display: flex;
    }

    #menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100svh;
        width: 100vw;
        padding: 5rem .5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        transition: all 0.8s ease;
        transform: translateX(200%);
    }

    /* Hero */

    .hero {
        margin: 2rem auto;
    }

    .titre {
        writing-mode: horizontal-tb;
        width: 100%;

    }

    .titre h1 {
        font-size: 2.5rem;
        font-family: "Helvetica-Neue", sans-serif;
        font-weight: 900;
    }

    .titre h2 {
        font-size: 2rem;
    }

    .photo {
        margin-left: 0;
        margin: 0 auto;
        margin-top: 8rem;
        width: 100%;
    }

    .photo-text {
        z-index: 1;
    }

    .intro {
        position: relative;
        width: 100%;
        margin-top: 2rem;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    @keyframes FadeIn {
        from {
            opacity: 0;
            transform: translateX(800px);
        }

        40% {
            opacity: 1;
            transform: translateX(800px);
        }

        60% {
            opacity: 1;
            transform: translateX(0px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    /* Présentation */

    .presentation {
        flex-direction: column;
        margin: 5rem auto;
        gap: 2.5rem;
    }

    .sub-pres {
        width: 100%;
        gap: 2.5rem;
    }

    .block-pres {
        gap: 1rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .block-pres .qualités p {
        font-size: 0.8rem;
    }

    .projets-liste {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }


    /* Projet */

    .lien {
        margin-top: 6rem;
    }

    .projet-desc {
        max-width: 100%;
    }

    .projet-detail {
        flex-direction: column;
    }

    .projet-titre {
        width: 100%;
        gap: 1rem;
    }

    .categorie {
        order: 1;
    }

    .date {
        order: 2;
    }

    .projet-content {
        order: 3;
    }

    .button-filtre {
        order: 4;
    }

    .button-reset {
        order: 5;
    }

    .projet-images {
        width: 100%;
        margin-top: 3rem;
        gap: 1rem;
        height: fit-content;
    }

    .projet-images img,
    .video-container {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        object-fit: cover;
    }

    .projet-images .img-width-2 {
        height: fit-content;
    }

    .lien-projet {
        margin-top: 0;
    }

    /* Page Projets */

    .filtre {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 5rem;
    }

    .filtre>* {
        width: 100%;
    }

    .button-filtre {
        order: 4;
    }



    .wpcf7-form-control {
        width: 80vw;
    }

    .wpcf7-submit {
        width: fit-content;
    }



    /* Footer */
    footer p {
        font-size: 1rem;
    }

    .projet {
        width: 100%;
        margin-bottom: 2rem;
    }

    .contact {
        margin: 3rem 10%;
        height: 90%;
    }

}

@media screen and (min-width: 769px) and (max-width: 1024px) {

    header {
        margin: 0 5%;
    }

    .logo {
        width: 200px;
        height: auto;
    }

    .menu-burger {
        display: flex;
    }

    #menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100svh;
        width: 50vw;
        padding: 5rem .5rem 2rem 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        transition: all 0.8s ease;
        transform: translateX(200%);
    }

    #menu :first-child {
        margin-top: 2rem;
    }

    .projet {
        width: 100%;
        margin-bottom: 2rem;
    }


    .titre {
        height: 50%;
        top: 0;
    }

    .photo {
        margin: 0 auto;
        width: 50%;
    }

    .intro {
        position: relative;
        width: 100%;
        margin-top: 2rem;
    }

    .projets-liste {
        flex-direction: column;
        gap: 2rem;
    }

    .projet-overlay>* {
        font-size: 1.5rem;
    }

    @keyframes FadeIn {
        from {
            opacity: 0;
        }

        40% {
            opacity: 1;
        }

        60% {
            opacity: 1;
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    @keyframes FadeInText {
        from {
            opacity: 0;
            transform: translate(1000px, 1000px);
        }

        40% {
            opacity: 0;
            transform: translate(1000px, 0px);
        }

        50% {
            opacity: 0;
            transform: translate(1000px, 0px);
        }

        60% {
            opacity: 1;
            transform: translate(1000px, 0px);
        }

        to {
            opacity: 1;
            transform: translate(0, 0);
        }
    }

    h3 {
        font-size: 2.5rem;
    }

    .lien-projet {
        margin-top: 0;
    }


    /* Projet */

    .lien {
        margin-top: 6rem;
    }

    .projet-desc {
        max-width: 100%;
        max-height: 100%;
    }

    .projet-desc.hiding {
        max-height: 0;
        max-width: 100%;
    }

    .projet-detail {
        flex-direction: column;
    }


    .projet-titre {
        width: 100%;
        gap: 1rem;
    }

    .categorie {
        order: 1;
    }

    .date {
        order: 2;
    }

    .projet-content {
        order: 3;
    }

    .projet-images {
        width: 100%;
        margin-top: 3rem;
        gap: .5rem;
        height: fit-content;
    }

    .projet-images img,
    .video-container {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        object-fit: cover;
    }

    .projet-images .img-width-2 {
        height: fit-content;
    }

    /* Page Projets */

    .filtre {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 5rem;
    }

    .filtre>* {
        width: 100%;
    }

    .button-filtre {
        order: 4;
    }

    .button-reset {
        order: 5;
    }

}