/** END FONCTIONS **/
p.main-titre {
  font-size: 30px;
  line-height: 34px;
  font-weight: 300;
  text-transform: uppercase;
}
.p-filtres {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 30px;
}
.page-liste-posts {
  padding: 0 25px;
}
#filtres {
  margin-top: 20px;
  font-size: 0;
}
#filtres li {
  display: inline-block;
  vertical-align: top;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 14px;
  border: 2px solid #F8AE00;
  padding: 11px 15px 7px 15px;
  border-radius: 18px;
  margin-right: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  user-select: none;
}
#filtres li.actif {
  color: #ffffff;
  background-color: #F8AE00;
}
#filtres li:not(.actif):hover {
  background: rgba(248, 174, 0, 0.2);
}
.overflow {
  overflow-x: scroll;
  overflow-y: hidden;
  margin: 0 -25px;
}
#categories,
#essences {
  font-size: 0;
  margin-top: 20px;
  width: max-content;
}
#categories li,
#essences li {
  position: relative;
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  display: inline-block;
  padding-top: 65px;
  width: 100px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
#categories li:not(.actif_filtre):hover:before,
#essences li:not(.actif_filtre):hover:before {
  background: rgba(248, 174, 0, 0.2);
}
#categories li:before,
#essences li:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-right: auto;
  margin-left: auto;
  height: 54px;
  width: 54px;
  border-radius: 50%;
  border: 2px solid #F8AE00;
  background-color: #ffffff;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}
#categories li span,
#essences li span {
  display: flex;
  height: 58px;
  position: absolute;
  top: 0;
  align-items: center;
  width: 100%;
  justify-content: center;
}
#categories li.actif_filtre:before,
#essences li.actif_filtre:before {
  background-color: #F8AE00;
}
#categories li.actif_filtre span g,
#essences li.actif_filtre span g,
#categories li.actif_filtre span path,
#essences li.actif_filtre span path {
  fill: #fff;
}
.btn-reset {
  margin-top: 30px;
}
#liste_posts {
  margin-top: 10px;
  border-top: 1px solid #D0D2D1;
  padding-top: 35px;
}
#liste_posts .post {
  position: relative;
  margin-bottom: 40px;
}
#liste_posts .post .img {
  width: 100%;
  height: 200px;
  background-color: #eeeeee;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#liste_posts .post .contenu {
  padding-top: 20px;
}
#liste_posts .post .date {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.5px;
}
#liste_posts .post .tags {
  margin-top: 5px;
  font-size: 0;
}
#liste_posts .post .tags li {
  display: inline-block;
  vertical-align: top;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 5px 10px 3px 10px;
  margin-right: 10px;
  background-color: #00A77D;
  line-height: 1;
}
#liste_posts .post .titre {
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
  margin-top: 20px;
  color: #000000;
  display: block;
}
#liste_posts .post .titre:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
}
#liste_posts .post .titre:hover + .texte + .lien:before {
  background-color: #00A77D;
}
#liste_posts .post .texte {
  font-size: 19px;
  line-height: 24px;
  opacity: 0.7;
  margin-top: 15px;
}
#liste_posts .post .lien {
  font-size: 12px;
  font-weight: 900;
  line-height: 30px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.2px;
  padding-left: 10px;
  text-transform: uppercase;
  background-image: url(../images/fleche.svg);
  background-repeat: no-repeat;
  background-position: left 10px;
  background-size: 5px;
}
#liste_posts .post .lien:before {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  left: 0;
  height: 3px;
  background-color: #F8AE00;
}
@media (min-width: 768px) {
  #liste_posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #liste_posts .post {
    width: 48%;
  }
}
@media (min-width: 1024px) {
  .overflow {
    overflow-x: hidden;
  }
  .btn-reset {
    margin-top: 20px;
    padding-top: 50px;
    padding-left: 0;
    background-position: center top;
    background-size: 35px;
    width: 100px;
    text-align: center;
    line-height: 1;
    float: right;
  }
  .tabs {
    display: inline-block;
  }
  #liste_posts .post {
    width: 100%;
    margin-bottom: 30px;
  }
  #liste_posts .post .img {
    height: 410px;
    width: 600px;
  }
  #liste_posts .post .contenu {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    padding: 50px;
    width: 600px;
    clip-path: polygon(40px 0, 560px 0, 100% 40px, 100% 100%, 0 100%, 0% 40px);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
  }
  #liste_posts .post .date {
    display: inline-block;
    vertical-align: top;
    padding-top: 2px;
    margin-right: 30px;
  }
  #liste_posts .post .tags {
    display: inline-block;
    vertical-align: top;
    margin-top: 0;
  }
  #liste_posts .post:nth-of-type(2n) .img {
    margin-left: auto;
  }
  #liste_posts .post:nth-of-type(2n) .contenu {
    left: 0;
    padding-left: 0;
  }
  #liste_posts .post:nth-of-type(2n) .contenu:hover {
    left: 20px;
  }
  #liste_posts .post:nth-of-type(2n+1) .contenu {
    right: 0;
    padding-right: 0;
  }
  #liste_posts .post:nth-of-type(2n+1) .contenu:hover {
    right: 20px;
  }
}
@media (min-width: 1200px) {
  .page-liste-posts {
    padding: 0;
  }
  .page-template-page-realisations #main {
    background-image: url(../images/triangle_vert_gauche.png), url(../images/triangles_jaune_vert.png), url(../images/triangle_vert_gauche.png), url(../images/triangles_jaune_vert.png), url(../images/triangle_vert_gauche.png), url(../images/triangles_jaune_vert.png), url(../images/triangle_vert_gauche.png), url(../images/triangles_jaune_vert.png);
    background-repeat: no-repeat, no-repeat;
    background-size: 1920px, 1920px;
    background-position: center 450px, center 1500px, center 2450px, center 3500px, center 4450px, center 5500px, center 6450px, center 7500px;
  }
}
