:root {
    --white: #fff;
    --black: #1e1e1e;
    --gray: #d9d9d9;
    --blue: #1a4acb;
    --lightblue: rgb(26, 74, 203, 0.4);
    --green: #0D7E01;
    font-family: "Roboto", sans-serif;
}

* {
    margin: 0 auto;
}

/* NAVBAR */
nav {
    display: flex;
    font-size: 20px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    z-index: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
    margin-left: 130px;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li:hover ul {
    display: block;
}

nav a {
    text-decoration: none;
    color: var(--black);
    transition: 0.5s;
}

nav a:hover {
    color: var(--blue);
    transition: 0.5s;
}

.dropdown_content {
    display: none;
    position: absolute;
    background-color: var(--white);
    max-width: 100%;
    box-shadow: 0px 0px 2px 0px var(--black);
    z-index: 1;
    top: 85%;
    margin: 0;
    padding: 0;
}

.dropdown:hover .dropdown_content {
    display: block;
}

.dropdown_content a {
    width: 100%;
    padding: 1rem;
}

.dropdown_content a:hover {
    background-color: var(--blue);
    color: var(--white)
}

.dropdown i {
    padding: 0 5px;
    font-weight: bold;
}

.nav_top {
    display: block;
    width: 100%;
    background-color: var(--gray);

}

.nav_top p {
    text-align: right;
}

.nav_top a {
    padding: 0 15px;
}

.nav_bottom {
    display: flex;
    flex-direction: row;
    background-color: var(--white);
    width: 100%;
    padding: 1rem 0;
}

.nav_bottom a {
    display: flex;
    align-items: center;
    padding: 1rem;
}

nav img {
    position: absolute;
    height: 150px;
    width: auto;
    margin: -30px 0 0 0;
}

input[type=checkbox] {
    display: none;
}

.hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
}

/* BANNER */

.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    background-image: url(../images/banner.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner_content {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    height: 50vh !important;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
}

.banner p {
    font-size: 50px;
    color: var(--white);
    text-align: left;
    margin: 0;
    padding-left: 10rem;
    font-weight: bold;
}

.banner_skills,
.banner_skills .banner_content {
    height: 25vh !important;
}


@keyframes scrollDown2 {
    0% {
        transform: translate(-50%, 0px);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, 8px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 16px);
        opacity: 0;
    }
}

/* ALL */

.textbox {
    padding: 2rem 0;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    width: 100%;
    align-items: center;
}

.sous_categorie .textbox {
    margin: 0;
}

.left_content {
    width: 90%;
    display: block;
}

.left_content h2,
.right_content h2 {
    font-family: sans-serif;
    color: var(--black);
    text-align: left;
    padding-left: 80px;
    font-size: 25px;
    position: relative;
}

.left_content h2:before,
.right_content h2:before {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--green);
    left: 0;
    top: 50%;
    position: absolute;
}

.left_content h3,
.right_content h3 {
    padding-top: 1rem;
    font-size: 20px;
}

.left_content p,
.right_content p {
    padding-top: 0.5rem;
    font-size: 18px;
    padding-bottom: 2rem;
    text-align: justify;
}

img {
    width: 80px;
    height: 100%;
    padding: 2rem;
    display: block;
    float: left;
}

.skills_card_content a {
    text-decoration: none;
}


/*activity*/

.activity {
    padding: 2rem 0;
    background-color: #f4f4f4;
    border-radius: 300px;
    margin: 5rem 0;
}

.activity h2 {
    text-align: center;
    color: var(--green);
    padding: 2rem;
    font-size: xxx-large;
}

.activity h2:before {
    display: none;
}

.activity_content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: 2.5rem;
    padding: 4rem 20rem;
}

.activity_content p {
    color: var(--blue);
    display: block;
    font-size: 1.5rem;
    padding: 0.125rem 0.25rem;
    text-decoration: none;
    position: relative;
}

.activity_content :nth-child(2n) {
    font-size: 2rem;
    color: #38aecc;
    font-weight: bold;
}

.activity_content :nth-child(3n) {
    color: #0090c1;
}

.activity_content :nth-child(4n) {
    font-size: 3rem;
    color: #183446;
}

.activity_content :nth-child(5n) {
    font-size: 4rem;
    color: #046e8f;
}

/*skills*/

