:root{
    --highlight-color : #9DF2A6;
    --white : #F2F3F7;
    --dark-grey : #131826;
    --tile-grey : #424554;
    --background-color : #333743;
}

html{
    font-size: 8px;
}
@media screen and (max-width:1366px){
    html{
        font-size: 7px;
    }
}
body{
    background-color: var(--background-color);
}
h1{
    font-family: 'Raleway';
    font-size: 6rem;
    font-weight: 900;
    line-height: 7rem;
    color: var(--white);
}
h2{
    font-family: 'Raleway';
    font-size: 5rem;
    font-weight: 800;
    line-height: 7rem;
    color: var(--white);
}
h3{
    font-family: 'Raleway';
    font-size: 4rem;
    font-weight: bold;
    line-height: 6rem;
}
h4{
    font-family: 'Raleway';
    font-size: 3rem;
    font-weight: bold;
    line-height: 4rem;
    letter-spacing: 0.05em;
    color: var(--white);
}
h5{
    font-family: 'Raleway';
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 2rem;
    letter-spacing: 0.05em;
    color: var(--highlight-color);
    margin-top: 8px;
    margin-bottom: 24px;
}
p{
    font-family: 'Raleway';
    font-size: 2rem;
    font-weight: normal;
    line-height: 3rem;
    letter-spacing: 0.05em;
    color: var(--white);
}
a{
    font-family: 'Raleway';
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1em;
    letter-spacing: 0.05em;
    text-decoration: none;
    height: 1em;
    color: var(--white);
    width: max-content;
}
h4 a{
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
h4 a:hover{
    color: var(--highlight-color);
}
.extrabold{
    font-weight: 900;
}
.bold, strong{
    font-weight: bold;
}
.noscroll{
    overflow: hidden;
}

nav{
    background-color: var(--dark-grey);
    display: flex;
    padding: 16px 32px;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    z-index: 10;
    top: 0;
    -webkit-box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.2);
    box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.2);
}

.nav-row{
    display: flex;
    margin: auto;
    max-width: 1233px;
    justify-content: space-between;
    box-sizing: border-box;
    align-items: center;
    height: 64px;
    width: 100%;
}
.logo{
    height: max-content;
}
.burger{
    display: none;
}
.nav-links{
    display: flex;
}
.nav-links li:nth-child(2){
    margin-left: 32px;
    margin-right: 32px;
}
.nav-links a{
    position: relative;
}
.nav-links a:hover, .footer-legal a:hover{
    color: var(--highlight-color);
}
.nav-links .current a{
    font-weight: bold;
    color: var(--highlight-color);
}
.nav-links a:after, .nav-links .current a:after{
    content: '';
    position: absolute;
    width: 0px;
    height: 2px;
    background-color: var(--white);
    display: block;
    bottom: -8px;
    transition: width ease-in-out 0.25s;
}

.nav-links a:hover:after, .nav-links .current a:after{
    width: 100%;
    background-color: var(--highlight-color);
    display: block;
}

.highlight-button{
    padding: 16px 24px;
    background-color: var(--highlight-color);
    -webkit-box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.08);
    box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.08);
    border-radius: 4px;
    color: var(--background-color);
    font-weight: bold;
    border: none;
    transition: all ease-in-out 0.25s;
    cursor: pointer;
}

.highlight-button:hover{
    transform-origin: center;
    transform: scale(1.1);
}

.highlight-button:focus{
    outline: none;
}

.content{
    padding: 80px 80px 0 80px;
    margin-top: 96px;
}

