@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');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&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');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html {
    scroll-behavior: smooth;
}

:root {

    --bgdcolor: #012836;
    --bdrcolor: aqua;
    --colorwhite: white;


}

/* Renitialisation */

body, p, h1, h2, h3 {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';

}

body {
    background-color: black;
    color: white;
}

/* Barre de Navigation */

nav {
    display: flex;
    align-items: center;
    border-bottom: 5px solid var(--bdrcolor);
    justify-content: center;
    text-align: center;
    background-size: cover;
    color: rgb(17, 4, 69);
    background-color: var(--colorwhite);
}

.onglet a {
    text-decoration: none;
    color: black;
    font-family: 'Poppins';
    font-size: 20px;
    margin-left: 20px;

    opacity: 0.5;
    transition: 1s;
}

.onglet {
    margin-left: 60px;
    margin-bottom: 20px;
    margin-top: 20px;
}

nav h1 {
    font-size: 40px;
    margin-right: 250px;
    margin-bottom: 20px;
    margin-top: 20px;
}

a:hover {
    opacity: 1;
    color: var(--bdrcolor);
}

#title-icon:hover {
    transform: scale(1.1, 1.1);
}

.nav-burger {
    display: none;
}

@media screen and (max-width:768px) {
    .onglet {
        display: none;
    }

    .nav-burger {
        display: block;
        cursor: pointer;
    }

    .close-icon {
        cursor: pointer;
        margin-left: 180px;
    }

    nav #title-icon {
        font-size: 20px;
        margin-bottom: 20px;
        margin-right: 190px;
    }

    nav {

        justify-content: initial;
        padding-left: 20px;
    }



}



.image-contenaire {
    width: 1000px;
    height: 400px;
    margin: auto;
    overflow: hidden;
}

.image-contenaire img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease-in-out;
}

header p {

    font-family: 'Poppins';
    font-weight: bold;
    font-size: 40px;
    padding: 40px;
}


.head-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.head-title a {
    margin-left: 300px;
    font-size: 20px;
}

section {
    font-family: 'Poppins';
    padding: 80px;

}

.tech {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tech img {
    width: 200px;
    height: auto
}

@media (max-width: 768px) {
    .image-contenaire {
        width: 100%;
        height: auto;
    }

    .head-title p {
        font-size: 20px;
        padding: 20px;
        margin-left: 110px;


    }

    .head-title a {
        margin-left: 30px;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .tech {
        flex-wrap: wrap;
    }

    .tech img {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}




/* MENU BURGER */
.menu {
    display: block;
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 0px);
    background-color: #012836;
    list-style: none;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: left 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    z-index: 1000;
}

.menu.open {
    left: 0;
    opacity: 1;
}

@keyframes slideIn {
    from {
        left: -100%;
        opacity: 0;
    }

    to {
        left: 0;
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        left: 0;
        opacity: 1;
    }

    to {
        left: -100%;
        opacity: 0;
    }
}

.menu.open {
    animation: slideIn 0.5s ease-in-out forwards;
}

.menu.closing {
    animation: slideOut 0.5s ease-in-out forwards;
}

.menu li {
    margin: 20px 0;
    padding: 10px;
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu.open li {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.menu li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

.menu li a:hover {
    color: #015f6b;
}

.close-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 80px;
    transition: transform 0.3s ease-in-out;
}

.close-icon:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .menu {
        height: calc(100vh - 60px);
    }
}


/* BOUTTON SCROLL */

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /*Cachépardéfaut*/
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /*Toujoursau-dessus*/
    font-size: 20px;
    transition: opacity 0.3s ease-in-out;

}

#backToTop:hover {
    background-color: #012836
}