/* ═══════════════════════════════════════════════════════════════════
 * Elefen Postes Disponibles — Carrière McDonald's Drummondville
 * ═══════════════════════════════════════════════════════════════════ */

.elefen-postes {
    font-family: 'Speedee', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────────── */
.elefen-postes__header {
    text-align: center;
    margin-bottom: 40px;
}

.elefen-postes__header-title {
    font-size: 32px;
    font-weight: 700;
    color: #292929;
    margin: 0 0 8px;
}

.elefen-postes__header-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #FFBC0D;
    margin: 12px auto 0;
    border-radius: 2px;
}

.elefen-postes__header-count {
    font-size: 16px;
    color: #666;
    margin: 16px 0 0;
}

/* ── Vide ──────────────────────────────────────────────────────── */
.elefen-postes__vide {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* ── Card ──────────────────────────────────────────────────────── */
.elefen-postes__card {
    margin-bottom: 48px;
    background: #f7f7f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.elefen-postes__card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.elefen-postes__card:last-child {
    margin-bottom: 0;
}

/* ── Content : image + infos ───────────────────────────────────── */
.elefen-postes__card-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 350px;
}

.elefen-postes__card--reverse .elefen-postes__card-content {
    direction: rtl;
}

.elefen-postes__card--reverse .elefen-postes__card-content > * {
    direction: ltr;
}

/* ── Image ─────────────────────────────────────────────────────── */
.elefen-postes__card-image {
    position: relative;
    overflow: hidden;
    max-height: 400px;
    align-self: start;
}

.elefen-postes__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elefen-postes__card-count {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #FFBC0D;
    color: #292929;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    padding-top: 8px;
    line-height: 100%;
    border-radius: 24px;
    text-transform: uppercase;
}

.elefen-postes__card--reverse .elefen-postes__card-count {
    right: auto;
    left: 16px;
}

/* ── Info ──────────────────────────────────────────────────────── */
.elefen-postes__card-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Meta (badges) ─────────────────────────────────────────────── */
.elefen-postes__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.elefen-postes__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    padding-top: 6px;
    line-height: 100%;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.elefen-postes__badge--postes {
    background: #DB0007;
    color: #fff;
}

.elefen-postes__badge--type {
    background: #FFBC0D;
    color: #292929;
}

.elefen-postes__badge--salaire {
    background: #292929;
    color: #fff;
}

/* ── Titre ─────────────────────────────────────────────────────── */
.elefen-postes__card-title {
    font-size: 26px;
    font-weight: 700;
    color: #292929;
    margin: 0 0 8px;
    line-height: 1.2;
}

.elefen-postes__card-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #FFBC0D;
    margin-top: 10px;
    border-radius: 2px;
}

/* ── Lieu ──────────────────────────────────────────────────────── */
.elefen-postes__card-lieu {
    font-size: 14px;
    color: #666;
    margin: 12px 0 16px;
}

/* ── Résumé ────────────────────────────────────────────────────── */
.elefen-postes__card-resume {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.elefen-postes__card-resume p {
    margin: 0 0 8px;
}

/* ── Détails (accordéon) ───────────────────────────────────────── */
.elefen-postes__details {
    margin-bottom: 20px;
}

.elefen-postes__details summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #DB0007;
    padding: 10px 0;
    list-style: none;
    transition: color 0.2s;
}

.elefen-postes__details summary::-webkit-details-marker {
    display: none;
}

.elefen-postes__details summary::before {
    content: '+ ';
    font-weight: 700;
}

.elefen-postes__details[open] summary::before {
    content: '− ';
}

.elefen-postes__details summary:hover {
    color: #b00006;
}

.elefen-postes__details-content {
    padding: 16px 0 0;
    animation: elefenPosteFadeIn 0.3s ease;
}

@keyframes elefenPosteFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.elefen-postes__detail-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.elefen-postes__detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.elefen-postes__detail-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #DB0007;
    margin: 0 0 6px;
}

.elefen-postes__detail-section div {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.elefen-postes__detail-section ul {
    margin: 6px 0;
    padding-left: 20px;
}

.elefen-postes__detail-section li {
    margin-bottom: 4px;
}

/* ── Actions ───────────────────────────────────────────────────── */
.elefen-postes__card-actions {
    margin-top: auto;
    padding-top: 8px;
}

.elefen-postes__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    line-height: 100%;
    box-sizing: border-box;
}

.elefen-postes__btn--primary {
    background: #DB0007;
    color: #fff;
    border: 2px solid #DB0007;
}

.elefen-postes__btn--primary:hover {
    background: #b00006;
    border-color: #b00006;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(219, 0, 7, 0.3);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .elefen-postes__card-content {
        grid-template-columns: 1fr;
    }

    .elefen-postes__card--reverse .elefen-postes__card-content {
        direction: ltr;
    }

    .elefen-postes__card-image {
        height: 220px;
    }

    .elefen-postes__card-info {
        padding: 24px 20px;
    }

    .elefen-postes__card-title {
        font-size: 22px;
    }

    .elefen-postes__btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .elefen-postes__header-title {
        font-size: 26px;
    }

    .elefen-postes__card {
        margin-bottom: 32px;
    }
}