.skills_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skills_card {
    width: 500px;
    height: 20rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    text-align: center;

    display: inline-flex;
    margin: 1%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.skills_card:nth-child(1) {
    background-image: url(../images/skills/tuyauterie.jpg);
}

.skills_card:nth-child(2) {
    background-image: url(../images/skills/montage_1.jpg);
}

.skills_card:nth-child(3) {
    background-image: url(../images/skills/chaudronnerie.jpeg);
}

.skills_card:nth-child(4) {
    background-image: url(../images/skills/skid.jpeg);
}

.skills_card:nth-child(5) {
    background-image: url(../images/skills/BE_otime_industrie.jpg);
}

.skills_card_content {
    align-items: center;
    display: flex;

    background-color: var(--lightblue);
    border-radius: 5px;

    width: 500px;
    height: 15rem;
    margin: auto;

    transition: transform 1s;
}

.skills_card:hover .skills_card_content {
    transform: scale(1.5);
}

.skills_title {
    font-size: 25px;
    color: var(--white);
    text-transform: uppercase;
    padding: 100px;
}

/*skills CATEGORIE*/

.sous_categorie {
    color: var(--white);
    border-bottom-right-radius: 800px;
    border-top-left-radius: 200px;
}

.sous_categorie img {
    width: 300px;
    height: 500px;
}

.sous_categorie .right_content p {
    font-size: 24px;
    text-align: justify;
    padding-left: 8rem;
}

.right_content p strong {
    font-size: 30px;
}

.bureau img {
    width: 600px;
    height: 450px;
    margin-left: -150px;
}

.right_content ul {
    padding-left: 9rem;
    font-size: 18px;
}

.right_content ul li {
    padding: 0.5rem;
}

/*WORK*/

.work_content_img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    min-width: 500px;
    max-height: 100%;
    height: 560px;

    margin: -33px 0px -33px -40px;
    border-top-left-radius: 170px;
}

.sous_categorie .right_content {
    top: 0;
}

/*CAROUSEL*/

.slider-wrapper {
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.slides-container {
    width: 1000px;
    display: flex;
    overflow: scroll;
    scroll-behavior: smooth;
    list-style: none;
    padding: 0;
    border-radius: 5px;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.slides-container::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.slide-arrow {
    position: absolute;
    display: flex;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 4rem;
    background-color: white;
    border: none;
    width: 2rem;
    font-size: 3rem;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 100ms;
}

.slide-arrow:hover,
.slide-arrow:focus {
    opacity: 1;
}

#slide-arrow-prev {
    left: 10rem;
    padding-left: 0.25rem;
    border-radius: 0 2rem 2rem 0;
}

#slide-arrow-next {
    right: 10rem;
    padding-left: 0.75rem;
    border-radius: 2rem 0 0 2rem;
}

.slide {
    width: 1000px;
    height: 500px;
    flex: 1 0 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}


.slide:nth-child(1) {
    background-image: url("../images/about/equipement\ .jpg");
}

.slide:nth-child(2) {
    background-image: url("../images/about/image_site_otime.jpg");
}

.slide:nth-child(3) {
    background-image: url("../images/about/industrie_eau_usee.jpg");
    margin: 0;
}

.slide:nth-child(4) {
    background-image: url("../images/about/industrie_verriere.jpg");
}

.slide:nth-child(5) {
    background-image: url("../images/about/plastique\ .jpg");
}

.slide:nth-child(6) {
    background-image: url("../images/about/prefa_tuyauterie.jpg");
    margin: 0;
}

.slide:nth-child(7) {
    background-image: url("../images/about/site_otime_2.jpg");
}

.slide:nth-child(8) {
    background-image: url("../images/about/usine_biomasse.jpg");
}

.dots {
    list-style: none;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: var(--black);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: var(--blue);
}

/* CONTACT */

.contact {
    padding: 2rem 0;
    background-color: var(--gray);
    margin: 2rem auto;
    width: 900px;
    border-radius: 10px;
}

.contact_container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact_container h2 {
    margin-left: 30px;
    padding: 2rem 0;
    font-size: 30px;
}

.contact_container p {
    margin-left: 30px;
    font-size: 20px;
}

.contact_content form {
    display: flex;
    flex-direction: row;
}

.left_content_contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3rem
}

.right_content_contact {
    display: flex;
    flex-direction: column;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 10px;
    width: 35%;

    margin-top: -50px;
    margin-bottom: -50px;

    padding: 2rem 0;
}

.right_content_contact h2 {
    color: var(--white)
}

.contact_input {
    padding: 10px 20px;
    border: 1px solid var(--blue);
    width: 100%;
    font-size: 15px;

    margin-left: 1rem;
    margin-bottom: 1rem;

    outline: none;
    background-color: var(--white);
}

.form_group .contact_input {
    width: 100%;
}

.left_content_contact .form_group {
    display: inline flex
}

.left_content_contact textarea {
    padding: 10px 20px;
    border: 1px solid var(--blue);
    width: 100%;
    font-size: 15px;
    margin-bottom: 1rem;
    outline: none;
    resize: none;
}

