/**
 * Single Post Template Styles
 * Design éditorial magazine avec typographie raffinée
 * ================================================
 */

/* ============================================
   CSS CUSTOM PROPERTIES - SINGLE POST
   ============================================ */

:root {
    /* Typography - Editorial feel */
    --ffd-heading-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ffd-body-font: var(--ff-font-sans);

    /* Spacing */
    --ffd-section-gap: clamp(4rem, 8vw, 7rem);
    --ffd-content-gap: clamp(2rem, 4vw, 3rem);

    /* Widths */
    --ffd-content-narrow: 700px;
    --ffd-content-medium: 900px;
    --ffd-content-wide: 1100px;
    --ffd-content-full: 100%;
}

/* ============================================
   SINGLE POST CONTAINER
   ============================================ */

.ffd-single-post {
    background: var(--ff-color-bg-white);
    overflow-x: hidden;
}

/* Preview mode in Visual Builder */
.ffd-single-post--preview {
    padding: var(--ff-space-2xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--ff-radius-xl);
    text-align: center;
}

.ffd-single-post__preview-notice {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--ff-space-xl);
    background: white;
    border-radius: var(--ff-radius-lg);
    box-shadow: var(--ff-shadow-lg);
}

.ffd-single-post__preview-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--ff-space-md);
}

.ffd-single-post__preview-notice h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--ff-space-md);
    color: var(--ff-color-text-primary);
}

.ffd-single-post__preview-notice p {
    color: var(--ff-color-text-secondary);
    margin: 0 0 var(--ff-space-sm);
}

.ffd-single-post__preview-notice ul {
    text-align: left;
    margin: var(--ff-space-md) 0;
    padding-left: var(--ff-space-lg);
}

.ffd-single-post__preview-notice li {
    color: var(--ff-color-text-secondary);
    margin-bottom: var(--ff-space-xs);
}

.ffd-single-post__preview-hint {
    font-size: var(--ff-font-size-sm);
    color: var(--ff-color-primary) !important;
    font-weight: 600;
}

/* ============================================
   POST HEADER - BANNER LAYOUT
   ============================================ */

.ffd-post-header {
    position: relative;
    margin-bottom: var(--ffd-section-gap);
}

/* Banner layout */
.ffd-post-header--banner {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.ffd-post-header__banner {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.ffd-post-header__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.23, 1, 0.32, 1);
}

.ffd-post-header:hover .ffd-post-header__image {
    transform: scale(1.03);
}

.ffd-post-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
}

/* Placeholder coloré */
.ffd-post-header__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffd-post-header__placeholder--orange {
    background: linear-gradient(135deg, #F8740E 0%, #FF9A44 50%, #FFB347 100%);
}

.ffd-post-header__placeholder--teal {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #5EEAD4 100%);
}

.ffd-post-header__placeholder--purple {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A78BFA 100%);
}

.ffd-post-header__placeholder--blue {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
}

.ffd-post-header__placeholder--coral {
    background: linear-gradient(135deg, #F43F5E 0%, #FB7185 50%, #FDA4AF 100%);
}

.ffd-post-header__placeholder-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.2) 0%, transparent 30%);
}

/* Content area */
.ffd-post-header__content {
    position: relative;
    z-index: 2;
    padding: var(--ff-space-2xl) var(--ff-space-lg);
    margin-top: -80px;
}

.ffd-post-header__inner {
    max-width: var(--ffd-content-medium);
    margin: 0 auto;
    background: white;
    padding: var(--ff-space-2xl);
    border-radius: var(--ff-radius-xl);
    box-shadow:
        0 -20px 60px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Meta top */
.ffd-post-header__meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ff-space-lg);
    margin-bottom: var(--ff-space-lg);
    flex-wrap: wrap;
}

