@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: rgb(255, 245, 238);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: all 0.5s ease-in-out;
}

/* NAV */

nav{
    display: flex;
    justify-content: space-between;
    color: #0000ff;
    background-color: #fff;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

nav .gauche{
    display: flex;
    align-items: center;
}

nav .gauche .button{
    margin: 15px 15px;
}

nav .droite{
    display: flex;
    align-items: center;
}

nav .droite a{
    text-decoration: none;
    color: #0000ff;
    margin-right: 15px;
}

nav i{
    display: none !important;
    transition: 0.5s;
}

/* HEADER  */

header{
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header h1{
    color: #0000ff;
    font-weight: 900;
    font-size: 70px;
    text-align: center;
    position: relative;
}

header span{
    color: rgb(255, 245 , 238);
    background-color: #0000ff;
    padding: 10px 20px;
}

/* header h1:before{
    content: attr(data-text);
    position: absolute;
    background-color: rgb(255, 245 , 238);
    top: 0;
    left: 0;
    color: #fff;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: 1s;
    padding: 0px 20px 20px 20px;
}

h1:hover:before{
    height:initial;
    background: #0000ff;
} */

/* ICONS */
/* header i{
    position: absolute;
    font-size: 30px;
    color: #0000ff;
}

.stylo{
    left: 30%;
    top: 15%;
    animation: bougervertical 3s ease-in-out infinite;
    transform: rotate(20deg);
    font-size: 38px;
}

.globe{
    right: 20%;
    top: 60%;
    font-size: 28px;
    animation: tourner 3s ease-in-out infinite;
}

.etoile1{
    top: 40%;
    left: 10%;
    animation: clignoter 0.8s ease-in-out infinite;
    font-size: 32px;
    transition: 0.3s;
}

.etoile2{
    top: 80%;
    left: 38%;
    animation: clignoter 0.8s ease-in-out infinite 0.3s;
    transition: 0.3s;
    font-size: 40px;
}

.etoile3{
    top: 35%;
    right: 17%;
    animation: clignoter 0.8s ease-in-out infinite 0.5s;
    transition: 0.3s;
    font-size: 31px;
}

.etoile4{
    top: 73%;
    right: 9%;
    animation: clignoter 0.6s ease-in-out infinite 0.7s;
    transition: 0.3s;
    font-size: 31px;
}

.code{
    top: 20%;
    right: 20%;
    animation: bougerhorizontal 3s ease-in-out infinite 0.3s;

}

.globe2{
    left: 50%;
    top: 24%;
    font-size: 34px;
    animation: tourner 2s ease-in-out infinite;
}

.code2{
    bottom: 20%;
    left: 20%;
    animation: bougerhorizontal2 4s ease-in-out infinite 0.3s;
}

.stylo2{
    right: 43%;
    bottom: 15%;
    animation: bougervertical2 2s ease-in-out infinite;
    transform: rotate(-10deg);
    font-size: 32px;
}

@keyframes bougervertical {
    0%{
        transform: rotate(20deg) translate(0, 0);
    }
    50%{
        transform: rotate(20deg) translate(0, 100%);
    }
    100%{
        transform: rotate(20deg) translate(0, 0%);
    }
}

@keyframes bougervertical2 {
    0%{
        transform: rotate(-10deg) translate(0, 0);
    }
    50%{
        transform: rotate(-10deg) translate(0, 100%);
    }
    100%{
        transform: rotate(-10deg) translate(0, 0%);
    }
}

@keyframes bougerhorizontal {
    0%{
        transform: rotate(5deg) translate(0, 0);
    }
    50%{
        transform: rotate(5deg) translate(100%, 0);
    }
    100%{
        transform: rotate(5deg) translate(0, 0%);
    }
}

@keyframes bougerhorizontal2 {
    0%{
        transform: rotate(-5deg) translate(0, 0);
    }
    50%{
        transform: rotate(-5deg) translate(100%, 0);
    }
    100%{
        transform: rotate(-5deg) translate(0, 0%);
    }
}

@keyframes tourner {
    0%{
        transform: rotate(0);
    }
    50%{
        transform: rotate(180deg);
    }
    100%{
        transform: rotate(0deg);
    }
}

@keyframes clignoter {
    0%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
} */



/* DETAIL DU PROJET */

.detail{
    background-color: #0000ff;
    width: 90%;
    display: flex;
    padding: 10% 5% 5% 5%;
    position: relative;
}

.detail:before{
    content: '';
    position: absolute;
    left: 0;
    top: -50px;
    right: 0;
    width: 0%;
    height: 0;
    border-left: 100vw solid transparent;  /* Moitié de l'écran */
    border-bottom: 50px solid #0000ff;
}

.detail p{
    margin-top: 0;
}

.detail-gauche{
    width: 50%;
}

.detail-gauche{
    color: #fff;
}

.detail-gauche h2{
    margin: 0;
}

.detail-gauche h3{
    margin: 0;
}

.sous-flex{
    display: flex;
    width: 100%;
}

.sous-flex div{
    width: 50%;
}

.sous-flex h2{
    margin: 0;
    font-size: 20px;
}

.sous-flex p{
    margin-top: 0;
}

.plus{
    margin-bottom: 0;
}


.detail-gauche a{
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: #0000ff;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.5s;
}

.detail-gauche a:hover{
    background-color: #0000ff;
    color: #fff;
}

.detail-droite{
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
}

.detail img{
    width: 50%;
}

.detail .rond{

    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}

.detail .corner{
    border-radius: 20px;
}

/* FOOTER */
footer{
    bottom: 0;
    position: relative;
    width: 100%;
    padding: 10px 0;
    background-color: #0000ff;
    text-align: center;
    color: rgb(255, 245 , 238);
    z-index: 80;
}

/* REPONSIVE */

@media screen and (max-width: 800px) {
    .detail{
        flex-direction: column-reverse;
    }

    .detail img{
        width: 100% !important;
        margin-bottom: 20px;
    }
    .detail-gauche{
        width: 100%;
    }
    .detail-droite{
        align-items: normal;
        justify-content: left;
        width: 100%;
    }
    .gallery img{
        width: 48% !important;
    }
    .gallery img{
        width: 99% !important;
    }
}

@media screen and (max-width: 540px) {
    header h1{
        font-size: 40px;
    }
}

@media screen and (max-width: 400px){
    .sous-flex{
        flex-direction: column;
    }

    .sous-flex div{
        width: 100%;
    }
}

