/* Start Global Rules */

/* pour box sizing */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


:root {
    --main-color: #2196f3;
    --main-color-alt: #1787e0;
    --main-transition: 0.3s;
    --main-padding-top: 100px;
    --main-padding-bottom: 100px;
    --section-background: #ececec;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


.container {
    padding-left: 30px;
    padding-right: 30px;
    margin-left: auto;
    margin-right: auto;
}


.spikes {
    position: relative;
}

.spikes::after {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    height: 30px;
    z-index: 1;
    background-image: linear-gradient(135deg, white 25%, transparent 25%),
        linear-gradient(225deg, white 25%, transparent 25%);
    background-size: 30px 30px;
}

.dots {
    background-image: url("../imgs/dots.png");
    height: 186px;
    width: 204px;
    background-repeat: no-repeat;
    position: absolute;
}

.dots-up {
    top: 200px;
    right: 0;
}

.dots-down {
    bottom: 200px;
    left: 0;
}

/* End Global Rules */
/* Start Header */
.header {
    background-color: white;
    position: relative;
    -webkit-box-shadow: 0 0 10px #ddd;
    -moz-box-shadow: 0 0 10px #ddd;
    box-shadow: 0 0 10px #ddd;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.header .logo {
    color: var(--main-color);
    font-size: 26px;
    font-weight: bold;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    .header .logo {
        width: 100%;
        height: 50px;
    }
}

.header .main-nav {
    display: flex;
}

@media (max-width: 992px) {
    .header .main-nav {
        margin: auto;
    }
}

.header .main-nav>li:hover .mega-menu {
    opacity: 1;
    z-index: 100;
    top: calc(100% + 1px);
}

.header .main-nav>li>a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    position: relative;
    color: #6b7280;

    padding: 0 30px;
    overflow: hidden;
    font-size: 19px;
    font-weight: 600;
    transition: var(--main-transition);
}

@media (max-width: 992px) {
    .header .main-nav>li>a {
        padding: 10px;
        font-size: 14px;
        height: 40px;
    }
}

.header .main-nav>li>a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--main-color);
    top: 0;
    left: -100%;
    transition: var(--main-transition);
    font-weight: 600;
}

.header .main-nav>li>a:hover {
    color: var(--main-color);
    font-weight: 600;
}


/* End Header */
/* start landing */


/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 50%;
    height: 490px;

}

/* Hide the images by default */
.mySlides {
    display: none;
}

.slideshow-container img {
    width: 10%;
    height: 10;
    opacity: 1;
    object-fit: cover;
}



.back-img {
    position: absolute;
    background-color: #1787e0;
    background-size: cover;
    width: 100%;
    height: 490px;
    opacity: 0.6;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
/* .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
} */

.slideshow-container .text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    background-color: var(--transparent-color);
    padding: 50px;
    color: white;
    display: flex;
    justify-content: flex-end;
}

@media (min-width:1300px) {
    .slideshow-container .text .content {
        max-width: 500px;
    }
}

@media (min-width:993px) {
    .slideshow-container .text .content {
        max-width: 400px;
    }
}

@media (max-width:992px) {
    .slideshow-container .text {
        width: 100%;
    }

    .slideshow-container .text .content {
        width: 100%;
    }
}

.slideshow-container .text .content h2 {
    font-size: 30px;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 20px;
    width: 550px;
}

.slideshow-container .text .content p {
    font-size: 20px;
    line-height: 1.4;
    font-family: sans-serif;

}



/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}



.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 2.5s;
}

@keyframes fade {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}


.box {
    box-shadow: 0 2px 15px 5px rgb(0 0 0 / 15%);
    display: grid;
    justify-items: center;
    margin: 20px;
    padding: 20px;
    padding-top: 1px;
    transition: transform var(--main-transition), box-shadow var(--main-transition);


}

.box a {
    display: grid;
    justify-items: center;
}

.box:hover {
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    box-shadow: 0 2px 15px 10px rgb(0 0 0 / 20%);

}


