/*
Theme Name: C2B Constructions
Description: Theme enfant du thème WP Made Simple de Publigo
Author: Hervé - Publigo
Author URI: https://www.publigo.fr
Template: wpms-theme 
Version: 1.0
Text Domain: c2b-constructions
*/

:root {
    --c2b-bleu-fonce-logo: rgba(27,42,75,1);
    --c2b-bleu-clair-logo: rgba(145,157,173,1);

    --c2b-bleu-marine1: rgba(19,42,77,1);
    --c2b-bleu-marine2: rgba(19,42,77,.9);
    --c2b-bleu-marine3: rgba(19,42,77,.8);

    --c2b-bleu-clair: rgba(145,157,173,.8);

    --c2b-bordeaux1: rgba(97,24,42,1);
    --c2b-bordeaux2: rgba(97,24,42,.9);
    --c2b-bordeaux3: rgba(97,24,42,.8);
    --c2b-bordeaux4: rgba(97,24,42,.7);

    --c2b-noir: #222222;
    --c2b-gris-moyen: #666666;
    --c2b-gris-clair: #E5E5E5;
    --c2b-blanc-casse: #F7F7F8;
}

* {
    min-width: 0;
    min-height: 0;
}

div#page {
    overflow: hidden;
    max-width: 1920px;
    margin: auto;
}

/*Entête de la page d'accueil*/

header#masthead {
    display: flex;
    flex-direction: column;
}

header#masthead>div {
    flex: 1;
    min-width: 320px;
}

.navigation-left {
    z-index: 1;
    background: #fff;
}

.navigation-right {
    flex-direction: column-reverse;
    display: flex;
}

a#logo-intro {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 30px auto;
    max-width: 500px;
}

a#logo-intro svg {
    width: 83%;
    height: 240px;
}

.products_list li {
    font-size: 24px;
    font-family: roboto;
    text-transform: uppercase;
    color: var(--c2b-bleu-marine3);
}

.products_list ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px 0 35px;
    list-style: none;
}

