@font-face{
    font-family: "akira";
    src: url(font/Akira_Expanded_Demo.otf);
}
@font-face{
    font-family: "sango";
    src: url(font/SangoUppercase-Static.otf);
}
@font-face{
    font-family: "chill";
    src: url(font/Chillax-Medium.otf);
}

*{
    margin: 0;
    padding: 0;
    /*outline: 1px solid red;*/
}

html, body { 
    height: 100%;
    max-width: 100% !important; 
    overflow-x: hidden !important;
}

body{background-color: #000000;}

.hauteur{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

main{
    flex: 1;
}

.base{
    text-transform : uppercase;
    display: flex;
    justify-content: space-around;  
}

.base a{
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-size: 2rem;
}
.base a:hover,.base a.active{
    opacity: 1;
}

#icon{
    display: flex;
    align-items: center;
    width: 13rem;
}

#icon a img{
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 130%;
}

#icon a:hover img{
    opacity: 1;
}

h1{
    font-family: "sango";
    color: #ffffff;
    font-size: 9rem;}



header nav{
    display: flex;
    justify-content: space-between;
    padding: 35px 0px 0px 45px;
    align-items: center;
}

nav a{
    font-family: "akira";
    color: #ffffff;
    text-decoration: none;
    font-size: 3rem;
    margin-right: 45px;
            
}
.menubug{
    display: flex;
}

.burger_btn {
        display: none;
    }

#section_accueil{
    display: flex;
    justify-content: center;
}

#titre{

    text-align: center;
    height: 40vh;
    margin-top: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;

}

#sous{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    justify-content: flex-start;
    margin-right: -3rem;
}
#sous h2{
    padding-top: 0.5rem;
    font-size: 2rem;
}
#sous h3{
    font-family: chill;
    font-size: 2rem;
}

#elegraph_accueil{
    position: absolute;
    width: 20rem;
    left: -10rem;
    z-index: -2;
    top: -3rem;
}

h2{
    font-family: "akira";
    color: #3333ff;
    margin: 0;
    font-size: 5rem;
}
h3{
    color: #4D55CC;
}

footer{
    display: flex;
    justify-content: space-between;
    color: #fff;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-bottom: 1.5rem;
    font-family: chill;
}
                                                /* Page Travaux */

.main_work{
    overflow: hidden;
}

.trav-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 100px 0;
    position: relative;
}
.trav-container a{
    width: 40%;
    padding: 1rem;
}
.trav-container img{
    width: 100%;
}

.chut{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

#etoile_4{
    position: absolute;
    scale: 1.4;
    z-index: -2;
    rotate: -25deg;
    top: 2rem;
    left: -2rem;
    max-width: 100vw;
}

                                                /* Page Profil */
#about {
    display: flex;
    justify-content: space-between;
    padding: 6rem 8rem;
    color: white;
    font-family: "chill", sans-serif;
    line-height: 1.7;
    overflow: hidden;
}

#about p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    max-width: 55rem;
}

#about .blue {
    color: #4D55CC;
}

.portrait {
    flex-shrink: 0; 
    margin-left: 4rem;
    position: relative;
}

#etoile_3{
    position: absolute;
    left: -10.5rem;
    bottom: -5.5rem;
    rotate: -25deg;
    scale: 1.3;
    z-index: -2;
}

.portrait img {
    width: 358px;
    padding-right: 9rem;
}

                                                /*Page Contact*/


section h2{
    text-align:center; 
    font-family:akira; 
    color:#3333FF;
    font-size: 1.5rem;
    padding-top: 5rem;
    letter-spacing: 2px;
}

#mail{
    margin-top: 3rem;
}

#section_contact{
    position: relative;
}

#etoile_1{
    position: absolute;
    scale: 1.4;
    top: -20rem;
    right: -2rem;
    rotate: -35deg;
    z-index: -2;
}

#etoile_2{
    position: absolute;
    scale: 0.3;
    left: 21.5rem;
    rotate: 5deg;
    bottom: -13.5rem;
}

section form {
    width: 35%;
    margin: 5rem auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    font-family: "chill", sans-serif;
}

section form label {
    color: #4D55CC; 
    font-size: 1.3rem;
    padding-top: 2rem;
}

section form input,
section form textarea {
    background-color: #3C3D3C;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    color: #fff;
    font-family: "chill", sans-serif;
}

section form input::placeholder,
section form textarea::placeholder {
    color: #aaa;
}

section form textarea {
    resize: vertical;
}

section form button {
    background-color: #0000E0;
    color: white;
    padding: 0.8rem 2rem;
    font-family: "akira", sans-serif;
    font-size: 1rem;
    border: none;
    align-self: center;
    cursor: pointer;
    margin-top: 2rem;
    border-radius: 7px;
}

section form button:hover {
    background-color: #3333ff;
}

                                                /*Tablette*/

@media screen and (max-width: 1190px) {
                                            /*Accueil*/
    .base a{
        font-size: 1.2rem;
    }  
    
    #icon{
        width: 12.5rem;
    }

    #elegraph_accueil{
        width: 14rem;
        left: -7rem;
        top: -2rem;
    }

    #titre{
        margin-top: 218px;
    }

    h1{
        font-size: 6rem;
    }

    section h2{
        color: #242486;

    }
                                        /*Profil*/
    #about{
        flex-direction: column;

    }

    .portrait{
        margin-left: 12.5rem;
    }

    #etoile_3{
        scale: 1;
        left: -10.5rem;
        bottom: -7.5rem;
    }

                                        /*Contact*/
    section form{
        width: 55%;
        margin: 2.1rem auto;
    }

    #etoile_2{
        left: -2.5rem;
        scale: 0.18;
    }

    #etoile_1{
        scale: 1;
        top: -20.5rem;
        right: -12.5rem;
        rotate: -23deg;
    }

    #mail {
        margin-top: -1rem;
    }
                                        /*Travaux*/
    #etoile_4 {
        scale: 1.1;
        top: -7rem;
        left: -2rem;
    }
}


                                                /*Tèléphone*/
