@font-face {
  font-family: "typold";
  font-weight: 400;
    src: url("../css/font/typoldRegular.otf") format("truetype");
}

@font-face {
  font-family: "typold";
  font-weight: 100;
    src: url("../css/font/typoldThin.otf") format("truetype");
}


@font-face {
  font-family: "typold";
  font-weight: 900;
    src: url("../css/font/typoldBlack.otf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    list-style: none;
    box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    background: #ff5800;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

::selection {
    color: rgb(255, 255, 255);
    background-color: #0000ff;
}

#graphic_designer {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

#graphic_designer h4 {
    width: 65%;
    font-family: typold;
    font-weight: 100;
    color: #FFFFFF;
    font-size: clamp(18px, 3vw, 54px);
}

#graphic_designer h4 span {
    font-weight: 900;
    color: #FFFFFF;
}

#graphic_designer h3 {
    font-family: typold;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.04em;
}

.horizontal-wrapper{
  position:relative;
  height:auto;
  width: 100%;
}

.sticky {
  position:relative;
  width:100%;
  height:auto;
  overflow:visible;
}

.world{
  position:relative;
  width:100%;
  height:auto;
  will-change:auto;
}

.panel{
  position:relative;
  height:auto;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

#moi {
    left:0;
    top:0;
    height: 100vh;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

#moi h3 {
    letter-spacing: -8px;
    font-size: 96px;
}


#mes_projets {
    padding:  0 1.5rem 20rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 3rem;
    justify-items: center;
    height: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#mes_projets::-webkit-scrollbar {
    display: none;
}

#contacter {
    width: 100%;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: #ff5800;
    border-top: 8px solid #FFFFFF;
    box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.226);
    box-sizing: border-box;
    padding: 3rem;
    gap: 2rem;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-icon {
    width: auto;
    height: 12rem;
}

#contacter a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: typold;
    font-weight: 900;
    font-size: 3rem;
    color: #FFFFFF;
    text-decoration: none;
    padding: 1rem 2.5rem;
}

.email {
    grid-row: 2 / 3;
    align-self: start;
}

.linkedin {
    grid-row: 3 / 4;
    align-self: start;
}

.telephone {
    grid-row: 4 / 5;
    align-self: start;
}

#contacter h3 {
    grid-column: 2 / 3;
    margin: 0 2rem;
    font-size: 96px;
    letter-spacing: -7px;
}

.contact-sous-titre {
    width: auto;
    font-size: 36px;
    font-family: typold;
    font-weight: 400;
    color: #FFFFFF;
}

.contact-form {
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    background: #252525;   
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.349); 
    padding: 2rem;
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.contact-form div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-family: typold;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-family: typold;
    font-size: 1rem;
    outline: none;
}

.contact-form textarea {
    min-height: 18rem;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
    width: fit-content;
    font-family: typold;
    background: #ff5800;
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-form button:hover {
    background: #ffffff;
    color: #ff5800;
}

.contact-sous-titre::before {
    content: "///";
    display: inline-block;
    margin-right: 0.75rem;
    font-weight: 900;
    color: #FFFFFF;
}

h5 {
    font-size: 3rem;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.contact-text-email {
    transform: rotateZ(4deg);
}

.contact-text-linkedin {
    transform: rotateZ(-4deg);
}

.contact-text-telephone {
    transform: rotateZ(4deg);
}

.telephone:hover .contact-text-telephone,
.contact-text-telephone:hover {
    animation: tilt 1s ease-in-out infinite;
}

.email:hover .contact-text-email,
.contact-text-email:hover {
    animation: tilt 1s ease-in-out infinite;
}

.linkedin:hover .contact-text-linkedin,
.contact-text-linkedin:hover {
    animation: tilt 1s ease-in-out infinite;
}

@keyframes tilt {
    0%{
        transform: rotateZ(-4deg);
    }
    50%{
        transform: rotateZ(-4deg);
    }
    51%{
        transform: rotateZ(4deg);
    }
    100%{
        transform: rotateZ(4deg);
    }
}

@keyframes tilt2 {
    0%{
        transform: rotateZ(4deg);
    }
    50%{
        transform: rotateZ(4deg);
    }
    51%{
        transform: rotateZ(-4deg);
    }
    100%{
        transform: rotateZ(-4deg);
    }
}
.projets-titre {
    width: 100%;
    font-family: typold;
    font-weight: 900;    
    color: #FFFFFF;
    grid-column: 1 / 4;
    letter-spacing: -0.04em;
    margin-bottom: -12rem;
    margin-top: -5rem;
    font-size: clamp(48px, 18vw, 370px);
}

.sous-titre {
    width: 100vw;
    font-size: 36px;
    font-family: typold;
    font-weight: 400;
    color: #FFFFFF;
    grid-column: 1 / 4;
    padding-bottom: 40px;
    background-color: #ff5800;
    border-top: 8px solid #FFFFFF;
    box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.226);
    padding: 1rem 2.5rem;
    box-sizing: border-box;
}

#projets_container1 {
    grid-column: 1/ 2;
    margin-left: 6rem;
}

