/*
 Theme Name:     Tdf
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Gregory Bouhours
 Author URI:     http://frontendwizard.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */

/* =Balise Headings
------------------------------------------------------- */



/* =Titre sur bannieres des pages
------------------------------------------------------- */
.banner__title {
  height: 357px;
}
@media all and (min-width: 1024px) {
  .banner__title {
    height: 490px;
  }
}

.banner__title .et_pb_header_content_wrapper {
  display: inline-block;
  padding: 12px;
}
.et_pb_header_content_wrapper h1 {
  font-weight: normal;
  padding-bottom: 0;
}
.et_pb_fullwidth_section .banner__title {
  padding: 15% 0 0 0;
}

.et_pb_fullwidth_section .banner__title .et_pb_title_container, .et_pb_fullwidth_section .et_pb_fullwidth_header_container {
  margin: 0;
  max-width: 100%;
  width: 100%;
}
.et_pb_fullwidth_header:not(.et_pb_fullscreen) .et_pb_fullwidth_header_container {
  max-width: 100%!important;
}
@media only screen and (min-width: 981px) {
.et_pb_fullwidth_header:not(.et_pb_fullscreen) .et_pb_fullwidth_header_container .et_pb_header_content_wrapper {
  padding-left: 20em;
}
.banner__title .et_pb_header_content_wrapper {
  display: inline-block;
  padding: 12px 146px 12px 0;
}
}
/* =Post
------------------------------------------------------- */
.et_pb_post {
  border-bottom: 1px solid #c0229a;
  margin-bottom: 30px;
  padding-bottom: 30px;
}
.single .et_pb_post {
  border-bottom: none;
}
.et_pb_post .entry-title {
  color: #403f3f;
  font-size: 16px;
  text-transform: uppercase;
}
@media all and (min-width: 768px) and (max-width: 980px) {
  .et_pb_post {
    display: flex;
  }
  .et_pb_post > div:first-child {
    flex-basis: 30%;
    margin-right: 20px;
  }

  .et_pb_post > div:nth-child(2) {
    flex-basis: 70%;
  }
}

@media only screen and (min-width: 981px) {
  .et_pb_post {
    display: flex;
  }
  .et_pb_post > div:first-child {
    flex-basis: 32%;
  }

  .et_pb_post > div:nth-child(2) {
    flex-basis: 68%;
  }
}

.et_pb_post:nth-child(5n) {
  border-bottom: none;
}
.et_pb_post img {
  border:1px solid #9d357d;
}

.et_pb_post.category-press-release h3 {
  line-height: 24px;
}

/* =Page navigation
------------------------------------------------------- */
.wp-pagenavi {
  text-align: center;
  border-top: none;
}
.wp-pagenavi a, .wp-pagenavi span {
  color: #403f3f;
}
.wp-pagenavi a:hover, .wp-pagenavi span.current {
  color: #9d357d!important;
}

/* =Slider
------------------------------------------------------- */
/*Reset */
.et_pb_slide {
  padding: 0;
}
@media only screen and (min-width: 981px) {
  .et_pb_slide {
    padding: 0 6%;
  }
}
.et_pb_bg_layout_dark .et_pb_slide_description {
  text-shadow: none;
}
.et_pb_slide_title {
  display: inline;
}
.et-pb-slider-arrows {
  display: none;
}
.et_pb_slide_description .et-pb-arrow-prev {
  color: #9d357d!important;
  font-size: 30px;
  opacity: 1;
  position: relative;
  left: 0;
  top: 6px;
}
.et_pb_slide_description .et-pb-arrow-next {
  color: #9d357d!important;
  font-size: 30px;
  opacity: 1;
  position: relative;
  right: 0;
  top: 6px;
}
.et_pb_slider:hover .et-pb-arrow-prev {
    left: 0;
    opacity: 1;
}
.et_pb_slider:hover .et-pb-arrow-next {
    right: 0;
    opacity: 1;
}

/* =Display posts
------------------------------------------------------- */
.display-posts-listing, .entry-content ul {
  list-style: none;
  padding: 0;
}
.display-posts-listing > :first-child {
  border-bottom: 1px solid #ffba00;
  margin-bottom: 6%;
  padding-bottom: 6%;
}
.display-posts-listing .title {
  display: block;
  font-weight: bold;
  text-transform: lowercase;
}
.display-posts-listing .title a, .display-posts-listing .excerpt a {
  color: #403f3f;
}
.display-posts-listing .title:first-letter {
  text-transform: uppercase;
}

