:root {
    --bleufonce: #16203C;
    --bleumedium: #8aa2a9;
    --bleuclair: #b7cece;
    --rose: #F8DEE3;
    --beige: #FFF0EB;
    --frambroise : #B62B49;
}

::selection {
    background-color: var(--bleufonce);
    color: var(--beige);
}

* {
    outline: 0;
}

@font-face {
    font-family: 'Inter';
    src: url(./typos/InterTight-Regular.ttf);
  }

@font-face {
    font-family: 'Homemade Apple';
    src: url(./typos/HomemadeApple-Regular.ttf);
  }



html {
    font-family: 'Inter';
    position: relative;
    background-color: var(--beige);
}

body {
    margin: 0;
    background-color: var(--beige);
}

main {
    padding-top : 5vh;
}

p {
    line-height: 1.5em;
}

/*Téléphone*/


/*Menu*/

nav {
    text-align: right;
    margin: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    background-color: var(--beige);
    border-bottom : solid var(--rose) 0px;
    backdrop-filter: blur(5px)
}

nav .liste-menu {
    position: absolute;
    list-style-type: none;
    padding: 0;
    top: 0px;
    left: 0;
    right: 0;
    margin: 0;
    font-size: 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 200ms;
}

nav .open {
    transition: 100ms;
    position: absolute;
    background-color: var(--beige);
    list-style-type: none;
    padding: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding-top: 210px;
    height: 100vh;
    font-size: 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mobile-menu {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--bleufonce);
    font-size: 2rem;
    z-index: 200;
    padding: 2%;
    padding-top: 2.5%;
    border: none;
}

.liste-menu li {
    text-align: center;
    list-style-type: none;
    border: none;
    padding-bottom: 2vh;
}

.liste-menu a {

    display: block;
    color: var(--bleufonce);
    font-size: 200%;
    border: none;
    text-decoration: none;
    font-family: 'Inter';
    transition-timing-function: ease;
    transition-duration: 0.2s;
}

nav a:hover {
    transition-timing-function: ease;
    transition-duration: 0.2s;
    color: var(--frambroise);
}

.fa {
    position: relative;
    z-index: 1000;
}


/*Header*/

header {
    position: relative;
}

header img {
    width: 12%;
    vertical-align: middle;
    position: fixed;
    margin-left: 2%;
    margin-top : 2%;
    z-index: 600;
    top: 0;
}

/*Sections*/

section {
    min-height: 100vh;
    width: 100%;
}

h2 {
    font-family: 'Homemade Apple';
    font-size: 3em;
    text-align: center;
    margin-bottom: 0%;
    color: var(--frambroise);
    padding-top: 5vh;
    padding-bottom: 5vh;
    font-weight: 400;
    line-height: 90%;
}

.sous-titre {
    text-align: center;
    font-size: 150%;
    margin: 0 5% 0 5%;
}


/*Accueil*/


h1 {
    font-size: 350%;
    width: 90%;
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 3vh;
    margin-bottom: 1vh;
    font-family: 'Homemade Apple', cursive;
    font-style: normal;
    font-weight: 100;
    color : var(--frambroise);
    line-height: 120%;
}

.presentation {
    padding-left: 10%;
    padding-right: 10%;
}

.texte-presentation {
    font-family: 'Inter';
    font-size: 1.2em;
}

.texte-presentation {

}

.photo-presentation {
    width : 80vw;
}


.photo-presentation img {
    justify-content: center;
    width:100%;
}

.boutonprojets {
    width : 100%;
    margin-top: 5%;
    font-family: 'Inter';
    font-size: 1em;
    color: var(--beige);
    background-color: var(--bleufonce);
    padding: 3%;
    padding-left: 5%;
    padding-right: 5%;
    border: none;
    margin-bottom: 5vh;
    box-shadow: 0 1px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.boutonprojets:hover {
    background-color: var(--frambroise);
    color: var(--beige);
}


/*A propos*/

#apropos {
    padding: 0 5vw 5vh 5vw;
    width:90vw;
}

.presentation-apropos {
    display: block;
}

.enchantee {
    font-size: 1.2em;
}

