/* Custom CSS for new features 2020 */

/* Button */
.button {
  border: none;
}

/* Home */
.home-contenu {
  padding-top: 40px;
}
.home-image {
  margin: 40px auto;
  text-align: center;
}
.home-image img {
  width: 100%;
  max-width: 500px;
}

/* Custom Content : */
/* 1 col */
.reduce {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
/* 2 col */
.module-texte__ctas a {
  margin-bottom: 20px;
  margin-right: 20px;
}
.button--img {
  padding-left: 40px !important;
  background-position: 10px center;
  background-size: 25px;
  background-repeat: no-repeat;
}

/* 3 col */
.module-3-colonnes .module-texte__title {
  font-style: normal;
  font-weight: bold;
  font-size: 1rem;
}
@media print, screen and (max-width: 40em) {
  .module-3-colonnes .module-texte {
    margin-bottom: 40px;
  }
}

/* 4 col icones */
.module-text-4-colonnes-icones .grid-icones {
  margin-top: 40px;
}
.module-text-4-colonnes-icones .grid-icones .cell {
  text-align: center;
}
.module-text-4-colonnes-icones .icone {
  border: 3px solid #bf9900;
  border-radius: 100%;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 140px auto;
}
.module-text-4-colonnes-icones .titre {
  color: #bf9900;
  font-weight: bold;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
.module-text-4-colonnes-icones .texte {
  font-size: 0.875rem;
  line-height: 1.375rem;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
@media print, screen and (max-width: 64.0625em) {
  .module-text-4-colonnes-icones .icone {
    width: 140px;
    height: 140px;
    background-size: 100px auto;
  }
}
@media print, screen and (max-width: 40em) {
  .module-text-4-colonnes-icones .texte {
    margin-bottom: 40px;
  }
}

/* PDF */
.module-pdf {
  margin-bottom: 0 !important;
  overflow: hidden;
}
.module-pdf .titre {
  width: 100%;
  max-width: 560px;
  padding: 60px 40px 60px 240px;
  background-position: 40px center;
  background-size: 200px;
  background-repeat: no-repeat;
  margin: 0 auto;
  text-align: center;
  color: #bf9900;
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
}
.module-pdf .titre::before,
.module-pdf .titre::after {
  content: "";
  width: 1200px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #bf9900;
  height: 2px;
  position: absolute;
}
.module-pdf .titre::before {
  left: -1200px;
}
.module-pdf .titre::after {
  right: -1200px;
}
.module-pdf .arrow {
  position: relative;
  width: 70px;
  height: 30px;
  margin: 0 auto;
}
.module-pdf .arrow::after,
.module-pdf .arrow::before {
  content: "";
  width: 50%;
  height: 4px;
  background-color: #bf9900;
  position: absolute;
  border-radius: 5px;
  top: 10px;
}
.module-pdf .arrow::before {
  left: 2px;
  transform: rotate(20deg);
}
.module-pdf .arrow::after {
  right: 2px;
  transform: rotate(-20deg);
}
.wrap-pdf {
  background-color: #f5f5f5;
}
@media print, screen and (max-width: 40em) {
  .module-pdf .titre {
    width: 100%;
    max-width: 560px;
    padding: 120px 20px 60px 20px;
    background-position: top center;
    background-size: auto 120px;
  }
}

/* Texte Timeline */
.module-text-timeline {
  overflow: hidden;
}
.timeline {
  position: relative;
  padding: 40px 0;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  width: 100%;
  height: 50%;
  background-color: #f5f5f5;
  bottom: 0;
  z-index: -1;
  position: absolute;
}
.grid-timeline {
  max-width: 85rem !important;
}
.grid-timeline .grid-x {
  position: relative;
}
.timeline .wrap-titre {
  position: relative;
  width: 100%;
  max-width: calc(100% - 200px);
  margin: 0 auto;
}
.timeline .titre {
  width: 66.666%;
  border: 3px solid #bf9900;
  border-bottom: none;
  height: 60px;
  position: relative;
}
.timeline .cell-2 {
  padding-right: 60px !important;
}
.timeline .cell-3 {
  padding-left: 60px !important;
}
.timeline .icone {
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 220px;
  position: relative;
  margin: 0 auto;
  height: 150px;
}
.timeline .texte {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.375rem;
  text-align: center;
  padding-top: 45px;
}
.timeline .texte span {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
}
.timeline .titre .content {
  color: #bf9900;
  text-transform: uppercase;
  position: absolute;
  left: 0;
  right: 0;
  width: 50%;
  margin: 0 auto;
  text-align: center;
  top: -15px;
}
.timeline .titre .content span {
  background-color: white;
  padding: 0 20px;
  display: inline-block;
  font-weight: bold;
}
.timeline .schema {
  position: relative;
  top: 160px;
  width: 100%;
  max-width: calc(100% - 200px);
  margin: 0 auto;
}
.timeline .line-1 {
  background-color: #bf9900;
  height: 3px;
  width: 0;
  max-width: 33.333%;
  left: 0;
  position: absolute;
  top: 0;
  border-radius: 4px;
}
.timeline .line-2 {
  background-color: #bf9900;
  height: 3px;
  width: 0;
  max-width: 33.333%;
  left: 33.333%;
  position: absolute;
  top: 0;
  border-radius: 4px;
}
.timeline .line-3 {
  background-color: #000000;
  height: 3px;
  width: 0;
  max-width: 33.333%;
  left: 66.66%;
  position: absolute;
  top: 0;
  border-radius: 4px;
}
.timeline .dot {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background-color: #bf9900;
  transform: scale(0);
}
.timeline .dot-2 {
  left: calc(33.33% - 7px);
}
.timeline .dot-3 {
  left: calc(66.66% - 7px);
}
.timeline .dot-4 {
  left: calc(100% - 7px);
  background-color: #000;
}
@keyframes bigger {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes larger {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes heighter {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}
.timeline.animate .dot {
  animation-duration: 1s;
  animation-delay: 0s;
  animation-name: bigger;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.timeline.animate .dot-2 {
  animation-delay: 1s;
}
.timeline.animate .dot-3 {
  animation-delay: 2s;
}
.timeline.animate .dot-4 {
  animation-delay: 3s;
}
.timeline.animate .line {
  animation-duration: 2s;
  animation-name: larger;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.timeline.animate .line-1 {
  animation-delay: 1s;
}
.timeline.animate .line-2 {
  animation-delay: 2s;
}
.timeline.animate .line-3 {
  animation-delay: 3s;
}
.timeline .cell-1 .icone,
.timeline .cell-1 .texte span {
  margin-left: 0;
}
.timeline .cell-4 .icone,
.timeline .cell-4 .texte span {
  margin-right: 0;
}
@media print, screen and (max-width: 64.0625em) {
  .timeline .titre .content {
    font-size: 0.85rem;
  }
  .timeline .wrap-titre,
  .timeline .schema {
    max-width: calc(100% - 100px);
  }
}

@media print, screen and (max-width: 40em) {
  .timeline {
    padding: 20px 0;
  }
  .timeline .titre {
    border: none;
    left: 0;
    position: relative;
    top: 0;
    width: 100%;
  }
  .timeline .titre .content {
    position: relative;
    width: 100%;
    top: 0;
  }
  .timeline .cell {
    padding: 0 10px !important;
  }
  .timeline .icone {
    margin: 0 auto 0 60px !important;
  }
  .timeline .texte {
    padding-top: 10px;
    margin-bottom: 20px;
  }
  .timeline .texte span {
    text-align: left;
    width: 100%;
    max-width: unset;
    margin: 0 !important;
    padding-left: 60px;
  }
  .timeline::before {
    display: none;
  }
  .timeline .schema {
    position: absolute;
    top: 140px;
    left: 20px;
    width: 40px;
    height: calc(100% - 280px);
  }
  .timeline .dot {
    left: 0;
    top: 0;
  }
  .timeline .dot-2 {
    top: 33%;
  }
  .timeline .dot-3 {
    top: 66%;
  }
  .timeline .dot-4 {
    top: 100%;
  }
  .timeline .line {
    height: 0;
    width: 3px;
    max-height: 33%;
    left: 6px;
    top: 2px;
  }
  .timeline.animate .line-2 {
    top: calc(33% + 4px);
  }
  .timeline.animate .line-3 {
    top: calc(66% + 10px);
  }
  .timeline.animate .line {
    animation-name: heighter;
  }
}
/** Offres liste */
.liste-offres {
  overflow: hidden;
  max-width: unset !important;
}
.liste-offres > .grid-container {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}
.liste-offres .cell a {
  display: block;
}
.liste-offres .cell a > div {
  padding: 10px;
}
.liste-offres .cell a:nth-child(odd) {
  background-color: #faf6ea;
  position: relative;
}
.liste-offres .cell a:nth-child(odd) > div::before,
.liste-offres .cell a:nth-child(odd) > div::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1200px;
  height: 100%;
  background-color: #faf6ea;
}
.liste-offres .cell a:nth-child(odd) > div::before {
  left: -1199px;
}
.liste-offres .cell a:nth-child(odd) > div::after {
  right: -1199px;
}
.liste-offres__title {
  margin-bottom: 0 !important;
}
.liste-offres__arrow {
  transform: translateY(-50%);
}
.liste-offres__arrow svg {
  width: 20px !important;
  height: 20px !important;
}
.formulaire-candidature__draw {
  margin-bottom: -1px;
  position: relative;
}

/* Search */
.search {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.search form {
  display: inline-block;
  vertical-align: top;
}
.search select {
  width: auto !important;
}
.search .or {
  display: inline-block;
  margin: 0 20px;
}
.search .custom-select {
  position: relative;
  display: inline-block;
}
.custom-select-1 {
  width: 180px;
}
.custom-select-2 {
  width: 160px;
}
.custom-select-3 {
  width: 200px;
}
.search .custom-select select {
  display: none; /*hide original SELECT element:*/
}

.search .select-selected {
  background-color: white;
}

/*style the arrow inside the select element:*/
.search .select-selected:after {
  position: absolute;
  content: "";
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-image: url(../assets/images/picto/arrow-point-to-right.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px auto;
}

/*point the arrow upwards when the select box is open (active):*/
.search .select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.search .select-items {
  border: 2px solid #bf9900;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.search .select-items div {
  color: black;
  padding: 4px 4px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
}
.select-selected {
  color: black;
  padding: 4px 30px 4px 4px;
  border: 2px solid #bf9900;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  height: 33px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*style items (options):*/
.search .select-items {
  position: absolute;
  background-color: white;
  top: calc(100% - 3px);
  left: 0;
  right: 0;
  z-index: 99;
}
.tpl-listeOffres .search-btn {
  width: 34px;
  overflow: hidden;
  color: transparent !important;
  background-image: url("../assets/images/search.svg");
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
  position: relative;
  top: -12px;
}

/*hide the items when the select box is closed:*/
.search .select-hide {
  display: none;
}

.search .select-items div {
  border-bottom: 1px solid #e2e2e2;
}
.search .select-items div:last-child {
  border-bottom: none;
}
.search .select-items div:hover,
.same-as-selected {
  background-color: #bf9900;
  color: white;
}
@media print, screen and (max-width: 64.0625em) {
  .search form {
    display: block;
    margin-bottom: 20px;
  }

}
@media print, screen and (max-width: 40em) {
  .search form {
    margin-bottom: 10px;
  }
  .search .custom-select {
    position: relative;
    display: block;
    margin: 0 auto 10px;
  }
  .search .or {
    display: block;
    margin: 0 20px 10px;
  }

.tpl-listeOffres .search-btn {
  position: relative;
  top: -0;
}
}

/* Page nav */
.wp-pagenavi {
  margin: 40px auto 20px;
  text-align: center;
}
.wp-pagenavi a,
.wp-pagenavi span {
  border: none !important;
  position: relative;
  margin: 2px 15px !important;
  font-weight: bold !important;
  color: #bf9900;
}

.wp-pagenavi a::before,
.wp-pagenavi span::before {
  content: "";
  position: absolute;
  left: -50%;
  top: -1px;
  border-radius: 100%;
  width: 30px;
  height: 30px;
  z-index: -1;
  right: -50%;
  margin: 0 auto;
}
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
  color: white;
}
.wp-pagenavi a:hover::before,
.wp-pagenavi span.current::before {
  background-color: #bf9900;
}

/* Offre details */
.single-offre {
}
.postuler {
  margin-top: 60px;
}
.before-btn-offre {
  color: #bf9900;
  text-transform: uppercase;
  margin-bottom: 10px;
}