/* ── DEEZPRO Jobs — Frontend CSS ──────────────────────────── */
/* Brand colors: Blue #1460C0 · Orange #F7941D               */

/* ─ Listing (shortcode) ─────────────────────────────────── */

.deezpro-jobs-listing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px 0;
}

.dj-no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    font-size: 16px;
}

.dj-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Job card */
.dj-job-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow .2s, transform .2s;
}

.dj-job-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.dj-job-featured {
    border-color: #1460C0;
    box-shadow: 0 0 0 2px rgba(20,96,192,.12);
}

.dj-job-expired { opacity: .65; }

.dj-featured-ribbon {
    position: absolute;
    top: 0; right: 20px;
    background: #1460C0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card header */
.dj-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.dj-company {
    font-size: 13px;
    font-weight: 700;
    color: #1460C0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dj-sector {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
}

.dj-job-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.dj-job-title a {
    text-decoration: none;
    color: inherit;
    transition: color .15s;
}

.dj-job-title a:hover { color: #1460C0; }

/* Meta row */
.dj-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dj-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
    background: #f5f6f7;
    padding: 4px 10px;
    border-radius: 20px;
}

.dj-meta-item svg { flex-shrink: 0; }

.dj-type-tag {
    background: #1460C0;
    color: #fff;
    font-weight: 600;
}

.dj-remote-tag {
    background: #EBF5EB;
    color: #2E7D32;
}

.dj-salary {
    background: #FFF4E6;
    color: #B45309;
    font-weight: 600;
}

/* Excerpt */
.dj-job-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.dj-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.dj-deadline {
    font-size: 12px;
    color: #888;
}

.dj-deadline-expired {
    color: #d63638;
    font-weight: 600;
}

.dj-btn-voir {
    display: inline-block;
    background: #F7941D;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background .15s;
    white-space: nowrap;
}

.dj-btn-voir:hover { background: #e07e0f; }

.dj-btn-disabled {
    background: #aaa !important;
    pointer-events: none;
}

/* ─ Single Job Page ──────────────────────────────────────── */

.deezpro-single-job-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dsj-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero — fond blanc */
.dsj-hero {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 48px 0 40px;
}

.dsj-breadcrumb { margin-bottom: 20px; }

.dsj-breadcrumb a {
    color: #1460C0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .15s;
}

.dsj-breadcrumb a:hover { opacity: .75; }

.dsj-company-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1460C0;
    margin: 0 0 10px;
}

.dsj-job-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 22px;
    line-height: 1.2;
    color: #111;
}

.dsj-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.dsj-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
    background: #f5f6f7;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #e8eaed;
}

.dsj-type-badge {
    background: #1460C0;
    color: #fff;
    border-color: #1460C0;
    font-weight: 700;
}

.dsj-remote-badge {
    background: #EBF5EB;
    color: #2E7D32;
    border-color: #C8E6C9;
}

.dsj-salary-badge {
    background: #FFF4E6;
    color: #B45309;
    border-color: #FDDCAB;
    font-weight: 600;
}

.dsj-deadline {
    font-size: 13px;
    color: #666;
    margin: 0 0 26px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dsj-deadline-expired {
    color: #d63638;
    font-weight: 600;
}

/* CTA button — orange DEEZPRO */
.dsj-btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F7941D;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    transition: background .15s, transform .15s;
    cursor: pointer;
    border: none;
}

.dsj-btn-apply:hover {
    background: #e07e0f;
    transform: translateY(-1px);
}

/* Body layout */
.dsj-body {
    padding-top: 48px;
    padding-bottom: 80px;
    background: #fff;
}

.dsj-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

.dsj-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.dsj-description h2, .dsj-description h3 {
    margin-top: 28px;
    color: #111;
}

.dsj-description ul, .dsj-description ol {
    padding-left: 24px;
    line-height: 2;
}

/* Sidebar */
.dsj-sidebar-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.dsj-sidebar-card h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.dsj-summary-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsj-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    gap: 8px;
}

.dsj-summary-list strong {
    color: #777;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    padding-top: 2px;
}

.dsj-summary-list span {
    color: #111;
    font-weight: 500;
    text-align: right;
}

.dsj-expired-text { color: #d63638; }

.dsj-btn-apply--full {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.dsj-closed-notice {
    text-align: center;
    color: #d63638;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* Application form */
.dsj-apply-section {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
}

.dsj-apply-section h2 {
    margin: 0 0 28px;
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.dsj-form { display: flex; flex-direction: column; gap: 20px; }

.dsj-form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dsj-form-row--half {
    flex-direction: row;
    gap: 20px;
}

.dsj-form-row--half .dsj-field { flex: 1; }

.dsj-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dsj-field label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.dsj-required { color: #d63638; }

.dsj-file-hint {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

.dsj-field input[type="text"],
.dsj-field input[type="email"],
.dsj-field input[type="tel"],
.dsj-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.dsj-field input:focus,
.dsj-field textarea:focus {
    outline: none;
    border-color: #1460C0;
    box-shadow: 0 0 0 3px rgba(20,96,192,.12);
}

.dsj-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}

.dsj-field input[type="file"]:hover { border-color: #1460C0; }

.dsj-field textarea { resize: vertical; min-height: 140px; }

.dsj-form-submit {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dsj-btn-submit {
    background: #F7941D;
    color: #fff;
    border: none;
    padding: 15px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .15s;
}

.dsj-btn-submit:hover { background: #e07e0f; transform: translateY(-1px); }
.dsj-btn-submit:disabled { background: #aaa; cursor: not-allowed; transform: none; }

.dsj-privacy-note {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Feedback messages */
.dsj-feedback {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
}

.dsj-feedback-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.dsj-feedback-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.dsj-closed-block {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: #991b1b;
}

.dsj-closed-block a { color: #1460C0; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .dj-jobs-grid { grid-template-columns: 1fr; }
    .dsj-job-title { font-size: 26px; }
    .dsj-layout { grid-template-columns: 1fr; }
    .dsj-sidebar { order: -1; }
    .dsj-sidebar-card { position: static; }
    .dsj-apply-section { padding: 24px 20px; }
    .dsj-form-row--half { flex-direction: column; }
    .dsj-form-submit { flex-direction: column; align-items: flex-start; }
}