.excerpt-dash {
  display: none;
}

/* =Footer
------------------------------------------------------- */
/*Reset*/
#footer-widgets .footer-widget li:before {
  border: none;
}
#footer-widgets {
    padding: 24px 66px 0 66px;
}
.footer-widget li {
  display: inline-block;
  vertical-align: top;
}
.sub-menu li {
  display: block;
}
.et_pb_widget ul li {
  margin-bottom: 0;
}
#footer-bottom p {
  color: #fff;
  font-size: 10px;
  text-align: center;
}

/* =Header
------------------------------------------------------- */
@media only screen and (min-width: 981px) {
  .et_header_style_left #et-top-navigation {
    padding: 0!important;
  }
  .et_header_style_left .et-fixed-header #et-top-navigation nav>ul>li>a, .et_header_style_split .et-fixed-header #et-top-navigation nav>ul>li>a{
    color: #fff!important;
  }
  .et_header_style_left #et-top-navigation nav>ul>li>a {
    padding-top: 19px;
    padding-bottom: 0!important;
  }
  .et_header_style_left #et-top-navigation nav>ul>li.bg-violet>a {
    padding-bottom: 6px!important;
  }
  .et_header_style_left #et-top-navigation nav>ul>li.bg-violet ul {
    background: rgba(157,53,125,0.6);
    border-top: none;
  }
  .et_header_style_left #et-top-navigation nav>ul>li.bg-violet ul li {
    width: 100%;
  }
  .et_header_style_left #et-top-navigation nav>ul>li.bg-violet ul li a{
    color: #ffffff!important;
  }
  .et_header_style_left #et-top-navigation nav>ul>li.bg-violet ul li a:before{
    display: none;
  }
  .et_header_style_left #et-top-navigation nav>ul>li.icone-lettre>a {
    padding-top: 29px;
  }
  #top-menu {
    display: flex;
    float: none;
    height: 94px;
  }
  #top-menu li {
    text-align: center;
    padding-right: 0;
    vertical-align: top;
    width: 100px;
  }
  #top-menu li a {
    color: #fff;
  }
  #top-menu > li.icone-about a:before {
    content: url('images/icone-home.png');
    display: block;
    margin-bottom: 18px;
  }
  #top-menu > li.icone-graphique a:before {
    content: url('images/icone-graphique.png');
    display: block;
    margin-bottom: 12px;
  }
  #top-menu > li.icone-eco a:before {
    content: url('images/icone-eco.png');
    display: block;
    margin-bottom: 18px;
  }
  #top-menu > li.icone-info a:before {
    content: url('images/icone-info.png');
    display: block;
    margin-bottom: 11px;
  }
  #top-menu > li.icone-lettre a:before {
    content: url('images/icone-lettre.png');
    display: block;
    margin-bottom: 12px;
  }
  #top-menu > li.icone-papier a:before {
    content: url('images/icone-papier.png');
    display: block;
    margin-bottom: 11px;
  }
  #top-menu > li.bg-orange {
    background-color: #ff4700;
  }
  #top-menu > li.bg-violet {
    background-color: #c0229a;
  }
  #top-menu > li.bg-jaune {
    background-color: #ffba00;
  }
  #top-menu > li.bg-bleu {
    background-color: #0453b1;
  }
  #top-menu > li.bg-gris {
    background-color: #bbbab7;
  }
  #top-menu > li.border-right {
    border-right: 1px solid #fff;
  }
  #et_top_search {
    margin: 40px 0 0 22px;
    transform: rotate(275deg);
  }
}

@media only screen and (min-width: 1260px) {
  #logo {
    max-height: 100%;
  }
  #top-menu li {
    width: 128px;
  }
}

#top-menu .menu-item-has-children > a:first-child {
  padding-right: 0;
}

#top-menu .menu-item-has-children > a:first-child:after, #et-secondary-nav .menu-item-has-children > a:first-child:after {
  display: none;
}

