@import url(./reset.css);

:root{
    --header-bgcolor: #0a0a0a;
    --myblue-color: #4A48AA;
    --font-color: #fafafafa;
    --hover-color: #747272;;
    --footer-color: #242423;
}

/* My Header */ 
header{
    position: relative;
    width: 95%;
    border-radius: 10px;
    height: 70px;
    background-color: var(--header-bgcolor);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto;
}
header .logo{
    position: absolute;
    width: 50px;
    height: 50px;
    left: 4%;
    top: 4px;
}
header .logo img{
    width: 100%;
    transition: .4s ease-in-out;
}
header .logo img:hover{
    transform: scale(1.1);
    transition: .4s ease-in-out;
    opacity: .6;
}
header .navbar{
    position: absolute;
    left: 35%;
    display: flex;
    gap: 30px;
}
header .navbar ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    left: 40%;
}
header .navbar ul a{
    font-family: "Montserrat", sans-serif;
    color: var(--font-color);
    font-size: 1.5;
    font-weight: 600;
    transition: ease-in-out .3s ;
}
header .navbar ul a:hover{
    color: var(--hover-color);
    transition: ease-in-out .3s ;
}
header .navbar ul .separateur{
    width: 2px;
    height: 20px;
    background-color: var(--font-color);
}
header .contact-icons{
    display: flex;
    gap: 20px;
    position: absolute;
    right: 5%;
}
header .contact-icons img{
    width: 30px;
    height: 30px;
    transition: ease-in-out .3s;
}
header .contact-icons img:hover{
    transform: scale(1.1);
    opacity: .8;
    transition: ease-in-out .3s;
}
/*Contact-icons du burgermenu*/
header .contact-icons-burgermenu{
    display: none;
}
/*Burger Menu*/
.menu{
    width: 50px;
    height: 50px;
    right: 10px;
    cursor: pointer;
    display: none;
    position: absolute;
}

.menu div{
    width: 30px;
    height: 30px;
    margin: 10px;
    position: relative;
    z-index: 5000;
}

.menu span{
    background-color: #fff;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s, width 0.5s;
}

.menu .line-1{
    transform: translate(-50%, -15px);
}
.menu .line-3{
    transform: translate(-50%, 10px);
}
.openmenu .line-1{
    transform: translate(-50%, 50%) rotate(-45deg);
}
.openmenu .line-3{
    transform: translate(-50%, 50%) rotate(45deg);
}
.openmenu .line-2{
    width: 0;
}


/* The main */ 

/*My title*/
.my-title{
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    background-image: url(../asset/laptop-2620118_1920.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}
.my-title .home-content{
    position: absolute;
    left: 50%;
    display: flex;
    flex-direction: column;
}
.my-title .home-content h1{
    font-family: 'Proxima Nova Rg', serif;
    font-size: 2.7rem;
    font-weight: 900;
    color: var(--header-bgcolor);
    letter-spacing: 1.2rem;
}
.my-title .home-content h2{
    font-family: 'Proxima Nova Bl', serif;
    font-size: 7rem;
    color: var(--header-bgcolor);
}
.my-title .home-content p{
    width: 90%;
    font-family: 'Proxima Nova Rg', serif;
    font-weight: 500;
    color: var(--header-bgcolor);
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.my-title .home-content button{
    padding: 10px 25px;
    color: #e3e3e3;
    background: #3a3a3a;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.7rem;
    transition: .3s ease-in-out;
    margin-bottom: 20px;
}

/*Pop-up Github*/
.my-title .home-content #myButton{
    width: 60px;
    padding: 10px;
    cursor: pointer;
    border: 2px solid #3a3a3a;
    border-radius: 50px;
}

.my-title .home-content #myButton img{
    width: 40px;
    transition: .3s ease-in-out;
}
.my-title .home-content #myButton img:hover{
    transform: scale(1.1);
    transition: .3s ease-in-out;
}
.hidden {
    display: none;
}

#popup img{
    border-radius: 50%;
    display: block;
  margin: 0 auto;
}
#popup h2{
    color: var(--white-color);
    text-align: center; 
}
#popup p{
    font-size: 1.6rem;
    font-weight: 100;
    color: var(--white-color);
    text-align: center; 
}

