/* wp-content/themes/oceanwp-child/css/job-search-bar.css */

/* ------------------------------------------------------
   BARRE DE RECHERCHE
--------------------------------------------------------- */
.homepage-job-search {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
    height: 60px;
    margin: 0 auto;
}

/* Styles des champs de saisie */
.homepage-job-search .search_keywords,
.homepage-job-search .search_location {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.homepage-job-search .search_contract_type select,
.homepage-job-search .search_salary select {
    height: 100%;
    width:160px;
    border: none;
    padding: 0 15px;
    font-size: 16px;
    color: #555;
    background-color: transparent;
    outline: none;
    display: flex;
    align-items: center;
}

.homepage-job-search input {
    width: 100%;
    height: 100%;
    border: none;
    padding-left: 60px !important; /* espace suffisant pour l'icône */
    font-size: 16px !important;
    color: #555;
    background-color: transparent;
    outline: none;
}

.homepage-job-search select {
    width: 150px;
}

/* Séparateur fin entre les champs */
.homepage-job-search .search_keywords {
    border-right: 1px solid #e7e7e7;
}

/* Icônes dans les champs */
.homepage-job-search .search_keywords::before,
.homepage-job-search .search_location::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9b9b9b;
    pointer-events: none;
}

/* icône loupe à gauche */
.homepage-job-search .search_keywords::before {
    content: "\f002"; /* loupe */
    left: 15px;
}

/* icône localisation à gauche */
.homepage-job-search .search_location::before {
    content: "\f3c5"; /* map-marker-alt */
    left: 15px;
}

/* Bouton Voir les offres */
.homepage-job-search .search_submit button {
    background-color: #DBC693;
    text-transform: none;
    height: 60px;
    color: #000000;
    padding: 14px 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0 8px 8px 0; /* uniquement coins droits arrondis */
    transition: background-color 0.3s ease;
}

.homepage-job-search .search_submit button:hover {
    background-color: #242424;
    color: #FFFFFF;
}

/* Placeholder style pour correspondre exactement à l'image */
.homepage-job-search input::placeholder {
    color: #9b9b9b;
    font-weight: normal;
}

/* Responsive mobile-first (vertical en mobile) */
@media (max-width: 768px) {
    .search_contract_type {
        display: none
    }

    .search_salary {
        display: none
    }

    .homepage-job-search {
        flex-direction: column;
        height: auto; /* Permet à la barre de recherche de s'adapter en hauteur */
        width: 100%  !important;
        max-width: 100% !important; /* Pour éviter une largeur trop importante */
        margin: 0 auto; /* Centre la barre de recherche */
    }

    .homepage-job-search .search_keywords,
    .homepage-job-search .search_location {
        width: 100% !important;
        display: block;
        border-right: none;
        border-bottom: 1px solid #e7e7e7;
        height: 50px; /* Ajuste la hauteur des champs */
    }

    .homepage-job-search input {
        height: 40px; /* Uniformise la hauteur des champs */
        padding-left: 45px !important; /* Assure un bon positionnement de l'icône */
    }

    .homepage-job-search .search_submit {
        width: 100%;
    }

    .homepage-job-search .search_submit button {
        width: 100% !important;
        height: 40px;
        border-radius: 0 0 8px 8px; /* Coins arrondis uniquement en bas */
    }
}
