/*
Theme Name: OceanWP Child
Template: oceanwp
Author: Anthony Esteve
Description: Un thème enfant pour OceanWP
Version: 1.2.0
*/

/* ------------------------------------------------------
   RÉINITIALISATION & STYLES GLOBAUX
--------------------------------------------------------- */

/* Masquer le bandeau de titre par défaut */
.page-header {
    display: none;
    margin: 0;
}

/* Réinitialisation de base */
* {
    box-sizing: border-box;
}

/* Styles globaux */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Pour les navigateurs webkit (Chrome, Safari) */
.job-listings::-webkit-scrollbar,
.job-details::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}
.job-listings::-webkit-scrollbar-track,
.job-details::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}
.job-listings::-webkit-scrollbar-thumb,
.job-details::-webkit-scrollbar-thumb {
    background: #ccc !important; 
    border-radius: 10px !important;
}
.job-listings::-webkit-scrollbar-thumb:hover,
.job-details::-webkit-scrollbar-thumb:hover {
    background: #999 !important;
}
.job-listings,
.job-details {
    scrollbar-width: thin !important;
    scrollbar-color: #ccc #f1f1f1 !important;
}

/* ------------------------------------------------------
   CONTENEUR DU TABLEAU D'OFFRES & MISE EN PAGE
--------------------------------------------------------- */
.job-board-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px; /* espace réduit entre les sections */
}

.job-board-content {
    display: flex;
    align-items: stretch;
    gap: 5px;
    height: calc(100vh - 120px);
}

/* ------------------------------------------------------
   BARRE DE RECHERCHE
--------------------------------------------------------- */


/* ------------------------------------------------------
   FILTRES
--------------------------------------------------------- */
.job-board-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.job-board-filters strong {
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
}

.filter-group {
    position: relative;
}

.filter-group select {
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #f8f8f8;
    color: #666;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: #666;
}

.filter-group select:focus {
    border-color: #DBC693;
}

.filter-group::after {
    font-size: 14px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #DBC693;
    pointer-events: none;
}

/* ------------------------------------------------------
   LISTE DES OFFRES
--------------------------------------------------------- */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    margin-left: 20px;
    align-items: center;
    overflow-y: auto;
    background-color: transparent;
}