#popup {
    width: 25%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1E1F20;
    border-radius: 10px;
    padding: 20px;
    opacity: 0;
    animation: slideIn 1s ease forwards; /* Animation du pop-up */
}
/*Animation du popup*/
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%); /* Position initiale hors écran */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%); /* Position finale centrée */
    }
}
.close {
    position: absolute;
    top: 0;
    right: 2%;
    cursor: pointer;
    border-bottom-left-radius: 10px;
    font-size: 3rem;
    color: var(--white-color);
}
.my-title .bulles{
    position: absolute;
    width: 100%;
    bottom: -10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    animation: fadeIn 14s ease-in-out forwards;
}
.my-title .bulles img{
    width: 50px;
    animation: bulle 7s linear infinite;
}
hr{
    background-color: #d7d4d4;
    height: 3px;
    box-shadow: 0px 4px 4px rgba(140, 139, 139, 0.5), 3px 3px 5px rgba(0,0,0, 0.2)inset ;
    border: none;
}
/*Animation des bulles*/
@keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
@keyframes bulle {
    0%{
        transform: translateY(0);
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    70%{
        opacity: 1;
    }
    100%{
        transform: translateY(-80vh);
        opacity: 0;
    }
}
/*Delay des bulles*/
.bulles img:nth-child(1){
    animation-delay: 0s;
}
.bulles img:nth-child(2){
    animation-delay: 1s;
    width: 30px;
}
.bulles img:nth-child(3){
    animation-delay: 3.5s;
}
.bulles img:nth-child(4){
    animation-delay: 4s;
    width: 20px;
}
.bulles img:nth-child(5){
    animation-delay: 3s;
    width: 25px;
}
.bulles img:nth-child(6){
    animation-delay: 2s;
    width: 25px;
}
.bulles img:nth-child(7){
    animation-delay: 1s;
    width: 45px;
}


/* Deuxième section */
.section-two{
    text-align: center;
    color: var(--hover-color);
    margin: 60px auto;
}
.section-two h3{
    text-align: center;
    font-weight: 300;
    font-size: 3rem;
    color: #0a0a0a;
    padding-bottom: 20px;
}
.section-two .apercu-projets{
    display: grid;
    grid-template-columns: 330px 330px 330px;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 30px;
}
.section-two .apercu-projets a{
    transition: 0.3s ease-in-out;
}
.section-two .apercu-projets a:hover{
    transform: translateY(-15px);
    transition: 0.3s ease-in-out;
}

.section-two .apercu-projets a:hover::after{
    content: "\00003E";
    position: absolute;
    top: 92%;
    right: 10px; /*position de la flèche */
    transform: translateY(-50%);
    font-size: 4rem;
    color: #939597;
    opacity: 0; /* Flèche invisible au départt */
    animation: slideIn 0.5s ease forwards; /* Animation de la flèche */
}
@keyframes slideIn {
    from {
        opacity: 0;
        right: 25px; /* Position de départ de la flèche */
    }
    to {
        opacity: 1;
        right: 10px; /* Position finale de la flèche */
    }
}
.section-two .apercu-projets .contenu-1,
.section-two .apercu-projets .contenu-2,
.section-two .apercu-projets .contenu-3{
    width: 330px;
    height: 300px;
    display: flex;
    flex-direction: column;
    border: solid 1px #FAFAFA;
    border-radius: 5px;
    background-color: var(--main-color);
    box-shadow: 2px 2px 5px rgba(0,0,0, 0.2), 3px 3px 10px rgba(0,0,0, 0.2)inset ;
}
.section-two .apercu-projets .img-contenu{
    width: 90%;
    height: 60%;
    margin: 10px auto;
}

.section-two .apercu-projets .img-contenu img{
    width: 330px;
    height: 184px;
    object-fit: cover;
    border-radius: 10px;
}

.section-two .apercu-projets .contenu-1 h4,
.section-two .apercu-projets .contenu-2 h4,
.section-two .apercu-projets .contenu-3 h4{
    font-size: 1.6rem;
    color: var(--header-bgcolor);
    font-weight: 400;
    text-align: left;
    padding-top: 10px;
    padding-left: 20px;
}
.section-two .apercu-projets .contenu-1 p,
.section-two .apercu-projets .contenu-2 p,
.section-two .apercu-projets .contenu-3 p{
    color: #939597;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: left;
    padding-left: 20px;
}

/*footer*/
footer{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color:  #E5E5E5;
}
footer figure{
   position: relative;
   width: 100px;
   height: 80px;
   background-color: var(--footer-color);
   border-radius: 50%;
   transition: .3s ease-in-out; 
   z-index: 100;
   margin-bottom: -55px;
}
/* Flèche vers le heut*/
footer figure figcaption{
    position: absolute;
    top: 20%;
}
footer figure img{
    width: 40%;
    height: 40%;
}
footer figure a{
    display: flex;
    align-items: center;
    justify-content: center;
}
footer figure:hover{
    transform: scale(1.1);
    transition: .3s ease-in-out;
}
/* Texte du footer Aristide SAMBA*/
footer .footer-contenu{
    background-color: var(--footer-color);
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 3px 3px 7px rgba(0,0,0, 0.2)inset ;
}
/*Navbar du Footer*/
footer .navbar{
    position: absolute;
    bottom: 10%;
}
footer .navbar ul{
    display: flex;
    align-items: center;
    gap: 20px;
}
footer p{
    position: absolute;
    bottom: 25%;
    margin-bottom: 5px;
}
footer p, footer .navbar a{
    color: var(--hover-color);
    transition: .3s ease-in-out;
}
footer .navbar ul .separateur{
    width: 2px;
    height: 20px;
    background-color: var(--hover-color);
}
footer .navbar a:hover{
    color: #b2b2b2;
    transition: .3s ease-in-out;
}
/*Les media querries*/

@media (max-width: 1192px) {
    /*Navbar*/
    header .navbar{
        position: absolute;
        width: 100%;
        height: 60vh;
        background-color: #242423;
        left: 0;
        top: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        overflow: hidden;
        z-index: 5;
        border-radius: 10px;
    }
    .link{
        z-index: 1;
    }
    header .navbar ul{
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    header .navbar ul li a{
        font-family: 'Proxima Nova Rg', serif;
        font-size: 1.8rem;
        font-weight: 500;
    }
    
    /*Burger Menu*/
    header .menu{
        display: block;
    }
    header #menuList{
        transition: all .3s;
    }
    /*Separateur de du burger menu*/
    header .navbar ul .separateur,
    header .navbar ul .last-separateur{
        width: 100%;
        height: 1px;
        background-color: #4a4a4b;
    }
    /*Les icones*/
    header .contact-icons-burgermenu{
        display: block;
        gap: 50px;
        bottom: 0;
    }
    header .contact-icons-burgermenu img{
        width: 40px;
        height: 40px;
        padding: 0 10px;
    }
    header .contact-icons{
        display: none;
    }
    /*Section trois*/
    .section-two h3{
        font-size: 1.5rem;
    }
    .section-two .apercu-projets{
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}
/*Ecran de moins de 500px*/
@media screen and (max-width: 500px){
    .navbar ul li a{
        font-size: 1.8rem;
    }
    /*First Section*/
    header .navbar{
        height: 50vh;
    }
    .my-title{
        height: 40vh;
    }
    .my-title .home-content{
        left: 40%;
    }
    
    .my-title .home-content h1{
        font-size: 1.7rem;
        margin-bottom: 10px;
    }
    .my-title .home-content h1 span{
        letter-spacing: 2.1rem;
    }
    .my-title .home-content h2{
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    .my-title .home-content p{
        display: none;
    }
    .my-title .home-content button{
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    /*Pop-up Github*/

    #popup p{
        font-size: 1rem;
    }
    
    #popup {
        width: 40%;
    }
    .my-title .bulles{
        display: none;
    }
    .my-title .home-content #myButton{
        width: 50px;
    }
    /*Animation des bulles*/
@keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
@keyframes bulle {
    0%{
        transform: translateY(0);
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    70%{
        opacity: 1;
    }
    100%{
        transform: translateY(-60vh);
        opacity: 0;
    }
       
}
 /*Section3*/
 .section-two .apercu-projets .contenu-1,
 .section-two .apercu-projets .contenu-2,
 .section-two .apercu-projets .contenu-3{
     margin-right: 30px;
     margin-left: 30px;
 }
 .section-two h3{
    font-size: 2rem;
 }
 .section-two .apercu-projets a:hover::after{
    display: none;
 }

 /*Footer*/
 footer .navbar ul a{
    font-size: 1.5rem;
 }
 footer .navbar ul{
    gap: 5px;
 }
 footer p{
    font-size: 1.5rem;
 }
}