.ffd-post-header__category {
    display: inline-flex;
    padding: 8px 20px;
    background: var(--ff-color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--ff-radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ffd-post-header__category:hover {
    background: var(--ff-color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 116, 14, 0.3);
}

.ffd-post-header__reading-time {
    display: inline-flex;
    align-items: center;
    gap: var(--ff-space-xs);
    color: var(--ff-color-text-muted);
    font-size: var(--ff-font-size-sm);
    font-weight: 500;
}

.ffd-post-header__reading-time svg {
    opacity: 0.6;
}

/* Title */
.ffd-post-header__title {
    font-family: var(--ffd-heading-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ff-color-text-primary);
    margin: 0 0 var(--ff-space-xl);
    letter-spacing: -0.02em;
}

/* Meta bottom */
.ffd-post-header__meta-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ff-space-xl);
    padding-top: var(--ff-space-lg);
    border-top: 1px solid var(--ff-color-border-light);
    flex-wrap: wrap;
}

.ffd-post-header__author {
    display: flex;
    align-items: center;
    gap: var(--ff-space-md);
}

.ffd-post-header__author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ff-color-border-light);
}

.ffd-post-header__author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ffd-post-header__author-label {
    font-size: var(--ff-font-size-xs);
    color: var(--ff-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ffd-post-header__author-name {
    font-size: var(--ff-font-size-sm);
    font-weight: 600;
    color: var(--ff-color-text-primary);
}

.ffd-post-header__date {
    display: flex;
    align-items: center;
    gap: var(--ff-space-sm);
    color: var(--ff-color-text-secondary);
    font-size: var(--ff-font-size-sm);
}

.ffd-post-header__date svg {
    opacity: 0.5;
}

/* ============================================
   POST HEADER - OVERLAY LAYOUT
   ============================================ */

.ffd-post-header--overlay {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
}

.ffd-post-header--overlay .ffd-post-header__banner {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
}

.ffd-post-header--overlay .ffd-post-header__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.ffd-post-header--overlay .ffd-post-header__content {
    margin-top: 0;
    padding-bottom: var(--ff-space-2xl);
}

.ffd-post-header--overlay .ffd-post-header__inner {
    background: transparent;
    box-shadow: none;
    color: white;
}

.ffd-post-header--overlay .ffd-post-header__title {
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.ffd-post-header--overlay .ffd-post-header__category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ffd-post-header--overlay .ffd-post-header__category:hover {
    background: white;
    color: var(--ff-color-primary);
}

.ffd-post-header--overlay .ffd-post-header__reading-time,
.ffd-post-header--overlay .ffd-post-header__date,
.ffd-post-header--overlay .ffd-post-header__author-label {
    color: rgba(255, 255, 255, 0.7);
}

.ffd-post-header--overlay .ffd-post-header__author-name {
    color: white;
}

.ffd-post-header--overlay .ffd-post-header__meta-bottom {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.ffd-post-header--overlay .ffd-post-header__author-avatar {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   POST HEADER - CENTERED LAYOUT (Simple)
   ============================================ */

.ffd-post-header--centered .ffd-post-header__content {
    margin-top: 0;
    padding: var(--ff-space-2xl) var(--ff-space-lg);
}

.ffd-post-header--centered .ffd-post-header__inner {
    box-shadow: none;
    background: transparent;
    padding: var(--ff-space-xl) 0;
}

/* ============================================
   POST HEADER - SPLIT LAYOUT
   ============================================ */

.ffd-post-header--split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

@media (min-width: 1024px) {
    .ffd-post-header--split {
        grid-template-columns: 1fr 1fr;
        min-height: 70vh;
    }
}

.ffd-post-header--split .ffd-post-header__content {
    margin-top: 0;
    display: flex;
    align-items: center;
    padding: var(--ff-space-2xl);
}

.ffd-post-header--split .ffd-post-header__inner {
    box-shadow: none;
    background: transparent;
    text-align: left;
    padding: var(--ff-space-xl) 0;
}

.ffd-post-header--split .ffd-post-header__meta-top,
.ffd-post-header--split .ffd-post-header__meta-bottom {
    justify-content: flex-start;
}

.ffd-post-header__side-image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.ffd-post-header__side-image .ffd-post-header__image {
    position: absolute;
    inset: 0;
}

/* ============================================
   POST CONTENT
   ============================================ */

.ffd-single-post__content {
    padding: 0 var(--ff-space-lg) var(--ffd-section-gap);
}

.ffd-single-post__content-inner {
    margin: 0 auto;
}

/* Content widths */
.ffd-single-post__content--narrow .ffd-single-post__content-inner {
    max-width: var(--ffd-content-narrow);
}

.ffd-single-post__content--medium .ffd-single-post__content-inner {
    max-width: var(--ffd-content-medium);
}

.ffd-single-post__content--wide .ffd-single-post__content-inner {
    max-width: var(--ffd-content-wide);
}

.ffd-single-post__content--full .ffd-single-post__content-inner {
    max-width: var(--ffd-content-full);
}

/* Content typography */
.ffd-single-post__content-inner {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--ff-color-text-primary);
}

.ffd-single-post__content-inner p {
    margin-bottom: 16px;
}

.ffd-single-post__content-inner h2 {
    font-family: var(--ffd-heading-font);
    font-size: 2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--ff-color-text-primary);
    letter-spacing: -0.01em;
}

.ffd-single-post__content-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--ff-color-text-primary);
}

.ffd-single-post__content-inner h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

.ffd-single-post__content-inner a {
    color: var(--ff-color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ffd-single-post__content-inner a:hover {
    color: var(--ff-color-primary-hover);
}

.ffd-single-post__content-inner blockquote {
    position: relative;
    margin: 2em 0;
    padding: 1.5em 2em;
    background: var(--ff-color-bg-gray);
    border-left: 4px solid var(--ff-color-primary);
    border-radius: 0 var(--ff-radius-md) var(--ff-radius-md) 0;
    font-style: italic;
    font-size: 1.1em;
}

.ffd-single-post__content-inner ul,
.ffd-single-post__content-inner ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.ffd-single-post__content-inner li {
    margin-bottom: 0.5em;
}

.ffd-single-post__content-inner img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--ff-radius-lg);
    margin: 24px 0;
    object-fit: cover;
}

.ffd-single-post__content-inner figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ffd-single-post__content-inner figure {
    margin: 2em 0;
}

.ffd-single-post__content-inner figcaption {
    text-align: center;
    font-size: var(--ff-font-size-sm);
    color: var(--ff-color-text-muted);
    margin-top: var(--ff-space-sm);
}

/* Tags */
.ffd-single-post__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ff-space-sm);
    margin-top: var(--ff-space-2xl);
    padding-top: var(--ff-space-xl);
    border-top: 1px solid var(--ff-color-border-light);
}