.motsurligne {
    color: var(--frambroise);
}

.photo-prez {
    width : 90vw;
}

.photo-prez img {
    width:90vw;
}

.titre-bleu {
    font-size: 1.5em;
    color: var(--frambroise);
    padding: 2vh 0;
}

#liens {
    font-size: 1.5em;
    margin-bottom:10vh;
    
}

#liens div {
    width : 100%;
    font-size:1.2em;
    margin-bottom:1vh;
}

.cvnum {
    font-family: 'Inter';
    color: var(--bleufonce);
    text-decoration: none;
    margin-top: auto;
    margin-bottom: auto;
}

.cvnum:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}



/*Projets*/

#grille {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 4vw 5vh;
    max-width: 1400px;
    margin-right: 5vw;
    margin-left: 5vw;
    margin-top: 5vw;
    position: relative;
}

.projet {
    position: relative;
    width: 100%;
    margin-bottom:5vh;
}

.contenu {
    width : 100%;
    text-align: center;
}

.projet img {
 width : 100%;
 height: 100% ;
}

.projet img:hover {
    opacity: 0.8;
}

.type {
    display:flex;
    justify-content: center;
    align-content: center;
    margin-top:2vh;
}

.type p {
    color : var(--bleufonce);
    border : solid 1px var(--bleufonce);
    border-radius : 50px;
    padding : 5px 10px;
    margin : 3px;

}

.date {
    font-size: 200%;
    font-family: 'Inter';
    color: var(--frambroise);
    margin-bottom: 0;
    margin-top: 0;
}

.titre-projet {
    margin: 0;
    z-index: 1;
    color: var(--bleufonce);
    font-family: 'Homemade Apple', cursive;
    padding-top : 2vh;
    font-size: 1.5em;
}

.titre-a {
    text-decoration: none;
}

.soustitre-projets {
    font-size: 1.2em;
    color : var(--bleufonce);
    margin: 2vh 0;
}

.envoirplus {
    font-size: 1.2em;
    text-decoration: underline;
    color : var(--bleufonce);
    background-color: transparent;
    border:none;
}

.envoirplus:hover {
    color : var(--frambroise);
}


/*Détails Projets*/

.titre-pp {
    padding-left: 5%;
    padding-right: 5%;
    width: 90%;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 2vh;
}

.date-projets {
    text-align: center;
    font-size: 2em;
    color : var(--bleufonce);
}

.descri-projet {
    margin-left: 5%;
    margin-right: 5%;
}

.outils {
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
}

#logiciels {
    display:flex;
    justify-content: center;
    align-items: center;
    gap:15px;
}

.logiciel {
    width : 10vw;
    height:10vw;
}

.photo {
    text-align: center;
    margin-top: 5%;
    margin-bottom: 5%;
}

.photo img {
    width: 90%;
    margin-top: 5%;
}

.blog {
    color:black;
}

#retour {
    text-align: center;
    width : 80vw;
    margin : 15vw 5vw;
    color : var(--bleufonce);
    font-size: 1.5em;
    padding : 1vh 2vh;
    text-decoration: var(--rose) wavy underline;
}


/*Contact*/

.nom {
    text-align: center;
    font-size: 300%;
    margin: 0;
    font-family: 'Homemade Apple';
    color: var(--frambroise);
}

.partie-contact {
    justify-content: center;
}



.contact-direct ul {
    width: 90%;
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0%;
    padding-bottom: 5%;
    padding-top: 5%;
    margin-bottom: 5vh;
}

.liste-items {
    display: flex;
    justify-content: center;
}


.envoidirect {
    text-decoration: none;
    color: black;
    display: flex;
}

#telephone {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 2%;
    margin-top: auto;
    margin-bottom: auto;
}

p.numero {
    font-size: 120%;
    width: 140px;

}

#mail {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 2%;
    margin-top: -1%;
    margin-bottom: auto;
}

p.mail {

    font-size: 120%;
    margin-top: 0;
}

.liste-items a {
    text-align: right;
}

.liste-items a #lien-instagram {
    padding-right: 5vw;
    padding-left: 5vw;
}

