/* ============================================
   APPEL D'OFFRE DETAILS - MOBILE FIRST (0px → 767px)
   Conventions typographiques strictes 2024-2025
   ============================================ */

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

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

/* --- BREADCRUMB --- */
.jd-breadcrumb-section {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
}

.jd-breadcrumb-section a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 12px;
}

.jd-breadcrumb-section a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.jd-breadcrumb-section span {
    color: #6b7280;
    font-size: 12px;
}

/* --- JOB DETAILS CONTENT --- */
.jd-job-details-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* --- JOB HEADER --- */
.jd-job-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.jd-company-logo-large {
    flex-shrink: 0;
}

.jd-company-logo-large img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.jd-job-id-badge {
    display: inline-block;
    background-color: #eff6ff;
    color: #b3690a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.jd-job-title {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.jd-company-name {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 4px;
}

.jd-job-published {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* --- BUTTONS --- */
.jd-btn-apply {
    background-color: #16a34a;
    color: white;
    padding: 10px 20px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.3s;
    border-radius: 6px;
    width: 100%;
    min-height: 44px;
}

.jd-btn-apply:hover {
    background-color: #15803d;
}

.jd-btn-save {
    background-color: transparent;
    color: #2563eb;
    padding: 10px 20px;
    border: 2px solid #2563eb;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border-radius: 6px;
    width: 100%;
    min-height: 44px;
}

.jd-btn-save:hover {
    background-color: #2563eb;
    color: white;
}

/* --- QUICK INFO --- */
.jd-quick-info {
    background-color: #f9fafb;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 8px;
}

.jd-info-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.jd-info-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- SECTIONS --- */
.jd-section {
    margin-bottom: 24px;
}

.jd-section h2 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 16px;
    font-weight: 700;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    line-height: 1.3;
}

.jd-section p {
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.jd-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.jd-section ul li {
    padding-left: 24px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.jd-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
    font-size: 16px;
}

/* --- COMPANY INFO --- */
.jd-company-info-section {
    background-color: #f9fafb;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.jd-company-contact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.jd-company-contact p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.jd-company-contact a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.jd-company-contact a:hover {
    text-decoration: underline;
}

/* --- APPLICATION SECTION --- */
.jd-application-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 24px;
    text-align: center;
    color: white;
    margin-top: 24px;
    border-radius: 8px;
}

