:root {
    --yellow: #0D47A1;
    --white: #f7f7f7;
    --black: #070707;
    --main-font: "Quicksand", sans-serif;
    --title-font: "Playfair Display SC", serif;
}

body,
html {
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: var(--main-font);
    background-color: var(--white);
    font-size: 1em;
    color: var(--black);
}

h1,
h3 {
    text-align: center;
}

h1,
h2 {
    font-family: var(--title-font);
}

p {
    text-align: center;
    line-height: 140%;
}

h1 {
    text-transform: uppercase;
    font-size: 2.5em;
}

h2 {
    font-size: 1.8em;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
    -webkit-text-decoration-color: var(--anthra);
    text-decoration-color: var(--anthra);
}

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

img {
    width: 100%;
}

.strong {
    font-weight: 600;
}

/* ***************************************
****************FORM********************* */
form {
    margin: 40px auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* **********************************
*************LES FLEXBOX*********** */
.services_list,
.services_marques,
.about_about,
#contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header_nav,
#about {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* *******************************
******************************** */
.header {
    background-color: var(--black);
    color: var(--white);
}

.logo-container {
    width: 350px;
    height: 350px;
    margin: auto;
}

.nav {
    background-color: var(--yellow);
    color: var(--ywhite);
}

.header_nav {
    width: 70%;
    margin: auto;
    font-weight: 900;
}

.header_pitch {
    text-align: center;
    font-size: 1.7em;
    text-transform: uppercase;
    padding: 20px 0;
    border-bottom: 2px solid var(--yellow);
}

.header_nav li {
    padding: 20px 0;
    font-size: 1.2em;
}

.header_nav a {
    -webkit-text-decoration-color: var(--yellow);
    text-decoration-color: var(--yellow);
}

.services_grid,
.services_grid_cell {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.services_grid_cell {
    width: calc(100% / 2 - 2.5px);
    height: 400px;
}

.cell_img,
.cell_text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 100%;
}

.cell_text h2 {
    text-align: center;
    color: var(--yellow);
}

.cell_text p {
    padding: 0 8px;
}

.cell_text a {
    text-decoration: underline;
}

.cell_text a:hover {
    color: var(--yellow);
}

.services_grid_cell:nth-of-type(3) .cell_img,
.services_grid_cell:nth-of-type(4) .cell_img {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.cell_img img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.services_more {
    margin: 30px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.services_list,
.services_marques {
    width: calc(50% - 2.5px);
}

.services_list {
    border-right: 5px solid var(--yellow);
}

.color {
    background-color: var(--yellow);
    padding: 5px 50px;
    margin: 0;
    border-radius: 2px;
}

.color:hover {
    color: var(--yellow);
    background-color: var(--black);
}

.services_list p:nth-of-type(2) {
    text-decoration: underline;
}

.nuage-marques {
    width: 70%;
    height: 400px;
}

.nuage-marques img {
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

#about {
    height: 500px;
    border: 3px solid var(--black);
    border-radius: 2px;
}

#about > div {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.about_img {
    height: 100%;
    border-radius: 2px;
}

.about_img img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.about_about {
    padding: 0 20px;
    font-size: 1.1em;
}

.about_about h1 {
    margin-bottom: 0;
    text-decoration: underline;
    color: var(--yellow);
}

.about_about h2 {
    margin-bottom: 0;
    font-size: 1.5em;
}

#contact {
    margin: 30px 0;
}

#contact h2 {
    text-decoration: underline;
    -webkit-text-decoration-color: var(--yellow);
    text-decoration-color: var(--yellow);
}

footer {
    text-align: center;
    font-size: 0.8em;
    padding: 20px 0;
    border-top: 2px solid var(--black);
}

/* ****************************************************
**************************************************** */
@media all and (max-width: 666px) {
    .header_nav {
        width: 100%;
    }

    .header_nav li {
        padding: 10px 3px;
    }

    .header_nav li:last-of-type {
        width: 100%;
        text-align: center;
    }

    .header_pitch {
        padding-top: 0;
    }

    .services_grid_cell {
        width: 100%;
        height: auto;
        display: block;
    }

    .cell_img {
        width: 100%;
        height: 30%;
    }

    .cell_text {
        width: 100%;
        height: 70%;
    }

    .services_more {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: 0;
    }

    .services_list,
    .services_marques {
        width: 100%;
    }

    .services_list {
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 3px solid var(--yellow);
    }

    .services_list p:first-of-type,
    #contact p {
        padding: 0 15px;
    }

    .nuage-marques {
        width: 100%;
        height: auto;
    }

    #about {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        height: auto;
        border: none;
    }

    .color,
    #about h2 {
        text-align: center;
    }

    .about_about {
        padding: 0 15px;
    }

    .about_img:first-of-type img {
        border-top: 5px solid var(--black);
    }

    .about_img:last-of-type img {
        border-bottom: 5px solid var(--black);
    }
}

@media all and (min-width: 667px) and (max-width: 1024px) {
    .header_nav {
        width: 90%;
    }

    .header_pitch {
        padding-top: 0;
    }

    .services_grid_cell {
        width: 100%;
    }

    .services_grid_cell:nth-of-type(even) .cell_img {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }

    .services_grid_cell:nth-of-type(odd) .cell_img {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
    }

    .nuage-marques {
        width: 80%;
        height: auto;
    }

    .services_list {
        border: none;
    }

    #about {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        height: auto;
        border: none;
    }

    .about_img:first-of-type img {
        border-top: 5px solid var(--black);
    }

    .about_img:last-of-type img {
        border-bottom: 5px solid var(--black);
    }

    .about_img {
        height: 350px;
    }
}

@media all and (min-width: 1280px) and (max-width: 1800px) {
    .services_grid_cell {
        height: auto;
    }

    .cell_img {
        -webkit-box-flex: 0.5;
        -ms-flex: 0.5;
        flex: 0.5;
    }

    .services_grid_cell:nth-of-type(3) .cell_img,
    .services_grid_cell:nth-of-type(4) .cell_img {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 0;
        order: 0;
    }

    #about .about_img {
        -webkit-box-flex: 0.5;
        -ms-flex: 0.5;
        flex: 0.5;
    }
}
