/* =====================================================
   JOBSTATION — OPPORTUNITY CARD
   VERSION DESKTOP / TABLETTE / MOBILE
===================================================== */

.opportunity-card,
.opportunity-card * {
    box-sizing: border-box;
}

.opportunity-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100%;

    padding: 22px;

    background: #FFFFFF;
    border: 1px solid #E5EAF1;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.opportunity-card:hover {
    transform: translateY(-3px);
    border-color: #D8DEE8;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .09);
}

/* ---------- EN-TÊTE ---------- */

.opportunity-card .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.opportunity-card .card-header img {
    display: block;
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    flex: 0 0 60px;

    object-fit: contain;
    border-radius: 9px;
    background: #FFFFFF;
}

.opportunity-card .card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    padding: 7px 10px;

    border-radius: 999px;
    background: #FFF1E6;
    color: #E96800;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- TITRE ---------- */

.opportunity-card h3 {
    margin: 0 0 7px;

    color: #0B1930;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;

    overflow-wrap: anywhere;
}

/* ---------- ENTREPRISE ---------- */

.opportunity-card .company {
    margin: 0 0 15px;

    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

/* ---------- INFORMATIONS ---------- */

.opportunity-card .card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;

    margin-bottom: 18px;
}

.opportunity-card .card-meta span {
    color: #526176;
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- PIED DE CARTE ---------- */

.opportunity-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #EEF0F4;
}

.opportunity-card .card-footer span {
    color: #8491A5;
    font-size: 11px;
    line-height: 1.4;
}

.opportunity-card .card-footer a {
    color: #F97300;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.opportunity-card .card-footer a:hover {
    color: #D96500;
}

/* ---------- TABLETTE ---------- */

@media (max-width: 1024px) {
    .opportunity-card {
        padding: 19px;
    }

    .opportunity-card h3 {
        font-size: 17px;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
    .opportunity-card {
        min-height: 0;
        padding: 18px;
        border-radius: 15px;
    }

    .opportunity-card .card-header {
        margin-bottom: 14px;
    }

    .opportunity-card .card-header img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
        flex-basis: 56px;
    }

    .opportunity-card h3 {
        font-size: 16px;
    }

    .opportunity-card .company {
        font-size: 13px;
    }

    .opportunity-card .card-meta span {
        font-size: 11px;
    }
}

/* ---------- ACCESSIBILITÉ ---------- */

@media (prefers-reduced-motion: reduce) {
    .opportunity-card {
        transition: none;
    }
}