#lien-linkedin {
    width: 8vw;
}

#lien-instagram {
    width: 10vw;
}

#lien-behance {
    width:10vw;
}

.liste-reseaux {
    margin-top: 3vh;
}



/*Footer*/
.footer {
    text-align: center;
    font-family: 'Inter';
    color: var(--bleufonce);
}


/*Tablette*/

@media screen and (min-width:640px) {

    /*Menu*/

    header img {
        width: 8%;
    }

    .liste-menu a {
        font-size: 300%;
    }

    /*Accueil*/

    .photo-presentation img {
        width: 70%;
        padding-left: 15%;
        padding-right: 15%;
    }

    .boutonprojets {
        font-size: 100%;
    }

    /*A propos*/

    .cvnum {
        font-size: 1.5em;
    }

    #liens {
        margin-bottom:10vh;
    }

    /*Projets*/

    .titre-projet {
        padding : 1vw 0;
    }

    .soustitre-projets {
        font-size: 150%;
    }

    .descri-projet {
        font-size: 150%;
    }

    .titre-pp {
        font-size: 350%;
    }

    #grille {
        grid-template-columns: 1fr 1fr;
    }

    /*Contact*/

    .nom {
        font-size: 500%;
    }

    #telephone {
        width: 70px;
    }

    #mail {
        width: 70px;
        margin-top: 0;
    }

    p.numero {
        font-size: 200%;
        width: 240px;
    }

    p.mail {
        font-size: 200%;
        margin-top: auto;
        margin-bottom: auto;
    }

    .reseaux {
        padding-top: 3vh;
    }

    #lien-linkedin {
        width: 8vw;
    }

    #lien-behance {
        width: 10vw;
    }

    #lien-instagram {
        width: 10vw;
    }

    .contact-direct ul {
        margin-bottom: 5vh;
    }

    form .bouton {
        font-size: 200%;
    }
}

/*Ordinateur*/