#text-row {

    display: flex;
    margin: 25px;
    align-items: center;
    justify-content: center;

}

@media (max-width: 992px) {
    #text-row {
        display: grid;
        align-items: center;
        justify-content: center;
    }
}






#text-row h4 {
    font-size: 30px;
    font-weight: 700;
    color: var(--main-color);
    color: #1787e0;

}

#text-row p {
    font-size: 20px;
    color: #6b7280;
    font-family: sans-serif;
    line-height: 1.4;
}

/* services */

.services .container {
    display: grid;
    align-items: center;
    justify-content: center;

}

.services .title h2 {
    text-align: center;
    font-size: 40px;
    color: rgb(0, 0, 0);
    position: relative;
    transition: 0.25s ease;

}

.services .title h2:hover {
    color: #1787e0;
    transform: translateY(-8px);



}

@media (max-width: 1299px) {
    .box-imgtext {
        display: grid;
        align-items: center;
        justify-content: center;

    }
}

@media (min-width: 1300px) {

    .box-imgtext {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .boxes-imgtext .text {
        display: grid;
        align-items: center;
        justify-content: center;
    }
}


@media (min-width: 993px) {
    .boxes-imgtext {
        display: grid;
        align-items: center;
        justify-content: center;
    }
}



@media (min-width: 993px) {
    #box2 {
        flex-direction: row-reverse;
    }
}



.boxes-imgtext h2 {
    font-size: 20px;
    font-family: sans-serif;
    color: #1787e0;
}

.boxes-imgtext p {
    font-size: 20px;
    font-family: sans-serif;
    color: #6b7280;
    width: 610px;
    line-height: 1.4;

}




@media (max-width: 992px) {
    .services img {
        height: 435px;
        width: 100%;
        object-fit: cover;
    }
}

@media (min-width: 993px) {
    .services img {
        height: 435px;
        width: 720px;
        object-fit: cover;
    }
}

@media (min-width: 1300px) {

    #img1,
    #img3 {
        position: relative;
        left: 40px;
    }
}

@media (min-width: 1300px) {

    #img2 {
        position: relative;
        left: 35px;
    }
}

@media (min-width: 1300px) {

    #img1,
    #img2,
    #img3 {
        position: relative;

    }
}





.boxes-imgtext h4 {
    font-size: 24px;
    font-family: sans-serif;
    color: #000000;
    font-weight: 700;

}





@media (min-width: 1300px) {
    .boxes-imgtext .text {
        padding: 35px;
        padding-left: 73px;
    }
}

@media (max-width: 1299px) {
    .boxes-imgtext .text {
        padding: 35px;

    }
}

.row .go-down {
    color: var(--main-color);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--main-transition);
}

.go-down:hover {
    color: black;
}

.go-down i {
    animation: bouncing 1.5s infinite;
}

/* End Landing */
/* Start Animation */


@keyframes bouncing {

    0%,
    10%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    60% {
        transform: translateY(-15px);
    }
}



/* Start CONTACT */


.contact .section-title {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #1787e0;
    font-size: 28px;


}


.contact .container .text {
    text-align: center;
}

.contact .section-text {
    margin-bottom: 60px;
    font-size: 18px;
    color: #6b7280;
    font-weight: 600;

}



.name-lastname {
    display: flex;
    gap: 15px;
}

.name,
.lastname {
    display: grid;
    align-items: center;
    justify-content: center;
}

.contact label {
    margin-bottom: 10px;
    color: #000000;
    font-weight: 600;
    font-size: 17px;
}

.contact input,
textarea {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .contact form {
        display: grid;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 993px) {


    .contact form {
        display: grid;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .name-lastname {
        display: grid;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 992px) {

    #name,
    #lastname {
        width: 345px;
        height: 40px;
        padding: 10px 18px;
        border-radius: 5px;
        border: 1px solid #000000
    }

}

@media (min-width: 993px) {

    #name,
    #lastname {
        width: 264px;
        height: 40px;
        padding: 10px 18px;
        border-radius: 5px;
        border: 1px solid #000000
    }
}

@media (max-width: 992px) {

    #email,
    #subject {

        width: 345px;
        height: 40px;
        padding: 10px 18px;
        border-radius: 5px;
        border: 1px solid #000000
    }
}