.ffd-single-post__tags-label {
    font-size: var(--ff-font-size-sm);
    font-weight: 600;
    color: var(--ff-color-text-secondary);
    margin-right: var(--ff-space-sm);
}

.ffd-single-post__tag {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--ff-color-bg-gray);
    color: var(--ff-color-text-secondary);
    font-size: var(--ff-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--ff-radius-full);
    text-decoration: none;
    transition: all 0.25s ease;
}

.ffd-single-post__tag:hover {
    background: var(--ff-color-primary-light);
    color: var(--ff-color-primary);
}

/* ============================================
   RELATED SECTIONS
   ============================================ */

.ffd-single-post__related {
    background: linear-gradient(180deg, var(--ff-color-bg-gray) 0%, white 100%);
}

.ffd-related-section {
    padding: var(--ffd-section-gap) var(--ff-space-lg);
}

.ffd-related-section__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section header */
.ffd-related-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--ff-space-2xl);
    gap: var(--ff-space-lg);
    flex-wrap: wrap;
}

.ffd-related-section__header-content {
    flex: 1;
    min-width: 200px;
}

.ffd-related-section__subtitle {
    display: block;
    font-size: var(--ff-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ff-color-primary);
    margin-bottom: var(--ff-space-sm);
}

.ffd-related-section__title {
    font-family: var(--ffd-heading-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ff-color-text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ffd-related-section__header-decoration {
    color: var(--ff-color-primary);
    opacity: 0.5;
}

/* Grid */
.ffd-related-section__grid {
    margin-bottom: var(--ff-space-2xl);
}

/* CTA link */
.ffd-related-section__cta {
    text-align: center;
}

.ffd-related-section__cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--ff-space-sm);
    padding: var(--ff-space-md) var(--ff-space-xl);
    background: var(--ff-color-primary);
    color: white;
    font-size: var(--ff-font-size-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ff-radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 116, 14, 0.25);
}

