/* Styles de actualite.php (extraits de la page, même ordre) */

    :root {
        --ln-bg: #ffffff;
        --ln-dark: #0f172a;
        --ln-red: #cc0000;
        --ln-text: #2d3748;
        --ln-muted: #64748b;
        --ln-border: #e2e8f0;
        --ln-surface: #f8fafc;
        --ln-surface-2: #f1f5f9;
        --ln-btn-text: #475569;
        --ln-comment-text: #334155;
        --ln-comment-date: #94a3b8;
        --ln-num-muted: #cbd5e1;
        --ln-num-shared: #fca5a5;
        --ln-like-hover-bg: #fee2e2;
        --ln-invert-bg: #0f172a;
        --ln-invert-text: #ffffff;
        --ln-header-offset: 0px;
        --font-serif: var(--font-heading);
        --font-sans: var(--font-body);
    }

    .ln-main-wrapper.dark-mode {
        --ln-bg: #0b1220;
        --ln-dark: #f1f5f9;
        --ln-text: #cbd5e1;
        --ln-muted: #94a3b8;
        --ln-border: #1e293b;
        --ln-surface: #111827;
        --ln-surface-2: #1e293b;
        --ln-btn-text: #cbd5e1;
        --ln-comment-text: #cbd5e1;
        --ln-comment-date: #64748b;
        --ln-num-muted: #334155;
        --ln-num-shared: #7f1d1d;
        --ln-like-hover-bg: #3f1212;
        --ln-invert-bg: #f1f5f9;
        --ln-invert-text: #0f172a;
    }

    .ln-main-wrapper {
        font-family: var(--font-sans);
        color: var(--ln-text);
        background-color: var(--ln-bg);
        padding: clamp(1.25rem, 4vw, 2rem) 0 clamp(2.5rem, 6vw, 4rem);
        overflow-x: hidden;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    /* Layout asymétrique 2 colonnes (Article / Sidebar) */
    .ln-layout-container {
        max-width: 1300px;
        margin: 0 auto;
        padding: 0 clamp(14px, 4vw, 24px);
        display: grid;
        grid-template-columns: 2.7fr 1.3fr;
        gap: clamp(24px, 4vw, 40px);
    }

    .back-link {
        display: inline-flex;
        align-items: center;
        margin-bottom: 25px;
        color: var(--ln-red);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .back-link:hover {
        text-decoration: underline;
    }

    .reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        width: 0%;
        background: var(--ln-red);
        z-index: 1100;
    }

    .draft-preview-banner {
        background: #92400e;
        color: #fff7ed;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 10px 16px;
    }

    .ln-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }

    .ln-breadcrumb {
        font-size: 0.82rem;
        color: var(--ln-muted);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin: 0;
    }

    .ln-breadcrumb a {
        color: var(--ln-muted);
        text-decoration: none;
    }

    .ln-breadcrumb a:hover {
        color: var(--ln-red);
        text-decoration: underline;
    }

    .ln-breadcrumb-current {
        color: var(--ln-text);
        font-weight: 600;
    }

    .theme-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: var(--ln-surface);
        border: 1px solid var(--ln-border);
        border-radius: 50px;
        color: var(--ln-text);
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .theme-toggle-btn:hover {
        border-color: var(--ln-red);
        color: var(--ln-red);
    }

    .article-byline {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 12px 0 4px;
    }

    .byline-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--ln-invert-bg);
        color: var(--ln-invert-text);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .byline-info {
        line-height: 1.3;
    }

    .byline-name {
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--ln-dark);
    }

    .byline-role {
        font-size: 0.78rem;
        color: var(--ln-muted);
    }

    .article-header {
        border-bottom: 1px solid var(--ln-border);
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .tag {
        font-size: 0.8rem;
        text-transform: uppercase;
        color: var(--ln-red);
        font-weight: 700;
        margin-bottom: 8px;
        display: inline-block;
    }

    .detail-title {
        font-family: var(--font-serif);
        font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.4rem);
        margin: 0 0 15px 0;
        color: var(--ln-dark);
        line-height: 1.2;
        font-weight: 700;
        overflow-wrap: break-word;
    }

    .meta {
        font-size: 0.85rem;
        color: var(--ln-muted);
        line-height: 1.8;
    }

    .cover-image {
        width: 100%;
        height: auto;
        display: block;
        border: 1px solid var(--ln-border);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        line-height: 1.7;
        margin-bottom: clamp(24px, 5vw, 40px);
    }

    .cover-image.has-caption {
        margin-bottom: 10px;
    }

    .cover-caption {
        font-size: 0.85rem;
        color: var(--ln-muted);
        font-style: italic;
        margin: 0 0 clamp(24px, 5vw, 40px);
    }

    /* Sommaire */
    .article-toc {
        background: var(--ln-surface);
        border: 1px solid var(--ln-border);
        border-radius: 10px;
        padding: 18px 20px;
        margin-bottom: clamp(24px, 5vw, 40px);
    }

    .article-toc-title {
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--ln-dark);
        margin-bottom: 10px;
    }

    .article-toc-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .article-toc-list li[data-level="3"] {
        padding-left: 16px;
    }

    .article-toc-list li[data-level="4"] {
        padding-left: 32px;
    }

    .article-toc-list a {
        color: var(--ln-text);
        text-decoration: none;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .article-toc-list a:hover {
        color: var(--ln-red);
        text-decoration: underline;
    }

    .article-content {
        font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
        overflow-wrap: break-word;
    }

    .article-content p {
        text-align: justify;
        margin: 0;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 1rem auto;
    }

    .article-content iframe {
        max-width: 100%;
    }

    .article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    /* Vidéo(s) de l'article */
    .article-video {
        margin-bottom: clamp(24px, 5vw, 40px);
    }

    .article-video .ratio {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .article-video video {
        display: block;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .media-caption {
        font-size: 0.85rem;
        color: var(--ln-muted);
        margin: 10px 0 0;
        font-style: italic;
    }

    /* Mini galerie photo */
    .mini-gallery {
        margin: clamp(24px, 5vw, 40px) 0;
        border-top: 1px solid var(--ln-border);
        padding-top: clamp(18px, 4vw, 30px);
    }

    .mini-gallery-title {
        font-family: var(--font-serif);
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--ln-dark);
        margin-bottom: 16px;
    }

    .mini-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
        gap: 14px;
    }

    .mini-gallery-item {
        margin: 0;
        cursor: pointer;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid var(--ln-border);
        background: var(--ln-surface);
        transition: transform 0.2s;
    }

    .mini-gallery-item:hover {
        transform: translateY(-3px);
    }

    .mini-gallery-item img {
        width: 100%;
        height: 110px;
        object-fit: cover;
        display: block;
    }

    .mini-gallery-item figcaption {
        font-size: 0.75rem;
        color: var(--ln-muted);
        padding: 6px 8px;
        line-height: 1.3;
    }

    /* Lightbox */
    .lightbox-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.92);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 20px;
    }

    .lightbox-overlay.show {
        display: flex;
    }

    .lightbox-img {
        max-width: 90vw;
        max-height: 80vh;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .lightbox-caption {
        color: #f1f5f9;
        margin-top: 14px;
        font-size: 0.95rem;
        max-width: 80vw;
        text-align: center;
    }

    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 30px;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.2rem;
        line-height: 1;
        cursor: pointer;
    }

    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: #fff;
        font-size: 2.5rem;
        line-height: 1;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        cursor: pointer;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    @media (max-width: 600px) {
        .lightbox-nav {
            width: 38px;
            height: 38px;
            font-size: 1.8rem;
        }
    }

    /* Tags */
    .article-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: clamp(18px, 4vw, 30px) 0;
    }

    .tag-chip {
        display: inline-block;
        padding: 6px 14px;
        background: var(--ln-surface-2);
        color: var(--ln-dark);
        border-radius: 50px;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.15s ease;
    }

    .tag-chip:hover {
        background: var(--ln-red);
        color: #fff;
    }

    /* Partage */
    .share-bar {
        display: flex;
        gap: 8px;
        align-items: center;
        border-top: 1px solid var(--ln-border);
        border-bottom: 1px solid var(--ln-border);
        padding: 12px 0;
        margin-bottom: clamp(24px, 5vw, 40px);
        flex-wrap: wrap;
        position: sticky;
        top: var(--ln-header-offset, 0px);
        z-index: 40;
        background: var(--ln-bg);
    }

    .share-title-label {
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--ln-dark);
        margin-right: 8px;
    }

    .share-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: var(--ln-surface);
        color: var(--ln-btn-text);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        border: 1px solid var(--ln-border);
        transition: all 0.2s;
    }

    .share-btn:hover {
        background: var(--ln-invert-bg);
        color: var(--ln-invert-text);
    }

    .share-icon {
        width: 16px;
        height: 16px;
    }

    .share-icon svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
        display: block;
    }

    .like-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        background: var(--ln-surface);
        color: var(--ln-btn-text);
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid var(--ln-border);
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.2s;
        margin-right: 8px;
    }

    .like-btn:hover {
        background: var(--ln-like-hover-bg);
        border-color: var(--ln-red);
        color: var(--ln-red);
    }

    .like-btn.liked {
        background: var(--ln-red);
        border-color: var(--ln-red);
        color: #fff;
    }

    .like-btn:disabled {
        cursor: default;
        opacity: 0.9;
    }

    /* Commentaires */
    .comments-section {
        margin-bottom: clamp(24px, 5vw, 40px);
    }

    .comments-section h3 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .comment-form {
        background: var(--ln-surface);
        border: 1px solid var(--ln-border);
        border-radius: 10px;
        padding: 18px;
        margin-bottom: 24px;
    }

    .comment-form-row {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .comment-form input,
    .comment-form textarea {
        flex: 1;
        min-width: 200px;
        padding: 10px 12px;
        border: 1px solid var(--ln-border);
        border-radius: 6px;
        font-size: 0.9rem;
        font-family: inherit;
        resize: vertical;
        background: var(--ln-bg);
        color: var(--ln-text);
    }

    .comment-form textarea {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .comment-feedback {
        margin: 10px 0 0;
        font-size: 0.85rem;
    }

    .comment-feedback.success {
        color: #16a34a;
    }

    .comment-feedback.error {
        color: var(--ln-red);
    }

    .comment-empty {
        color: var(--ln-muted);
        font-size: 0.9rem;
    }

    .comment-controls {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 12px;
    }

    .comment-sort-select {
        padding: 6px 10px;
        border: 1px solid var(--ln-border);
        border-radius: 6px;
        font-size: 0.82rem;
        background: var(--ln-surface);
        color: var(--ln-text);
    }

    .comment-item.is-hidden-page {
        display: none;
    }

    .comment-load-more {
        display: block;
        margin: 16px auto 0;
        padding: 8px 20px;
        background: var(--ln-surface);
        border: 1px solid var(--ln-border);
        border-radius: 50px;
        color: var(--ln-dark);
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
    }

    .comment-load-more:hover {
        border-color: var(--ln-red);
        color: var(--ln-red);
    }

    .comment-item {
        border-bottom: 1px solid var(--ln-border);
        padding: 16px 0;
    }

    .comment-item:last-child {
        border-bottom: none;
    }

    .comment-item-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
        gap: 10px;
    }

    .comment-author {
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--ln-dark);
    }

    .comment-date {
        font-size: 0.78rem;
        color: var(--ln-comment-date);
    }

    .comment-text {
        font-size: 0.9rem;
        color: var(--ln-comment-text);
        margin: 0;
        line-height: 1.5;
    }

    /* Reste à lire */
    .related-section {
        border-top: 2px solid var(--ln-dark);
        padding-top: 25px;
        margin-top: clamp(30px, 6vw, 50px);
    }

    .related-section h3 {
        font-size: 1.1rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--ln-red);
        margin-bottom: 20px;
    }

    .related-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .related-card {
        border-bottom: 1px solid var(--ln-border);
        padding-bottom: 16px;
        display: flex;
        gap: 20px;
        height: 90px;
        text-decoration: none;
        color: inherit;
    }

    .related-img {
        width: 120px;
        height: 100%;
        object-fit: cover;
    }

    .related-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    .related-title {
        font-family: var(--font-serif);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ln-dark);
        line-height: 1.3;
        overflow-wrap: break-word;
    }

    /* STYLISATION DE LA SIDEBAR NOUVELLISTE */
    .ln-sidebar {
        display: flex;
        flex-direction: column;
        gap: clamp(20px, 4vw, 32px);
    }

    .ln-widget {
        border-top: 4px solid var(--ln-dark);
        background: var(--ln-surface);
        padding: clamp(16px, 3vw, 20px);
    }

    .ln-widget.shared-box {
        border-top-color: var(--ln-red);
    }

    .ln-widget.featured-box {
        border-top-color: #d97706;
    }

    .ln-widget.featured-box .ln-widget-title {
        color: #d97706;
    }

    .ln-featured-item {
        display: flex;
        gap: 12px;
        align-items: center;
        text-decoration: none;
        color: inherit;
        border-bottom: 1px dashed var(--ln-border);
        padding-bottom: 12px;
    }

    .ln-featured-item:last-child {
        border: none;
        padding-bottom: 0;
    }

    .ln-featured-thumb {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        background: var(--ln-border);
    }

    .ln-featured-title {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--ln-dark);
        line-height: 1.3;
    }

    .ln-featured-item:hover .ln-featured-title {
        color: var(--ln-red);
    }

    /* Différenciation de couleur */
    .ln-widget-title {
        font-size: 0.9rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--ln-dark);
        margin-bottom: 16px;
        border-bottom: 1px solid var(--ln-border);
        padding-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .ln-widget.shared-box .ln-widget-title {
        color: var(--ln-red);
    }

    .ln-sidebar-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .ln-sidebar-item {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        border-bottom: 1px dashed var(--ln-border);
        padding-bottom: 12px;
    }

    .ln-sidebar-item:last-child {
        border: none;
        padding-bottom: 0;
    }

    .ln-sidebar-num {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--ln-num-muted);
        line-height: 1;
        min-width: 24px;
    }

    .ln-widget.shared-box .ln-sidebar-num {
        color: var(--ln-num-shared);
    }

    .ln-sidebar-text a {
        font-family: var(--font-serif);
        color: var(--ln-dark);
        font-weight: 700;
        text-decoration: none;
        font-size: 0.95rem;
        line-height: 1.3;
        display: block;
        overflow-wrap: break-word;
    }

    .ln-sidebar-text a:hover {
        color: var(--ln-red);
    }

    .ln-sidebar-stat {
        font-size: 0.75rem;
        color: var(--ln-muted);
        margin-top: 4px;
        font-weight: 500;
    }

    @media (max-width: 992px) {
        .ln-layout-container {
            grid-template-columns: 1fr;
        }

        .ln-sidebar {
            margin-top: 40px;
        }
    }

    @media (max-width: 768px) {
        .cover-image {
            border-radius: 10px;
        }

        .mini-gallery-item img {
            height: 100px;
        }

        .comment-form-row {
            flex-direction: column;
        }

        .comment-form-row input {
            min-width: 100%;
        }
    }

    @media (max-width: 600px) {
        .article-content p {
            text-align: left;
        }

        .related-card {
            flex-direction: column;
            height: auto;
        }

        .related-img {
            width: 100%;
            height: 140px;
        }

        .meta span[style*="margin:0 6px"] {
            margin: 0 4px !important;
        }

        .share-title-label {
            flex-basis: 100%;
            margin-bottom: 4px;
        }

        .share-btn,
        .like-btn {
            font-size: 0.8rem;
            padding: 6px 10px;
        }

        .theme-toggle-btn span {
            display: none;
        }

        .ln-breadcrumb span:not(.ln-breadcrumb-current) {
            display: none;
        }

        .ln-breadcrumb a:not(:last-of-type) {
            display: none;
        }
    }

    @media (max-width: 400px) {
        .mini-gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        }
    }