.action_menu ul {
    display: flex;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.action_menu a {
    display: block;
    width: 70px;
    height: 70px;
    margin: 5px;
    border-radius: 50%;
    background: var(--c2b-gris-clair);
    transition: all 0.5s;
}

.action_menu a:hover {
    background: var(--c2b-gris-moyen);
}

.action_menu span {
    font-size: 0;
    color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.action_menu span svg {
    fill: #b1afb0;
    transition: all 0.5s;
}

.action_menu a:hover span svg {
    fill: #ebecec;
}

.action_menu li:nth-child(1) span svg {
    width: 27px;
    height: 23px;
}

.action_menu li:nth-child(2) span svg {
    width: 25px;
    height: 19px;
}

.action_menu li:nth-child(3) span svg {
    width: 24px;
    height: 20px;
}

.ask_quote {
    margin: 40px 0;
}

.ask_quote span {
    display: block;
    text-align: center;
    font-family: roboto;
    font-size: 36px;
    color: var(--c2b-bleu-marine2);
    font-weight: 100;
    padding: 15px 0;
    line-height: 1;
}

.ask_quote .tel {
    font-weight: 600;
    color: var(--c2b-bordeaux2);
}

.main_menu ul {
    margin: 0;
    list-style: none;
}

.main_menu a {
    display: block;
    width: 100%;
    height: 75px;
    transition: all 0.5s;
}

.main_menu li:nth-child(1) a {
    background: var(--c2b-bordeaux1);
}

.main_menu li:nth-child(2) a {
    background: var(--c2b-bordeaux2);
}

.main_menu li:nth-child(3) a {
    background: var(--c2b-bordeaux3);
}

.main_menu li:nth-child(4) a {
    background: var(--c2b-bordeaux4);
}

.main_menu li a:hover {
    background: #fff;
}

.main_menu a>span {
    width: 100%;
    height: 100%;
    max-width: 300px;
    margin: auto;
    display: flex;
    align-items: center;
}

.main_menu a>span svg {
    fill: #fff;
    width: 16px;
    height: 18px;
    margin-right: 10px;
}

.main_menu a>span svg path {
    fill: #fff;
    transition: all 0.5s;
    transform-origin: center;
}

.main_menu li:nth-child(1) a:hover span svg path {
    fill: var(--c2b-bordeaux1);
}

.main_menu li:nth-child(2) a:hover span svg path {
    fill: var(--c2b-bordeaux2);
}

.main_menu li:nth-child(3) a:hover span svg path {
    fill: var(--c2b-bordeaux3);
}

.main_menu li:nth-child(4) a:hover span svg path {
    fill: var(--c2b-bordeaux4);
}

.main_menu li a:hover span svg path {
    transform: rotateX(180deg);
}

.main_menu li a span svg path:nth-child(1) {
    transition: all 0.5s 0.15s;
}

.main_menu li a span svg path:nth-child(2) {
    transition: all 0.5s 0.1s;
}

.main_menu li a span svg path:nth-child(3) {
    transition: all 0.5s 0.15s;
}

.main_menu li a span svg path:nth-child(4) {
    transition: all 0.5s 0.1s;
}

.main_menu li a span svg path:nth-child(5) {
    transition: all 0.5s 0.05s;
}

.main_menu li a span svg path:nth-child(6) {
    transition: all 0.5s 0.15s;
}

.main_menu li a span svg path:nth-child(7) {
    transition: all 0.5s 0.1s;
}

.main_menu li a span svg path:nth-child(8) {
    transition: all 0.5s 0.05s;
}

.main_menu li a span svg path:nth-child(9) {
    transition: all 0.5s;
}

.main_menu li a span svg path:nth-child(10) {
    transition: all 0.5s 0.15s;
}

.main_menu li a span svg path:nth-child(11) {
    transition: all 0.5s 0.1s;
}

.main_menu li a span svg path:nth-child(12) {
    transition: all 0.5s 0.05s;
}

.main_menu li a span svg path:nth-child(13) {
    transition: all 0.5s 0.15s;
}

.main_menu li a span svg path:nth-child(14) {
    transition: all 0.5s 0.1s;
}

.main_menu a>span span {
    width: calc(100% - 26px);
    text-align: center;
    text-transform: uppercase;
    font-family: hammersmith one;
    font-size: 24px;
    color: #fff;
    transition: all 0.5s;

}

.main_menu li:nth-child(1) a:hover>span span {
    color: var(--c2b-bordeaux1);
}

.main_menu li:nth-child(2) a:hover>span span {
    color: var(--c2b-bordeaux2);
}

.main_menu li:nth-child(3) a:hover>span span {
    color: var(--c2b-bordeaux3);
}

.main_menu li:nth-child(4) a:hover>span span {
    color: var(--c2b-bordeaux4);
}

.products_menu ul {
    margin: 0;
    list-style: none;
}

.products_menu a {
    display: block;
    color: #fff;
    position: relative;
    height: 75px;
    max-width: 1500px;
    transition: all 0.5s;
}

.menu-0 {
    background: var(--c2b-gris-moyen);
}

.products_menu li {
    background-color: #fff;
}

.products_menu li:nth-child(1) a,
.menu-1 {
    background-color: var(--c2b-bleu-marine1);
}

.products_menu li:nth-child(2) a,
.menu-2 {
    background-color: var(--c2b-bleu-marine2);
}

.products_menu li:nth-child(3) a,
.menu-3 {
    background-color: var(--c2b-bleu-marine3);
}

.menu-0 {}

.products_menu li:nth-child(1) a:hover {
    background-color: var(--c2b-bordeaux1);
}

.products_menu li:nth-child(2) a:hover {
    background-color: var(--c2b-bordeaux2);
}

.products_menu li:nth-child(3) a:hover {
    background-color: var(--c2b-bordeaux3);
}

.front-page .products_menu a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/contenu/themes/c2b-constructions/assets/images/product_menu_bg.png') top left no-repeat;
    transition: all 0.5s;
    opacity: 0.6;
}

.front-page .products_menu a:hover:before {
    opacity: 0;
}

.front-page .products_menu a>span {
    box-shadow: 50px 0 50px -50px #000000 inset;
}

.products_menu a>span {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.products_menu span span {
    font-family: hammersmith one;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 1;
}

.products_menu span svg {
    width: 65px;
    height: 35px;
    transition: all 0.5s;
    margin: 0 10px;
    fill: var(--c2b-bleu-clair-logo);
    opacity: 0.7;
}

/*.products_menu li:nth-child(1) svg {
    fill: #2589be;
}

.products_menu li:nth-child(2) svg {
    fill: #146b99;
}

.products_menu li:nth-child(3) svg {
    fill: #294b5c;
}*/

.products_menu li a:hover svg {
    opacity: 1;
    fill: #fff;
}

@media (min-width: 576px) {
    .products_menu a {
        height: 110px;
    }

    .products_menu span span {
        font-size: 35px;
    }

    .products_menu span svg {
        width: 159px;
        height: 89px;
        margin: 0 15px;
    }
}

@media (min-width: 768px) {
    .products_menu a {
        height: 150px;
    }

    .products_menu span span {
        font-size: 50px;
    }

    .products_menu span svg {
        width: 159px;
        height: 89px;
        margin: 0 20px;
    }
}

@media (min-width: 992px) {
    .products_menu span svg {
        margin: 0 20px 0 60px;
    }
}

@media screen and (min-width: 1200px) {
    .navigation-right {
        flex-direction: column;
        min-width: 780px;

    }

    .navigation-left {
        max-width: 500px;
    }

    .front-page header#masthead>div {
        height: 1075px;
    }

    .navigation-left {
        min-width: 400px;
    }

    header#masthead {
        flex-direction: row;
    }
}