.jd-application-section h2 {
    color: white;
    border: none;
    padding: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

.jd-application-section p {
    color: #e0e7ff;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.jd-btn-apply-large {
    background-color: #16a34a;
    color: white;
    padding: 12px 28px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 100%;
    min-height: 44px;
}

.jd-btn-apply-large:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.jd-application-note {
    margin-top: 16px;
    font-size: 12px;
    color: #e0e7ff;
    line-height: 1.4;
}

/* --- SIDEBAR --- */
.jd-sidebar-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.jd-sidebar-section h3 {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

/* --- SIMILAR JOBS --- */
.jd-similar-job {
    padding: 12px;
    background-color: #f9fafb;
    margin-bottom: 12px;
    transition: all 0.3s;
    border-radius: 6px;
}

.jd-similar-job:hover {
    background-color: #eff6ff;
    transform: translateX(3px);
}

.jd-similar-job h4 {
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.jd-similar-company {
    color: #2563eb;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

.jd-similar-location {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.jd-similar-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s;
}

.jd-similar-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ============================================
   TABLET (768px → 991px)
   ============================================ */
@media (min-width: 768px) {
    .jd-navbar-placeholder {
        height: 90px;
    }

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

    .jd-breadcrumb-section {
        padding: 14px 0;
        font-size: 13px;
    }

    .jd-breadcrumb-section a,
    .jd-breadcrumb-section span {
        font-size: 13px;
    }

    .jd-job-details-content {
        padding: 28px;
        border-radius: 10px;
    }

    .jd-job-header {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .jd-company-logo-large img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        border: 2px solid #e5e7eb;
    }

    .jd-job-id-badge {
        padding: 5px 12px;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .jd-job-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .jd-company-name {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .jd-job-published {
        font-size: 13px;
    }

    .jd-btn-apply,
    .jd-btn-save {
        padding: 12px 24px;
        font-size: 14px;
        width: auto;
    }

    .jd-quick-info {
        padding: 24px;
        margin-bottom: 28px;
    }

    .jd-info-label {
        font-size: 12px;
    }

    .jd-info-value {
        font-size: 15px;
    }

    .jd-section {
        margin-bottom: 28px;
    }

    .jd-section h2 {
        font-size: 20px;
        margin-bottom: 18px;
        padding-left: 14px;
    }

    .jd-section p {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .jd-section ul li {
        padding-left: 28px;
        margin-bottom: 12px;
        font-size: 15px;
    }

    .jd-section ul li::before {
        font-size: 18px;
    }

    .jd-company-info-section {
        padding: 24px;
    }

    .jd-company-contact {
        margin-top: 18px;
        padding-top: 18px;
    }

    .jd-company-contact p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .jd-application-section {
        padding: 28px;
        margin-top: 28px;
    }

    .jd-application-section h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .jd-application-section p {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .jd-btn-apply-large {
        padding: 14px 36px;
        font-size: 15px;
        width: auto;
    }

    .jd-application-note {
        font-size: 13px;
        margin-top: 18px;
    }

    .jd-sidebar-section {
        padding: 24px;
    }

    .jd-sidebar-section h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .jd-similar-job {
        padding: 14px;
        margin-bottom: 14px;
    }

    .jd-similar-job h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .jd-similar-company {
        font-size: 13px;
    }

    .jd-similar-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .jd-similar-link {
        font-size: 13px;
    }
}

/* ============================================
   DESKTOP (992px et +)
   ============================================ */
@media (min-width: 992px) {
    .jd-navbar-placeholder {
        height: 115px;
    }

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

    .jd-breadcrumb-section {
        padding: 15px 0;
        font-size: 14px;
    }

    .jd-breadcrumb-section a,
    .jd-breadcrumb-section span {
        font-size: 14px;
    }

    .jd-job-details-content {
        padding: 40px;
        border-radius: 8px;
    }

    .jd-job-header {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .jd-company-logo-large img {
        width: 120px;
        height: 120px;
        border-radius: 10px;
        border: 2px solid #e5e7eb;
    }

    .jd-job-id-badge {
        padding: 6px 16px;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .jd-job-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .jd-company-name {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .jd-job-published {
        font-size: 14px;
    }

    .jd-btn-apply {
        padding: 14px 32px;
        font-size: 16px;
    }

    .jd-btn-save {
        padding: 14px 32px;
        font-size: 16px;
    }

    .jd-quick-info {
        padding: 30px;
        margin-bottom: 40px;
    }

    .jd-info-label {
        font-size: 13px;
    }

    .jd-info-value {
        font-size: 16px;
    }

    .jd-section {
        margin-bottom: 40px;
    }

    .jd-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-left: 15px;
    }

    .jd-section p {
        font-size: 16px;
        margin-bottom: 15px;
        line-height: 1.8;
    }

    .jd-section ul li {
        padding-left: 30px;
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 1.7;
    }

    .jd-section ul li::before {
        font-size: 18px;
    }

    .jd-company-info-section {
        padding: 30px;
    }

    .jd-company-contact {
        margin-top: 20px;
        padding-top: 20px;
    }

    .jd-company-contact p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .jd-application-section {
        padding: 40px;
        margin-top: 40px;
    }

    .jd-application-section h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .jd-application-section p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .jd-btn-apply-large {
        padding: 18px 50px;
        font-size: 18px;
    }

    .jd-application-note {
        font-size: 14px;
        margin-top: 20px;
    }

    .jd-sidebar-section {
        padding: 25px;
    }

    .jd-sidebar-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .jd-similar-job {
        padding: 15px;
        margin-bottom: 15px;
    }

    .jd-similar-job:hover {
        transform: translateX(5px);
    }

    .jd-similar-job h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .jd-similar-company {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .jd-similar-location {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .jd-similar-link {
        font-size: 14px;
    }
}