.ffd-related-section__cta-link:hover {
    background: var(--ff-color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 116, 14, 0.35);
    gap: var(--ff-space-md);
}

.ffd-related-section__cta-link svg {
    transition: transform 0.3s ease;
}

.ffd-related-section__cta-link:hover svg {
    transform: translateX(4px);
}

/* Secondary CTA (for posts) */
.ffd-related-section__cta-link--secondary {
    background: transparent;
    color: var(--ff-color-text-primary);
    border: 2px solid var(--ff-color-border);
    box-shadow: none;
}

.ffd-related-section__cta-link--secondary:hover {
    background: var(--ff-color-text-primary);
    border-color: var(--ff-color-text-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Formations section specific */
.ffd-related-formations {
    background: white;
    position: relative;
}

.ffd-related-formations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ff-color-border) 20%,
        var(--ff-color-border) 80%,
        transparent 100%
    );
}

/* Posts section specific */
.ffd-related-posts {
    background: var(--ff-color-bg-gray);
}

/* ============================================
   TYPOGRAPHY & STYLE OVERRIDES FOR RELATED MODULES
   Force consistent fonts and colors on WooCommerce pages
   High specificity to override Divi styles
   ============================================ */

/* Related Formations - Montserrat for headers and all text */
.ffd-module-related-formations,
.ffd-module-related-formations *,
.et-db #et-boc .et-l .ffd-module-related-formations,
.et-db #et-boc .et-l .ffd-module-related-formations *,
body.single-product .ffd-module-related-formations,
body.single-product .ffd-module-related-formations * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
}

