/* =========================================================
   PAGE DETAIL RECRUTEMENT
   Petit Plus SARLU
   ========================================================= */

.detail-page {
    background: #f8fafc !important;
    color: #243447;
    font-family: "Inter", sans-serif;
}

/* Conteneur principal */

.detail-page main {
    max-width: 1180px;
}

/* =========================================================
   EN-TÊTE DU POSTE
   ========================================================= */

.detail-page .job-header-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .05);
}

.detail-page .job-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
}

.detail-page .job-title-area {
    flex: 1;
    min-width: 0;
}

.detail-page .job-title-label,
.detail-page .job-code-label {
    display: block;
    margin-bottom: .35rem;
    color: #198754;
    font-size: .68rem !important;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-page .job-title-value {
    margin: 0 !important;
    color: #1f2937;
    font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.detail-page .job-code-area {
    flex: 0 0 200px;
    padding: .85rem 1rem;
    background: #f8fafc;
    border: 1px solid #dbe5df;
    border-radius: 12px;
    text-align: center;
}

.detail-page .job-code-value {
    color: #063d2b;
    font-size: 1.1rem !important;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.2;
}

/* =========================================================
   INFORMATIONS RAPIDES
   ========================================================= */

.detail-page .job-meta-row {
    padding: 0 1.75rem 1.5rem;
}

.detail-page .job-meta-box {
    height: 100%;
    padding: .85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.detail-page .job-meta-box small {
    display: block;
    margin-bottom: .25rem;
    color: #64748b;
    font-size: .65rem !important;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.25;
    text-transform: uppercase;
}

.detail-page .job-meta-box strong {
    display: block;
    color: #243447;
    font-size: .88rem !important;
    font-weight: 700;
    line-height: 1.25;
}

/* =========================================================
   COMPTE À REBOURS
   ========================================================= */

.detail-page .pp-countdown {
    width: 100%;
    margin-top: .85rem;
    padding: .8rem;
    background: #e7f5ed;
    border: 1px solid #b7dfc8;
    border-radius: 12px;
}

.detail-page .countdown-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-bottom: .6rem;
    color: #0f5132;
    font-size: .78rem !important;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.detail-page .countdown-title i {
    color: #198754;
    font-size: .78rem;
}

.detail-page .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
}

.detail-page .countdown-unit {
    padding: .55rem .25rem;
    background: #ffffff;
    border: 1px solid #c7e5d2;
    border-radius: 8px;
    text-align: center;
}

.detail-page .countdown-unit strong {
    display: block;
    color: #063d2b;
    font-size: 1rem !important;
    font-weight: 800;
    line-height: 1.1;
}

.detail-page .countdown-unit span {
    display: block;
    margin-top: .2rem;
    color: #527064;
    font-size: .52rem !important;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.detail-page .countdown-expired {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

/* =========================================================
   BLOCS DE CONTENU
   ========================================================= */

.detail-page .section-card {
    margin-top: 1rem;
    padding: 1.25rem 1.4rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 .3rem .9rem rgba(15, 23, 42, .04);
}

/*
   Correction importante :
   on cible précisément les titres de la page détail
   pour neutraliser les styles trop grands de Nicepage.
*/

.detail-page .section-card .section-title,
.detail-page .section-title {
    display: flex !important;
    align-items: center;
    gap: .45rem;
    width: 100%;
    margin: 0 0 .8rem !important;
    padding: 0 !important;
    color: #315c49 !important;
    font-size: .76rem !important;
    font-weight: 800 !important;
    letter-spacing: .045em !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
}

.detail-page .section-card .section-title i,
.detail-page .section-title i {
    flex: 0 0 auto;
    color: #198754 !important;
    font-size: .82rem !important;
    line-height: 1;
}

.detail-page .section-card h2,
.detail-page .section-card h3 {
    margin-top: 0 !important;
    margin-bottom: .8rem !important;
}

/* =========================================================
   IDENTIFICATION DU POSTE
   ========================================================= */

.detail-page .identification-box {
    height: 100%;
    padding: .85rem .95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.detail-page .identification-box small {
    display: block;
    margin-bottom: .35rem;
    color: #64748b;
    font-size: .61rem !important;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.3;
    text-transform: uppercase;
}

.detail-page .identification-box strong {
    display: block;
    color: #243447;
    font-size: .86rem !important;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================================
   TEXTE RICHE
   ========================================================= */

.detail-page .rich-content {
    color: #52606d;
    font-size: .91rem !important;
    line-height: 1.65;
}

.detail-page .rich-content p {
    margin: 0 0 .65rem;
}

.detail-page .rich-content ul,
.detail-page .rich-content ol {
    margin: 0 0 .8rem;
    padding-left: 1.25rem;
}

.detail-page .rich-content li {
    margin-bottom: .3rem;
}

.detail-page .rich-content strong,
.detail-page .rich-content b {
    color: #243447;
    font-weight: 700;
}

/* =========================================================
   PANNEAU DE CANDIDATURE
   ========================================================= */

.detail-page .application-card {
    position: sticky;
    top: 20px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .05);
}

.detail-page .application-card h2 {
    margin-bottom: .5rem !important;
    font-size: 1.05rem !important;
    line-height: 1.25;
}

.detail-page .application-card p {
    font-size: .8rem;
    line-height: 1.45;
}

.detail-page .application-card .btn {
    font-size: .82rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
    .detail-page .application-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .detail-page .job-header-top {
        display: block;
        padding: 1.25rem;
    }

    .detail-page .job-code-area {
        width: 100%;
        margin-top: 1rem;
    }

    .detail-page .job-meta-row {
        padding: 0 1.25rem 1.25rem;
    }

    .detail-page .section-card {
        margin-top: .85rem;
        padding: 1rem;
    }

    .detail-page .section-card .section-title,
    .detail-page .section-title {
        gap: .4rem;
        margin-bottom: .65rem !important;
        font-size: .7rem !important;
        letter-spacing: .025em !important;
    }

    .detail-page .section-card .section-title i,
    .detail-page .section-title i {
        font-size: .75rem !important;
    }

    .detail-page .identification-box {
        padding: .8rem;
    }

    .detail-page .identification-box small {
        font-size: .58rem !important;
    }

    .detail-page .identification-box strong {
        font-size: .82rem !important;
    }

    .detail-page .rich-content {
        font-size: .86rem !important;
        line-height: 1.6;
    }

    .detail-page .countdown-grid {
        gap: .25rem;
    }

    .detail-page .countdown-unit {
        padding: .5rem .15rem;
    }

    .detail-page .countdown-unit strong {
        font-size: .9rem !important;
    }

    .detail-page .countdown-unit span {
        font-size: .45rem !important;
    }
}

/* Texte et icône du compteur */
.detail-page .pp-countdown:not(.countdown-expired) .countdown-title {
    color: #dc3545 !important;
}

.detail-page .pp-countdown:not(.countdown-expired) .countdown-title i {
    color: #dc3545 !important;
}

.pp-countdown:not(.countdown-expired) .countdown-title {
    color: #dc3545 !important;
}

.pp-countdown:not(.countdown-expired) .countdown-title i {
    color: #dc3545 !important;
}