/*Entête de page*/
.not-front-page a#logo-intro {
    margin: 30px auto 10px;
}

.not-front-page a#logo-intro svg {
    width: 88%;
    height: 183px;
}

.not-front-page .products_list ul {
    margin: 0;
}

.not-front-page .products_list li {
    font-size: 16px;
    font-weight: 500;
}

.not-front-page .main_menu {
    padding: 25px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.not-front-page .main_menu ul {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.not-front-page .main_menu li {
    position: relative;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.not-front-page .main_menu li a {
    background: none;
    height: 35px;
    display: inline-block;
}

.not-front-page .main_menu a>span svg {
    width: 9px;
    height: 10px;
}

.not-front-page .main_menu a>span svg path,
.not-front-page .main_menu li a:hover span svg path {
    fill: #7b7c7d;
}

.not-front-page .main_menu a>span span {
    font-size: 20px;
    text-align: left;
    color: #7b7c7d;
}

.not-front-page .main_menu li a:hover>span span {
    color: var(--c2b-bleu-marine2);
}

.not-front-page .main_menu li:hover ul.sub_main_menu{
    width: 300px;
    padding: 40px 35px 20px;
    transition: all 0.3s;
}

.not-front-page .main_menu ul.sub_main_menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #3f4042;
    transition: all 0.3s 0.2s;
    width: 0;
    padding: 40px 0 20px;
    overflow: hidden;
}
ul.sub_main_menu li {
    transform-origin: center 9px;
    width: 230px;
    opacity: 0;
    transition: all 0.3s; 
}
li:hover ul.sub_main_menu li{
    opacity: 1;
    transition: all 0.3s 0.2s; 
}
ul.sub_main_menu a {
    font-family: hammersmith one;
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.5s;
}
ul.sub_main_menu a:hover{
    color: var(--c2b-bleu-clair);    
}
.products_menu {
    position: relative;
}

.not-front-page .products_menu ul {
    bottom: 100%;
    width: 100%;
    left: 0;
}

.not-front-page .products_menu a {
    height: 45px;
}

.not-front-page .products_menu span span {
    font-size: 18px;
    text-align: center;
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .not-front-page .products_menu span span {
        font-size: 24px;
    }

    .not-front-page .products_menu a {
        height: 75px;
    }

    .not-front-page .products_menu ul {
        display: flex;
    }

    .not-front-page .products_menu ul li {
        flex: 1;
    }
}

@media screen and (min-width: 1200px) {
    .not-front-page .products_menu ul li {
        max-width: 320px;
    }

    .not-front-page .products_menu ul {
        position: absolute;
    }

    .slider-block {
        height: 520px;
        position: relative;
    }

    .slider {
        position: absolute;
        width: 1420px;
        top: 0;
        left: calc(50% - 1420px / 2);
    }
}

/*contenu de la page d'accueil*/

main#main article {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    padding: 0;
    font-family: roboto;
    font-size: 17px;
    color: var(--c2b-gris-moyen);
    line-height: 1;
}

.front-page main#main article div {
    flex: 1;
    min-width: 320px;
}

.front-image {
    z-index: 1;
}

