/**
 * Styles du module Actualités (Liste [jmd_actualites], Sidebar & Page détail single-post)
 * Fidélité à la charte graphique de production (Clash Grotesk, rouge #e6311c, noir #1d1d1b)
 */

.jmd-actualites-wrap,
.jmd-single-news-wrap,
main.site-main.jmd-single-news-wrap {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 2rem auto 4rem auto !important;
    font-family: "Clash Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d1d1b;
    box-sizing: border-box;
    padding: 0 24px !important;
}

.jmd-actualites-wrap *,
.jmd-single-news-wrap * {
    box-sizing: border-box;
}

/* ==========================================================================
   Disposition 2 colonnes (Contenu principal + Sidebar)
   ========================================================================== */
.jmd-news-layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.jmd-news-main-col {
    min-width: 0;
}

.jmd-news-sidebar-col {
    position: sticky;
    top: 32px;
    min-width: 0;
}

@media (max-width: 1120px) {
    .jmd-news-layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .jmd-news-sidebar-col {
        position: static;
    }
}

/* ==========================================================================
   Barre de filtres & recherche (Liste Actualités)
   ========================================================================== */
.jmd-news-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2.5rem;
    background: transparent;
    padding: 0 0 24px 0;
    border: none;
    border-bottom: 2px solid #e6311c;
    border-radius: 0;
    box-shadow: none;
}

.jmd-news-search-group {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jmd-news-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jmd-news-filter-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d1d1b;
}

.jmd-news-search-box {
    position: relative;
    width: 100%;
}

.jmd-news-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #777777;
    pointer-events: none;
}

.jmd-news-search-input {
    width: 100%;
    height: 44px;
    padding: 8px 16px 8px 42px;
    font-family: inherit;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #1d1d1b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jmd-news-search-input:focus {
    outline: none;
    border-color: #e6311c;
    box-shadow: 0 0 0 3px rgba(230, 49, 28, 0.14);
}

.jmd-news-select {
    height: 44px;
    padding: 0 36px 0 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d1d1b' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #1d1d1b;
    min-width: 220px;
    transition: border-color 0.2s ease;
}

.jmd-news-select:focus {
    outline: none;
    border-color: #e6311c;
}

/* Boutons filtres Tout / Articles / Vidéos */
.jmd-news-type-pills {
    display: inline-flex;
    gap: 8px;
}

.jmd-news-pill {
    height: 44px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #e6311c !important;
    border-radius: 6px;
    background: #ffffff !important;
    color: #e6311c !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.jmd-news-pill:hover,
.jmd-news-pill.active {
    background: #e6311c !important;
    color: #ffffff !important;
}

.jmd-news-results-count {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 20px;
}

/* ==========================================================================
   Grille de cartes d'actualités
   ========================================================================== */
.jmd-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Dans la colonne principale à côté de la sidebar : 2 colonnes larges */
.jmd-news-grid.jmd-news-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .jmd-news-grid,
    .jmd-news-grid.jmd-news-grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 680px) {
    .jmd-news-grid,
    .jmd-news-grid.jmd-news-grid-2col {
        grid-template-columns: 1fr;
    }
    .jmd-news-filters-bar {
        padding: 16px;
    }
    .jmd-news-type-pills {
        width: 100%;
    }
    .jmd-news-pill {
        flex: 1;
        padding: 0 10px;
    }
}

/* Carte Actualité : filet léger et discret, ombrage doux au survol */
.jmd-news-card,
.jmd-news-card-red,
.jmd-news-card-dark {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jmd-news-card:hover,
.jmd-news-card-red:hover,
.jmd-news-card-dark:hover {
    transform: translateY(-4px);
    border-color: #d2d2d2;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
}

/* Zone vignette 16:9 */
.jmd-news-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #141414;
    overflow: hidden;
    border-bottom: 2px solid #f0f0f0;
}

.jmd-news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.jmd-news-card:hover .jmd-news-card-media img {
    transform: scale(1.05);
}