.left_content_contact label {
    text-align: left;
}

.contact_btn {
    padding: 10px 20px;
    border: 1px solid var(--blue);
    background-color: var(--blue);
    color: var(--white);
    transition: 0.5s;
    font-size: 15px;
    margin-top: 1rem;
}

.contact_btn:hover {
    padding: 10px 20px;
    border: 1px solid var(--green);
    background-color: var(--white);
    color: var(--red);
    transition: 0.5s;
    font-size: 15px;
    margin-top: 1rem;
}

#societe,
#message,
#antispam {
    width: 88%;
}

#sujet {
    width: 96.8%;
}

/*FOOTER*/

footer {
    padding: 2rem 0;
    background-color: var(--white);
    color: var(--black);
    border-top: 1px solid var(--blue);
}

.footer_content {
    display: flex;
    align-items: center;
}

.footer_right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer_right ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer_right ul li {
    padding: 0.5rem 0;
}

.footer_right ul li a {
    padding: 0.5rem 0;
    color: var(--black);
    text-decoration: none;
}

.footer_right ul li a:hover {
    color: var(--blue);
}

.contact_footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.contact_footer a {
    padding: 10px 20px;
    border: 1px solid var(--blue);
    background-color: var(--blue);
    color: var(--white);
    transition: 0.5s;
    font-size: 15px;
    margin-top: 1rem;
    text-decoration: none;
}

.contact_footer a:hover {
    border: 1px solid var(--green);
    background-color: var(--white);
    color: var(--green);
}

.footer_contacts {
    display: flex;
    flex-direction: column;
}

/*LEGAL MENTION*/

.mentions {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.mentions_content .block {
    padding: 1rem 0;
    font-size: x-large;
}


@media only screen and (max-width: 1024px) {
    nav ul {
        display: flex;
        list-style: none;
        gap: 50px;
        margin: 0 8rem;
    }

    .left_content {
        margin: 0 2rem;
    }

    .work {
        padding: 2rem 2rem;
    }

    .sous_categorie .textbox {
        display: flex;
        flex-direction: column-reverse;
        padding: 2rem;
    }

    .work_content_img {
        border-radius: 0;
        border-bottom-left-radius: 126px;
    }

    .sous_categorie {
        border-radius: 0;
        border-top-right-radius: 400px;
        border-bottom-left-radius: 150px;
    }

    .sous_categorie .right_content p {
        padding: 5rem 10rem;
    }
}

@media only screen and (max-width: 728px) {

    nav span,
    nav ul,
    .nav_top,
    .left_content img,
    .right_content img,
    footer img,
    .product .right_content,
    .slide-arrow,
    .right_content_contact,
    .work_content_img,
    .footer_contacts {
        display: none;
    }

    nav img {
        width: 80px;
        height: 115px;
        padding: 2rem 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 10px;
        top: 5px;
        font-size: 40px;
    }

    .nav_bottom {
        padding: 40px 0;
    }

    .nav_bottom a {
        width: 150px;
    }

    .list {
        margin-left: 35%;
        padding: 0;
    }

    nav ul li {
        font-size: 18px;
        padding: 5px 0;
    }

    input[type=checkbox]:checked~.list,
    .dropdown-toggle:checked~.dropdown_content {
        display: block;
    }

    .dropdown_content {
        top: 60%;
    }

    .banner p {
        font-size: 30px;
        padding-left: 2rem;

    }

    .slides-container {
        width: 600px;
    }

    .left_content h2,
    .right_content h2 {
        font-size: 20px;
    }

    .left_content h3,
    .right_content h3 {
        font-size: 18px;
    }

    .left_content p,
    .right_content p {
        font-size: 15px;
    }

    .form_group .contact_input {
        width: 85%;
    }

    .skills_card {
        width: 390px;
    }

    .contact {
        width: 340px;
    }

    .textbox {
        flex-direction: column;
    }

    .sous_categorie {
        border-top-right-radius: 120px;
        border-bottom-left-radius: 120px;
    }

    .sous_categorie .textbox {
        padding: 0;
    }

    .sous_categorie .right_content p {
        padding: 2rem;
    }

    .activity_content {
        padding: 2rem;
    }

    .activity h2 {
        font-size: xx-large;
    }

    .activity_content :nth-child(2n) {
        font-size: 1.5rem;
    }

    .activity_content :nth-child(4n) {
        font-size: 2rem;
    }

    .activity_content :nth-child(5n) {
        font-size: 3rem;
    }

    .mentions_content .block {
        padding: 1rem;
        font-size: large;
    }
}