/* Mise en forme commune des articles WordPress */
body.single-post main#wp--skip-link--target {
    overflow: hidden;
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-of-type {
    width: min(1180px, calc(100% - 80px));
    max-width: none;
    margin: 0 auto 64px;
    padding: 64px 0 0 !important;
}

body.single-post .wp-block-post-featured-image {
    width: 100%;
    margin: 0 !important;
    border-radius: 34px;
    overflow: hidden;
    background: var(--fpa-grey);
}

body.single-post .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 620px);
    max-width: none;
    object-fit: cover;
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-of-type > .wp-block-group:last-child {
    padding: 36px 42px !important;
    border-radius: 0 0 34px 34px;
    background: var(--fpa-yellow);
}

body.single-post .wp-block-post-title {
    max-width: 1050px;
    margin-bottom: 28px;
    font-size: clamp(38px, 5vw, 72px);
    overflow-wrap: anywhere;
}

body.single-post .wp-block-post-date,
body.single-post .wp-block-post-author-name,
body.single-post .taxonomy-category {
    font-size: 15px;
    line-height: 1.4;
}

body.single-post .wp-block-post-date a,
body.single-post .wp-block-post-author-name a,
body.single-post .taxonomy-category a {
    color: var(--fpa-text);
    font-weight: 800;
}

body.single-post .wp-block-post-date a:hover,
body.single-post .wp-block-post-author-name a:hover,
body.single-post .taxonomy-category a:hover {
    color: var(--fpa-gold);
}

body.single-post .wp-block-post-date + p {
    margin: 0;
    color: var(--fpa-border);
}

body.single-post .wp-block-post-author-name__link {
    overflow-wrap: anywhere;
}

body.single-post .wp-block-post-author-name,
body.single-post .taxonomy-category,
body.single-post .wp-block-post-date + p,
body.single-post .wp-block-post-date + p + p {
    display: none !important;
}

body.single-post .entry-content {
    width: min(820px, calc(100% - 80px)) !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.single-post .entry-content > * {
    max-width: 100%;
}

body.single-post .entry-content p,
body.single-post .entry-content li {
    font-size: 19px;
    line-height: 1.8;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    margin-top: 48px;
}

body.single-post .entry-content img,
body.single-post .entry-content figure {
    max-width: 100%;
    height: auto;
}

body.single-post .entry-content figure {
    margin: 36px auto;
}

body.single-post .entry-content blockquote {
    margin: 36px 0;
    padding: 24px 28px;
    border-left: 8px solid var(--fpa-gold);
    border-radius: 0 20px 20px 0;
    background: var(--fpa-grey);
}

body.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    padding-left: 28px;
}

body.single-post .entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
    padding: 12px 16px;
    border: 1px solid var(--fpa-border);
    text-align: left;
}

body.single-post main#wp--skip-link--target > .wp-block-group:last-child {
    width: min(1180px, calc(100% - 80px));
    max-width: none;
    margin: 64px auto 0;
    padding: 0 0 64px !important;
}

body.single-post .wp-block-post-navigation-link {
    min-width: 0;
    max-width: 48%;
}

body.single-post .wp-block-post-navigation-link a {
    display: inline-block;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.single-post .wp-block-post-navigation-link a:hover {
    color: var(--fpa-gold);
}

@media (max-width: 980px) {
    body.single-post main#wp--skip-link--target > .wp-block-group:first-of-type,
    body.single-post main#wp--skip-link--target > .wp-block-group:last-child {
        width: 100%;
    }

    body.single-post main#wp--skip-link--target > .wp-block-group:first-of-type {
        padding-top: 48px !important;
    }

    body.single-post .entry-content {
        width: min(100% - 80px, 820px) !important;
    }
}

@media (max-width: 640px) {
    body.single-post main#wp--skip-link--target > .wp-block-group:first-of-type {
        margin-bottom: 42px;
        padding: 32px 16px 0 !important;
    }

    body.single-post .wp-block-post-featured-image {
        margin-bottom: 30px !important;
        border-radius: 24px;
    }

    body.single-post .wp-block-post-featured-image img {
        height: 250px;
    }

    body.single-post main#wp--skip-link--target > .wp-block-group:first-of-type > .wp-block-group:last-child {
        padding: 26px 18px !important;
        border-radius: 0 0 24px 24px;
    }

    body.single-post .wp-block-post-title {
        margin-bottom: 22px;
        font-size: clamp(34px, 10vw, 48px);
    }

    body.single-post .wp-block-group.is-content-justification-left {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    body.single-post .entry-content {
        width: calc(100% - 32px) !important;
    }

    body.single-post .entry-content p,
    body.single-post .entry-content li {
        font-size: 17px;
        line-height: 1.65;
    }

    body.single-post .entry-content h2,
    body.single-post .entry-content h3,
    body.single-post .entry-content h4 {
        margin-top: 36px;
    }

    body.single-post .entry-content blockquote {
        margin: 28px 0;
        padding: 20px;
        border-left-width: 6px;
    }

    body.single-post main#wp--skip-link--target > .wp-block-group:last-child {
        margin-top: 42px;
        padding: 0 16px 40px !important;
    }

    body.single-post main#wp--skip-link--target > .wp-block-group:last-child nav {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
    }

    body.single-post .wp-block-post-navigation-link {
        max-width: 100%;
    }
}
