/*
Theme Name: Citédelemploi JSON
Theme URI: https://citedelemploi-ddbl.candidater.fr
Author: Paradisiak.com  
Author URI: https://paradisiak.com
Description: Theme Jobaffinity with Mapping
Requires at least: WordPress 5.0
Version: 0.9


Background bleu : #18618C

light grey : #808294
grey : #565b72
dark : #292e37
Purple : #8950fc
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

html {
    box-sizing: border-box
}

*,:after,:before {
    box-sizing: inherit
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: normal;
}

header {
  height: 137px;
  background-color: #9cd2f8;
  position: sticky;
  top: 0;
  z-index: 4000;
  box-shadow: 0 5px 10px 0 rgba(0,0,0,.05);
  display: flex;
  align-items: center;
}

#logo-picto {
  display:flex;
  justify-content: space-between;
  width: 100%;
}


#logo-picto img, .footer-links img {
  height: 60px;
  padding-right: 1em;
  padding-left: 1em;
}

#logo-rnme {
  height: 100px!important;
}

a {
    text-decoration: none;
}

img, svg {
    vertical-align: middle;
}


.sd-left-md-right {
  text-align: left;
}

main {
  display:block;
}

.col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6 {
  width: 100%;
}

#list-map-container {
  display:flex;
  flex-direction: column-reverse;
  padding-left: 1em;
  padding-right: 1em;
}

#map-container {
  width: 100%;
  max-width: inherit;
  height: 210px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

#joblist-container {
  padding-top:2em;
  z-index: 200;
}

#search-container {
  z-index:300;
  position:sticky;
  top: 137px;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #e0e0e0;
  background-color: white;
  display: flex;
  flex-wrap: wrap;
}

.search-item, .job-meta-picto {
  margin-bottom: 1em;
}


.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #565b72;
  background-color: #fafafa;
  background-clip: padding-box;
  border: 1px;
  border-radius: 0.5em;
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  border-radius: 0.5em;
}

#job-counter {
  font-weight: bold;
}

.ville-select {
  display:flex;
  justify-content: normal;
}

.logo-select {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 4px;
  width: 32px;
  margin-right: 1em;
}

.filter-image {
  width: 100%;
  cursor: pointer;
  transition: filter 0.3s;
}

.ville-selected {
  background-color: #aaa;
}


.grid-container {
  display: flex;
  flex-wrap: wrap;
}
.grid-item {
  width: 100%;
  padding: 1em 0.5em;
}

#pagination-container {
  display:flex;
  justify-content: center;
}

ul.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
}


li.active .page {
    z-index: 3;
    color: #fff;
    background-color: #8950fc;
    border-color: #8950fc;
}


li .page, .page:visited {
    padding: .375rem .75rem;
    margin-left: 0.5em;
    margin-right: 0.5em;
    position: relative;
    display: block;
    color: #565b72;
    text-decoration: none;
    background-color: #fafafa;
    border: 1px solid #fafafa;
    border-radius: 5px;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

  
#map {
  min-height: 450px;
}


/* Cards */ 

.card {
  display:flex;
  padding: 1em;
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fff;
  height: 100%;
  cursor: pointer;
}

.card:hover {
  box-shadow: 1px 1px 6px #a0a0a0;
}

.card-logo {
  display: flex;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 16.666667%;
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
  justify-content: center; /* Centrer horizontalement */
  align-items: baseline; /* Centrer verticalement */
  height: 100%; /* Définir la hauteur de la div */
  padding-top: 1em;
}

.logo-container {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 4px;
}
.card-logo img {
  width: 100%;
}

.card-content {
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
}

.card h3 {
  color: #292e37;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1em;
}


.grey-block {
  padding: 5px;
  border: 1px solid #fafafa;
  border-radius: 6px;
  background-color: #fafafa;
  color: #565b72;
}

.card-postedon {
  margin-top: 0.5em;
  margin-bottom: 1em;
  color: #808294;
}

.card-contract {
  color: #8950fc;
  margin-bottom: 1.5em;
}

.card-action, .popup-action {
  display: flex;
  -webkit-box-pack: justify!important;
  -ms-flex-pack: justify!important;
  justify-content: space-between!important;
  padding-top: 0.5em;
}

.icon-container {
    background-image: url('img/picto/small-pin2.png');
    background-repeat: no-repeat;
    background-size: contain;
    padding-left: 1.5em;
    /* autres propriétés de style */
}

.card-popup {
  display:flex;
  padding: 1em;
  border: 1px solid #fff;
  border-radius: 10px;
  background-color: #fff;
  height: 100%;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  box-shadow: 15px 15px 7px 0px rgba(0,0,0,0.5);
}


.leaflet-popup-content {
  /*min-width: max-content!important;*/
  max-width: 500px;
  min-width: 325px;
  margin: 0;
}


.leaflet-popup-content p {
  margin-bottom: 0;
  margin-top:0;
}

.card-popup h3 {
  margin-bottom: 0.5em;
}

.card-popup p {
  margin-bottom: 1em;
}

.btn, .leaflet-container a.btn{
  background-color: #8950fc;
  color: #fff;
  padding: 6px 20px 5px;
  border: 1px solid #8950fc;
  text-transform: uppercase;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 17px;
  display: inline-block;
  transition: background-color 0.3s ease-in-out;
}

.btn:hover, .leaflet-container a.btn:hover {
  background-color: #7337ee;
  border-color: #7337ee
}


.btn-white, .leaflet-container a.btn-white {
  color: #979797;
  border: 1px solid #979797;
  background-color: white;
}

.btn-white:hover, .leaflet-container a.btn-white:hover {
  color: white;
  border-color:white;
  background-color: #979797;
}