@media screen and (min-width: 1024px) {


    /*Menu*/

    header {
        height : 8vh;
        border-bottom: var(--rose) solid 0px;
    }

    nav {
        text-align: right;
        margin: 0;
        position: static;
        top: 0;
        display: flex;
    }

    nav .liste-menu {
        list-style-type: none;
        padding: 0;
        left: 0;
        right: 0;
        margin: 0;
        visibility: visible;
        display: flex;
        flex-direction: row;
        column-gap: 3%;
        padding: 1%;
        padding-right: 2%;
        justify-content: flex-end;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transition: 200ms;
    }

    #mobileMenu {
        display: none;
    }

    .liste-menu a {
        margin-bottom: 1em;
        font-size: 1.5em;
        background-color: transparent;
    }

    header img {
        width: 50px;
        margin : 1%;
    }

    /*Sections*/

    h2 {
        font-size: 5em;
        margin-bottom:8vh;
    }

    .sous-titre {
        font-size: 1.5em;
    }

    /*Accueil*/

    h1 {
        font-size: 4.5em;
        padding-left:10vw;
        padding-top: 5vh;
        text-align: left;
    }

    #accueil {
        min-height:70vh;
        overflow:hidden;
    }

    .presentation {
        display:flex;
        justify-content: center;
    }

    .texte-presentation {
        width:60%;
    }

    .photo-presentation {
        width :30%;
    }

    .photo-presentation img {
   
    }

    .boutonprojets {
        font-size: 100%;
        width : 50%;
        margin-top: 2%;
        padding:2%;
    }

    /*A propos*/

    .presentation-apropos {
        display: flex;
        flex-direction: row-reverse;
        
    }

    #texte-prez {
        width:90%;
    }

    .enchantee {
        padding-right: 5%;
   
    }

    .photo-prez {
        width: 30%;
    }

    .photo-prez img {
        width:100%;
    }

    #lien-siteweb {
        height: 62px;
        width: auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    #lien-cv {
        height: 62px;
        width: auto;
    }

    #lien-cvvideo {
        height: 55px;
    }

    /*Projets*/

    #grille {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        justify-items: center;
        align-items: center;
        gap: 3vh;
        max-width: 5000px;
        margin-right: 5vw;
        margin-left: 5vw;
        margin-top: 5vw;
    }

    .type {
        position:absolute;
        width:100%;
        margin-top:0;
        padding-top:1vh;
        padding-bottom:2vh;
        top : 0;
        left:0;
        z-index:100;
        background: rgb(255,255,255);
        background: linear-gradient(180deg, rgba(255,255,255,0.9640231092436975) 0%, rgba(255,255,255,0.7259278711484594) 48%, rgba(255,255,255,0) 100%);
    }

    .projet:hover .type {
        background: transparent;
    }
    
    .projet {
        transform: translate3d(0, 0, 0);
        position: relative;
        width: 100%;
        height: 40vh;
        min-height: 300px;
        color: #fff;
        overflow: hidden;
        transition: width 0.5s ease;
        display:flex;
        margin-bottom:0;
    }
    
    .timeline-background {
        transform: translate3d(0, 0, 0);
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-size: cover;
        background-position: center center;
        transition: 0.5s ease;
    }
    
    .projet:hover .timeline-background {
        height: 0%;
        transition: 0.2s linear;
    }
    
    .contenu {
        transform: translate3d(0, 0, 0) translateY(25px);
        position: relative;
        z-index: 1;
        text-align: center;
        top: 0%;
        opacity: 0;
        color: black;
        width : 100%;
       margin-top : auto;
       margin-bottom:auto;
    }
    
    .projet:hover .contenu {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease 0.2s;
    }
    
    .projet img {
     display:none;
    }
    
    .date {
        font-size: 200%;
        font-family: 'Inter';
        color: var(--frambroise);
        margin-bottom: -1vh;
        margin-top: -1vh;
    }
    
    .titre-projet {
        margin: 0;
        z-index: 1;
        color: var(--bleufonce);
        font-family: 'Homemade Apple', cursive;
        font-size: 1.5em;
    }
    
    .soustitre-projets {
        font-size: 1.2em;
        color : var(--bleufonce);
        margin: 3vh 0;
        text-align: center;
    }
    
    .boutonenvoirplus {
        font-size: 1.2em;
        width:70%;
    }


    /*Détails porjets*/

    .galerie-projets{
        display :flex;
        justify-content: space-between;
        padding:0 3vw;
    }

    .photo {
        width:33.33%;
        
    }

    .descri-projet {
        width:70%;
        padding : 0 10%;
        text-align:center;
        line-height: 1.5em;
    }

    .date-projets {
        color : var(--bleufonce);
    }

    .photo p {
        font-size : 1em;
    }

    .logiciel {
        width : 3vw;
        height:3vw;
    }

    #retour {
        text-align: center;
        width : 30vw;
        margin : 2vw 33vw 5vw 33vw;
    }


    .croix {
        position : fixed;
        right : 1vh;
        top:1vh;
        width: 5vw;
        height:5vw;
        color:var(--bleufonce);
    }

    

    .box-click {
        position:absolute;
        height:100%;
        width:100vw;
        z-index:500;
        top:0;
        background-color: #ffffff8f;
        backdrop-filter: blur(4px);
        margin:0;
        left:0;
        overflow: hidden;
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .default:hover {
        cursor: zoom-in;
    }

    .photo .clicked {
        width:auto !important;
        height:80vh !important;
        margin-top:10vh !important;
    }

    .clicked:hover{
        cursor: default;
    }

    /*Contact*/

    .nom {
        font-size: 300%;
    }


    .contact-direct ul {
        width: 60%;
    }

    #telephone {
        width: 60px;
    }

    p.numero {
        font-size: 200%;
    }

    #mail {
        width: 60px;
    }

    p.mail {
        font-size: 200%;
        margin-left:1vw;
    }

    .liste-items a #lien-instagram {
        padding-right: 2vw;
        padding-left: 2vw;
    }

    #lien-linkedin {
        width: 2.5vw;
    }

    #lien-instagram {
        width: 3vw;
    }

    #lien-behance {
        width: 3vw;
    }

    .liste-reseaux {
        margin-top: 10vh;
    }

    /*Footer*/
    .footer {
        margin-top:10vh;
    }

}