.ffd-module-related-formations .ffd-related-section__title,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__title,
body.single-product .ffd-module-related-formations .ffd-related-section__title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.ffd-module-related-formations .ffd-related-section__subtitle,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__subtitle,
body.single-product .ffd-module-related-formations .ffd-related-section__subtitle {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.ffd-module-related-formations .formation-card__title,
.ffd-module-related-formations .formation-card__title a,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card__title,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card__title a,
body.single-product .ffd-module-related-formations .formation-card__title,
body.single-product .ffd-module-related-formations .formation-card__title a {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.ffd-module-related-formations .formation-card__category-badge,
.ffd-module-related-formations .formation-card__tag,
.ffd-module-related-formations .formation-card__duration,
.ffd-module-related-formations .formation-card__info-text {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
}

/* Bouton "Voir la formation" - blanc sur orange - très haute spécificité */
.ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button,
.ffd-module-related-formations .formation-card .formation-card__footer a.formation-card__button,
.ffd-module-related-formations .formation-card__button,
.ffd-module-related-formations a.formation-card__button,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card .formation-card__footer a.formation-card__button,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card__button,
.et-db #et-boc .et-l .ffd-module-related-formations a.formation-card__button,
body.single-product .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button,
body.single-product .ffd-module-related-formations .formation-card__button,
body.woocommerce .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button,
body.woocommerce .ffd-module-related-formations .formation-card__button {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    background: #F8740E !important;
    background-color: #F8740E !important;
    color: #FFFFFF !important;
    border: none !important;
    line-height: 1.4 !important;
}

.ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:hover,
.ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:visited,
.ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:focus,
.ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:active,
.ffd-module-related-formations .formation-card__button:hover,
.ffd-module-related-formations .formation-card__button:visited,
.ffd-module-related-formations .formation-card__button:focus,
.ffd-module-related-formations .formation-card__button:active,
.ffd-module-related-formations a.formation-card__button:hover,
.ffd-module-related-formations a.formation-card__button:visited,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:hover,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:visited,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:focus,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card__button:hover,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card__button:visited,
.et-db #et-boc .et-l .ffd-module-related-formations .formation-card__button:focus,
.et-db #et-boc .et-l .ffd-module-related-formations a.formation-card__button:hover,
body.single-product .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:hover,
body.single-product .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:visited,
body.single-product .ffd-module-related-formations .formation-card__button:hover,
body.single-product .ffd-module-related-formations .formation-card__button:visited,
body.woocommerce .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:hover,
body.woocommerce .ffd-module-related-formations .formation-card .formation-card__footer .formation-card__button:visited,
body.woocommerce .ffd-module-related-formations .formation-card__button:hover,
body.woocommerce .ffd-module-related-formations .formation-card__button:visited {
    background: #E56A0D !important;
    background-color: #E56A0D !important;
    color: #FFFFFF !important;
}

/* Bouton "Voir toutes nos formations" - blanc sur orange - très haute spécificité */
.ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link,
.ffd-module-related-formations .ffd-related-section__cta a.ffd-related-section__cta-link,
.ffd-module-related-formations .ffd-related-section__cta-link,
.ffd-module-related-formations a.ffd-related-section__cta-link,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta a.ffd-related-section__cta-link,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta-link,
.et-db #et-boc .et-l .ffd-module-related-formations a.ffd-related-section__cta-link,
body.single-product .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link,
body.single-product .ffd-module-related-formations .ffd-related-section__cta-link,
body.woocommerce .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link,
body.woocommerce .ffd-module-related-formations .ffd-related-section__cta-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    background: #F8740E !important;
    background-color: #F8740E !important;
    color: #FFFFFF !important;
    border: none !important;
    line-height: 1.4 !important;
}

.ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:hover,
.ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:visited,
.ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:focus,
.ffd-module-related-formations .ffd-related-section__cta-link:hover,
.ffd-module-related-formations .ffd-related-section__cta-link:visited,
.ffd-module-related-formations .ffd-related-section__cta-link:focus,
.ffd-module-related-formations a.ffd-related-section__cta-link:hover,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:hover,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:visited,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta-link:hover,
.et-db #et-boc .et-l .ffd-module-related-formations .ffd-related-section__cta-link:visited,
.et-db #et-boc .et-l .ffd-module-related-formations a.ffd-related-section__cta-link:hover,
body.single-product .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:hover,
body.single-product .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:visited,
body.single-product .ffd-module-related-formations .ffd-related-section__cta-link:hover,
body.single-product .ffd-module-related-formations .ffd-related-section__cta-link:visited,
body.woocommerce .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:hover,
body.woocommerce .ffd-module-related-formations .ffd-related-section__cta .ffd-related-section__cta-link:visited,
body.woocommerce .ffd-module-related-formations .ffd-related-section__cta-link:hover,
body.woocommerce .ffd-module-related-formations .ffd-related-section__cta-link:visited {
    background: #E56A0D !important;
    background-color: #E56A0D !important;
    color: #FFFFFF !important;
}

/* Related Posts - System fonts for clean readability */
.ffd-module-related-posts,
.ffd-module-related-posts *,
.et-db #et-boc .et-l .ffd-module-related-posts,
.et-db #et-boc .et-l .ffd-module-related-posts *,
body.single-product .ffd-module-related-posts,
body.single-product .ffd-module-related-posts * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
}

