/* =========================
    Hero
========================= */

#careers-hero {
    position: relative;
    min-height: 80svh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.careers-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 14, 44, 0.68) 0%,
        rgba(8, 14, 44, 0.38) 100%
    );
}


/* =========================
    Offres
========================= */

.job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(8, 14, 44, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(8, 14, 44, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
    border-color: rgba(var(--isatis-warning-rgb), 0.3);
    box-shadow: 0 8px 24px rgba(8, 14, 44, 0.08);
}

.job-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--isatis-primary);
}

.job-contract {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--isatis-warning);
    background: rgba(var(--isatis-warning-rgb), 0.1);
    border-radius: 25px;
    padding: 4px 12px;
    white-space: nowrap;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: var(--isatis-muted);
    margin-bottom: .75rem;
}

.job-desc {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.6;
    flex-grow: 1;
}

.job-cta {
    display: inline-flex;
    align-items: center;
    font-size: .875rem;
    font-weight: 600;
    color: var(--isatis-primary);
    text-decoration: none;
    border: 2px solid var(--isatis-primary);
    border-radius: 25px;
    padding: 7px 20px;
    align-self: flex-start;
    transition: background 0.2s ease, color 0.2s ease;
}

.job-cta:hover {
    background: var(--isatis-primary);
    color: #fff;
}

.job-missions {
    padding-left: 1.1rem;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.job-missions li {
    font-size: .85rem;
    color: #4b5563;
    line-height: 1.5;
}

.job-techs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.job-tech {
    font-size: .75rem;
    font-weight: 600;
    color: var(--isatis-secondary);
    background: rgba(var(--isatis-secondary-rgb), 0.08);
    border-radius: 25px;
    padding: 3px 10px;
}

.job-profile {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.6;
    border-left: 3px solid rgba(var(--isatis-warning-rgb), 0.4);
    padding-left: .75rem;
    margin: 0;
    flex-grow: 1;
}


/* =========================
    Aucune offre
========================= */

.careers-empty {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid rgba(8, 14, 44, 0.06);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(8, 14, 44, 0.04);
}

.careers-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(var(--isatis-warning-rgb), 0.1);
    color: var(--isatis-warning);
    margin-bottom: 1.25rem;
}

.careers-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--isatis-primary);
    margin-bottom: .5rem;
}

.careers-empty-text {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.jobs-grid > .col:last-child:nth-child(odd) {
    margin-inline: auto;
}


/* =========================
    Processus de candidature
========================= */

.career-steps {
    display: flex;
    flex-direction: column;
}

.career-step {
    position: relative;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(208, 208, 208, 0.5);
    overflow: hidden;
}

.career-step:last-child {
    border-bottom: 1px solid rgba(208, 208, 208, 0.5);
}

.career-step-ghost {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(6rem, 14vw, 10rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(8, 14, 44, 0.04);
    pointer-events: none;
    user-select: none;
}

.career-step-inner {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.career-step-number {
    flex-shrink: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--isatis-warning);
    line-height: 1;
    padding-top: 2px;
}

.career-step-title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--isatis-primary);
    margin: 0 0 .5rem;
}

.career-step-text {
    font-size: .95rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 .75rem;
    max-width: 580px;
}

.career-step-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--isatis-warning);
}

@media (max-width: 576px) {
    .career-step-inner {
        gap: 1.5rem;
    }

    .career-step-ghost {
        display: none;
    }
}


/* =========================
    FAQ
========================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(8, 14, 44, 0.06);
    border-radius: .875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(8, 14, 44, 0.04);
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(var(--isatis-warning-rgb), 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--isatis-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--isatis-warning);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.7;
    border-top: 1px solid rgba(208, 208, 208, 0.4);
    padding: 1rem 1.5rem 1.25rem;
}
