html,
body {
    padding: 0;
    margin: 0;
    font-family: 'Josefin sans', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/***** CLASSE GLOBALE *****/

.content {
    position: absolute;
    top: 55%;
    left: 8%;
    transform: translateY(-50%);


}

h1 {
    color: white;
    margin: 10px 0px 20px;
    font-size: 75px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.5s;
}

h3 {
    color: white;
    font-size: 30px;
    margin-bottom: 50px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1.5s;
}

h4 {
    color: #ff0073;
    letter-spacing: 2px;
    font-size: 20px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1.5s;
}

button {
    border: 2px solid white;
    background: linear-gradient(to top, #ff512f, #dd2476);
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 30px;
    transition: 2s;

}

button:hover {
    background: linear-gradient(#ff512f, #dd2476);

    cursor: pointer;
}

/***** FIN CLASSE GLOBALE *****/

/***** HEADER *****/

.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to left, rgba(61, 61, 63, 0.7), rgba(1, 3, 10, 0.7)),
        url(images/M0B_connected_city_technology.webp);
    background-size: cover;
    background-position: center;
}

nav {

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 8% 0 8%;


}

.nav-links {
    overflow-x: none;
    text-align: right;
    flex: 1;
}

.nav-links .fa-x {
    margin: 15px 0 0 8px;
}

nav .logo {

    background: linear-gradient(to right, #ff0073, #fff);
    padding: 3px 3px 0 3px;
    border-radius: 5px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

nav img {

    width: 100px;
    height: auto;
}

.spanv {
    color: #ff0073;
}

span {
    color: #ff512f;

}

nav ul li {
    list-style-type: none;
    display: inline-block;
    padding: 10px 25px;

}


nav ul li a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    text-transform: capitalize;

    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    /*float: left;*/
    background: linear-gradient(to right, #ff512f, #dd2476);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/***** FIN HEADER *****/



/***** PORTFOLIO *****/

.projets {
    width: 80%;
    margin: 80px auto;
    text-align: center;

}

.projets h1 {

    color: #1A3260;
}

.contsite-row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

/*slider*/

/**/

.contsite-col {
    /* flex basis seolon sa valeur prend plus ou moins de place sur plusieurs objet 1  3*/
    border-radius: 10px;
    margin: auto auto 30px auto;
    width: 70%;
    height: auto;
    position: relative;
    overflow: hidden;
    /*coupe ou laisse visible certaine partie*/

}

.contsite-col video {
    width: 100%;
    height: auto;
    display: block;
}

.contsite-col img {
    width: 100%;
    height: auto;
    display: block;
}

.layer {

    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.4s;
}

.layer:hover {
    background: linear-gradient(to top, #ff512f, transparent);

}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: transparent;
    font-size: 26px;
    bottom: 0;
    left: 0%;
    transform: translateX(-0%);
    /*permet de déplacer horizontalement un élément Html de sa position d'origine*/
    position: absolute;
    opacity: 0%;
    transition: 0.5s;
}

.layer:hover h3 {

    padding: 5px;
    color: #fff;
    bottom: 40%;
    opacity: 100%;
}

/***** FIN PORTFOLIO *****/


/***** SERVICES *****/

.service {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    margin: 170px auto;
   
}

.service h1 {
    color: #1A3260;
    padding-bottom: 15px;


}

.box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.card {
    height: 500px;
    width: 335px;
    padding: 20px 35px;
    background: linear-gradient(to right, #ff512f, #dd2476);

    border-radius: 20px;
    margin: 15px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card i {

    font-size: 50px;
    display: block;
    text-align: center;
    margin: 25px 0;
    color: #ff512f;
}

h5 {
    color: white;
    font-size: 23px;
    margin-bottom: 15px;

}

.pra p {
    color: white;
    font-size: 16px;
    line-height: 27px;
    margin-bottom: 25px;
}

/*.card .button {
    background: linear-gradient(to right, #ff512f, #dd2476);
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: 800;
    padding: 13px 22px;
    border-radius: 30px;
    transition: .4s;
}

.card .button:hover {
    background: linear-gradient(to right, #8e2de2, #4a00e8);

    cursor: pointer;
}
*/

/***** FIN SERVICES *****/



/***** A PROPOS *****/
.about {
    width: 100%;
    background: linear-gradient(to right, #ff512f, #dd2476);
    height: 100vh;
    display: flex;
    align-items: center;
}

.main img {
    width: 25%;
    height: auto;
    border-radius: 5px;

    opacity: 0;
    animation: floatImage 4s ease-in-out infinite;
    animation-delay: 3s;
}

.about-text {
    color: white;
    width: 45%;
    height: 80%;
}

.about a {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.main {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.about-text h2 {
    font-size: 70px;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.about-text h5 {
    color: white;
    letter-spacing: 2px;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.about-text p {
    color: white;
    letter-spacing: px;
    line-height: 28px;
    /*defini l'espace entre les lignes*/
    font-size: 17px;
    margin-bottom: 45px;
}

/***** FIN A PROPOS *****/



/***** CONTACT *****/

.contactform {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

}


.col {
    padding: 15px 0px;
    margin: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.contact-right form {
    width: 90%;
    min-width:50%;
}

form input,
form textarea {
    width: 100%;
    border: 1px solid #ff0073;
    outline: 1px solid #ff512f;
    background: white;
    padding: 15px;
    margin: 15px 0;
    color: #1A3260;
    font-size: 18px;
    border-radius: 6px;
}


.contact-left {

    position: relative;
    bottom: 20px;
    flex-basis: 35%;
    flex-direction: column;
}

.contact-left h1 {
    color: #1A3260;
}

.contact-left p {
    color: #1A3260;
}

.contact-right {
    position: relative;
    top: 20px;
    flex-basis: 50%;
    flex-direction: column;
}

/*Btn transition performante*/

.contact-right .btn-sub {
    background: linear-gradient(120deg, #ff512f, #dd2476);
    border: 1px solid #dd2476;
    border-radius: 35px;
    position: relative;
    z-index: 0;
}

.contact-right .btn-sub:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    background: linear-gradient(180deg, #ff512f, #dd2476);
    transition: opacity 0.4s ease-out;
    opacity: 0;
}

.contact-right .btn-sub:hover::after {
    opacity: 1;
}

/*Fin btn transition performante*/


.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #1A3260;
    margin-right: 15px;
    font-size: 25px;
}

/*icons*/
.social-icons {
    margin-top: 30px;
    margin-left: -11px;
}

.social-icons a {
    text-decoration: none;
    font-size: 25px;
    margin-right: 10px;
    color: #1A3260;
    padding: 8px 10px;
    border-radius: 50%;

    text-align: center;
    display: inline-block;
    transition: 0.4s;
}

.social-icons a:hover {
    background: linear-gradient(180deg, #ff512f, #dd2476);

    box-shadow: 0 0 10px #ff0073;
    transform: translateY(-5px);
    color: #fff;
}



#msg {
    color: #1A3260 !important;
    margin-top: 22px;
    display: block;
}

/***** FIN CONTACT *****/

/***** FOOTER *****/

footer {
    background: linear-gradient(to right, #ff512f, #dd2476);
    color: #fff;
    position: relative;
    width: 100%;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p:nth-child(1) {
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 900;
}

footer p:nth-child(2) {
    font-size: 17px;
    width: 500px;
    text-align: center;
    line-height: 26px;
}


.end {
    position: absolute;
    bottom: 0px;
    color: white;
}

.accueil {
    background: linear-gradient(to right, #ff0073, #ff512f);
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 50%;
    font-size: medium;

    position: absolute;
    left: 20px;
    bottom: 20px;

}

nav .fa-solid {
    display: none;
}




/***** RESOPONSIVE *****/


@media(max-width: 1250px) {
    
   /****SERVICE****/
    .service{
        margin: auto auto 15px auto;
        height: auto;
    }


    /***ABOUT****/

    .about {
        min-height: 100vh;
        height: auto;

    }

    .main {
        flex-direction: column;
    }

    .main img {
        margin-top:27px;

    }

    .about-text h2 {
        font-size: 35px;
        text-transform: capitalize;
        margin-bottom: 20px;
    }

    .about-text h5 {
        letter-spacing: 2px;
        font-size: 14px;
        margin-bottom: 25px;
        text-transform: capitalize;
    }

    .about-text p {


        line-height: 14px;
        /*defini l'espace entre les lignes*/
        font-size: 12px;
        margin-bottom: 45px;
    }

    .about-text {
        width: 50%;
    }



    .layer h3 {
        width: 95%;
        font-size: 17px;

    }

    .layer:hover h3 {
        bottom: 15%;

    }

}

@media(max-width: 880px) {

    html,
    body {
        overflow-x: hidden;
    }

    h1 {
        font-size: 50px;
    }

    .content h3 {
        font-size: 20px;
    }

    .content h4 {
        font-size: 20px;
    }

    nav .fa-solid {
        margin: 10px 0 0px 5px;
        display: block;
        color: #fff;
        cursor: pointer;
        font-size: 16px;
        padding: 10px;
    }

    .fa-x {
        border: 1px solid transparent;
        width: 12px;
        transition: .3s ease;
    }

    .fa-x:hover {
        border-radius: 5px;
        transform: rotate(180deg);

    }


    .nav-links ul li {
        display: block;
        width: 80%;
        position: relative;
        right: 45px;

    }

    .nav-links ul li a:hover {
        text-shadow: 0 0 2px #fff;
    }

    .nav-links ul li:hover::after {
        width: 0%;
    }

    .nav-links {

        text-align: left;
        position: fixed;
        /*relier au relative*/
        background: linear-gradient(to right, #ff512f, #ff0073);
        height: 100vh;
        width: 150px;
        top: 0;
        right: -150px;
        z-index: 1;
        transition: 0.7s;
    }



    /* a propos*/


    .about img {
        width: 35%;
    }


    .main {
        width: 80%;
        height: auto;
        max-width: 95%;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-direction: column;
    }

    .about-text {
        width: 78%;

    }



    /*projets*/

    .projets h1 {
        color: #1A3260;
        font-size: 50px;
    }




    .contsite-row {
        margin-top: 5%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .contsite-col {
        width: 95%;
    }

    /*---------Entreprise---------*/

    .entreprise {
        margin-left: 35px;
    }

    .entreprise img,
    .entreprise .img {
        width: 100%;
        height: auto;
    }


    .main-ent {
        flex-direction: column;

    }

    .main-ent p {
        width: 80%;
        margin: 12px auto;
    }

    .main-ent img {
        width: 350px;

    }

    .main-ent .img2,
    .main-ent .img3 {
        width: 275px;

    }



    /* services*/

    .service h1 {
        color: #1A3260;
        font-size: 45px;
        width: 80%;
        margin: 30px auto;
        text-align: center;
    }

    .box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 300px;
    }

    .card {
        height: auto;
        width: 220px;
        padding: 20px 35px;

        border-radius: 20px;
        margin: 15px;
        position: relative;
        overflow: hidden;
        text-align: center;
    }

    .card i {
        font-size: 25px;
        display: block;
        text-align: center;
        margin: 15px 0;

    }

    h5 {
        color: white;
        font-size: 20px;
        margin-bottom: 15px;

    }

    .pra p {
        color: white;
        font-size: 12px;
        line-height: 13px;
        margin-bottom: 25px;
    }


    .col {
        padding: 15px 0px;
        margin: 0 100px;

        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;

    }

    .contact-left {

        width: 250px;
        position: relative;
        top: 30px;
    }

    .contact-left h1 {
        font-size: 35px;
        padding-top: 32px;
    }

    .contact-left .fa-paper-plane {
        padding: 10px 0;
    }

    .contact-right {
        width: 300px;
    }

    .contactform {
        height: auto;
        margin-bottom: 100px;

    }



    footer .end {
        width: 50%;
        text-align: center;
    }

}

@media(max-width: 400px) {


    /****card***/



    .card {
        width: 175px;

    }

    /****Form****/

    .contact-right {
        width: 220px;
    }


    footer p:nth-child(1) {
        font-size: 13px;

    }

}

@media(max-height:650px) {
.content{
    transform: translateY(-20%);
}

    .content h1, .content h4, .content h3{
        font-size: 15px;
        
    }

    .about{
        height: auto;
    }

    .contactform{
        height: auto;
    }
}


/***** ANIMATION *****/



@keyframes floatImage {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-15px);
        opacity: 1;

    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100PX);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



/* INTERSECTION OBSERVER JS*/

.reveal {
    opacity: 0;
    transform: translateY(-30px);
    transition: 2s;
    /*l'arrivé en hauteur*/
}

.reveal1 {
    /*GAUCHE*/
    opacity: 0;
    transform: translateX(-45px);
    transition: 2s;
    /*l'arrivé a gauche*/
}

.reveal2 {
    /*DROITE*/
    opacity: 0;
    transform: translateX(40px);
    transition: 2s;
    /*l'arrivé a droite*/
}


.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    /*position initial*/
}

/*cubic bezier pour mettre des formes d'animation personnalisée de la courbe de bezier*/