:root {
    --bleu-nuit: #01063B;
    --blue-nuit-transparent:rgba(15, 20, 70,0.8);
    --violet: #766EDB;
    --aliceblue:aliceblue;
    --blanc: #cecece;
}

body{
    background-color: var(--bleu-nuit);
    background-image: url("../img/fond_rond-etoile.png");
    color: var(--blanc);
    height: 100vh;
    font-family: 'Rubik Doodle Shadow', system-ui;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.container{
    width: 90%;
    height: auto;
    margin: auto;
}

/* SECTION : HERO */
.div_hero img{
    margin: auto auto 5rem auto;
    width: 60rem;
    height: auto;
}

h1{
    font-size: 4rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    width: 1px;
    position: absolute;
    white-space: nowrap;
  }

h1,h2,h3,h4,.div_hero p, .div_footer p{
    text-align: center;
}

h2{
    padding-bottom: 2rem;
}

h3{
    font-size: 1.8rem;
}

.para_presentation{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin:auto;
}

.ecran{
    margin: auto auto 8rem auto;
    width: 29rem;
    height: 19.3rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 7px solid var(--violet) ;
    border-bottom: 21px solid var(--violet) ;
    background-color: rgba(77, 77, 77,0.7);
    position: relative;
}

.ecran:nth-child(1):after, .ecran:nth-child(2):after, .ecran:nth-child(3):after{
    content: url("../img/pied_ordi2.png");
    display: block;
    position: absolute;
    bottom: -7.5rem;
    left: 6.4rem;
}

.div_loading{
    position: absolute;
    top: 6rem;
    left:9.4rem;
}

.div_loading p{
    font-size: 1.5rem;
    font-family: "Orbitron", sans-serif;   
    font-weight: 600; 
    padding-bottom: 0.4rem;
    margin-left: -0.5rem;
    display: flex;
    gap:0.3rem;
}

.lettre{
    animation: jump 1.5s infinite normal;
}


@keyframes jump{
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.5rem);
        transform: rotateX('110deg');
    }
}

