@media screen and (max-width: 980px) {
    #menu>ul {
        flex-direction: column;
    }

    #menu>ul>li {
        margin-top: 2%;
    }

    #qualities {
        flex-direction: column;
    }

    #footer-menu {
        flex-direction: column;
    }

    #picture_groups {
        display: none;
    }

    #copyright {
        flex-direction: column;
    }

    iframe {
        width: 75%;
    }

    #div_footer_logo {
        display: none;
    }

    .contain>div {
        flex: 0 0 85% !important;
        border-radius: 0.5rem;
        transition: 0.5s ease-in-out;
        cursor: pointer;
        box-shadow: 1px 5px 15px #5f737b;
        position: relative;
        overflow: hidden;
    }

    #team {
        flex-direction: column;
    }

    #team > div {
        padding-bottom: 5%;
    }

}

/* GENERAL */

* {
    font-family: "Montserrat", serif;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
}

html {
    height: 100%;
    max-width: 100%;
}

/* BODY */

body {
    background-color: #212121;
    width: 100%;
}

/* HEADER */

header {
    background-color: #bce1f1;
}

#div_logo {
    width: 10%;
}

#logo {
    width: 100%;
}

li {
    list-style-type: none;
}

#menu {
    width: 100%;
}

#menu>ul>li>a {
    position: relative;
    text-decoration: none;
    color: #323643;
    transition: all 0.3s ease;
}

#menu>ul>li>a:hover {
    color: #606470;
    text-decoration: none;
}

#menu>ul>li>a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #606470;
    transform: scaleX(0);
    transform-origin: top left;
    transition: transform 0.3s ease;
}

#menu>ul>li>a:hover::before {
    transform: scaleX(1);
}

/* MAIN */

main {
    color: #323643;
    background-color: #f7f7f7;
    width: 100%;
    height: 100%;
}

#img_accueil {
    height: 20%;
}

#img_accueil>img {
    width: 100%;
}

#picture_groups>img {
    width: 100%;
}

#team>div>img {
    width: 50%;
}

#team {
    width: 100%;
    height: 100%;
}

#team>div {
    width: 100% !important;
}

#header_qualities {
    background-color: #bce1f1;
    width: 100%;
}

#icon {
    font-size: 75px !important;
}

#spec>span {
    text-align: center;
}

/*---------- CAROUSSEL------------*/
#carousel {
    min-height: 300vh;
    display: grid;
    place-items: center;
    background: #f7f7f7;
    font-weight: 400;
    width: 100%;
}

.contain {
    width: 100%;
    display: flex;
    justify-content: center !important;
    height: 150px;
    gap: 10px;

    >div {
        flex: 0 0 900px;
        border-radius: 0.5rem;
        transition: 0.5s ease-in-out;
        cursor: pointer;
        box-shadow: 1px 5px 15px #5f737b;
        position: relative;
        overflow: hidden;

        .content {
            font-size: 1.5rem;
            color: #fff;
            display: flex;
            align-items: center;
            padding: 1px;
            flex-direction: column;
            height: 100%;
            justify-content: flex-end;
            background: #5f737b;
            background: linear-gradient(0deg,
                    #5f737b 0%,
                    rgba(255, 255, 255, 0) 100%);
            opacity: 1;
            visibility: visible;
            text-align: center;
        }
    }
}

/*---- CONTACT ----*/

#contact>div {
    width: 50%;
}

#contact_perigueux>span {
    padding-top: 4px;
    padding-bottom: 6px;
}

/*--- HONORAIRES ---*/

#text_honoraire {
    width: 50%;
}

#img_honoraire>img {
    width: 75%;
}

/*--- IMG CAROUSEL ---*/

#carousel>#contain1>div {
    background: url(../img/droit_de_la_famille_et_du_divorce.jpeg) no-repeat 50% / cover;
}

#carousel>#contain2>div {
    background: url(../img/droit_immobilier.jpeg) no-repeat 50% / cover;
}

#carousel>#contain3>div {
    background: url(../img/droit_civil.jpeg) no-repeat 50% / cover;
}

#carousel>#contain4>div {
    background: url(../img/droit_du_travail.jpeg) no-repeat 50% / cover;
}

#carousel>#contain5>div {
    background: url(../img/droit_des_affaires.jpeg) no-repeat 50% / cover;
}

#carousel>#contain6>div {
    background: url(../img/droit_collectivité.jpeg) no-repeat 50% / cover;
}

#carousel>#contain7>div {
    background: url(../img/droit_immigration.jpeg) no-repeat 50% / cover;
}

/* FOOTER */

footer {
    background-color: #bce1f1;
    color: #323643;
    padding-top: 1%;
}

footer>div>nav>ul>li>a {
    position: relative;
    text-decoration: none;
    color: #323643;
    transition: all 0.3s ease;
}

footer>div>nav>ul>li>a:hover {
    color: #606470;
    text-decoration: none;
}

footer>div>nav>ul>li>a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #606470;
    transform: scaleX(0);
    transform-origin: top left;
    transition: transform 0.3s ease;
}

footer>div>nav>ul>li>a:hover::before {
    transform: scaleX(1);
}

#div_footer_logo {
    width: 20%;
}