/* Badge catégorie */
.jmd-news-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e6311c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Badge vidéo */
.jmd-news-badge-video {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    border: 1.5px solid #e6311c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 11px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.jmd-news-badge-video svg {
    width: 15px;
    height: 15px;
    fill: #e6311c;
}

/* Corps de la carte */
.jmd-news-card-body {
    padding: 20px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jmd-news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #666666;
    margin-bottom: 12px;
}

.jmd-news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #444444;
}

.jmd-news-date svg {
    width: 15px;
    height: 15px;
    fill: #e6311c;
}

.jmd-news-reading-time {
    font-size: 12px;
    background: #f4f4f4;
    color: #555555;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 500;
}

.jmd-news-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.32;
    margin: 0 0 12px 0;
    color: #1d1d1b;
}

.jmd-news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jmd-news-card-title a:hover {
    color: #e6311c;
}

.jmd-news-card-excerpt {
    font-size: 15px;
    line-height: 1.56;
    color: #4a4a4a;
    margin: 0 0 18px 0;
    flex: 1;
}

/* Pied de carte : partage rapide + bouton Lire la suite */
.jmd-news-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.jmd-btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e6311c;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 9px 14px;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.jmd-btn-read-more:hover {
    background: #b52211;
    color: #ffffff !important;
    transform: translateX(2px);
}

.jmd-btn-read-more svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Message vide */
.jmd-news-empty-state,
.jmd-news-empty-filter {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border: 2px dashed #dddddd;
    border-radius: 8px;
    font-size: 17px;
    color: #666666;
    margin: 20px 0;
}

/* ==========================================================================
   Boutons de partage réseaux sociaux (LinkedIn, X, Instagram, Facebook, Lien)
   ========================================================================== */
.jmd-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.jmd-share-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1d1d1b;
}

.jmd-share-buttons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Style de base commun (écrase le style global rouge des <button> Elementor) */
.jmd-share-btn,
button.jmd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: "Clash Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    border: 1.5px solid #d8d8d8 !important;
    background: #ffffff !important;
    color: #1d1d1b !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.jmd-share-compact .jmd-share-btn,
.jmd-share-compact button.jmd-share-btn {
    width: 34px;
    height: 34px;
    padding: 0 !important;
}

.jmd-share-full .jmd-share-btn,
.jmd-share-full button.jmd-share-btn {
    padding: 9px 14px !important;
}

.jmd-share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Survol réseaux sociaux (LinkedIn, X, Instagram, Facebook) */
.jmd-share-linkedin:hover {
    background: #0a66c2 !important;
    border-color: #0a66c2 !important;
    color: #ffffff !important;
}

.jmd-share-x:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

button.jmd-share-instagram:hover,
.jmd-share-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #dc2743 !important;
    color: #ffffff !important;
}

.jmd-share-facebook:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #ffffff !important;
}

/* Bouton utilitaire "Copier le lien" : conservé en rouge par défaut */
button.jmd-share-copy,
.jmd-share-copy {
    background: #e6311c !important;
    border-color: #e6311c !important;
    color: #ffffff !important;
}

button.jmd-share-copy:hover,
.jmd-share-copy:hover {
    background: #b52211 !important;
    border-color: #b52211 !important;
    color: #ffffff !important;
}

/* Notification Toast lors de la copie du lien / partage Instagram */
.jmd-share-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1d1d1b;
    color: #ffffff;
    border-left: 5px solid #e6311c;
    padding: 14px 22px;
    border-radius: 6px;
    font-family: "Clash Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.jmd-share-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Sidebar (Catégories, Newsletter Brevo, Push Visiteur/Exposant, Agenda, Réseaux)
   ========================================================================== */
.jmd-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.jmd-sidebar-widget {
    background: #ffffff;
    border: 2.5px solid #1d1d1b;
    box-shadow: 5px 5px 0 #1d1d1b;
    border-radius: 8px;
    padding: 24px;
}

.jmd-sidebar-title {
    font-family: "Clash Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1b;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jmd-sidebar-title::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #e6311c;
    transform: rotate(45deg);
    display: inline-block;
}

