/* ============================================
   MOBILE FIRST - BASE STYLES (0px → 767px)
   Conventions typographiques strictes 2024-2025
   ============================================ */

/* --- NAVBAR PLACEHOLDER --- */
.jc-navbar-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ff8c00;
    z-index: 1050;
}

.jc-body {
    padding-top: 70px;
}

/* --- SEARCH SECTION --- */
.jc-search-section h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.jc-btn-search {
    background-color: #16a34a;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
    border-radius: 6px;
}

/* --- FILTERS SECTION --- */
.jc-filters-section {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.jc-btn-filter {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
    border-radius: 6px;
}

.jc-btn-filter:hover {
    background-color: #1d4ed8;
}

/* --- JOB CARD --- */
.jc-job-card {
    background-color: white;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    transition: all 0.3s;
    border-radius: 8px;
}

.jc-job-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.jc-job-id {
    position: absolute;
    top: 6px;
    left: 10px;
    background-color: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* --- COMPANY LOGO --- */
.jc-company-logo {
    flex-shrink: 0;
}

.jc-company-logo img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* --- JOB INFO --- */
.jc-job-info {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.jc-job-info h4 {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.jc-job-date {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.jc-job-info .badge {
    font-size: 11px;
    padding: 4px 8px;
    display: inline-block;
    margin-bottom: 4px;
    border-radius: 4px;
    font-weight: 500;
}

/* --- DETAILS BUTTON --- */
.jc-btn-details {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border: none;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 13px;
    border-radius: 6px;
}

.jc-btn-details:hover {
    background-color: #f7941e;
    color: #000000;
}

/* --- PAGINATION --- */
.jc-page-btn.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* --- PUB SECTIONS --- */

.section-pubLaterale {
    margin-top: 0;
}

/* ============================================
   TABLET (768px → 991px)
   Ratio mobile/desktop ≈ 0.8
   ============================================ */
@media (min-width: 768px) {
    /* --- NAVBAR --- */
    .jc-navbar-placeholder {
        height: 90px;
    }

    .jc-body {
        padding-top: 90px;
    }

    /* --- SEARCH --- */
    .jc-search-section h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .jc-btn-search {
        padding: 12px 28px;
        font-size: 15px;
        width: auto;
    }

    /* --- FILTERS --- */
    .jc-filters-section {
        padding: 16px 0;
    }

    .jc-btn-filter {
        padding: 10px 20px;
        width: auto;
    }

    /* --- JOB CARD --- */
    .jc-job-card {
        padding: 16px;
        gap: 12px;
    }

    .jc-job-id {
        top: 10px;
        left: 12px;
        padding: 3px 10px;
        font-size: 11px;
    }

    /* --- LOGO --- */
    .jc-company-logo img {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }

    /* --- JOB INFO --- */
    .jc-job-info h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .jc-job-date {
        font-size: 13px;
    }

    .jc-job-info .badge {
        font-size: 12px;
    }

    /* --- BUTTON --- */
    .jc-btn-details {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   DESKTOP (992px et +)
   Tailles originales conservées
   ============================================ */
@media (min-width: 992px) {
    /* --- NAVBAR --- */
    .jc-navbar-placeholder {
        height: 115px;
    }

    .jc-body {
        padding-top: 115px;
    }

    /* --- SEARCH --- */
    .jc-search-section h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .jc-btn-search {
        padding: 15px 40px;
        font-size: 16px;
    }

    /* --- FILTERS --- */
    .jc-filters-section {
        padding: 20px 0;
    }

    .jc-btn-filter {
        padding: 10px 24px;
    }

    /* --- JOB CARD --- */
    .jc-job-card {
        padding: 20px;
        gap: 15px;
    }

    .jc-job-id {
        top: 12px;
        left: 15px;
        padding: 4px 12px;
        font-size: 12px;
    }

    /* --- LOGO --- */
    .jc-company-logo img {
        width: 80px;
        height: 80px;
    }

    /* --- JOB INFO --- */
    .jc-job-info h4 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .jc-job-date {
        font-size: 14px;
    }

    .jc-job-info .badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* --- BUTTON --- */
    .jc-btn-details {
        padding: 12px 28px;
        font-size: 15px;
    }
}