.about, .projects-slider, .contact{
    width: 100%;
    max-width: 1233px;
    margin: auto auto 160px auto;
}
.contact{
    margin: auto auto 80px auto;
}
.first-row{
    display: flex;
    justify-content: space-between;
    margin: 16px auto 64px auto;
}
.first-row>img{
    margin: auto;
    padding-left: 64px;
}
.second-row{
    display: flex;
    justify-content: space-between;
}
.second-row-mobile{
    display: none;
}
.about-tile{
    background-color: var(--tile-grey);
    -webkit-box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    padding: 32px 24px;
    box-sizing: border-box;
    border-radius: 4px;
}
.about-tile p{
    margin-top: 24px;
}
.about-tile h4{
    position: relative;
}
.main-tile{
    width: calc(50% - 32px);
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}
.main-tile img{
    width: 56px;
    height: 56px;
}
.main-tile h4{
    margin-left: 24px;
    height: max-content;
}
.small-tile{
    width: calc(25% - 48px);
}
.small-tile img{
    height: 32px;
    width: 32px;
    margin-bottom: 8px;
}
.ampersand-decoration:after{
    content: '\0026';
    position: absolute;
    font-size: 10rem;
    opacity: 25%;
    right: 0;
    bottom: -4px;
    line-height: 1em;
}
.main-tile .ampersand-decoration::after{
    right: -38px;
}

.project-preview{
    width: calc(100% - 208px);
    background-image: url(../img/chooseparis-preview.jpg);
    min-height: 400px;
    height: 55vh;
    margin: 40px auto 120px auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-position:top, center;
    border-radius: 4px;
    -webkit-box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    position: relative;
}

.arrow{
    content: url(../img/arrow.svg);
    display: block;
    height: 32px; 
    width: 27.57px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    user-select: none;
}
#project-previous{
    transform: rotate(180deg);  
    left: -59.57px; 
}
#project-next{  
    right: -59.57px; 
}

.project-description{
    background-color: var(--tile-grey);
    -webkit-box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.08);
    padding: 40px 32px;
    box-sizing: border-box;
    border-radius: 4px;
    align-items: baseline;
    max-width: 504px;
    position: absolute;
    left: -104px;
    bottom: -104px;
}

.project-tracker{
    display: flex;
    justify-content: space-between;
    width: 168px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -32px;
    margin: auto;
}

.project-tracker li{
    width: 16px;
    height: 16px;
    border-radius: 16px;
    background-color: var(--tile-grey);
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);
    cursor: pointer;
}

.project-tracker li.active{
    background-color: var(--highlight-color);
}

iframe{
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 11;
}
.flipbook-container{
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    height: 100vh;
    width: 100%;
    position:fixed;
    top: 0;
    left: 0;
    z-index: 11;
    display: none;
}

.flipbook-frame{
    height: 90vh;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: all 500ms ease-in-out;
}
#flipbook-close{
    width: 64px;
    height: 64px;
    position: absolute;
    top: -16px;
    right: -64px;
}

#flipbook-close::before, #flipbook-close::after{
    content: '';
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--white);
    position: absolute;
    transform: rotate(45deg);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
#flipbook-close::after{
    content: '';
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--white);
    position: absolute;
    transform: rotate(-45deg);
}
#flipbook-close:hover::before, #flipbook-close:hover::after{
    background: var(--highlight-color);
}

.projects-flipbook{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    color: var(--white);
    background-color: var(--dark-grey);
    padding: 80px;
    margin: 240px 0px 160px 0px;
}

.projects-flipbook .highlight-button{
    margin-top: 48px;
    padding: 16px 56px;
}

.big-paragraph{
    font-size: 3rem;
    margin: 40px auto 48px auto;
}
.bold.big-paragraph{
    display: none;
}

form{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}
form p{
    color:#DC0000;
    font-weight: bold;
}
form .highlight-button{
    padding: 16px 56px;
    margin-left: auto;
}

#submit-response{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px;
    margin: auto;
    background-color: var(--dark-grey);
    border-radius: 4px;
    justify-content: space-between;
    max-width: 512px;
    max-height: 208px;
    box-sizing: border-box;
    align-items: center;
    -webkit-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.08);
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.08);
    display: none;
}
#submit-response p{
    color: var(--white);
    text-align: center;
    height: max-content;
    margin: 24px 0;
    width: max-content;
    max-width: 50%;
}
#submit-response img{
    width: 128px;
    height: 128px;
}
#submit-response .close{
    position: absolute;
    display: block;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
}