/* 1. Widget Catégories */
.jmd-sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jmd-sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 6px;
    background: #f8f8f8;
    color: #1d1d1b !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.jmd-sidebar-cat-link:hover,
.jmd-sidebar-cat-link.active {
    background: #e6311c;
    color: #ffffff !important;
    border-color: #e6311c;
}

.jmd-sidebar-cat-count {
    background: #ffffff;
    color: #1d1d1b;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}

.jmd-sidebar-cat-link:hover .jmd-sidebar-cat-count,
.jmd-sidebar-cat-link.active .jmd-sidebar-cat-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* 2. Widget Newsletter Brevo */
.jmd-widget-newsletter {
    background: #1d1d1b;
    color: #ffffff;
    border-color: #1d1d1b;
    box-shadow: 5px 5px 0 #e6311c;
}

.jmd-newsletter-badge {
    display: inline-block;
    background: #e6311c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.jmd-widget-newsletter .jmd-sidebar-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.jmd-sidebar-text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px 0;
}

.jmd-brevo-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jmd-brevo-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    color: #1d1d1b;
    font-family: inherit;
    font-size: 14px;
}

.jmd-brevo-input:focus {
    outline: none;
    border-color: #e6311c;
}

label.jmd-brevo-consent,
.jmd-brevo-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.38 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    cursor: pointer;
    margin: 2px 0 4px 0 !important;
}

label.jmd-brevo-consent span,
.jmd-brevo-consent span {
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.38 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.jmd-brevo-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #e6311c;
    flex-shrink: 0;
}

button.jmd-brevo-submit,
.jmd-brevo-submit {
    width: 100%;
    height: 44px;
    background: #e6311c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

button.jmd-brevo-submit:hover,
.jmd-brevo-submit:hover {
    background: #c92613 !important;
    transform: translateY(-1px);
}

.jmd-brevo-submit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 3. Push Visuels (Exposant & Visiteur) */
.jmd-widget-push-exposant {
    background: #e6311c;
    color: #ffffff;
    border-color: #1d1d1b;
    box-shadow: 5px 5px 0 #1d1d1b;
}

.jmd-widget-push-visiteur {
    background: #ffffff;
    color: #1d1d1b;
    border: 2.5px solid #e6311c;
    box-shadow: 5px 5px 0 #e6311c;
}

.jmd-push-kicker {
    display: inline-block;
    background: #1d1d1b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.jmd-push-kicker-red {
    background: #e6311c;
}

.jmd-push-title {
    font-family: "Clash Grotesk", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: inherit;
}

.jmd-push-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.jmd-push-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.jmd-push-btn-light {
    background: #ffffff;
    color: #1d1d1b !important;
}

.jmd-push-btn-light:hover {
    background: #1d1d1b;
    color: #ffffff !important;
}

.jmd-push-btn-red {
    background: #e6311c;
    color: #ffffff !important;
}

.jmd-push-btn-red:hover {
    background: #1d1d1b;
    color: #ffffff !important;
}

/* 4. Widget Prochaine Édition & Agenda */
.jmd-event-details-list {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jmd-event-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jmd-event-details-list svg {
    width: 22px;
    height: 22px;
    fill: #e6311c;
    flex-shrink: 0;
    margin-top: 2px;
}

.jmd-event-details-list strong {
    display: block;
    font-size: 15px;
    color: #1d1d1b;
}

.jmd-event-details-list span {
    font-size: 13px;
    color: #666666;
}

.jmd-event-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button.jmd-btn-ics,
.jmd-btn-ics {
    width: 100%;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    border: 2px solid #1d1d1b !important;
    background: #ffffff !important;
    color: #1d1d1b !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.jmd-btn-ics:hover,
.jmd-btn-ics:hover {
    background: #1d1d1b !important;
    color: #ffffff !important;
}

.jmd-btn-ics svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.jmd-event-more-link {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #e6311c !important;
    text-decoration: none !important;
}

.jmd-event-more-link:hover {
    text-decoration: underline !important;
}

/* 5. Widget Communauté */
.jmd-community-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jmd-community-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid #e0e0e0;
    color: #1d1d1b !important;
    background: #fafafa;
    transition: all 0.2s ease;
}

.jmd-community-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.jmd-comm-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff !important;
}

.jmd-comm-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff !important;
}