.job-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 10px 0 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.job-item:hover {
    box-shadow: 0px 4px 8px rgba(141, 141, 141, 0.2), /* Ombre en bas */
                0px -4px 8px rgba(141, 141, 141, 0.1), /* Ombre en haut */
                4px 0px 8px rgba(141, 141, 141, 0.15), /* Ombre à droite */
                -4px 0px 8px rgba(141, 141, 141, 0.15); /* Ombre à gauche */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.job-item:hover h4 {
    color: #DBC693;
    transition: color 0.3s ease, transform 0.3s ease;
}

.job-item.selected {
    border: 2px solid #DBC693 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
    background-color: #f9f9f9;
}

.job-item h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.job-item .job-location {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.job-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

/* Styles pour les tags avec variantes */
.job-item .tag {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 25px;
    background-color: #e6fdef !important;
    color: #58a470;
}

/* Style pour afficher le salaire en orange clair */
.job-item .salary-tag {
    background-color: #fdede5 !important;
    font-size: 12px;
    color: #b38b61 !important;
    font-weight: 500;
}

/* Style pour afficher l'expérience en violet clair */
.job-item .start-date-tag {
    background-color: #f3e2f9 !important;
    font-size: 12px;
    color: #4f327c !important;
    font-weight: 500;
}

/* Description courte avec troncature */
.job-item .description {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
    height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Détails supplémentaires de l'offre */
.job-item .details {
    font-size: 12px;
    color: #4c4c4c !important;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
/* Style de la date de publication ou du message "Dès que possible" */
.posted-days {
    color: #333;
    font-weight: 600;
}

/* ------------------------------------------------------
   DÉTAILS DE L'OFFRE SÉLECTIONNÉE
--------------------------------------------------------- */
/* Forcer la structure en colonne pour que l'en-tête soit au-dessus du contenu */
.job-details-wrapper {
    flex-direction: column !important;
}

.job-details {
    flex: 2;
    background-color: #fff;
    border-radius: 10px;
    margin: 10px 10px 10px 0 !important;
    padding: 10px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Styles existants pour d'autres éléments dans .job-details */
.job-details .job-content {
    padding: 10px !important;
    border-radius: 8px;
    background-color: #fff;
}

.job-details h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.job-details .separator {
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.job-details .details {
    margin-bottom: 20px;
}
.job-details .details p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    line-height: 1.6;
}
.job-details .details p strong {
    color: #333;
    font-weight: bold;
}
.job-details .details h3 {
    font-size: 22px !important;
    font-weight: bold;
    margin-bottom: 10px;
}
.job-details .details .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Bouton d'action dans la section des détails */
.job-details button {
    margin-top: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.job-details button:hover {
    background-color: #0056b3;
}

/* ------------------------------------------------------
   NOUVELLE STRUCTURE DE LA VUE DÉTAILLÉE DE L'OFFRE
--------------------------------------------------------- */
/* MODIFICATION pour aligner sur une seule ligne :
   le titre, la localisation, la base horaire, l'expérience et le bouton "Postuler" */
.job-details-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}
.job-details-header .header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.job-details-header .header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.job-details-header .header-left h2 {
    font-size: 28px;
    margin: 0;
    color: #333;
}
.job-details-header .btn-postuler {
    margin: 0;
}
.job-details-header .header-right p {
    margin: 0;
    font-size: 16px;
}

/* Séparateur horizontal pleine largeur */
.full-width-separator {
    border: 0;
    border-top: 2px solid #e0e0e0;
    margin: 15px 0;
}

/* Contenu principal de la vue détaillée en deux colonnes */
.job-details-content {
    display: flex;
    gap: 20px;
    padding-top: 15px;
}
.details-left {
    flex: 2;
}
.details-right {
    flex: 1;
    border-left: 2px solid #e0e0e0;
    padding-left: 20px;
}

/* Styles pour la partie gauche : Description et Profil candidat */
.presentation-societe h3,
.description-section h3,
.candidate-profile h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #23395B !important;
}

.description-section .job-description, .job-presentation-societe, .candidate-profile {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px !important;
    font-weight: 400;
    font-family: 'Inter', sans-serif !important;
}

/* Styles pour la partie droite : Informations complémentaires */
.details-right section {
    margin-bottom: 20px;
}
.details-right section h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #23395B !important;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.details-right section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.details-right section ul li {
    font-size: 14px;
    margin: 5px 0;
}
.details-right section ul li strong {
    color: #333;
}

/* ------------------------------------------------------
   CONTENEUR DES DÉTAILS & BARRE LATÉRALE (ancienne structure)
--------------------------------------------------------- */
.job-details-wrapper {
    padding: 20px 40px;
    display: flex;
    gap: 20px;
    align-items: stretch !important;
}

.job-details-main {
    flex: 2;
}

.job-details-sidebar {
    flex: 1;
    background-color: #fff;
    margin-left: 20px;
    padding: 20px;
    min-width: 260px;
    border-left: 2px solid #e0e0e0;
    height: 100% !important;
}

/* Séparateur horizontal entre sections */
.section-separator {
    border: 0;
    border-top: 2px solid #ddd;
    margin: 20px 0;
}

.details-right ul li i {
    display: inline-block;
    width: 30px;  /* Ajustez cette largeur en fonction de vos besoins */
    text-align: center;
    margin-right: 5px;
}

/* ------------------------------------------------------
   BOUTONS DIVERS
--------------------------------------------------------- */
/* Bouton "Postuler" */
.btn-postuler {
    display: inline-block;
    padding: 10px 20px;
    background-color: #DBC693;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif !important;
    transition: background-color 0.3s;
    align-self: center;
    margin-top: 10px; /* ou ajuster selon le besoin */
    margin-left: 20px !important;
}
.btn-postuler:hover {
    background-color: #e8c15e;
    text-decoration: none;
    color: #fff;
}


.application-form {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
  }
  
  .application-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
  }
  
  .application-form .form-group {
    flex: 1;
  }
  
  .application-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .application-form input,
  .application-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .application-form button.submit-application-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #DBC693;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  .application-form h3 {
    margin-top: 20px;  /* espace au-dessus du titre */
    margin-bottom: 15px;  /* espace en dessous du titre, si besoin */
}

.required {
    color: red;
}
  .application-form button.submit-application-btn:hover {
    background-color: #e8c15e;
}
/* ------------------------------------------------------
   RESPONSIVITÉ POUR TABLETTE & MOBILE
--------------------------------------------------------- */
@media (max-width: 968px) {
    /* La zone principale passe en colonne */
    .job-board-content {
        flex-direction: column;
    }
    /* Masquer la zone de détails par défaut */
    .job-details {
        display: none !important;
    }
    /* Affichage en overlay dès qu’on ajoute la classe .active */
    .job-details.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 10000;
        overflow-y: auto;
        padding: 20px;
    }
    /* Réorganisation de la structure en colonne */
    .job-details-content {
        flex-direction: column;
    }
    .job-details-header {
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.8;
    }
    /* Style du bouton de fermeture de l’overlay */
    .close-details {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
    }
    /* Cibler uniquement le pop-up de détails */
    .job-details-modal .details-right {
        border: none !important;
        padding-left: 0 !important;
    }
    
    .job-details-modal .job-details-header {
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }
    
    /* Si vous souhaitez ajouter UN trait horizontal entre le profil candidat et les infos générales */
    .job-details-modal .separator {
        display: block;
        border-top: 1px solid #e0e0e0;
        margin: 15px 0;
    }
    .mob-menu-header-holder mobmenu {
        display: block !important;
    }


    .mobile-search-layout {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* Deux colonnes équilibrées */
        gap: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 15px;
        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
        max-width: 100%;
        width: 100%;
    }

    .search-field {
        display: flex;
        align-items: center;
        background: #fff;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 10px;
        flex: 1;
    }

    .search-field i {
        margin-right: 10px;
        color: #666;
        font-size: 16px;
    }

    .search-field input,
    .search-field select {
        width: 100%;
        height: 40px;
        border: none;
        outline: none;
        font-size: 16px;
        color: #333;
        background: none;
        flex: 1;
    }
 
    /* Ajustement du bouton */
    .mobile-search-layout button:hover {
        background-color: #e8c15e;
    }

    .mobile-search-layout button i {
        font-size: 16px;
        color: white;
    }

    
}