.entry-content {
    padding: 35px 0 10px;
}

.front-page .entry-content div,
.entry-content header {
    padding: 0 35px;
}

main#main article h1 {
    font-family: hammersmith one;
    font-size: 38px;
    text-transform: uppercase;
    line-height: 1;
    color: var(--c2b-gris-moyen);
}

main#main article a {
    color: var(--c2b-bleu-marine2);
    font-weight: 600;
}

main#main article a:hover,
main#main article a:focus {
    color: var(--c2b-bordeaux2);
}

main#main article h1 span {
    color: var(--c2b-bleu-marine2);
}

.front-image img {
    display: block;
}

@media (min-width: 576px) {
    .front-page main#main article div {
        min-width: 500px;
    }
}

@media (min-width: 1200px) {

    .front-page .entry-content div,
    .entry-content header {
        max-width: 600px;
    }

    .home-slider-block {
        height: 625px;
        position: relative;
        display: flex;
        background: #3f4042;
        align-items: center;
    }

    .home-slider {
        width: 100%;
    }
}

/*contenu d'une page*/

.entry-title h1 {
    font-size: 22px;
    font-family: hammersmith one;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    padding: 25px 0;
    margin: 0;
}

div#content {
    padding: 0;
}

.not-front-page div#content {
    background: url('/contenu/themes/c2b-constructions/assets/images/content-bg.png') top left no-repeat;
}

.not-front-page div#content:before {
    content: "";
    display: block;
    width: 100%;
    height: 28px;
    background: url('/contenu/themes/c2b-constructions/assets/images/before-content.jpg') top left no-repeat;
}

body:not(.twentyseventeen-front-page) .entry-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap-reverse;
    margin: 0 -17.5px;
}

.entry-content div {
    flex: 1;
    min-width: 320px;
}

.content-image {
    max-width: 512px;
    margin: 0 17.5px;
}

.content-text {
    margin: 0 17.5px;
}

@media (min-width: 768px) {
    .entry-title h1 {
        font-size: 44px;
        padding: 50px 0;
    }

}

/*Menu thématique d'accueil*/
.home_thematic {
    display: flex;
    flex-wrap: wrap;
}

.home_thematic_entry {
    flex: 1;
    min-width: 320px;
}

.home_thematic_entry a {
    display: flex;
    height: 120px;
    align-items: center;
    background: var(--c2b-blanc-casse);
    transition: all 0.5s;
}

.home_thematic_entry a:hover {
    background: var(--c2b-gris-clair);
}

.home_thematic_entry svg {
    margin: 35px;
    height: 40px;
    width: 45px;
}

.home_thematic_entry svg path {
    transform-origin: center;
}

.home_thematic_entry a:hover svg path {
    transform: rotateX(180deg);
}

.home_thematic_entry svg path:nth-child(1) {
    transition: all 0.5s 0.15s;
}

.home_thematic_entry svg path:nth-child(2) {
    transition: all 0.5s 0.1s;
}

.home_thematic_entry svg path:nth-child(3) {
    transition: all 0.5s 0.15s;
}

.home_thematic_entry svg path:nth-child(4) {
    transition: all 0.5s 0.1s;
}

.home_thematic_entry svg path:nth-child(5) {
    transition: all 0.5s 0.05s;
}

.home_thematic_entry svg path:nth-child(6) {
    transition: all 0.5s 0.1s;
}

.home_thematic_entry svg path:nth-child(7) {
    transition: all 0.5s 0.05s;
}

.home_thematic_entry svg path:nth-child(8) {
    transition: all 0.5s;
}

.home_thematic_entry svg path:nth-child(9) {
    transition: all 0.5s 0.15s;
}

.home_thematic_entry svg path:nth-child(10) {
    transition: all 0.5s 0.1s;
}


.home_thematic_entry svg path:nth-child(11) {
    transition: all 0.5s 0.05s;
}

.home_thematic_entry svg path:nth-child(12) {
    transition: all 0.5s 0.1s;
}

.home_thematic_entry svg path:nth-child(13) {
    transition: all 0.5s 0.05s;
}

.home_thematic_entry svg path:nth-child(14) {
    transition: all 0.5s 0.2s;
}

.home_thematic_entry svg path:nth-child(15) {
    transition: all 0.5s 0.2s;
}

.home_thematic_entry:nth-child(1) a {
    flex-direction: row-reverse;
}