/* ==========================================================================
   Page Détail d'une Actualité (single-post.php)
   ========================================================================== */
.jmd-single-hero {
    margin-top: 111px;
    min-height: 295px;
    padding: 78px 24px 40px 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    border-bottom: 4px solid #e6311c;
}

.jmd-single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.48) 0%, rgba(15, 15, 15, 0.84) 100%);
    z-index: 1;
}

.jmd-single-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.jmd-single-hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 500;
}

.jmd-single-cat-badge {
    background: #e6311c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 4px;
}

/* H1 unique de l'article intégré dans la bannière (fluide pour titres courts et longs) */
.jmd-single-hero-h1 {
    font-family: "Clash Grotesk", sans-serif;
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin: 0;
    max-width: 1040px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
    text-wrap: balance;
}

@media (max-width: 768px) {
    .jmd-single-hero {
        margin-top: 190px;
        min-height: 210px;
        padding: 36px 16px 28px 16px;
    }
    .jmd-single-hero-h1 {
        font-size: 24px;
        line-height: 1.26;
    }
}

.jmd-single-article-container {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 38px 44px;
}

@media (max-width: 768px) {
    .jmd-single-article-container {
        padding: 24px 20px;
    }
}

.jmd-single-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid #eeeeee;
}

/* Lien retour */
.jmd-back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e6311c !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.jmd-back-to-news:hover {
    color: #1d1d1b !important;
    transform: translateX(-4px);
}

.jmd-back-to-news svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Média principal (Image à la une ou Vidéo YouTube) */
.jmd-single-featured-media {
    margin-bottom: 34px;
}

.jmd-single-featured-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.jmd-single-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Lecteur Vidéo YouTube 16:9 Responsive */
.jmd-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    margin: 26px 0;
}

.jmd-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Corps éditorial de l'article */
.jmd-single-content {
    font-size: 18px;
    line-height: 1.72;
    color: #222222;
}

.jmd-single-content p {
    margin: 0 0 1.4em 0;
}

.jmd-single-content h2 {
    font-size: 27px;
    font-weight: 700;
    color: #1d1d1b;
    margin: 1.8em 0 0.7em 0;
    padding-left: 14px;
    border-left: 5px solid #e6311c;
    line-height: 1.3;
}

.jmd-single-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1b;
    margin: 1.5em 0 0.6em 0;
    line-height: 1.35;
}

.jmd-single-content ul,
.jmd-single-content ol {
    margin: 0 0 1.5em 1.2em;
    padding-left: 1em;
}

.jmd-single-content li {
    margin-bottom: 0.5em;
}

.jmd-single-content blockquote {
    margin: 2em 0;
    padding: 22px 28px;
    background: #fafafa;
    border-left: 5px solid #e6311c;
    font-size: 19px;
    font-style: italic;
    color: #1d1d1b;
    border-radius: 0 6px 6px 0;
}

.jmd-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5em 0;
}

.jmd-single-content a {
    color: #e6311c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jmd-single-content a:hover {
    color: #b52211;
}

/* Encart de partage en pied d'article */
.jmd-single-share-bottom {
    margin-top: 40px;
    padding: 24px 28px;
    background: #1d1d1b;
    color: #ffffff;
    border-radius: 8px;
    border-left: 6px solid #e6311c;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jmd-single-share-bottom .jmd-share-label {
    color: #ffffff;
    font-size: 15px;
}

/* Section "À découvrir également" en bas de page détail */
.jmd-related-news-section {
    margin: 4.5rem auto 2rem auto;
    padding-top: 3rem;
    border-top: 2px solid #eeeeee;
}

.jmd-related-news-title {
    font-family: "Clash Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1b;
    text-align: center;
    margin: 0 0 2.5rem 0;
}
