/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.container {
  max-width: 1290px;
  margin: auto;
  padding-left: 30px;
  padding-right: 30px;
  margin-top: 150px;
  margin-bottom: 100px;
}

.page-template-page-offre-emploi h1 {
  margin-bottom: 32px;
}

#filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.flex.filter-bloc {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.flex.filter-bloc select {
    width: 100%;
}


.flex.filter-bloc label {
    white-space: nowrap;
}

#pagination-offres {
    display: flex;
    align-items: baseline;
	justify-content:center;
    gap: 10px;
}

.tag-type {
	font-size: 16px;
    text-transform: capitalize;
    font-family: 'Open Sans';
    padding: 0px 8px;
    border-radius: 999px;
    line-height: normal;
}

.tag-type.type-offre {
    background: #e2d3ff;
	color: #26005e;
}

.tag-type.type-alternance {
    background: #fffbd6;
	color: #6e5f01;
}

#pagination-offres a {
    text-decoration: none;    
}


.form-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.form-group label {
  width: fit-content;
  min-width: fit-content;
}

.form-group select {
  width: 100%;
}

#liste-offres {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  list-style: none;
  width: 100%;
}

#liste-offres1 {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  list-style: none;
  width: 100%;
}

.kb-row-layout-wrap.kb-row-layout-id1484_ccc136-9f.alignnone.wp-block-kadence-rowlayout,
#offres-globales > .kt-inside-inner-col {
width: 100%;
}

body .offre {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0px 2px 4px 0px rgba(13, 13, 104, 0.16);
  flex-direction:column;
  display: flex;
  justify-content: space-between;
}

body .offre p {
  margin-top: 0;
  margin-bottom: 16px;
}

body .btn-annonce {
  display: block;
  text-transform: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  width: 100%;
  text-align: center;
	border: 2px solid var(--global-palette-btn-bg, #3633e1);
    background: rgba(0, 0, 0, 0);
    color: var(--global-palette-btn-bg, #3633e1);
    padding: calc(.4em - 2px) calc(1em - 2px);
}

body .offre .date {
  font-size: 14px;
}

#liste-offres .offre .date {
  margin-bottom: 16px;
}

body .btn-annonce:hover {
border-color: var(--global-palette-btn-bg-hover, #2f2ffc);
    background: rgba(0, 0, 0, 0);
    color: var(--global-palette-btn-bg-hover, #2f2ffc);
}

body .flex-ville {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

body .flex-ville svg {
  width: 14px;
  height: 14px;
}

.titre-poste {
  font-size:20px;
  font-weight: 600;
}

.page-id-1732 .entry-content-wrap {
    background: #f7fafc;
}

#map-filters {
    margin-left: 16px;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.14);
    padding: 16px;
    min-width: 250px;
}

#map-filters h4 {
font-weight: 700;
}

#map-filters label {
    font-size: 16px;
}

#map-offres .leaflet-popup-content {
  margin: 16px;
}

#map-offres .leaflet-popup-content strong {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

#map-offres .leaflet-popup-content a {
    display: flex;
    margin-top: 6px;
    color: #F32745;
    gap: 3px;
    align-items: center;
    font-size: 14px;
}

#map-offres .leaflet-popup-close-button {
    display: none;
}

#map-offres .leaflet-popup-content-wrapper,
#map-offres .leaflet-popup-tip {
	box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.14);
}

#map-offres {
    min-width: 500px;
    width: 80%;
    height: 500px;
    position: relative;
    border-radius: 16px;
    font-family: "Open sans";
}
.map-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    border: 5px solid #ccc;
    border-top: 5px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}



@media screen and (max-width: 900px) {
    #container-offre {
        display: flex;
        flex-direction: column-reverse;
    }
    
    #map-filters {
        margin-left: 0;
        margin-bottom: 16px;
    }
    
    #map-offres {
        min-width: 100%;
        width: 100%;
    }

}

#container-offre {
    display: flex;
}


@media screen and (min-width: 600px) {
  body .offre {
    width: calc(100% / 2 - 24px);
  }
}

@media screen and (min-width: 960px) {
 body .offre {
    width: calc(100% / 3 - 24px);
  }
}

@media screen and (min-width: 1024px) {
    #filters {
        flex-wrap:nowrap;
    }
}

@media screen and (min-width: 1260px) {
   body .offre {
      width: calc(100% / 3 - 22px);
  }
}

.map-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 5px solid #ccc;
    border-top: 5px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.map-mini-loader {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    z-index: 999;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}
.custom-map-icon .marker-dot {
    width: 16px;
    height: 16px;
    background-color: #ff2744;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