@media (min-width: 993px) {

    #email,
    #subject {

        width: 544px;
        height: 40px;
        padding: 10px 18px;
        border-radius: 5px;
        border: 1px solid #000000
    }
}

@media (min-width: 993px) {
    #message {
        width: 544px;
        height: 100px;
        padding: 10px 18px;
        border-radius: 5px;
        border: 1px solid #000000;
    }
}

@media (max-width: 992px) {
    #message {
        width: 345px;
        height: 100px;
        padding: 10px 18px;
        border-radius: 5px;
        border: 1px solid #000000;
    }
}

button {
    width: 170px;
    height: 35px;
    background-color: #2196f3;
    border-radius: 5px;
    color: #ffffff;
    border: #2196f3;
    font-size: 17px;
    font-weight: 600;

}


button:hover {
    background-color: #007ade;
}

@media (min-width: 993px) {
    .button {
        padding-left: 200px;

    }
}

@media (max-width: 992px) {

    .button {
        position: relative;
        text-align: center;
    }
}

/* footer */

.footer {
    background-color: #191919;
    height: 100%;

}

.footer .container {


    display: flex;

    margin-top: 50px;
}

@media (max-width: 992px) {
    .footer .container {
        display: grid;
        justify-items: center;
        text-align: center;
    }
}



.footer .logo {
    color: #ffffff;
}

h2 {
    color: #ffffff;
}

li,
.box1 i {
    color: #b9b9b9;
    text-decoration: none;

}


.footer .box1 {
    width: 450px;
    padding-right: 60px;
    align-items: center;
    justify-content: center;
}

.footer .box2 {
    width: 400px;
    padding-right: 60px;
    align-items: center;
    justify-content: center;

}

.footer .box3 {
    width: 450px;
    padding-right: 60px;
    display: grid;
    align-items: center;
    justify-content: center;
}


.footer .box3 .img-ligne1 {

    display: flex;
    align-items: center;
    justify-content: center;
}



.footer .box3 .img-ligne2 {
    display: flex;
    align-items: center;
    justify-content: center;
}



.footer .box4 {
    width: 400px;
    padding-right: 60px;
    display: grid;
    align-items: center;
    justify-content: center;
}

.footer img {
    margin: 3px;
    width: 95px;
    height: 70px;
    border: 3px solid white;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);

}

.footer .image:hover img {
    transform: rotate(5deg) scale(1.1);
    -webkit-transform: rotate(5deg) scale(1.1);
    -moz-transform: rotate(5deg) scale(1.1);
    -ms-transform: rotate(5deg) scale(1.1);
    -o-transform: rotate(5deg) scale(1.1);
}

@media (max-width: 992px) {

    .icons {
        display: flex;
        font-size: 30px;
        gap: 30px;
        position: relative;
        left: 35%;

    }
}


@media (min-width: 993px) {

    .icons {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        font-size: 30px;

    }
}

.icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    font-size: 30px;

}

.text-footer {
    font-size: 18px;
    color: #b9b9b9;
    transition: 0.25s ease;

}

.text-footer a {
    font-size: 18px;
    color: #b9b9b9;
    transition: 0.25s ease;

}

.text-footer a:is(:hover, :focus) {
    color: white;

}

.text-footer:is(:hover, :focus) {
    color: white;

}

.footer i:is(:hover, :focus) {
    color: white;

}


.box4 .line a {
    display: flex;
    align-items: center;
}


@media (max-width: 992px) {
    .box4 .line a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.line i {
    font-size: 22px;
    color: #1787e0;
    margin-right: 10px;
}

.box1,
.box2,
.box3,
.box4 {
    padding: 10px;
}

.footer li,

.line {
    padding-bottom: 20px;
}




/* medias */

/* Small */

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

/* Medium */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

/* } */

/* Large */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}