#submit-response .close:after, #submit-response .close:before{
    content: '';
    width: 24px;
    height: 4px;
    border-radius: 4px;
    display: block;
    position: absolute;
    transform: rotate(45deg);
    background-color: var(--white);
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}
#submit-response .close:before{
    transform: rotate(-45deg);
}

#submit-response .close:hover:before, #submit-response .close:hover:after{
    background-color: var(--highlight-color);
    cursor: pointer;
}

button{
    font-family: 'Raleway';
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1em;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--white);
    width: max-content;
}

input, textarea{
    background-color: #424554;
    border-radius: 4px;
    border: none;
    padding: 16px;
    font-size: 3rem;
    color: #F2F3F7;
    font-family: 'Raleway';
    box-sizing: border-box;
    border: 1px solid transparent;
    outline: none !important;
    -webkit-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.08);
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.08);
}

input::placeholder, textarea::placeholder{
    opacity: 0;
    font-weight: 300;
}

input:focus, textarea:focus{
    outline: none;
    border: 1px solid #F2F3F7;
}
textarea:focus{
    font-size: 2rem;
}
.email-field, .subject-field{
    width: calc(50% - 20px);
    margin-bottom: 40px;
    position: relative;
}
#email, #subject{
    width: 100%;
}
.message-field{
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}
textarea{
    width: 100%;
    height: 320px;
    resize: vertical;
}

.placeholder{
    position: absolute;
    font-size: 3rem;
    line-height: 31px;
    color: #F2F3F7;
    font-family: 'Raleway';
    opacity: 0.35;
    font-weight: 300;
    left: 17px;
    top: 16px;
    user-select: none;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 1;
}

.placeholder img{
    margin-right: 8px;
}

.placeholder:before{
    position: absolute;
    content: '';
    display: block;
    background-color: var(--tile-grey);
    height: 1px;
    width: calc(100% + 16px);
    left: -8px;
    z-index: -1;
    bottom:14px;
}

.placeholder.focused, .filled-out .placeholder{
    top: -16px;
    opacity: 1;
}

.message-field .placeholder:before{
    bottom: 13px;
}

.filled-out input, .filled-out textarea{
    border: 1px solid #F2F3F7;
}

.filled-out textarea{
    font-size: 2rem;
}
.input-error{
    color: #DC0000;
    opacity: 1;
}
.input-valid{
    color: var(--highlight-color);
}

.input-error img{
    filter: brightness(0%) invert(10%) sepia(69%) saturate(7494%) hue-rotate(359deg) brightness(97%) contrast(113%);
}
.input-valid img{
    filter: brightness(0%) invert(91%) sepia(17%) saturate(907%) hue-rotate(62deg) brightness(99%) contrast(92%);
}

footer{
    padding: 24px;
    background-color: var(--dark-grey);
}
.footer-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1233px;
    margin: auto;
}
.footer-about{
    display: flex;
    align-items: center;
}
.footer-about :nth-child(2){
    margin: auto 24px auto 48px;
}
.footer-legal{
    text-align: right;
}

.footer-legal a{
    font-size: 2rem;
}

