/* ============================================================
   HireKazi — Pages publiques (offre détail, etc.)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body.public-body {
    background: #F0F4F8;
    font-family: 'Inter', sans-serif;
    color: #1A2E3D;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar (même esprit que la landing, en statique — pas de hero
   sombre ici pour justifier le fond transparent + scroll) ── */
.l-nav--solid {
    background: var(--color-dark);
    padding: 16px 0;
}
.l-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.l-nav__logo { flex-shrink: 0; line-height: 0; }
.l-nav__links { display: flex; align-items: center; gap: 8px; }
.l-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}
.l-nav__link:hover { color: var(--color-white); background: rgba(255,255,255,.06); }
.l-nav__cta {
    background: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 18px;
}
.l-nav__cta:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.l-nav__dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    padding: 8px 18px 8px 8px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
    white-space: nowrap;
}
.l-nav__dashboard-btn:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39,174,96,.3); }
.l-nav__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.4);
}
.l-nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.l-nav__burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: all .2s; }

/* ── Main ── */
.public-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ── Breadcrumb ── */
.job-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8A9BB0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.job-breadcrumb a { color: #1E77B8; text-decoration: none; }
.job-breadcrumb a:hover { text-decoration: underline; }
.job-breadcrumb i { font-size: 12px; }

/* ── Alertes ── */
.job-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.job-alert--closed  { background: #FEF9E7; color: #9A7D0A; border: 1px solid #FCE8B0; }
.job-alert--success { background: #EAFAF1; color: #1A5E30; border: 1px solid #A9DFBF; }
.job-alert--error   { background: #FDEDEC; color: #922B21; border: 1px solid #F5B7B1; }
.job-alert i { font-size: 18px; flex-shrink: 0; }
.job-alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── Mise en page 2 colonnes ── */
.job-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.job-layout__main { flex: 1 1 auto; min-width: 0; }
.job-layout__sidebar {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Header offre ── */
.job-header-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8EF;
    padding: 28px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.job-header-card--featured {
    border-color: #F0A500;
    background: linear-gradient(160deg, #FFFFFF 0%, #FFFBEE 100%);
    box-shadow: 0 4px 20px rgba(243,156,18,.12);
}
.job-header-card__ribbon {
    position: absolute;
    top: 16px; right: -1px;
    background: linear-gradient(135deg, #F39C12 0%, #E8A000 100%);
    color: white;
    font-size: 10px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 7px 0 0 7px;
    display: flex; align-items: center; gap: 5px;
    box-shadow: -2px 2px 8px rgba(232,160,0,.3);
}

/* ── Carte sidebar (Postuler / Aperçu) ── */
.job-sidebar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8EF;
    padding: 24px;
}
.job-sidebar-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f263d;
    margin: 0 0 16px;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.job-badge--applied { background: #EAFAF1; color: #1A5E30; }

.job-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f263d;
    line-height: 1.2;
    margin: 0 0 14px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.job-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5A7085;
}
.job-meta__item--company { color: #1A2E3D; font-weight: 600; }
.job-meta__item i { font-size: 16px; color: #8A9BB0; }
.job-company-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

.job-meta__company-link {
    font-size: 13px;
    font-weight: 600;
    color: #1E77B8;
    text-decoration: none;
    background: #EBF5FB;
    padding: 4px 10px;
    border-radius: 100px;
}
.job-meta__company-link:hover { text-decoration: underline; }

.job-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #EAFAF1;
    color: #1A5E30;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: background .15s;
}
.job-share-btn:hover { background: #D5F5E3; }
.job-share-btn i { font-size: 16px; }

.job-overview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.job-overview__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EEF1F4;
}
.job-overview__item:last-child { padding-bottom: 0; border-bottom: none; }
.job-overview__item i { font-size: 17px; color: #00C16E; margin-top: 2px; flex-shrink: 0; }
.job-overview__label { font-size: 11.5px; color: #8A9BB0; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 3px; }
.job-overview__value { font-size: 13.5px; font-weight: 700; color: #1A2E3D; margin: 0; line-height: 1.3; }
.job-overview__item--accent {
    background: #F8FFFA;
    border-bottom: none;
    border-radius: 10px;
    padding: 10px 12px;
    margin: -10px -12px 4px;
}
.job-overview__item--accent .job-overview__value { color: #1A5E30; }

/* ── CTA boutons ── */
.job-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .15s;
    width: 100%;
}
.job-btn--primary { background: #00C16E; color: white; }
.job-btn--primary:hover { background: #219a52; color: white; }
.job-btn--applied {
    background: #EAFAF1; color: #1A5E30; cursor: default;
}
.job-btn--disabled {
    background: #F4F4F4; color: #8A9BB0; cursor: not-allowed;
}
.job-btn--lg { padding: 16px 32px; font-size: 16px; }

.job-cta-note {
    text-align: center;
    font-size: 13px;
    color: #8A9BB0;
    margin: 12px 0 0;
}
.job-cta-note a { color: #1E77B8; font-weight: 600; text-decoration: none; }
.job-cta-note a:hover { text-decoration: underline; }

.job-cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 12.5px;
    color: #1A5E30;
    background: #EAFAF1;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0 0;
}
.job-cta-trust i { font-size: 14px; flex-shrink: 0; }

/* ── Sections ── */
.job-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8EF;
    padding: 28px 32px;
    margin-bottom: 20px;
}
.job-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f263d;
    margin: 0 0 16px;
}
.job-section__title i { color: #00C16E; font-size: 18px; }

/* ── Compétences ── */
.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.job-skill-tag {
    background: #EBF5FB;
    color: #003A60;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
}

/* ── Description (markdown rendu) ── */
.job-description {
    font-size: 15px;
    line-height: 1.8;
    color: #2D4A5F;
}
.job-md-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0f263d;
    margin: 24px 0 10px;
}
.job-md-heading--lg { font-size: 1.3rem; }
.job-md-heading:not(.job-md-heading--lg) { font-size: 1.05rem; }
.job-md-para { margin: 0 0 12px; }
.job-md-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.job-md-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.job-md-bullet { color: #00C16E; flex-shrink: 0; margin-top: 2px; }
.job-md-divider { border: none; border-top: 1px solid #E2E8EF; margin: 20px 0; }

/* ── CTA bas de page ── */
.job-footer-cta {
    text-align: center;
    padding: 32px;
}

/* ── Autres offres ── */
.job-related__grid { display: flex; flex-direction: column; gap: 12px; }
.job-related__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #E2E8EF;
    border-radius: 12px;
    text-decoration: none;
    transition: all .15s;
}
.job-related__card:hover { border-color: #00C16E; background: #F8FFFA; }
.job-related__card--featured { border-color: #E8A000; background: #FFFBEE; }
.job-related__card--featured:hover { box-shadow: 0 4px 12px rgba(232,160,0,.2); }
.job-related__featured-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; color: #B7860B;
    margin-left: 6px; vertical-align: middle;
}
.job-related__logo {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.job-related__logo--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #F2F3F4; color: #8A9BB0; font-size: 18px;
}
.job-related__info { flex: 1; min-width: 0; }
.job-related__title { font-size: 14.5px; font-weight: 700; color: #1A2E3D; margin: 0 0 2px; }
.job-related__meta { font-size: 13px; color: #8A9BB0; margin: 0; }
.job-related__arrow { color: #C4CDD5; flex-shrink: 0; }

/* ── Retour ── */
.job-back {
    text-align: center;
    margin-top: 12px;
}
.job-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5A7085;
    text-decoration: none;
}
.job-back a:hover { color: #1A2E3D; }

/* ── Footer (même esprit que la landing) ── */
.l-footer {
    background: #060E18;
    color: rgba(255,255,255,.6);
    padding: 64px 32px 32px;
    margin-top: 40px;
}
.l-footer__top {
    max-width: 1280px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
}
.l-footer__logo { line-height: 0; margin-bottom: 14px; }
.l-footer__desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.l-footer__socials { display: flex; gap: 10px; }
.l-footer__socials a {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: all .15s;
}
.l-footer__socials a:hover { background: rgba(255,255,255,.12); color: var(--color-white); }
.l-footer__col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
}
.l-footer__link {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    padding: 5px 0;
    transition: color .15s;
}
.l-footer__link:hover { color: var(--color-white); }
.l-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,.35);
}

/* ── Page liste de toutes les offres (/offres) ── */
.jobs-list-header { text-align: center; margin-bottom: 28px; }
.jobs-list-header__title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f263d;
    margin: 0 0 8px;
}
.jobs-list-header__count { font-size: 14px; color: #5A7085; margin: 0; }

.jobs-list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    border: 1px solid #E2E8EF;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 28px;
    align-items: center;
}
.jobs-list-filters__field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8EF;
    border-radius: 10px;
    padding: 10px 14px;
    flex: 1 1 180px;
}
.jobs-list-filters__field--grow { flex: 2 1 240px; }
.jobs-list-filters__field i { color: #8A9BB0; font-size: 16px; flex-shrink: 0; }
.jobs-list-filters__field input,
.jobs-list-filters__field select {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: #1A2E3D;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.jobs-list-filters__submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00C16E;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.jobs-list-filters__submit:hover { background: #219a52; }
.jobs-list-filters__reset {
    font-size: 13px;
    color: #8A9BB0;
    text-decoration: underline;
    white-space: nowrap;
}

.jobs-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8A9BB0;
}
.jobs-list-empty i { font-size: 40px; margin-bottom: 12px; display: block; }
.jobs-list-empty a { display: inline-block; margin-top: 12px; color: #1E77B8; font-weight: 600; text-decoration: none; }

.jobs-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.jobs-list-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: white;
    border: 1px solid #E2E8EF;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    transition: all .2s;
}
.jobs-list-card:hover { border-color: #00C16E; box-shadow: 0 4px 16px rgba(39,174,96,.12); transform: translateY(-2px); }

.jobs-list-card--featured {
    border-color: #E8A000;
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFBEE 100%);
    box-shadow: 0 4px 20px rgba(232,160,0,.15);
    position: relative;
    overflow: hidden;
}
.jobs-list-card--featured:hover { box-shadow: 0 6px 24px rgba(232,160,0,.25); }

.jobs-list-card__featured-ribbon {
    position: absolute;
    top: 14px; right: -1px;
    background: linear-gradient(135deg, #F39C12 0%, #E8A000 100%); color: white;
    font-size: 10px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 6px 0 0 6px;
    display: flex; align-items: center; gap: 4px;
}
.jobs-list-card__logo--featured { background: #FEF9E7; color: #E8A000; }

.jobs-list-card__head { display: flex; align-items: center; gap: 14px; }
.jobs-list-card__logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: white; padding: 4px; border: 1px solid #EEF1F4; flex-shrink: 0; }
.jobs-list-card__logo--placeholder { display: flex; align-items: center; justify-content: center; background: #F0F4F8; color: #8A9BB0; font-size: 20px; border: none; }
.jobs-list-card__title { font-size: 16.5px; font-weight: 700; color: #0f263d; margin: 0; line-height: 1.35; }

.jobs-list-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.jobs-list-card__meta-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: #5A7085;
}
.jobs-list-card__meta-item i { font-size: 15px; color: #8A9BB0; flex-shrink: 0; }
.jobs-list-card__meta-item--salary { color: #1A5E30; font-weight: 600; }
.jobs-list-card__meta-item--salary i { color: #00C16E; }

.jobs-list-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.jobs-list-card__tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 100px;
}
.jobs-list-card__tag--type { color: #1E77B8; background: #EBF5FB; }
.jobs-list-card__tag--featured { color: #9A7D0A; background: #FEF9E7; }
.jobs-list-card__tag--featured i { font-size: 12px; }
.jobs-list-card__tag--new { color: #1A5E30; background: #EAFAF1; }

.jobs-list-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.jobs-list-pagination__link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    color: #5A7085;
    background: white;
    border: 1px solid #E2E8EF;
    text-decoration: none;
}
.jobs-list-pagination__link:hover { border-color: #00C16E; color: #00C16E; }
.jobs-list-pagination__link--active { background: #00C16E; color: white; border-color: #00C16E; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .job-layout { flex-direction: column; }
    .job-layout__sidebar { width: 100%; flex: 1 1 auto; position: static; }
    .job-layout__sidebar { order: -1; } /* CTA + aperçu avant la description sur mobile */
}
@media (max-width: 700px) {
    .job-header-card { padding: 22px; }
    .job-title { font-size: 1.4rem; }
    .job-section { padding: 20px; }
    .jobs-list-grid { grid-template-columns: 1fr; }
    .jobs-list-header__title { font-size: 1.5rem; }
    .jobs-list-filters { flex-direction: column; align-items: stretch; }
    /* En colonne, l'axe principal devient vertical : on empêche flex-basis (180px/240px)
       d'imposer une hauteur géante à chaque champ. */
    .jobs-list-filters__field,
    .jobs-list-filters__field--grow { flex: 0 0 auto; }
    .jobs-list-filters__submit { justify-content: center; }
    .l-nav__links    { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(11,25,41,.98); flex-direction: column; padding: 24px; gap: 4px; border-top: 1px solid rgba(255,255,255,.08); z-index: 99; }
    .l-nav__links.open { display: flex; }
    .l-nav__burger   { display: flex; }
    .l-footer__top   { grid-template-columns: 1fr; }
}