/* =========================================================
 * Portraits de Collaborateurs — catégorie ID 42
 * Chargé uniquement sur l'archive et les articles de cette catégorie
 * (voir includes/portraits-collaborateurs.php). Tout est namespacé sous
 * .pf-* pour ne rien casser du thème (très chargé en Bootstrap/Redux).
 * ========================================================= */

.pf-page {
    --pf-dark: #0B2430;
    --pf-teal: #0018A8;
    --pf-teal-light: #93D500;
    --pf-coral: #93D500;
    --pf-coral-dark: #D63B49;
    --pf-bg: #F3F7F8;
    --pf-text: #46585F;
    --pf-muted: #7C8B91;
    --pf-border: rgba(11, 36, 48, 0.10);

    font-family: "Hanken Grotesk", system-ui, sans-serif;
    color: var(--pf-text);
    background: var(--pf-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.pf-page, .pf-page *, .pf-page *::before, .pf-page *::after {
    box-sizing: border-box;
}

.pf-page h1, .pf-page h2, .pf-page h3 {
    font-family: "Manrope", sans-serif;
    margin: 0;
}

.pf-page p {
    margin: 0;
}

.pf-span {
    color: var(--pf-coral);
}
.pf-page a {
    text-decoration: none;
}

.pf-page img {
    max-width: 100%;
    display: block;
}

.pf-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.pf-section {
    padding: 30px 0;
}

.pf-section--white {
    background: #FFFFFF;
}

.pf-section--light {
    background: var(--pf-bg);
}

.pf-h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--pf-dark);
}

/* ---- Kicker ---- */
.pf-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pf-kicker__bar {
    width: 50px;
    height: 3px;
    background: var(--pf-teal);
    display: block;
}

.pf-kicker span:last-child {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pf-teal);
}

.pf-kicker--light span:last-child {
    color: rgba(255, 255, 255, 0.72);
}

/* ---- Buttons / links ---- */
.pf-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pf-btn--accent {
    background: var(--pf-coral);
    color: #FFFFFF;
}

.pf-btn--accent:hover {
    background: var(--pf-coral-dark);
    color: #FFFFFF;
}

.pf-btn--white {
    background: #FFFFFF;
    color: var(--pf-dark);
    font-weight: 700;
}

.pf-btn--white:hover {
    background: var(--pf-coral);
    color: #FFFFFF;
}

.pf-link {
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

.pf-link--light {
    color: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.pf-link--light:hover {
    color: #FFFFFF;
}

.pf-link--white {
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.pf-link--white:hover {
    color: var(--pf-dark);
}

/* =========================================================
 * HÉRO ARCHIVE
 * ========================================================= */

.pf-hero {
    position: relative;
    overflow: hidden;
    background: var(--pf-dark);
    color: #FFFFFF;
}

.pf-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 88% 10%, rgba(15, 112, 128, 0.55) 0%, rgba(11, 36, 48, 0) 60%);
}

.pf-hero__circle {
    position: absolute;
    left: -60px;
    bottom: -70px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.pf-hero__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 32px 104px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.pf-hero__title {
    font-size: 62px;
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin: 0 0 24px;
    color: #FFFFFF;
}

.pf-hero__text {
    font-size: 19px;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.76);
}

.pf-hero__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.pf-hero__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pf-hero__thumb {
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

.pf-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-hero__thumb--up {
    transform: translateY(-16px);
}

.pf-hero__thumb--down {
    transform: translateY(18px);
}

/* ---- Placeholders ---- */
.pf-placeholder {
    position: absolute;
    inset: 0;
    background: #E4F0F2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-muted);
}

.pf-placeholder-icon {
    color: currentColor;
}

/* =========================================================
 * FIL D'ARIANE
 * ========================================================= */

.pf-breadcrumb {
    background: #FFFFFF;
    margin-top: 45px;
}

.pf-breadcrumb .pf-container {
    padding: 16px 0;
    font-size: 13px;
    color: var(--pf-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.pf-breadcrumb a,
.pf-breadcrumb span {
    color: var(--pf-teal);
    font-size: 13px !important;
    font-weight: 600;
}
.pf-breadcrumb a:hover,
.pf-breadcrumb span:hover {
    color: var(--pf-coral);
}

.pf-breadcrumb__current {
    color: var(--pf-text);
}

/* =========================================================
 * INTRO + STATS (archive)
 * ========================================================= */

.pf-intro-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.pf-intro-copy {
    display: grid;
    gap: 18px;
}

.pf-intro-copy p {
    font-size: 17px;
    line-height: 1.72;
}

.pf-stats {
    display: flex;
    gap: 40px;
    margin-top: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--pf-border);
    flex-wrap: wrap;
}

.pf-stat__num {
    font-size: 34px;
    font-weight: 800;
    color: var(--pf-teal);
    letter-spacing: -0.03em;
}

.pf-stat__label {
    font-size: 13px;
    color: var(--pf-muted);
    margin-top: 2px;
}

/* =========================================================
 * GRILLE DE CARDS
 * ========================================================= */

.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pf-card {
    background: #FFFFFF;
    border: 1px solid var(--pf-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pf-card:hover {
    border-color: rgba(15, 112, 128, 0.45);
    box-shadow: 0 18px 40px -22px rgba(11, 36, 48, 0.35);
    transform: translateY(-2px);
}

.pf-card__thumb {
    position: relative;
    height: 232px;
    background: #E4F0F2;
    overflow: hidden;
}

.pf-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.pf-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: var(--pf-dark);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    pointer-events: none;
}

.pf-card__body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pf-card__meta {
    font-size: 12px;
    color: var(--pf-muted);
    letter-spacing: 0.04em;
}

.pf-card__title {
    font-size: 21px;
    line-height: 1.24;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--pf-dark);
}

.pf-card__title a {
    color: inherit;
    font-weight: 700;
}

.pf-card__title a:hover {
    color: var(--pf-coral);
}

.pf-card__title--sm {
    font-size: 18px;
}

.pf-card__job {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-teal);
}

.pf-card__kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pf-teal);
}