#projets_container2 {
    grid-column: 2 / 3;
    margin-right: 3rem;
}

#projets_container1,
#projets_container2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.projet {
    display: grid;
    width: 100%;
}

.projet img,
.projet video {
    width: 100%;
    height: auto;
    transition: border-radius 0.3s ease;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.349);
}


.projet-info {
    padding: 10px 30px 24px 30px;
    display: flex;
    justify-content: space-around;
    color: #FFFFFF;
    background-color: #252525;
    transition: border-radius 0.3s ease;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.349);
}

.projet-header {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.projet-title {
    margin: 0;
    font-family: typold;
    font-weight: 100;
    font-size: 3.5rem;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.projet-description {
    font-family: typold;
    font-weight: 400;
    width: 100%;
    height: auto;
    margin-top: 0.8rem;
    font-size: 1.3rem;
    color: #FFFFFF;
}

.projet-description::before,
.sous-titre::before {
    content: "///";
    display: inline-block;
    margin-right: 0.75rem;
    font-weight: 900;
    color: #FFFFFF;
}


.projet-view {
    display: inline-block;
    margin-top: 0.35rem;
    font-family: typold;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #FFFFFF;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal.hidden {
    display: none;
}

.project-modal-card {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background: #252525;
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 5rem 5rem;
}

.project-modal-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

.project-modal-close {
    position: absolute;
    right: 0%;
    width: 4rem;
    height: 3rem;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 1.8rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-modal-close:hover {
    background: #ff5800;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.project-modal-title {
    font-family: typold;
    width: 100%;
    margin-top: -7rem;
    font-size: clamp(16rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.project-modal-meta {
    margin: 0;
    font-family: typold;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.6;
}

.project-modal-item {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    grid-template-areas: "media text";
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.project-modal-item.reverse {
    grid-template-areas: "text media";
}

.project-modal-item.reverse .project-modal-item-text {
    text-align: right;
    align-items: flex-end;
}

.project-modal-item-media {
    grid-area: media;
    width: 100%;
}

.project-modal-item-text {
    grid-area: text;
    width: 100%;
    padding: 0;
}

.project-modal-item-media img,
.project-modal-item-media video {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.35);
}

.project-modal-item-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.project-modal-item-copy {
    margin: 0;
    font-family: typold;
    color: #ffffff;
    text-align: justify;
    font-size: 2rem;
    font-weight: 100;
    padding: 3rem 0;
    width: 70%;
}

.project-modal-media {
    display: grid;
    gap: 2rem;
}

@media (max-width: 900px) {
    .project-modal-header {
        grid-template-columns: 1fr;
    }

    .project-modal-item {
        grid-template-columns: 1fr;
    }

    .project-modal-item.reverse {
        direction: ltr;
    }
}

.project-modal-meta {
    font-weight: 900;
    color: #ffffff;
}

.project-modal-media img,
.project-modal-media video {
    width: 100%;
    height: auto;
}

.contact-titre {
    width: 100vw;
    font-family: typold;
    font-weight: 900;    
    color: #FFFFFF;
    letter-spacing: -0.04em;
    margin-bottom: -8.2rem;
    font-size: clamp(48px, 12.8vw, 328px);
}

@media (max-width: 1200px) {
    #mes_projets {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 1rem 10rem 1rem;
    }

    .projets-titre {
        font-size: clamp(80px, 20vw, 300px);
        margin-bottom: -8rem;
        margin-top: -3rem;
    }

    .projet-title { font-size: 2.5rem; }
    .projet-description { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .projets-titre {
        font-size: clamp(48px, 28vw, 180px);
        margin-bottom: -4rem;
        margin-top: -2rem;
    }

    #mes_projets {
        grid-template-columns: 1fr;
        padding-bottom: 6rem;
        gap: 2rem;
    }

    #projets_container1,
    #projets_container2 {
        width: 100%;
    }

    .projet-info {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .projet-title { font-size: 1.8rem; }
    .projet-description { font-size: 1rem; padding-left: 0.5rem; }

    #contacter { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1rem; }
    #contacter h3 { font-size: 48px; margin: 1rem; }
    #moi h3 { font-size: 48px; letter-spacing: -4px; }

    .panel { min-height: 60vh; padding: 2rem 1rem; }    
}

@media (max-width: 480px) {
    .projet-title { font-size: 1.4rem; }
    .projet-description { font-size: 0.95rem; }
    .sous-titre { font-size: 18px; padding: 0.75rem 1rem; border-top-width: 6px; }
    .projets-titre { font-size: clamp(36px, 30vw, 120px); margin-bottom: -2rem; margin-top: -1rem; }
}

/* Target 1920x and below to make the large title smaller */
@media (max-width: 1920px) {
    .projets-titre {
        font-size: clamp(60px, 14vw, 260px);
        margin-bottom: -9rem;
        margin-top: -3rem;
    }
}