/*Responsive tablette*/
@media screen and (max-width: 1024px){
    
    .nav-links{
        display: none;
        height: max-content;
    }
    nav .highlight-button{
        display: none;
    }
    .nav-row{
        margin: 0;
        flex-wrap:wrap ;
        height: 100%;
        align-items: flex-start;
    }
    nav{
        transition: height 0.25s;
        height: 96px;
        padding: 16px 40px
    }
    nav.opened{
        height: 100vh;
        padding: 16px 40px 40vh 40px;
    }
    nav.opened .nav-links{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .nav-links li{
        margin: 32px 0 0 0 !important;
    }
    .nav-links a{
        font-size: 3rem;
        font-weight: bold;
    }
    nav.opened .nav-row .highlight-button{
        display: block;
        align-self: flex-end;
        width: 100%;
        text-align: center;
    }
    .burger{
        position: relative;
        border-radius: 4px;
        width: 32px;
        height: 32px;
        margin-top: 16px;
        display: flex;
    }
    .burger span{
        position: absolute;
        width: 32px;
        height: 4px;
        background: var(--white);
        border-radius: 4px;
        top: 0;
        bottom: 0;
        margin: auto;
        transition: opacity 0s 0.25s;
    }
    .burger:before{
        content: '';
        display: block;
        width: 32px;
        height: 4px;
        background-color: var(--white);
        position: absolute;
        top: 6px;
        left: 0;        
        transition: transform linear 0.25s, top linear 0.25s 0.25s;
        border-radius: 4px;
    }
    .burger:after{
        content: '';
        display: block;
        width: 32px;
        height: 4px;
        background-color: var(--white);
        position: absolute;
        bottom: 6px;
        left: 0;       
        transition: transform linear 0.25s, bottom linear 0.25s 0.25s; 
        border-radius: 4px;
    }
    .burger.opened span{
        opacity: 0;
        transition: opacity 0s 0s;
    }
    .burger.opened:before{
        transform: rotate(45deg);
        transform-origin: center;
        top: 14px;
        transition: transform linear 0.25s; 
    }
    .burger.opened:after{
        transform: rotate(-45deg);
        transform-origin: center;
        bottom: 14px;
        transition: transform linear 0.25s; 
    }
    .about .first-row{
        flex-direction: column;
        margin-bottom: 24px;
        margin-top: 40px;
    }
    .main-tile{
        width: 100%;
        order: 2;
        margin-top: 40px;
        align-items: last baseline;
    }
    .first-row>img{
        margin: auto;
        max-width: 100%;
        padding: 0;
    }
    .small-tile{
        width: 100%;
        min-width: 100%;
    }
    .second-row{
        display: none;
    }

    .hidden-mobile{
        display: none;
    }
    .second-row-mobile{
        display: flex;
    }
    .second-row-mobile ul{
        display: flex;
        margin: auto;
        width: max-content;
    }
    .second-row-mobile ul :nth-child(2n){
        margin: 0 5vw;
    }
    .second-row-mobile img{
        width: 7vw;
        height: 7vw;
    }
    .second-row-mobile li.active img{
        filter: brightness(0%) invert(17%) sepia(6%) saturate(2049%) hue-rotate(188deg) brightness(96%) contrast(84%);
    }
    .second-row-mobile li{
        background-color: var(--tile-grey);
        padding: 16px;
        border-radius: 4px;
    }
    .second-row-mobile li.active{
        background-color: var(--highlight-color);
    }
    .about, .projects-slider{
        margin: auto auto 80px auto;
    }
    .projects-flipbook .highlight-button, .contact .highlight-button{
        width: calc(100% - 40px);
        margin-top: 24px;
        padding: 16px 20px;
    }
    .contact .highlight-button{
        margin-top: 0;
    }
    .contact form{
        flex-direction: column;
        align-items: center;
    }
    .message-field, .email-field, .subject-field{
        width: calc(100% - 40px);
    }
    .big-paragraph{
        text-align: center;
        margin: 24px auto;
    }
    .big-paragraph.bold{
        margin-bottom:64px;
    }
    .big-paragraph span{
        display: none;
    }
    .placeholder{
        width: calc(100% - 33px);
    }
    .arrow{
        top: initial;
        margin: none;
        bottom: -15vh;
    }
    .project-preview{
        width: 100%;
        margin: 40px 0;
        height: 30vh;
        min-height: 0;
        margin-bottom: 272px;
    }
    #project-previous{ 
        left: 0; 
    }
    #project-next{  
        right: 0; 
    }
    .project-description{
        width: 100%;
        left: 0;
        right: 0;
        margin: auto;
        bottom: calc(-30vh - 48px);
        position: relative;
        padding: 56px 20px 32px 20px;
        max-height: 272px;
    }
    .project-tracker{
        bottom: -96px;
        box-sizing: border-box;
        height: max-content;
        width: 196px;
        border-bottom: 1px solid var(--dark-grey);
        padding: 8px 0;
        width: 100%;
        max-width: 504px;
        justify-content: center;
    }
    .project-tracker li{
        background-color: var(--dark-grey);
        padding: 8px;
        background-clip: content-box;
    }
    .project-tracker :nth-child(2){
        margin: 0 8px 0 16px ;
    }
    .project-tracker :nth-child(3){
        margin: 0 16px 0 8px; 
    }
    .projects-flipbook{
	margin:320px 0px 0px 0px;
    }
    .contact{
        padding: 80px;
        box-sizing:border-box;
    }
    .bold.big-paragraph{
        display: block;
    }
    form .highlight-button{
        margin: auto;
    }
    .footer-row{
        flex-direction: column;
    }
    .footer-legal{
        margin-top: 48px;
        text-align: center;
    }
}