.pf-card__excerpt {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--pf-text);
}

.pf-card__link {
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pf-teal);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pf-card__link:hover {
    color: var(--pf-coral);
}

.pf-no-results {
    text-align: center;
    color: var(--pf-muted);
    padding: 40px 0;
}

/* ---- Pagination ---- */
.pf-pagination {
    display: flex;
    justify-content: center;
    padding-top: 48px;
}

.pf-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--pf-border);
    color: var(--pf-dark);
    font-weight: 600;
    font-size: 14px;
}

.pf-pagination a.page-numbers:hover {
    border-color: var(--pf-teal);
    color: var(--pf-teal);
}

.pf-pagination .page-numbers.current {
    background: var(--pf-dark);
    border-color: var(--pf-dark);
    color: #FFFFFF;
}

/* =========================================================
 * CTA RECRUTEMENT (archive)
 * ========================================================= */

.pf-cta {
    position: relative;
    overflow: hidden;
    background: var(--pf-teal);
    border-radius: 28px;
    padding: 72px 64px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.pf-cta__circle {
    position: absolute;
    right: -40px;
    top: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.pf-cta__copy {
    position: relative;
}

.pf-cta__copy h2 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.pf-cta__copy p {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
}

.pf-cta__actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

/* =========================================================
 * HÉRO DÉTAIL
 * ========================================================= */

.pf-detail-hero {
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.pf-detail-hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    background: var(--pf-bg);
}

.pf-detail-hero__inner {
    position: relative;
    padding: 50px 32px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
    align-items: center;
}

.pf-detail-hero__title {
    font-size: 36px;
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--pf-dark);
    margin: 0 0 22px !important; 
}

.pf-detail-hero__text {
    font-size: 19px;
    line-height: 1.62;
    color: var(--pf-text);
    margin: 0 0 30px;
    max-width: 540px;
}

.pf-detail-hero__text p {
    margin: 0 0 12px;
}

.pf-detail-hero__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--pf-muted);
}

.pf-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #CBD5D8;
    display: inline-block;
}

.pf-share {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pf-share__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--pf-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--pf-teal);
}

.pf-share__icon:hover {
    border-color: var(--pf-teal);
}

.pf-detail-hero__visual {
    position: relative;
    min-width: 0;
}

.pf-detail-hero__photo {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 470px;
    overflow: hidden;
    background: #E4F0F2;
}

.pf-detail-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-fiche {
    position: absolute;
    left: -34px;
    bottom: 34px;
    background: #0b24309c;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 22px 26px;
    width: 268px;
    max-width: calc(100% - 24px);
    box-shadow: 0 24px 50px -24px rgba(11, 36, 48, 0.55);
}

.pf-fiche__name {
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pf-fiche__job {
    font-size: 14px;
    color: var(--pf-teal-light);
    font-weight: 600;
    margin-top: 4px;
}

.pf-fiche__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin: 16px 0;
}

.pf-fiche__rows {
    display: grid;
    gap: 9px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.74);
}

.pf-fiche__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pf-fiche__row span:last-child {
    color: #FFFFFF;
    text-align: right;
}