.barre_loading{
    width:10rem;
    height:1.2rem;
    -webkit-mask:linear-gradient(90deg,#000 65% ,#0000 0) 0/20%;
    background:
        linear-gradient(#000 2rem 2rem) 0/0% no-repeat #ddd;
    animation: chargement 2.5s infinite steps(6);
}

@keyframes chargement{
    100%{
        background-size:120%
    }
}

.alimentation{
    position: absolute;
    bottom:-2rem;
    right: 0;

    display: flex;
    align-items: center;
    gap:1rem;
}

.lumiere{
    background-color: red;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
}

.btn_power{
    width: 1.8rem;
    height: auto;
    z-index: 1;
    cursor: pointer;
    transform: scale(1);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
	animation: pulsation 2s infinite;
}

@keyframes pulsation{
	0% {
		transform: scale(0.93);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}
	
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
	}
	
	100% {
		transform: scale(0.93);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.para_box_cache{
    opacity: 0;
    z-index: 0;
}

.para_box{
    padding: 1rem;
    border: 4px solid #493F84 ;
    transition: opacity 2s ease-in-out;

    text-align: justify;
    font-family: "Orbitron", sans-serif;    
    color: var(--blanc);
    font-size: 1.17rem;
    font-weight: 600;
    word-spacing: 0.2rem;
}

.com_vert{
    color: green;
}

/* SECTION : MES PROJETS */
.div_projets{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 3rem;
    margin-bottom: 6rem;
}

.card{
    border: 5px double var(--blanc);
    border-radius: 1rem;
    width: 22rem;
    height: 22rem;
    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.provisoire:hover{
    position: relative;
}

.bientot_cache{
   display: none;
}

.bientot_visible{
    background-color: rgba(228, 228, 228, 0.9);
    border-radius: 0.4rem;
    display: block;
    width: 21.1rem;
    height: 21.1rem;
    padding: 1rem;
    text-align: center;
    position: absolute; 
    cursor: pointer;
}

.bientot_visible p{
   margin-top: 6.5rem;
   color: var(--bleu-nuit);
}

.projet_img{
    width: 50%;
    margin: auto;
    border-radius: 0.4rem;
    cursor: pointer;
    z-index: 0;
}

.btn_musique, .langages{
    display: flex;
    justify-content: center;
    gap:1rem;
}

.langages p{
    display: block;
    font-family: "Orbitron", sans-serif;    
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -1px;
    background-color: var(--aliceblue);
    color: var(--bleu-nuit);
    border-radius: 1rem;
    padding: 0.1rem 0.5rem;
}

.play{
    cursor: pointer;
}

/*FOOTER : BAS DE PAGE*/
.footer{
    background-color: var(--blue-nuit-transparent);
    padding: 2rem 0;
}

.nav_footer ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
}

.nav_footer a{
    text-decoration: none;
    padding: 0 2rem 0 0;
    font-size: 1.8rem;
    color: var(--aliceblue);
}

.nav_footer a:hover{
    color: var(--violet);
}

.nav_footer img{
    display: inline-block;  
}

.lien_linkedin{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}


/*MEDIAS QUERIES*/
@media only screen and (min-width: 750px){
    .container{
        width: 95%;
    }

    .div_projets{
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        margin: 3rem auto 10rem auto;
    
    }

    .nav_footer a{
        font-size: 2.2rem;
        padding: 0 4rem 0 0;
    }
    .card{
        width: 23rem;
        height: 25rem;
        gap: 0.7rem;
    }

    .bientot_visible{
        width: 21.8rem;
        height: 23.8rem;
    }

    .bientot_visible p{
        margin-top: 7.5rem;
    }

    .div_hero img{
        width: 40rem;
    }

    .div_presentation{
        padding-top: 4rem;
    }

    .para_presentation{
        display: grid;
        grid-template-columns: repeat(3, 0.3fr);
        grid-template-rows: repeat(2, 0.6fr);
        grid-template-areas: "z1 z2 z3"
                             "z1 z5 z3";
        justify-content: center; 
        margin: 3rem auto;                   
    }

    .nav_footer img{
        display: inline-block;  
    }
    
    .lien_linkedin{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    

    .ecran{
        margin: 0 auto 8rem auto;
    }

    .ecran:nth-child(1){
        grid-area: z1;
    }
    .ecran:nth-child(2){
        grid-area: z5;
    }
    .ecran:nth-child(3){
        grid-area: z3;
    }

    .div_footer{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav_header ul {
        text-align: center;
    }
}

@media only screen and (min-width: 1300px){
    .div_projets{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        row-gap: 5rem;  
    }
}

/*MENU BURGER → HEADER*/
.header{
    padding-bottom: 5rem;
}

.nav_header{
    background-color: rgba(15, 20, 70,0.8);
    /* position: fixed; */
    box-shadow: 0 1px 2px rgba(19, 51, 61, 0.5);
    margin: 0;
    padding: 0 5rem;
    height: 10rem; /* Menu height */
    overflow: hidden; /* Don't show anything outside the nav */
}
  
.nav_header ul {
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
    max-height: 20rem; /* Menu height x 2 */
    position: relative; /* Position the menu button relative to this item */
}
  
.nav_header li{
    display: inline-block;
}
  
.nav_header a {
    font-size: 1.8rem;
    padding: 1rem;
    color: rgb(236, 236, 236);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 10rem; /* Menu height */
    height: 10rem; /* Menu height */
}
  
.nav_header a:hover{
    background-color: rgba(255, 255, 255, 0.08);
    padding: 1rem 2rem;
    border-radius: 0.3rem;
}

.nav_header li:last-child { /* The menu button */
    position: absolute; /* Move the menu button out of flow */
    right: 0;
    bottom: 10rem; /* Move upwards, the same distance as the menu height */
    background-image: linear-gradient(to right, rgba(15, 20, 70, 0) 0, rgba(15, 20, 70, 1) 4rem);
}
  
.nav_header li:nth-last-child(2){ /* The close button */ 
    display: none; 
}
  
.nav_header#menu:target{
    height: auto;
    padding: 0;
    background-image: linear-gradient(to right, rgba(15, 20, 70, 0) 0, rgba(15, 20, 70, 1) 2em); 
}
  
.nav_header#menu:target ul{
    max-height: none;
}
  
.nav_header#menu:target li{ 
    display: block;
}
  
.nav_header#menu:target a{
    display: block;
    padding: 0 2rem;
    background-color: rgba(255, 255, 255, 0.05);
}
  
.nav_header#menu:target a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
  
.nav_header#menu:target li:not(:first-child){
    margin-top: 0.2rem;
}
  
.nav_header#menu:target li:last-child{ /*Masquer le bouton Menu*/
    display: none;
}
  
.nav_header#menu:target li:nth-last-child(2){
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    border-left: 0.3rem solid rgb(15, 20, 70);
}