/* PMI-DRC — Job portal & contact forms */

.pmi-job-portal {
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 50%);
    padding: 3rem 0 4rem;
}

/* !important : surcharge Bootstrap .container (max-width fixe en px) */
.pmi-job-portal .container.pmi-job-portal__container {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 767.98px) {
    .pmi-job-portal .container.pmi-job-portal__container {
        width: 94% !important;
        max-width: 94% !important;
    }
}

.pmi-job-portal__intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

.pmi-job-portal__intro h2 {
    color: #001d23;
    font-weight: 700;
}

/*
 * Pas de classe Bootstrap .row (sinon .row > * { width:100% } empile tout).
 * Grille 30% | 70% sur une seule ligne.
 */
.pmi-job-portal__row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: 100%;
    margin: 0;
    align-items: stretch;
}

@media (min-width: 992px) {
    .pmi-job-portal__row {
        grid-template-columns: 30% 70% !important;
    }
}

.pmi-job-portal__row > .pmi-job-portal__col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-top: 0 !important;
    padding: 0;
}

.pmi-job-announcements {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 29, 35, 0.08);
    border: 1px solid rgba(24, 105, 177, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

.pmi-job-announcements__head {
    background: linear-gradient(135deg, #001d23 0%, #1869b1 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.pmi-job-announcements__head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.pmi-job-announcements__head p {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.pmi-job-announcements__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    max-height: min(720px, calc(100vh - 280px));
    overflow-y: auto;
}

.pmi-job-card {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.pmi-job-card:last-child {
    border-bottom: none;
}

.pmi-job-card:hover {
    background: #f8fafc;
}

.pmi-job-card__badge {
    display: inline-block;
    background: rgba(24, 105, 177, 0.12);
    color: #1869b1;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.pmi-job-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #001d23;
    margin: 0 0 0.5rem;
}

.pmi-job-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.pmi-job-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pmi-job-card__actions .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.pmi-job-form-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 29, 35, 0.08);
    border: 1px solid rgba(24, 105, 177, 0.12);
    padding: 2rem;
    min-height: 100%;
    height: 100%;
}

#pmi-page-content .pmi-job-portal .form-container {
    max-width: none;
    margin: 0;
    box-shadow: none;
}

.pmi-job-form-panel h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #001d23;
    margin-bottom: 0.35rem;
}

.pmi-job-form-panel > p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pmi-job-form-panel .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
}

.pmi-job-form-panel .upload-section {
    border: 2px dashed #cbd5e1;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.85rem;
    color: #64748b;
}

.pmi-job-form-panel .btn-apply {
    background: linear-gradient(135deg, #1869b1 0%, #001d23 100%);
    border: none;
    font-weight: 600;
    padding: 0.85rem;
    margin-top: 0.5rem;
}

.pmi-job-form-panel .btn-apply:hover {
    opacity: 0.92;
    background: linear-gradient(135deg, #001d23 0%, #1869b1 100%);
}

.pmi-form-alert {
    display: none;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.pmi-form-alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.pmi-form-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.pmi-submitted-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.pmi-submitted-list li {
    margin-bottom: 0.35rem;
}

.pmi-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contact page refresh */
.pmi-contact-wrap .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.pmi-contact-wrap .contact-info {
    flex: 1 1 320px;
    width: auto;
}

.pmi-contact-wrap .contact-form {
    flex: 1 1 380px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pmi-contact-wrap .contact-form .form-control {
    border: none;
    border-bottom: 2px solid #333;
    border-radius: 0;
    padding: 0.5rem 0;
}

.pmi-contact-wrap .contact-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

.pmi-contact-wrap .pmi-contact-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
}

.pmi-contact-wrap .pmi-contact-submit:hover {
    background: #001d23;
    color: #fff;
}