.btn-bigapply, .bigapply:visited {
    border-radius: 6px;
    padding: 1em 2em;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: auto;
    margin-top: auto;
}

.btn-bigapply:hover {
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 8%);
  transform: scale(1.03);
}

.jobapply {
  margin-top: 2em;
  margin-bottom: 2em;
}


/* Clusters */
.outer-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #acb6b8;
    color: white;
    text-align: center;
    font-size: 18px;    
    line-height: 40px;
    margin-top: -20px;
    margin-left: -20px;
}

.inner-cluster {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: #565b72;
  color: white;
  text-align: center;
  font-size: 15px;    
  line-height: 30px;
}

footer {
  background-color: #18618C;
  padding: 2em 1em;
}

.footer-row {
  display: flex;
  flex-wrap:wrap;
  align-items: center;
}

.footer-links a, .footer-links a:visited {
  color: white;
  font-size: 1em;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  color: #fafafa;
}

a.copyright, a.copyright:visited {
  color: #fafafa;
}


/* Application modal */

/* Styles pour le bouton d'ouverture de la fenêtre modale */
#directapply-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center; /* Centrer verticalement */
  justify-content: center; /* Centrer horizontalement */
}

#directapply-popup .popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.25);
  width: 90%;
  max-width: 500px; /* Vous pouvez ajuster cette valeur en fonction de la largeur maximale souhaitée */
  position: relative;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 5px;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.close:hover,
.close:focus {
  color: #565b72;
  text-decoration: none;
}

.hidden {
  display: none;
}

#spinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #8950fc;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: auto;
  margin-top: 30px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#message-envoi {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  font-weight: normal;
  color: #8950fc;
}

#message-success {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #8950fc;
  margin-top: 6em;
  margin-bottom: 6em;
}


#message-success p {
  margin-bottom: 2em;
}

form label {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #a0a0a0;
  margin-bottom: -9px;
  margin-top: 18px;
  margin-left: 1em;
}

form span.lower-label {
  padding: 0px 0.5em; 
  background-color: white;
}

form input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #a0a0a0;
  font-size: 16px;
  font-family: sans-serif;
}

form input:focus-visible {
  border:2px solid #cbcbcb;
  outline: #cbcbcb 0px;
}

.popup-action {
  margin-top: 2em;
}

/* JobdDesc Modal */
.jobdesc-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  padding-top: 110px;
}

.jobdesc-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.25);
  max-width: 90%; 
  position: relative;
  margin: 10% auto;
}



.single-title h2 {
    font-size: 2em;
    text-align: left;
    color: #292e37;
    margin-bottom: 0.5rem;
}

.single-title .posted-on {
font-style: italic;
color: #808294;
}

.jobdescription h3 {
    color: #18618C;
    padding-bottom: 1em;
    padding-top: 1em;
    font-family: 'FFDIN';
    text-transform: uppercase;
}

.job-cadre {
  display:flex;
  flex-wrap: wrap;
  border: 2px solid #dfdfdf;
  padding: 1.25em 2em;
  border-radius: 10px;
  margin: 2em 0;
}
  .card-picto {
      float: left;
      height: 30px;
      margin-top: 3px;
      margin-right: 0.75em;
  }

.job-cadre .card-meta {
  margin-bottom: 0;
  margin-top: 0;
}
/* end of mobile first */

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.card-meta-value {
  font-weight: bold;
  line-height: 1.75;
}


#logo-right {
  display:none;
}

@media (min-width: 576px) {
.container, .container-sm {
    max-width: 540px;
  }
}


@media (min-width: 768px) {
  .container, .container-md, .container-sm {
      max-width: 720px;
    }
  #directapply-popup .popup-content {
    width: 70%;
  }
  
  #logo-right {
    display:block;
  }

}

@media (min-width: 992px) {
  #directapply-popup .popup-content {
    width: 55%;
  }
  .container, .container-lg, .container-md, .container-sm {
      max-width: 960px;
    }
  
  .col-lg-2 {
      flex: 0 0 auto;
      width: 16.6666666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-lg-5 {
      flex: 0 0 auto;
      width: 41.6666666667%;
  }
  
  .col-lg-6 {
      flex: 0 0 auto;
      width: 50%;
  }
  
  .col-lg-8 {
      flex: 0 0 auto;
      width: 66.666667%;
  }
  
  .sd-left-md-right {
    text-align: right;
  }
  
  .search-item, .job-meta-picto {
    margin-bottom: 0em;
  }
  
  .ville-select {
    justify-content: center;
  }
}


@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
      max-width: 1140px;
    }
  #directapply-popup .popup-content {
    width: 40%;
  }
  
  .jobdesc-modal-content {
    max-width: 70%;
  }
}

@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
      max-width: 1320px;
    }
    
  .jobdesc-modal-content {
    max-width: 65%;
  }
}

@media  (min-width: 768px) {
  #list-map-container {
      flex-direction: row;
      padding: 0;
  }
  
  #joblist-container {
    position: relative;
    padding: 0.5em 1em;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;  }
  
  #map-container {
    position:sticky;
    height: 100%;
    top: 137px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  #map {
    height: 450px;
    overflow: hidden;
  }
  .jobdesc-modal {
    padding-top: 80px;
  }
  
}

@media (min-width: 1441px){
  .grid-item {
      width: 50%;
  }
  
  .jobdesc-modal-content {
    max-width: 60%;
  }
  .jobdesc-modal {
    padding-top: 50px;
  }
}

@media (min-width: 2161px){
  .grid-item {
      width: 33.333333332%;
  }
  
  .jobdesc-modal-content {
    max-width: 50%;
  }
  .jobdesc-modal {
    padding-top: 0px;
  }
}


