/* Création des variables */
:root{
    --primary-color1-1: #FFF8F2;
    --primary-color1-2: #8B7D71;
    --primary-color1-2_opacity25: rgba(139, 125, 113, 0.25);
    --primary-color1-2_opacity40: rgba(139, 125, 113, 0.4);
    --primary-color1-3: #262320;
    --primary-color1-4: #C5AD98;
    --primary-color2-1: #FFA9EC;
    --primary-color2-2: #4A314D;
    --primary-color2-3: #160F17;
    --primary-color2-4: #A66397;

    --secondary_color1_1:#A5C892;
    --secondary_color1_2:#6E9458;
    --secondary_color1_3:#363C23;
    --secondary_color2_1:#FDB679;
    --secondary_color2_2:#C0834E;
    --secondary_color2_3:#5E311D;
    --secondary_color3_1:#96C3F7;
    --secondary_color3_2:#5386C0;
    --secondary_color3_3:#3D5C91;
}

/* Lien des polices */
@font-face {
    font-family:Cormorant_Upright;
    src: url(Cormorant_Upright/CormorantUpright-Light.ttf);
    font-weight: 200;
}
@font-face {
    font-family:Cormorant_Upright;
    src: url(Cormorant_Upright/CormorantUpright-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family:Cormorant_Upright;
    src: url(Cormorant_Upright/CormorantUpright-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family:Cormorant_Upright;
    src: url(Cormorant_Upright/CormorantUpright-SemiBold.ttf);
    font-weight: 700;
}
@font-face {
    font-family:Cormorant_Upright;
    src: url(Cormorant_Upright/CormorantUpright-Bold.ttf);
    font-weight: 900;
}


@font-face {
    font-family:Montserrat;
    src: url(Montserrat/classic/Montserrat-Thin.ttf);
    font-weight: 100;
}
@font-face {
    font-family:Montserrat;
    src: url(Montserrat/classic/Montserrat-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family:Montserrat;
    src: url(Montserrat/classic/Montserrat-Bold.ttf);
    font-weight: 700;
}
@font-face {
    font-family:Montserrat_italic;
    src: url(Montserrat/italic/Montserrat-ThinItalic.ttf);
    font-weight: 100;
}
@font-face {
    font-family:Montserrat_italic;
    src: url(Montserrat/italic/Montserrat-Italic.ttf);
    font-weight: 400;
}
@font-face {
    font-family:Montserrat_italic;
    src: url(Montserrat/italic/Montserrat-BoldItalic.ttf);
    font-weight: 700;
}
.alert {
    display: inline-block;
    position: absolute;
    top: 60px;
    right: 60px;
    font-family: Cormorant_Upright;
    padding: 10px 10px 10px 30px;
    background-color: #f44336;
    color: white;
    opacity: 1;
    transition: opacity 0.6s;
    margin-bottom: 15px;
  }
.alert.success{
    background-color: var(--secondary_color1_2);
}
.alert button{
    font-weight: 800;
    width: 25px;
    height: 25px;
    margin-left: 10px;
    border: none;
    color: var(--primary-color1-3);
    background-color: var(--secondary_color1_1);
    transition: all 200ms;
}
.alert button:hover{
    transition: all 200ms;
    color: var(--primary-color1-1);
    background-color: var(--secondary_color1_3);
}


/* début du style pure */
html{
    color: var(--primary-color1-3);
    background-color: var(--primary-color1-1);
}
body::-webkit-scrollbar{
    display: none;
}
body{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
html::-webkit-scrollbar{
    display: none;
}
html{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
h1{
    margin: 10px 0 60px 0;
}
h1, h2, h3{
    font-family: Cormorant_Upright;
}
p{
    font-family: Montserrat;
}
.top_border{
    position: fixed;
    background-color: var(--primary-color1-1);
    border-bottom: solid var(--primary-color1-2) 2px;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    height: 60px;
}
.right_border{
    position: fixed;
    background-color: var(--primary-color1-1);
    border-right: solid var(--primary-color1-2) 2px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    width: 60px;
}
.left_border{
    position: fixed;
    background-color: var(--primary-color1-1);
    border-left: solid var(--primary-color1-2) 2px;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 5;
    width: 60px;
}
nav{
    z-index: 10;
    font-size: 20px;
    position: fixed;
    right: 0px;
    left: 0px;
    bottom: 0px;
    color: var(--primary-color1-2);
    border-top: solid var(--primary-color1-2) 2px;
    background-color: var(--primary-color1-1);
}
nav a{
    font-family: Cormorant_Upright;
    font-weight: 500;
    text-align: center;
    padding: 19px 0px;
    width: fill;
    width: -webkit-fill-available;
    text-decoration: none;
    color: var(--primary-color1-3);
    transition: all 300ms;
}
nav a:hover{
    color: var(--primary-color1-1);
    background-color: var(--primary-color1-2);
    transition: all 300ms;
}
nav .nav_desktop{
    display: flex;
    justify-content: space-around;
}
nav .current{
    background-color: var(--primary-color1-2);
    color: var(--primary-color1-1);
}
.btn{
    width: fit-content;
    background-color: var(--primary-color1-2);
    color: var(--primary-color1-1);
    text-decoration: none;
    font-size: 25px;
    font-family:  Cormorant_Upright;
    padding: 15px 30px;
    transition: all 300ms;
}
.btn:hover{
    background-color: var(--primary-color1-3);
    transition: all 300ms;
}
.orange{
    background-color: var(--secondary_color2_1);
}
.orange:hover{
    background-color: var(--secondary_color2_2);
}
.green{
    background-color: var(--secondary_color1_1);
}
.green:hover{
    background-color: var(--secondary_color1_2);
}
footer{
    position: fixed;
    top: 0;
    z-index: 15;
    display: flex;
    text-align: center;
    align-items: center;
    justify-self: center;
    justify-content: space-between;
    gap: 3em;
    padding: 20px 60px;
    width: -webkit-fill-available;
    width: fill;
}
footer .social{
    display: flex;
    gap:1.5em;
}
footer a{
    text-decoration: underline rgb(255, 255 , 255, 0);
    color: var(--primary-color1-3);
    transition: all 300ms;
}
footer a:hover{
    text-decoration: underline var(--primary-color1-3);
    transition: all 300ms;
}
.noAI{
    position: absolute;
    right: 120px;
    top: 120px;
    width: auto;
    height: 150px;
}

.container{
    margin: 60px 60px 120px 60px;
}
.svg_anim_home{
    justify-content: center;
    justify-self: center;
    width: 100%;
    padding: 50px 0;
    display: flex;
}
.svg_anim_homebtn{
    justify-content: center;
    justify-self: center;
    width: 100%;
    padding: 30px 0;
    display: flex;
}
.svg_anim_home object{
    height: 8em;
    width: auto;
}
.svg_anim_homebtn object{
    height: 8em;
    width: auto;
}
.calltoaction{
    margin: 25px 0;
    text-align: center;
}
h1{
    font-size: 50px;
}
.btncta{
    font-size: 35px;
}
.content_home{
    display: grid;
    grid-template: auto /250px 250px;
    justify-content: center;
    margin: 25px 0;
    gap: 5em;
    padding: 30px 8em;
    text-align: center;
}
.content_home div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* CONTACT */

.form_contact{
    display: grid;
    grid-template:auto/1fr 1fr;
    text-align: center;
    gap: 60px;
    padding: 20px 100px;
}
.text p{
    padding:0 20%;
}
.text h1{
    text-align: center;
}
input, textarea{
    color: var(--primary-color1-3);
    background-color: var(--primary-color1-2_opacity25);
    font-family: Montserrat;
    border: none;
    resize: none;
    font-size: 18px;
    margin: 5px 0 15px 0;
    padding: 10px;
}
textarea{
    height: 120px;
}
label{
    font-family:Cormorant_Upright;
    color: var(--primary-color1-3);
    font-size:20px ;
}
input:focus-visible, textarea:focus-visible{
    background-color: var(--primary-color1-2_opacity40);
    border: none;
    outline: none;
}
#submit, #submit_en{
    font-family:Cormorant_Upright;
    background-color: var(--primary-color2-1);
    color: var(--primary-color1-3);
    padding: 15px 30px;
    font-size:25px;
    transition: all 300ms;
    border: none;
}
#submit:hover, #submit_en:hover{
    transition: all 300ms;
    background-color: var(--primary-color2-4);
    color: var(--primary-color1-1);
}
#submit:active, #submit_en:active{
    transition: all 300ms;
    color: var(--primary-color1-1);
    background-color: var(--primary-color2-2);
}
form{
    position: relative;
    display: flex;
    flex-direction: column;
}

/* CV */
.cv{
    display: grid;   
    grid-template:auto/auto auto auto;
    gap: 50px;
    padding: 0 80px;
}
h3{
    font-size: 40px;
    margin: 35px 0 10px 0;
}
ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}
ul p{
    margin: 0;
}
li{
    margin-bottom: 10px;
}
.date{
    font-family:Cormorant_Upright;
    font-size: 18px;
    margin-bottom: 2px;
}
.formation h3{
    color: var(--secondary_color1_2);
}
.exp_pro h3{
    color: var(--secondary_color2_2);
}
.hobby h3{
    color: var(--secondary_color3_2);
}
.comp h3{
    color: var(--primary-color2-4);
}
.comp ul{
    display: grid;
    grid-template: auto / auto auto auto;
}

/* PORTFOLIO */
.text{
    text-align: center;
}
.projets svg{
    margin: 15px 0;
    padding: 0;
}
.projets line{
    stroke: var(--primary-color1-3);
    stroke-width: 1px;
    stroke-dasharray: 50px 20px;
    stroke-dashoffset: 20px;
}
.proj1, .proj2, .proj3{
    padding: 80px 140px;
    display: grid;
    gap: 30px;
    grid-template:auto/ 1fr 1fr ;
}
.proj1 h3{
    color: var(--secondary_color2_2);
}
.proj3 h3{
    color: var(--secondary_color1_2);
}
.proj2 h3{
    color: var(--secondary_color3_2);
}
.proj2 .texte{
    grid-area: 2/2/3/3;
    line-height: 25px;
    align-content: center;
    padding: 0 8em 0 0 ;
    text-align: justify;
}
.proj3 .texte, .proj1 .texte{
    grid-area: 2/1/3/2;
    line-height: 25px;
    align-content: center;
    padding: 0 0 0 8em;
    text-align: justify;
}
.proj3 h3, .proj1 h3, .proj2 h3{
    text-align: center;
    grid-area: 1/1/2/3;
}
.sub_texte{
    margin: 50px 0 10px 0;
    text-align: center;
    grid-area:4/1/5/3;
}
.proj2 .image_txt{
    grid-area: 2 / 1 / 3 / 2;
    display: flex;
    justify-content: right;
}
.image_txt{
    width: fill;
    width: -webkit-fill-available;
    height: auto;
}
.vid_img img{
    height: 30em;
}
.proj1 .vid_img img{
    height: auto;
    width: 20em;
}
.proj1 .vid_img2 img{
    height: 18em;
}

.vid_img{
    display: flex;
    padding: 0 15%;
    gap: 60px;
    justify-content: space-between;
    justify-self: center;
    grid-area:3/1/4/3;
}
.proj1 .vid_img{
    display: grid;
    grid-template:auto auto auto / auto auto auto;
}
.vid_img2{
    display: grid;
    grid-template: auto auto / auto auto;
    padding: 0 15%;
    gap: 60px;
    justify-content: space-between;
    justify-self: center;
    grid-area:5/1/6/3;
}
@media only screen and (max-width:1450px) {
    .noAI{
        position: absolute;
        right:80px;
        top: 250px;
        width: auto;
        height: 90px;
    }
}
/* TABLET */
@media only screen and (max-width: 950px) {
    .noAI{
        position: absolute;
        right:80px;
        top: 175px;
        width: auto;
        height: 90px;
    }
    .alert {
        top: 54px;
        right: 54px;
    }
    .container{
        margin: 54px 54px 80px 54px;
    }
    .svg_anim_home object, .svg_anim_homebtn object{
        height: 4em;
    }
    h1{
        margin-top: 3px;
        font-size: 35px;
    }
    body{
        margin: 0;
    }
    .left_border, .right_border{
        width: 54px;
    }
    .top_border{
        height: 54px;
    }
    nav{
        font-size: 18px;
    }
    nav a{
        padding: 16px 0px;
    }
    .btn{
        font-size: 22px;
    }
    .btncta{
        font-size: 30px;
    }
    .content_home{
        display: grid;
        grid-template: auto / 1fr 1fr;
        gap: 0.5em;
        padding: 20px;
        text-align: center;
    }
    .content_home div .btn{
        width: 120px;
    }
    /* Contact */
    .form_contact{
        grid-template: auto auto / auto;
        padding: 0 60px;
        gap: 15px;
    }
    .text p{
        padding: 0 15%;
    }
    #submit, #submit_en{
        position: relative;
        padding: 15px 30px;
        font-size:22px;
        margin-bottom: 5px
    }
    form{
        margin-bottom: 0px;
    }
    /* CV */
    .cv{
        display: grid;   
        grid-template:auto/auto auto;
        gap: 15px;
        padding: 0 40px;
    }
        .cv h3{
        font-size: 28px;
    }
    .exp_pro{
        grid-area: 1 / 1 / 2 / span 2;
    }
    /* PORTFOLIO */
    .proj1, .proj2, .proj3{
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .proj1 .texte, .proj2 .texte, .proj3 .texte{
        text-align: center;
        padding: 20px;
    }
    .proj1 .texte h3, .proj2 .texte h3, .proj3 .texte h3{
        margin: 20px 0 5px 0;
        font-size: 28px;
    }
    .image_txt, .proj2 .image_txt{
        display: flex;
        justify-content: center;
    }


    .vid_img img{
        height: 30em;
    }
    .proj1 .vid_img img,.proj1 .vid_img2 img{
        height: auto;
        width: 100%;
    }
    
    .vid_img{
        display: flex;
        flex-direction: column;
        padding: 0 8%;
        gap: 20px;
        justify-content: space-between;
        justify-self: center;
    }
    .vid_img img{
        height: auto;
        width: 100%;
    }
    .proj1 .vid_img{
        display: flex;
        flex-direction: column;
    }
    .vid_img2{
        display: flex;
        flex-direction: column;
        padding: 0 8%;
        gap: 20px;
    }
}

/* MOBILE */
@media only screen and (max-width: 550px) {
    .noAI{
        position: absolute;
        right:20px;
        top: 160px;
        width: auto;
        height: 80px;
    }
    .alert {
        top: 52px;
        right: 0px;
    }
    body{
        margin: 0;
    }
    .left_border, .right_border{
        display: none;
    }
    .top_border{
        height: 50px;
    }
    nav{
        font-size: 16px;
    }
    nav a{
        padding: 15px 0px;
    }
    .svg_anim_home object, .svg_anim_homebtn object{
        height: 3em;
        width: auto;
    }
    .calltoaction h1{
        margin-top: 5px;
        font-size: 30px;
    }
    .btn{
        font-size: 18px;
    }
    .btncta{
        font-size: 25px;
    }
    .container{
        margin: 50px 12px 80px 12px;
    }
    p{
        font-size: 12px;
    }
    .content_home{
        display: grid;
        grid-template: auto auto / auto;
        gap: 0.25em;
        padding: 0;
        text-align: center;
    }
    .content_home div .btn{
        width: 100px;
    }

    /* Contact */

    .form_contact{
        grid-template: auto auto / auto;
        padding: 0;
        gap: 15px;
    }
    .text h1{
        margin-top: 5px;
        font-size: 30px;
        margin: 5px 0;
    }
    .text p{
        padding: 0 5%;
    }
    input, textarea{
        font-size: 12px;
        margin: 2px 0 10px 0;
        padding: 10px;
    }
    textarea{
        height: 80px;
    }
    label{
        font-size:14px ;
    }
    #submit, #submit_en{
        position: relative;
        padding: 15px 30px;
        font-size:18px;
        margin-bottom: 5px
    }
    form{
        margin-bottom: 0px;
    }

    /* CV */
    .cv{
        display: grid;   
        grid-template:auto/auto;
        gap: 15px;
        padding: 0 20px;
    }
    .cv h3{
        font-size: 25px;
    }

    footer{
        font-size: 12px;
    }
}