@media screen and (max-width: 880px){ 

    .burger_btn{
        display: block;
    }

    .menubug {
    position: fixed;
    inset: 0;
    background-color: #0000E0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

    .menubug.active {
        display: flex;
    }

    .menubug .base {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        margin-bottom: 3rem;
        margin-top: 120px;

    }
    .menubug .base a {
        font-family: "akira";
        font-size: 2.5rem;
        color: #000;
        opacity: 1;
        text-decoration: none;
    }

    .menubug #icon {
        display: flex;
        gap: 2rem;
        justify-content: center;
        margin-top: 120px;
    }

    .menubug #icon img {
        width: 2rem;
    }

    .close-menu {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2.2rem;
        color: white;
        cursor: pointer;
    }

    .burger_btn {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        z-index: 1100;
    }

    .base a:hover{
    color: white;
    }   

    #titre{
        margin-top: 278px;
    }

    #elegraph_accueil {
        width: 16rem;
        left: -6rem;
        top: -4.3rem;
    }

    h1{
        font-size: 4.5rem;
    }

    #sous h2 {
        font-size: 1.8rem;
    }

    #sous h3{
        font-size: 1.5rem;
    }

     .portrait{
        margin-left: 6.5rem;
     }

    .portrait img{
            width: 308px;
    }

      #etoile_3{
            left: -9.5rem;
            bottom: -6.9rem;
      }

       section form{
            width: 68%;
       }

        #etoile_2{
            left: -9.21rem;
        }

        #etoile_1{
            top: -11.5rem;
            right: -19.5rem;
        }

}

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

    #elegraph_accueil{
        width: 24rem;
        left: -11.65rem;
        top: 5.7rem;
    }

    #sous{
        margin-right: 0rem;
        padding-right: 1.5rem;
    }

    .trav-container {
        flex-direction: column;
        align-content: center;
    }

    .trav-container a{
        width: 80%;
    }

    #etoile_4{
        scale: 3;
        top: 40rem;
        left: 2rem;
        rotate: 176deg;
    }

     .portrait {
        margin-left: 0.5rem;
    }

    #etoile_3{
        bottom: -7.9rem;
        scale: 0.7;
    }

    #etoile_1 {
        top: -18.5rem;
        right: -10.5rem;
    }

      #mail {
        margin-top: 1rem;
        color: #fff;
    }

    #etoile_2 {
        left: -11.2rem;
    }

    #about{
        padding: 6rem 3rem;
    }

    #about p{
        font-size: 1.45rem;
    }

}

@media screen and (max-width: 480px){
        h1{
            font-size: 3.6rem;
        }

         #elegraph_accueil {
            width: 29rem;
            left: -13.5rem;
            top: 2.7rem;
        }

        #sous{
            margin-right: -1rem;
            padding-right: 0.5rem;
        }

        .portrait{
            margin-left: 2.3rem;
        }

        #mail{
            margin-top: 2rem;
        }

        section h2{
            font-size: 1.2rem;
        }

        section form{
            width: 86%;
        }

         #etoile_2 {
            left: -14.8rem;
        }
}
@media screen and (max-width: 410px){

    footer{
        margin-left: 0.8rem;
        margin-right: 0.8rem;
    }

      #elegraph_accueil{
        left: -11.5rem;
    }

      #sous{
        padding-right: 2rem;
        margin-top: 2rem;
      }

     #sous h2 {
        font-size: 1.3rem;
    }

      #elegraph_accueil{
        left: -11.5rem;
      }

      .portrait{
        margin-left: 0.2rem;
      }
}
@media screen and (max-width: 378px){

    #elegraph_accueil {
        left: -12.95rem;
        scale: 0.82;
        top: 5rem;
    }

  h1 {
    font-size: 3rem;
  }

  #sous {
    margin-top: 2rem;
    padding-right: 0.1rem;
  }

  #sous h2 {
    color: #2d2dbd;
  }

   .portrait img {
    width: 258px;
  }

    #etoile_3 {
    bottom: -6.5rem;
  }
  #mail {
    font-size: 0.95rem;
  }

   #etoile_2 {
    left: -15.29rem;
    scale: 0.12;
  }
}

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

     h1 {
        font-size: 2.7rem;
    }

     #sous h2 {
        font-size: 1.2rem;
    }

     #sous h3 {
        font-size: 1.1rem;
    }

     #sous {
        margin-right: 0rem;
        padding-right: 0.4rem;
    } 

      #elegraph_accueil {
        left: -12.5rem; /*28*/
    } 

    footer{
            display: flex;
            flex-direction: column;
            align-items: center;
        }

    footer p{
            font-size: 0.75rem;
    }

        .menubug .base a {
            font-size: 1.8rem;
    }

    .menubug .base{
        margin-top: 180px;
    }

        .menubug #icon {
            gap: 0rem;
            margin-top: 180px;
        }

    #about {
        padding: 6rem 1.2rem;
    }

    section form input, section form textarea{
        padding: 0.5rem;
    }

    #mail {
        font-size: 0.79rem;
    }
}