/* ============================================================
   recherche-jobs.css
   Styles de la barre de recherche (cartes Job / Alternance) et
   du nouveau haut de page « Tous nos job ».

   Le composant ".hs2-*" est repris à l'identique de la barre de
   recherche de la page d'accueil afin d'avoir le même rendu
   partout (factorisation). La page d'accueil garde pour l'instant
   sa propre copie en ligne ; on pourra la faire pointer sur ce
   fichier plus tard pour supprimer le doublon.
   ============================================================ */

/* ===== Composant barre de recherche (cartes) ===== */
.hs2-box {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
/* Cartes Job / Alternance */
.hs2-card { position: relative; flex: 1 1 230px; }
.hs2-card__btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hs2-card__btn:hover { border-color: #c2ccdd; }
.hs2-card--active .hs2-card__btn { border-color: #3637f5; box-shadow: 0 0 0 3px rgba(54,55,245,.12); }
.hs2-card__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.hs2-card__icon--job { background: #e9efff; color: #3637f5; }
.hs2-card__icon--alt { background: #f1e9ff; color: #7c3aed; }
.hs2-card__texts { display: flex; flex-direction: column; min-width: 0; }
.hs2-card__title { font-weight: 700; color: #16355a; font-size: 16px; line-height: 1.2; }
.hs2-card__sub { font-size: 12.5px; color: #8a94a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs2-card__chev { margin-left: auto; color: #9aa5b8; font-size: 13px; transition: transform .2s ease; }
.hs2-card--active .hs2-card__chev { transform: rotate(180deg); }
/* Menu déroulant des catégories */
.hs2-panel {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    z-index: 60;
    display: none;
    max-height: 340px;
    overflow-y: auto;
}
.hs2-panel.open { display: block; }
.hs2-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.hs2-item:hover { background: #f3f6fb; }
.hs2-item__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.hs2-item__icon--job { background: #e9efff; color: #3637f5; }
.hs2-item__icon--alt { background: #f1e9ff; color: #7c3aed; }
.hs2-item__texts { display: flex; flex-direction: column; }
.hs2-item__name { font-weight: 600; color: #16355a; font-size: 14.5px; }
.hs2-item__desc { font-size: 12px; color: #8a94a6; }
.hs2-item--all { justify-content: flex-start; }
.hs2-see-all { color: #3637f5; font-weight: 700; font-size: 14px; padding: 4px 0; }
.hs2-see-all i { font-size: 11px; margin-left: 4px; }
/* Petit titre de section dans le menu déroulant (ex. « Jobs », « Alternances ») */
.hs2-group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9aa5b8;
    padding: 10px 10px 4px;
}
/* Champ ville */
.hs2-city { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.hs2-city__pin {
    position: absolute;
    left: 16px;
    color: #3637f5;
    font-size: 15px;
    pointer-events: none;
}
.hs2-city__input {
    width: 100%;
    height: 100%;
    min-height: 56px;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    padding: 10px 16px 10px 40px;
    font-size: 14px;
}
.hs2-city__input:focus { outline: none; border-color: #3637f5; }
.hs2-suggestions {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 60;
    display: none;
    max-height: 260px;
    overflow-y: auto;
}
.hs2-suggestion { padding: 9px 16px; font-size: 14px; color: #16355a; cursor: pointer; }
.hs2-suggestion:hover { background: #eef4ff; }
/* Bouton Rechercher */
.hs2-search-btn {
    flex: 0 0 auto;
    border: none;
    background: #2563eb;
    color: #ffffff;
    border-radius: 14px;
    padding: 0 28px;
    min-height: 56px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s ease;
}
.hs2-search-btn:hover { background: #1d4ed8; }

/* ===== Haut de page « Tous nos job » (titre + image) ===== */
.jh-hero {
    padding: 50px 0 30px;
    background: #ffffff;
}
/* Deux colonnes : texte à gauche, illustration à droite */
.jh-hero__grid {
    display: flex;
    align-items: center;
    gap: 40px;
}
.jh-hero__text { flex: 1 1 0; min-width: 0; }
.jh-hero__title {
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    color: #16355a;
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}
/* Chaque morceau du titre sur sa propre ligne */
.jh-hero__line { display: block; }
/* Les mots « jobs » et « alternances » mis en avant en bleu */
.jh-hero__title .accent { color: #2563eb; }
/* Ligne mise en avant : sert de repère pour positionner le trait courbe */
.jh-hero__line--hl {
    position: relative;
    width: fit-content;
    padding-bottom: 8px;
}
/* Trait courbe « tracé à la main » sous les mots mis en avant */
.jh-hero__swoosh {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 14px;
    overflow: visible;
}
.jh-hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7c93;
    margin: 0;
}
.jh-hero__media { flex: 0 0 46%; max-width: 46%; }
.jh-hero__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

/* Groupe « Localisation » : libellé au-dessus du champ ville */
.jh-field { display: flex; flex-direction: column; flex: 1 1 240px; }
.jh-field__label {
    font-size: 12px;
    font-weight: 700;
    color: #7a8593;
    margin: 0 0 6px 4px;
}
.jh-field .hs2-city { flex: 1 1 auto; }

/* Case « Tout nos job près de chez toi » */
.jh-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    min-height: 56px;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
    color: #16355a;
    cursor: pointer;
    margin: 0;
}
.jh-check input { width: 18px; height: 18px; accent-color: #2563eb; cursor: pointer; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .jh-hero__grid { flex-direction: column; align-items: stretch; }
    .jh-hero__media { flex-basis: auto; max-width: 100%; order: -1; }
    .jh-hero__title { font-size: 32px; }
}
@media (max-width: 768px) {
    .hs2-search-btn { width: 100%; justify-content: center; }
    .jh-check { width: 100%; }
}
