/**
 * Styles single post (article)
 */

/* Header */
.leb-single-header {
    padding: var(--wp--preset--spacing--50, 48px) var(--wp--preset--spacing--30, 24px) 40px;
}

/* Label "Actualité" — centré */
.leb-article-label {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    color: var(--wp--preset--color--primary-light, #899477);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 0 40px;
}

/* Titre H1 */
.leb-single-header .leb-article-title.wp-block-post-title {
    font-family: var(--wp--preset--font-family--heading, Georgia, serif);
    font-size: var(--wp--preset--font-size--2-xl, 2.25rem);
    font-weight: 500;
    line-height: 40px;
    color: var(--wp--preset--color--primary, #505A3D);
    margin: 0 0 24px;
}

/* Extrait / chapô */
.leb-article-excerpt {
    margin: 0 0 24px;
}

.leb-article-excerpt .wp-block-post-excerpt__excerpt {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: var(--wp--preset--font-size--md, 1.125rem);
    font-weight: 300;
    line-height: 29px;
    color: var(--wp--preset--color--dark, #4B5563);
    margin: 0;
}

/* Date */
.leb-article-date {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: 10px;
    font-weight: 400;
    line-height: 13px;
    color: var(--wp--preset--color--gray, #9CA3AF);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 30px;
}

/* Image à la une */
.leb-article-image {
    margin: 0 0 22px;
}

.leb-article-image img {
    border-radius: 15px;
}

/* Breadcrumb sous l'image */
.leb-article-breadcrumb {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: 10px;
    font-weight: 400;
    line-height: 13px;
    color: var(--wp--preset--color--gray, #9CA3AF);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    padding: 0 var(--wp--preset--spacing--40, 32px);
}

.leb-article-breadcrumb a {
    color: var(--wp--preset--color--gray, #9CA3AF);
    text-decoration: none;
}

.leb-article-breadcrumb__sep {
    margin: 0 4px;
}

.leb-article-breadcrumb__current {
    font-weight: 700;
}

.leb-article-breadcrumb {
    word-break: break-word;
}

/* =============================================
   Contenu article — typographie et espacement
   ============================================= */

.leb-single-content {
    padding-top: 30px;
    padding-bottom: 70px;
}

/* Flex column → les marges s'additionnent (pas de collapse) comme sur Figma */
.leb-single-content .wp-block-post-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--30, 24px);
}

.leb-single-content .wp-block-post-content > h1,
.leb-single-content .wp-block-post-content > h2,
.leb-single-content .wp-block-post-content > h3,
.leb-single-content .wp-block-post-content > h4,
.leb-single-content .wp-block-post-content > h5,
.leb-single-content .wp-block-post-content > h6,
.leb-single-content .wp-block-post-content > p,
.leb-single-content .wp-block-post-content > ul,
.leb-single-content .wp-block-post-content > ol,
.leb-single-content .wp-block-post-content > blockquote,
.leb-single-content .wp-block-post-content > table,
.leb-single-content .wp-block-post-content > pre,
.leb-single-content .wp-block-post-content > hr,
.leb-single-content .wp-block-post-content > figure,
.leb-single-content .wp-block-post-content > .wp-block-heading,
.leb-single-content .wp-block-post-content > .wp-block-list {
    width: 100%;
}

/* H2 — Titre de section */
.leb-single-content .wp-block-post-content > h2,
.leb-single-content .wp-block-post-content > .wp-block-heading:where(h2) {
    font-family: var(--wp--preset--font-family--heading, Georgia, serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    color: var(--wp--preset--color--dark, #4B5563);
    margin-top: 30px;
    margin-bottom: 20px;
}

/* H3 — Sous-titre (copper) */
.leb-single-content .wp-block-post-content > h3,
.leb-single-content .wp-block-post-content > .wp-block-heading:where(h3) {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: var(--wp--preset--font-size--md, 1.125rem);
    font-weight: 700;
    line-height: 28px;
    color: var(--wp--preset--color--secondary, #C7743E);
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Paragraphe */
.leb-single-content .wp-block-post-content > p {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: var(--wp--preset--font-size--md, 1.125rem);
    font-weight: 300;
    line-height: 29px;
    color: var(--wp--preset--color--dark, #4B5563);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Listes */
.leb-single-content .wp-block-post-content > ol,
.leb-single-content .wp-block-post-content > ul {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: var(--wp--preset--font-size--md, 1.125rem);
    font-weight: 300;
    line-height: 29px;
    color: var(--wp--preset--color--dark, #4B5563);
    margin-top: 10px;
    margin-bottom: 25px;
    padding-left: 27px;
}

/* Images dans le contenu */
.leb-single-content .wp-block-post-content > .wp-block-image {
    margin-top: 10px;
    margin-bottom: 10px;
}

.leb-single-content .wp-block-post-content > .wp-block-image img {
    border-radius: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .leb-single-header {
        padding-top: var(--wp--preset--spacing--30, 24px);
    }

    .leb-single-header .leb-article-title.wp-block-post-title {
        font-size: var(--wp--preset--font-size--xl, 1.5rem);
        line-height: 32px;
    }

    .leb-article-label {
        margin-bottom: 24px;
    }

    .leb-article-excerpt .wp-block-post-excerpt__excerpt {
        font-size: var(--wp--preset--font-size--sm, 0.875rem);
        line-height: 22px;
    }
}