/* =========================================================
 * CORPS DE L'ARTICLE
 * ========================================================= */

.pf-detail-body {
    padding: 40px 32px 96px;
    grid-template-columns: 260px 1fr;
    gap: 72px;
    align-items: start;
}

.pf-toc {
    position: sticky;
    top: 108px;
}

.pf-toc__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pf-coral);
    margin-bottom: 18px;
}

.pf-toc__nav {
    display: grid;
    gap: 14px;
    border-left: 2px solid var(--pf-border);
    padding-left: 18px;
}

.pf-toc__nav a {
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--pf-text);
}

.pf-toc__nav a:hover {
    color: var(--pf-teal-light);
}
.pf-toc__nav a.is-active {
    color: var(--pf-teal);
    font-weight: 600;
}

.pf-toc__cta {
    margin-top: 34px;
    padding: 20px;
    background: var(--pf-bg);
    border-radius: 14px;
}

.pf-toc__cta p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--pf-text);
}

.pf-toc__cta a {
    display: inline-block;
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--pf-coral-dark);
}

/* .pf-article {
    max-width: 720px;
} */

.pf-article h2 {
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--pf-dark);
    margin: 0 0 18px;
}

.pf-article > div[id] + div[id],
.pf-article > div[id] {
    margin-bottom: 44px;
}

.pf-article p {
    font-size: 17px;
    line-height: 1.78;
    color: var(--pf-text);
    margin: 0 0 18px;
    text-align: justify;
}

.pf-article p:last-child {
    margin-bottom: 0;
}

.pf-article ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 13px;
}

.pf-article li {
    position: relative;
    padding-left: 24px;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--pf-text);
}

.pf-article li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pf-coral);
}

.pf-article blockquote {
    margin: 44px 0;
    padding: 34px 36px;
    background: var(--pf-bg);
    border-left: 3px solid var(--pf-coral);
    border-radius: 0 16px 16px 0;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--pf-dark);
}

.pf-article blockquote p {
    margin: 0;
    line-height: inherit;
    color: inherit;
}

.pf-article__footer {
    margin-top: 52px;
    padding-top: 30px;
    border-top: 1px solid var(--pf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pf-article__credit {
    font-size: 14px;
    color: var(--pf-muted);
}

.pf-article__back {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--pf-teal);
}

.pf-article__back:hover {
    color: var(--pf-coral);
}

/* ---- Bloc [portrait_stack] ---- */
.pf-stack {
    margin: 44px 0;
    padding: 30px 34px;
    background: var(--pf-dark);
    border-radius: 18px;
}

.pf-stack__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pf-teal-light);
    margin-bottom: 16px;
}

.pf-stack__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-stack__tag {
    font-family: "Manrope", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 15px;
    border-radius: 999px;
}

/* =========================================================
 * AUTRES PORTRAITS
 * ========================================================= */

.pf-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}

.pf-grid--related .pf-card__thumb {
    height: 200px;
}

.pf-grid--related .pf-card__body {
    padding: 24px;
    gap: 6px;
}

/* =========================================================
 * RESPONSIVE
 * ========================================================= */

@media (max-width: 992px) {
    .pf-hero__inner,
    .pf-intro-row,
    .pf-cta,
    .pf-detail-hero__inner,
    .pf-detail-body {
        grid-template-columns: 1fr;
    }
    .pf-detail-hero__inner {
        gap: 0;
    }
    .pf-detail-body {
        gap: 40px;
    }

    .pf-toc {
        position: static;
        order: 2;
    }

    .pf-article {
        order: 1;
        max-width: none;
    }

    .pf-detail-hero__bg {
        display: none;
    }

    .pf-fiche {
        left: 24px;
    }

    .pf-grid,
    .pf-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-hero__title {
        font-size: 46px;
    }

    .pf-detail-hero__title {
        font-size: 30px;
    }
    .pf-breadcrumb {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .pf-container {
        padding: 0 20px;
    }

    .pf-section {
        padding: 48px 0;
    }

    .pf-hero__inner {
        padding: 64px 20px 72px;
    }

    .pf-hero__visual {
        grid-template-columns: 1fr 1fr;
    }

    .pf-hero__thumb--up,
    .pf-hero__thumb--down {
        transform: none;
    }

    .pf-grid,
    .pf-grid--related {
        grid-template-columns: 1fr;
    }

    .pf-cta {
        padding: 40px 28px;
    }

    .pf-fiche {
        position: static;
        margin-top: -40px;
        width: auto;
    }

    .pf-detail-hero__photo {
        height: 320px;
    }

    .pf-article blockquote {
        padding: 26px 24px;
        font-size: 20px;
    }
}