.home_thematic_entry:nth-child(1) span {
    text-align: right;
}

.home_thematic_entry:nth-child(1) svg {
    transform: rotate(180deg);
    fill: var(--c2b-bordeaux4);
}

.home_thematic_entry:nth-child(2) svg {
    fill: var(--c2b-bordeaux1);
}

.home_thematic_entry span {
    font-family: hammersmith one;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--c2b-gris-moyen);
    line-height: 1;
}

.home_thematic:after {
    content: "";
    display: block;
    height: 10px;
    width: 100%;
    background: url('/contenu/themes/c2b-constructions/assets/images/thematic_bottom.jpg') center center no-repeat;
}

@media (min-width: 576px) {
    .home_thematic_entry {
        min-width: 475px;
    }

    .home_thematic_entry a {
        height: 190px;
    }

    .home_thematic_entry span {
        font-size: 40px;
    }

}

/*Points forts*/

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

.footer_thematic_entry {
    flex: 1;
    flex-grow: 1;
    min-width: 300px;
}

a.footer_thematic_link {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

span.footer_thematic_title {
    display: block;
    color: #fff;
    width: 140px;
    position: absolute;
    height: 100%;
    top: 0;
    font-family: hammersmith one;
    left: 0;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    padding: 10px;
    transition: all 0.5s;
    background-color: #fff;
}

span.footer_thematic_title:before {
    content: ''; display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

span.footer_thematic_title span {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

a:hover span.footer_thematic_title span {
    height: calc(100% - 20px) !important;
    font-size: 45px;
}

a:hover span.footer_thematic_title {
    width: 100%;
}

.footer_thematic_entry:nth-child(1),
.footer_thematic_entry:nth-child(1) span.footer_thematic_title:before {
    background: var(--c2b-bordeaux1);
}

.footer_thematic_entry:nth-child(2),
.footer_thematic_entry:nth-child(2) span.footer_thematic_title:before {
    background: var(--c2b-bordeaux2);
}

.footer_thematic_entry:nth-child(3),
.footer_thematic_entry:nth-child(3) span.footer_thematic_title:before {
    background: var(--c2b-bordeaux3);
}

span.footer_thematic_image img {
    display: block;
}

@media (min-width: 576px) {

    .footer_thematic_entry {
        min-width: 445px;
    }

    span.footer_thematic_title {
        width: 205px;
        font-size: 27px;
    }

    a:hover span.footer_thematic_title span {
        font-size: 62px;
    }
}

/*Références clients*/

.references h2 {
    text-align: center;
    font-family: hammersmith one;
    text-transform: uppercase;
    font-size: 30px;
    color: var(--c2b-bleu-clair);
    margin: 50px 0 0;
}

.list_ref {
    margin: 50px;
}

.logo_ref {
    margin: 0 50px;
    filter: grayscale(1);
    transition: all 0.5s;
}

.logo_ref:hover {
    filter: grayscale(0);
}

/*Site info*/

.footer_bottom {
    background: var(--c2b-gris-clair);
    background: var(--c2b-blanc-casse);
}

.info_site {
    font-family: roboto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 -50px;
}

.info_site>div {
    margin: 20px 40px;
}

.info_site p {
    font-size: 18px;
    color: var(--c2b-gris-moyen);
    margin-bottom: 5px;
}

.logo_footer svg {
    width: 199px;
    height: 111px;
    fill: var(--c2b-gris-moyen);
    color: #3f4042;
}

.liste_partenaires {
    width: 184px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

span.footer_info_title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    display: inline-block;
    color: var(--c2b-bordeaux2);
}

p.footer_info_tel {
    font-size: 24px;
    font-weight: 900;
    color: var(--c2b-bleu-marine3);
}

.liste_partenaires img {
    display: block;
    margin-bottom: 20px;
}

/*Nav Mentions légales*/

nav.menu-mentions ul {
    display: flex;
    list-style: none;
    margin: 0;
    flex-wrap: wrap;
}

nav.menu-mentions li {
    margin-right: 15px;
}

nav.menu-mentions span {
    font-family: roboto;
    font-size: 14px;
    color: var(--c2b-gris-moyen);
}

nav.menu-mentions a:hover span,
nav.menu-mentions a:focus span {
    color: var(--c2b-bordeaux1);
}