:root {
    --pp-green: #198754;
    --pp-dark-green: #063d2b;
    --pp-bg: #f8fafc;
    --pp-border: #e2e8f0;
    --pp-text: #243447;
    --pp-muted: #64748b;
}

/* Base */

body {
    margin: 0;
    background: var(--pp-bg);
    color: var(--pp-text);
    font-family: "Inter", sans-serif;
}

/* Hero */

.pp-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #063d2b 0%,
        #0c8558 55%,
        #198754 100%
    );
}

.pp-hero::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    top: -190px;
    right: -100px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.pp-hero-content {
    position: relative;
    z-index: 1;
    padding: 76px 0 88px;
}

.pp-eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .8;
}

/* Cartes et boutons */

.pp-card {
    background: #ffffff;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.pp-overlap {
    position: relative;
    z-index: 2;
    margin-top: -36px;
}

.pp-pill {
    border-radius: 999px;
    padding: .65rem 1rem;
    font-weight: 700;
}

/* Champs */

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--pp-border);
    border-radius: 11px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pp-green);
    box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .14);
}

/* Tableau */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-modern {
    min-width: 900px;
    margin-bottom: 0;
}

.table-modern th {
    padding: 18px 16px;
    color: #475569;
    background: #f1f5f9;
    border: 0;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-modern td {
    padding: 19px 16px;
    border-color: #eef2f7;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: #f8fcfa;
}

.pp-reference {
    color: var(--pp-green);
    font-size: .78rem;
    font-weight: 800;
}

.pp-job-title {
    color: #102a43;
    font-weight: 700;
}

.pp-city {
    display: inline-block;
    padding: .4rem .7rem;
    color: #0f5132;
    background: #d1e7dd;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.pp-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .7rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.pp-status-new {
    color: #084298;
    background: #cfe2ff;
}

.pp-status-open {
    color: #0f5132;
    background: #d1e7dd;
}

.pp-status-closed {
    color: #41464b;
    background: #e2e3e5;
}

/* En-tête de la fiche de poste */

.job-header-card {
    background: #ffffff;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.job-header-top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.25rem;
}

.job-title-area {
    flex: 1;
    min-width: 0;
}

.job-title-label,
.job-code-label {
    display: block;
    margin-bottom: .45rem;
    color: var(--pp-green);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.job-title-value {
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.job-code-area {
    flex: 0 0 230px;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #dbe5df;
    border-radius: 12px;
    text-align: center;
}

.job-code-value {
    color: var(--pp-dark-green);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.job-meta-row {
    padding: 0 2.25rem 2rem;
}

.job-meta-box {
    height: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
}

.job-meta-box small {
    display: block;
    margin-bottom: .3rem;
    color: var(--pp-muted);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.job-meta-box strong {
    color: var(--pp-text);
    font-size: .92rem;
}

/* Sections de la fiche */

.section-card {
    margin-top: 1.25rem;
    padding: 1.45rem 1.7rem;
    background: #ffffff;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .045);
}

.section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .95rem;
    color: #315c49;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.35;
    text-transform: uppercase;
}

.section-title i {
    color: var(--pp-green);
    font-size: .85rem;
}

.pp-position-header {
    padding: 1.25rem 0;
    border-bottom: 1px solid #eef2f7;
}

.pp-content-section {
    padding: 1.35rem 0;
    border-bottom: 1px solid #eef2f7;
}

.pp-content-section:last-child {
    border-bottom: 0;
}

/* Identification du poste */

.identification-box {
    height: 100%;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid var(--pp-border);
    border-radius: 11px;
}

.identification-box small {
    display: block;
    margin-bottom: .4rem;
    color: var(--pp-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.35;
    text-transform: uppercase;
}

.identification-box strong {
    display: block;
    color: var(--pp-text);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}

.pp-info-line {
    height: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
}

.pp-info-line small {
    display: block;
    margin-bottom: .35rem;
    color: var(--pp-muted);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pp-info-line strong {
    display: block;
    color: var(--pp-text);
    line-height: 1.4;
}

/* Texte enrichi */

.rich-content {
    color: #52606d;
    font-size: .96rem;
    line-height: 1.75;
}

.rich-content p {
    margin-bottom: .7rem;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: .9rem;
    padding-left: 1.4rem;
}

.rich-content li {
    margin-bottom: .35rem;
}

.rich-content strong,
.rich-content b {
    color: var(--pp-text);
    font-weight: 700;
}

/* Panneau de candidature */

.application-card {
    position: sticky;
    top: 24px;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.pp-sticky {
    position: sticky;
    top: 24px;
}

/* Compte à rebours */

.pp-countdown {
    display: block;
    width: 100%;
    margin: 1rem 0 0;
    padding: 1rem;
    color: #084c32;
    background: #e7f5ed;
    border: 1px solid #b7dfc8;
    border-radius: 14px;
    box-sizing: border-box;
}

.countdown-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .8rem;
    color: #0f5132;
    font-size: .85rem;
    font-weight: 800;
    text-align: center;
}

.countdown-title i {
    color: var(--pp-green);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
}

.countdown-unit {
    min-width: 0;
    padding: .7rem .25rem;
    background: #ffffff;
    border: 1px solid #c7e5d2;
    border-radius: 10px;
    text-align: center;
}

.countdown-unit strong {
    display: block;
    color: var(--pp-dark-green);
    font-size: 1.15rem;
    line-height: 1.2;
}

.countdown-unit span {
    display: block;
    margin-top: .2rem;
    color: #527064;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.countdown-warning {
    color: #7a4b00;
    background: #fff3cd;
    border-color: #ffda6a;
}

.countdown-warning .countdown-title {
    color: #956d00;
}

.countdown-expired {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
    animation: expiredPulse 1.8s ease-in-out infinite;
}

.countdown-expired .countdown-title {
    margin-bottom: 0;
    color: #842029;
}

.countdown-expired .countdown-title i {
    color: #dc3545;
}

/* Formulaire de candidature */

.pp-upload-zone {
    display: block;
    padding: 30px;
    text-align: center;
    background: #f7fcf9;
    border: 2px dashed #a8cdb8;
    border-radius: 14px;
    cursor: pointer;
}

.pp-upload-zone:hover {
    background: #edf8f1;
    border-color: var(--pp-green);
}

.pp-privacy {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
}

/* Éditeur WYSIWYG administration */

.recruitment-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .65rem;
    background: #f8fafc;
    border: 1px solid #ced4da;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.recruitment-editor-toolbar button,
.recruitment-admin-toolbar button {
    min-width: 36px;
    height: 34px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    color: #344054;
}

.recruitment-editor-toolbar button:hover,
.recruitment-admin-toolbar button:hover {
    color: #ffffff;
    background: var(--pp-green);
    border-color: var(--pp-green);
}

.recruitment-editor,
.recruitment-admin-editor {
    min-height: 180px;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0 0 8px 8px;
    outline: none;
}

.recruitment-editor:focus,
.recruitment-admin-editor:focus {
    border-color: var(--pp-green);
    box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .15);
}

/* Animation expiration */

@keyframes expiredPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, .15);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(220, 53, 69, 0);
    }
}

/* Responsive */

@media (max-width: 991px) {
    .application-card,
    .pp-sticky {
        position: static;
    }
}

@media (max-width: 767px) {
    .pp-hero-content {
        padding: 52px 0 68px;
    }

    .pp-overlap {
        margin-top: -24px;
    }

    .job-header-top {
        display: block;
        padding: 1.4rem;
    }

    .job-code-area {
        width: 100%;
        margin-top: 1.25rem;
    }

    .job-meta-row {
        padding: 0 1.4rem 1.4rem;
    }

    .section-card {
        margin-top: 1rem;
        padding: 1.2rem 1.1rem;
    }

    .section-title {
        gap: .45rem;
        margin-bottom: .8rem;
        font-size: .76rem;
        letter-spacing: .035em;
    }

    .section-title i {
        font-size: .78rem;
    }

    .identification-box {
        padding: .9rem;
    }

    .identification-box small {
        font-size: .64rem;
    }

    .identification-box strong {
        font-size: .88rem;
    }

    .pp-countdown {
        padding: .75rem .55rem;
    }

    .countdown-grid {
        gap: .25rem;
    }

    .countdown-unit {
        padding: .55rem .15rem;
    }

    .countdown-unit strong {
        font-size: .95rem;
    }

    .countdown-unit span {
        font-size: .5rem;
    }

    .countdown-title {
        font-size: .76rem;
    }
}

@media (max-width: 380px) {
    .countdown-grid {
        gap: .2rem;
    }

    .countdown-unit strong {
        font-size: .88rem;
    }

    .countdown-unit span {
        font-size: .46rem;
    }
}


.pp-upload-zone {
    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.pp-upload-zone:hover,
.pp-upload-zone:focus,
.pp-upload-zone.is-dragging {
    background: #edf8f1;
    border-color: #198754;
    box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .12);
    outline: none;
}

.pp-upload-zone.is-dragging {
    transform: scale(1.01);
}

#file-name {
    color: #198754;
    line-height: 1.6;
}

#file-name ul {
    padding-left: 1.2rem;
}

#file-name li {
    margin-bottom: .2rem;
}