.ffd-module-related-posts .ffd-related-section__title,
.et-db #et-boc .et-l .ffd-module-related-posts .ffd-related-section__title,
body.single-product .ffd-module-related-posts .ffd-related-section__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.ffd-module-related-posts .ffd-related-section__subtitle,
.et-db #et-boc .et-l .ffd-module-related-posts .ffd-related-section__subtitle,
body.single-product .ffd-module-related-posts .ffd-related-section__subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.ffd-module-related-posts .blog-card-editorial__title,
.ffd-module-related-posts .blog-card-editorial__title a,
.et-db #et-boc .et-l .ffd-module-related-posts .blog-card-editorial__title,
.et-db #et-boc .et-l .ffd-module-related-posts .blog-card-editorial__title a,
body.single-product .ffd-module-related-posts .blog-card-editorial__title,
body.single-product .ffd-module-related-posts .blog-card-editorial__title a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}

.ffd-module-related-posts .blog-card-editorial__excerpt,
.ffd-module-related-posts .blog-card-editorial__date,
.ffd-module-related-posts .blog-card-editorial__category,
.ffd-module-related-posts .blog-card-editorial__category--overlay,
.ffd-module-related-posts .blog-card-editorial__tag,
.ffd-module-related-posts .blog-card-editorial__link,
.ffd-module-related-posts .blog-card-editorial__reading-time {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* Bouton "Voir tous les articles" - style secondaire */
.ffd-module-related-posts .ffd-related-section__cta-link,
.et-db #et-boc .et-l .ffd-module-related-posts .ffd-related-section__cta-link,
body.single-product .ffd-module-related-posts .ffd-related-section__cta-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   AUTOMATIC RELATED CONTENT (via the_content hook)
   ============================================ */

.ffd-single-post-related {
    margin-top: var(--ffd-section-gap);
}

.ffd-single-post-related .ffd-related-section:first-child {
    padding-top: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ffd-post-header__banner {
        height: 40vh;
        min-height: 300px;
    }

    .ffd-post-header__content {
        margin-top: -60px;
        padding: var(--ff-space-lg) var(--ff-space-md);
    }

    .ffd-post-header__inner {
        padding: var(--ff-space-lg);
    }

    .ffd-post-header__title {
        font-size: 1.75rem;
    }

    .ffd-post-header__meta-bottom {
        flex-direction: column;
        gap: var(--ff-space-md);
    }

    .ffd-single-post__content {
        padding: 0 var(--ff-space-md) var(--ff-space-xl);
    }

    .ffd-single-post__content-inner {
        font-size: 1rem;
    }

    .ffd-related-section {
        padding: var(--ff-space-xl) var(--ff-space-md);
    }

    .ffd-related-section__title {
        font-size: 1.5rem;
    }

    .ffd-related-section__header-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .ffd-post-header__meta-top {
        flex-direction: column;
        gap: var(--ff-space-sm);
    }

    .ffd-post-header__author {
        flex-direction: column;
        text-align: center;
    }

    .ffd-post-header__author-info {
        text-align: center;
    }

    .ffd-single-post__tags {
        justify-content: center;
    }

    .ffd-single-post__tags-label {
        width: 100%;
        text-align: center;
        margin-bottom: var(--ff-space-sm);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .ffd-post-header__banner {
        height: auto;
        min-height: auto;
        max-height: 300px;
    }

    .ffd-post-header__content {
        margin-top: 0;
    }

    .ffd-post-header__inner {
        box-shadow: none;
    }

    .ffd-single-post__related,
    .ffd-related-section__cta {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .ffd-post-header__image,
    .ffd-post-header__category,
    .ffd-related-section__cta-link,
    .ffd-single-post__tag {
        transition: none;
    }

    .ffd-post-header:hover .ffd-post-header__image {
        transform: none;
    }
}
