@import url(colors.css);

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes opacityEffect {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.dmsans-extralight {
    font-family: "DM sans", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.dmsans-light {
    font-family: "DM sans", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.dmsans-regular {
    font-family: "DM sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.dmsans-medium {
    font-family: "DM sans", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.dmsans-semibold {
    font-family: "DM sans", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.dmsans-bold {
    font-family: "DM sans", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.dmsans-extrabold {
    font-family: "DM sans", sans-serif;
    font-weight: 800;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a,
button {
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--vibrant);
}

img {
    width: 100%;
}

.container_img {
    width: 100%;
}

li {
    list-style: none;
}
body {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    color: var(--mediumgrey);
}

h1,
h2 {
    font-size: 2.3em;
    font-weight: bold;
    text-align: left;
    color: var(--black);
}

p {
    font-size: 1.1rem;
    line-height: 1.7em;
}

.scroll_effect {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

article {
    display: flex;
    padding: 5%;
    justify-content: space-around;
    align-items: center;
}
.spacer_bar {
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--darkred);
}
.flex_reverse {
    flex-direction: row-reverse;
}

.flex_end {
    align-items: flex-end;
}
/*---------------------------------------------------------------------------------------------*/
/*-----------------------------------------Header menu-----------------------------------------*/
/*---------------------------------------------------------------------------------------------*/

.wrapper_header .container_img {
    width: 190px;
}

.wrapper_header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5% 5%;
    background-color: white;
    /* background-color: white; */
    /* border-top-left-radius: 40%;
    border-bottom-left-radius: 40%; */
    z-index: 7;
    right: 0;

    width: 100%;
    top: 0;
    transition: background 2s ease-in-out, width 2s ease-in-out, justify-content 2s ease-in-out;
}


#menu_buger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    max-width: 50px;
    overflow: hidden;
    z-index: 7;
}
#menu_buger span {
    position: relative;
    z-index: 4;
    background-color: var(--grey);
    width: 50px;
    height: 3px;
    border-radius: 10px;
    transition: transform 0.9s ease, opacity 0.9s ease, background 1s ease;
    opacity: 1;
}

#menu_buger:hover span {
    background: var(--darkred);
}

#menu_listes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    transition: width 0.9s ease;
    overflow: hidden;
    background-color: #f2f0f1;
    z-index: 6;
}

#menu_listes::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(10%, -50%) rotate(90deg);
    width: 50%;
    height: 200px;
    background-image: url("/images/JDA-logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    opacity: 0.3;
}

#menu_listes a {
    font-size: 1.5rem;
    color: var(--darkgrey);
    transition: color 1s ease;
}

#menu_listes.active {
    transition: width 0.9s ease, transform 0.9s ease;
    width: 33%;
}
#menu_listes.active2 {
    transition: width 0.9s ease, transform 0.9s ease;
    width: 100%;
}

#menu_listes li {
    padding-left: 10%;
    padding-bottom: 35px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#menu_listes a:hover {
    color: var(--darkred);
    text-decoration: underline;
}
#menu_listes.active li,
#menu_listes.active2 li {
    opacity: 1;
    transition: opacity 1.5s ease;
}

#menu_buger_span1.active {
    transform: translate(0, 15px) rotate(405deg);
    background-color: var(--darkgrey);
}

#menu_buger_span2.active {
    opacity: 0;
    transition: opacity 0.9s ease;
}

#menu_buger_span3.active {
    transform: translate(0, -15px) rotate(-405deg);
    background-color: var(--mediumgrey);
}

.a_button {
    font-weight: 500;
    font-style: normal;
    letter-spacing: 5px;
    text-transform: uppercase;
    width: max-content;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background 0.5s ease-in-out;
}

.a_button:hover {
    background: var(--vibrant);
    color: var(--white);
}

.a_button_2 {
    font-weight: 500;
    font-style: normal;
    letter-spacing: 5px;
    text-transform: uppercase;
    width: max-content;
    font-size: 1rem;
    transition: background 0.5s ease-in-out;
}
.mt7{
    margin-top: 7%;
}
.a_button_2 hr{
    width: 0;
    opacity: 0;
    transition: 0.3s ease-in;
}

.a_button_2:hover hr{
    width: 100%;
    opacity: 1;
}
/*---------------------------------------------------------------------------------------------*/
/*--------------------------------------------Footer-------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/

footer a{
    color: var(--darkgrey);
}

.wrapper_footer {
    margin-top: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    padding: 5% 5%;
    z-index: 5;
    right: 0;
    left: 0;
    gap: 30px;
}
.wrapper_footer ul {
    display: flex;
    font-size: 10px;
    gap: 10px;
    justify-content: center;
}

/*---------------------------------------------------------------------------------------------*/
/*-------------------------SLIDER carousel Index.php & services.php----------------------------*/
/*---------------------------------------------------------------------------------------------*/

.slider_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 700px;

    margin-top: 100px;
}

.slider {
    display: flex;
    position: relative;
    width: 100%;
}

.slide {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    opacity: 0;
}
.slide.preshow {
    z-index: 2;
    opacity: 1;
    transition: opacity 5s ease-in, z-index 5s ease-in;
}

.slide.show {
    z-index: 5;
    animation: zoomEffect 7s ease, opacityEffect 7s ease-out;
}

/*-----------------------------------------------------------------------------------*/
/*-------------------SLIDER Boutton Index.php & services.php-------------------------*/
/*-----------------------------------------------------------------------------------*/

button.slide_btn {
    width: 50px;
    /* background-color: var(--mediumgrey);*/
    background-color: var(--white);
    border: none;
    border-bottom: 3px solid var(--mediumgrey);
    transition: border 0.9s ease-in-out;
}

button.slide_btn.show {
    border-bottom:10px solid var(--darkgrey);
}

.wrapper_button_slide {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-end;
    height: 10px;
    margin-top: 25px;
}

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

@media only screen and (max-width: 1100px) {
    .wrapper_footer,
    .wrapper_footer ul {
        flex-direction: column;
        text-align: center;
        margin-bottom: 50px;
    }
    .wrapper_footer .container_img {
        min-width: 75%;
        margin: 10% auto;
    }
}

@media only screen and (max-width: 1000px) {
    #menu_listes a {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 700px) {
    #menu_listes.active {
        width: 50%;
    }
}

@media only screen and (max-width: 500px) {
    .wrapper_header .container_img {
        width: 120px;
    }

    .slider_container {
        margin-top: 70px;
    }
    #menu_listes::before {
        height: 75px;
    }
}