/*Responsive téléphone*/
@media screen and (max-width: 767px){
    html{
        font-size: 6px;
    }
    h1{
        margin: 20px;
    }
    h2{
        font-size: 5rem;
        width: max-content;
        margin: 20px;
    }
    p{
        font-size: 2.5rem;
    }
    h5{
        font-size: 2rem;
    }
    .content{
        padding: 0;
        margin-top: 112px;
    }
    .main-tile{
        border-radius: 0;
    }
    .first-row>img{
    max-width: 90%;
    }
    .second-row-mobile img{
        width: 10vw;
        height: 10vw;
    }
    .second-row-mobile li{
        background-color: var(--tile-grey);
        padding: 8px;
        border-radius: 4px;
    }
    .project-preview{
        border-radius: 0;
        height: 40vh;
    }
    .arrow{
        bottom: -40px;
    }
    #project-previous{ 
        left: 20px; 
    }
    #project-next{  
        right: 20px; 
    }
    .project-description{
        width: 100%;
        left: 0;
        bottom: -40vh;
        position: relative;
        padding: 64px 20px 32px 20px;
        max-height: 272px;
        border-radius: 0;
    }
    .project-tracker{
        bottom: -48px;
        box-sizing: border-box;
        height: max-content;
        width: 196px;
        border-bottom: 1px solid var(--dark-grey);
        padding: 8px 0;
        width: 100%;
        justify-content: center;
    }
    .project-tracker li{
        background-color: var(--dark-grey);
        padding: 8px;
        background-clip: content-box;
    }
    .project-tracker :nth-child(2){
        margin: 0 8px 0 16px ;
    }
    .project-tracker :nth-child(3){
        margin: 0 16px 0 8px; 
    }
    .projects-flipbook{
        padding: 64px 20px;
        overflow: hidden;
	margin: 0 0 80px 0;
    }
    h3{
        font-size: 3rem;
        line-height: 4rem;
    }
    .extrabold{
        line-height: 8rem;
    }
    .contact{
	padding:0 20px;
    }
    .contact h2{
        margin: 0;
    }
    .contact .highlight-button{
        margin-top: 0;
    }
    .contact form{
        flex-direction: column;
        align-items: center;
    }
    .message-field, .email-field, .subject-field{
        width: 100%;
    }
    .big-paragraph{
        text-align: left;
        margin: 24px auto;
    }
    .big-paragraph.bold{
        margin-bottom:64px;
    }
    .big-paragraph span{
        display: none;
    }
    .placeholder{
        width: calc(100% - 33px);
    }
    #submit-response{
        flex-direction: column;
        max-width: calc(100% - 96px);
        max-height: 50vh;
    }
    #submit-response p{
        max-width: 100%;
    }
    #submit-response img{
        margin-right: 24px;
    }
    footer{
        text-align: center;
    }
    .footer-about{
        flex-direction: column;
    }
    .footer-about p{
        margin-top: 16px !important;
    }
}