/* =Liens
------------------------------------------------------- */
.lien-more {
  color: #403f3f;
  font-size: 16px;
  text-decoration: underline;
}
.lien-more:before {
  content: url('images/icone-more.png');
  padding-right: 6px;
}
.lien-more:hover {
  text-decoration: underline;
}
/* .icone-more {
  background-image: url('images/icone-more.png');
  background-repeat: no-repeat;
  display: inline-block;
  height: 13px;
  padding-right: 24px;
  width: 16px;
} */

/* =Utility class
------------------------------------------------------- */
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.padding--null {
  padding: 0!important;
}

/* =Search results
------------------------------------------------------- */
/*Reset */
.et_pb_fullwidth_header.et_pb_fullwidth_header_result{
    background-image:url('http://www.tdf-infrastructure.com/wp-content/uploads/2018/06/banner-result.jpg');
    height: 357px;
}
@media (min-width: 981px) {
#main-content .container:before {
    background-color: transparent;
}
.et_pb_fullwidth_header.et_pb_fullwidth_header_result{
    height: 454px;
}
}
.et_pb_post_search {
  border-bottom: 1px solid #ff4700;
  margin-bottom: 30px;
  padding-bottom: 30px;
}
.et_pb_post_search:nth-child(5n) {
  border-bottom: none;
}
.et_pb_post_search .entry-title {
  color: #ff4700;
  font-size: 16px;
  text-transform: uppercase;
}
.et_pb_fullwidth_header.et_pb_fullwidth_header_result .header-content h1 {
    text-transform: uppercase;
    font-size: 35px;
    letter-spacing: 3px;
    line-height: 40px;
}
.et_pb_fullwidth_header.et_pb_fullwidth_header_result .et_pb_header_content_wrapper {
    background-color: rgba(255, 71, 0, 0.6);
    max-width: 51%;
}
.et_pb_text_searchresult h2, .et_pb_text_searchresult p {
    text-transform: uppercase;
    font-size: 30px;
    font-weight: bold;
    color: #ff4700!important;
    text-align: center;
}
.et_pb_divider_orange.et_pb_module {
    margin-left: auto!important;
    margin-right: auto!important;
}

.et_pb_divider_orange {
    max-width: 10%;
    height: 0px;
}
.et_pb_divider_orange:before {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-top-width: 1px;
    border-top-style: solid;
    content: "";
}
.et_pb_divider_orange:before {
    border-top-color: #ff4700;
    border-top-width: 5px;
}

/* =Colonnes
------------------------------------------------------- */
.col-1-2 {
  width: 100%!important;
}
@media (min-width: 981px) {
.col-1-2 {
  width: 50%!important;
  margin-right: 0!important;
}
}
.c-col_center {
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 981px) {
  .c-col_center {
    width: 450px;
    margin: 0 auto;
  }
}
/* =Lignes
------------------------------------------------------- */
/*Reset*/
.et_pb_row {
  width: 90%;
}
/* =Page 404
------------------------------------------------------- */
.et_pb_post.not_found {
  border-bottom: none;
}
.et_pb_post.not_found >.entry {
  flex-basis: 100%;
}
/* =Formulaire contact
------------------------------------------------------- */
::-webkit-input-placeholder { /* WebKit browsers */
color: #403f3f !important;
opacity: 1;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: #403f3f !important;
opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: #403f3f !important;
opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
color: #403f3f !important;
opacity: 1;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea
{
    color: #403f3f;
    padding: 10px;
    width: 100%;
}
@media (min-width: 981px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea
  {
      width: 40%;
  }
  .input-left {
    float: left;
    width: 50%;
  }
  .wpcf7 .input-left input[type="text"], .wpcf7 .input-left input[type="email"], .wpcf7 .input-left input[type="tel"] {
    width: 80%;
  }
}
.wpcf7 textarea {
  width: 100%;
  height: 124px;
}
.wpcf7 .wpcf7-submit {
  width: 244px;
  padding: 10px;
  background-color: #ff4700;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
@media all and (max-width: 767px) {
  span.wpcf7-list-item {
    display: block;
  }
}
/* =Menu mobile
------------------------------------------------------- */
.et_mobile_menu {
  border-top: 3px solid #ff4700;
}

.mobile_menu_bar:before {
  content: url('images/icone-hamburger.png');
  top: -5px;
}

/* =Menu mobile
------------------------------------------------------- */
.c-compteur-wrapper {
  text-align: center;
}
.c-compteur {
  display: inline-block;
}
