:root {
    --post-display-max-width: 1400px;
    --post-display-reader-width: minmax(0, 920px);
    --post-display-comments-width: 380px;
    --post-display-max-height: 92vh;
    --post-display-main-media-height: 410px;
    --post-display-gap: 24px;
    --post-display-overlay: rgba(245, 247, 250, .68);
    --long-reader-modal-margin: 30px;
}

.post-display-overlay {
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--post-display-overlay);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.post-display-overlay.d-none {
    display: none !important;
}

.post-display-dialog {
    width: min(var(--post-display-max-width), calc(100vw - 32px));
    height: min(var(--post-display-max-height), 980px);
    max-height: var(--post-display-max-height);
    border-radius: 16px;
    isolation: isolate;
}

.post-display-header {
    min-height: 66px;
    position: relative;
    z-index: 8;
    background: inherit;
}

.post-display-heading {
    min-width: 0;
}

.post-display-mode-label {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-display-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-display-mode-switch {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    color: #1d4ed8;
    font-size: .86rem;
    font-weight: 700;
}

.post-display-progress {
    height: 3px;
    flex: 0 0 3px;
    overflow: hidden;
    background: rgba(148, 163, 184, .22);
}

.post-display-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .12s linear;
}

.post-display-content {
    padding: 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.post-display-loading,
.post-display-error {
    margin: 24px;
}

.post-display-layout {
    display: grid;
    grid-template-columns: var(--post-display-reader-width) minmax(340px, var(--post-display-comments-width));
    gap: var(--post-display-gap);
    min-height: 100%;
    padding: 24px;
}

.post-display-reader {
    min-width: 0;
    max-width: 950px;
}

.post-display-article-title {
    margin: 0 0 10px;
    color: #172033;
    font-size: clamp(1.8rem, 2.7vw, 2.65rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.post-display-intro {
    margin: 18px 0;
    padding-left: 16px;
    border-left: 4px solid #60a5fa;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.6;
}

.post-display-main-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: var(--post-display-main-media-height);
    margin: 18px 0 22px !important;
}

.post-display-main-media .blog-modal-image {
    width: 100%;
    max-width: 100%;
    max-height: var(--post-display-main-media-height);
    object-fit: contain;
}

.post-display-reader .blog-modal-content-body {
    max-width: 82ch;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.65;
}

.post-display-reader .blog-modal-content-body img {
    max-width: 100%;
    height: auto;
}

.post-display-interactions {
    min-width: 0;
    align-self: start;
    max-height: calc(var(--post-display-max-height) - 160px);
    padding: 4px 4px 16px 18px;
    overflow: auto;
    border-left: 1px solid rgba(148, 163, 184, .3);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.post-display-interactions .blog-modal-comments {
    margin-top: 0 !important;
}

.post-display-footer {
    position: relative;
    z-index: 7;
    background: #fff;
}

.post-display-footer.is-inline {
    flex: 0 0 auto;
    width: 100%;
    border-top: 1px solid rgba(148, 163, 184, .3);
}

.post-display-footer.is-inline .blog-modal-social-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .5rem;
    row-gap: .2rem;
    margin-bottom: .18rem;
    padding: .42rem 0;
}

.post-display-footer.is-inline .blog-modal-social-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.post-display-footer.is-inline .blog-modal-social-summary > :first-child,
.post-display-footer.is-inline .blog-modal-social-stats,
.post-display-footer.is-inline .blog-recent-reactions-inline {
    align-items: center;
}

.post-display-footer.is-inline .blog-modal-social-stats {
    display: inline-flex;
    align-self: center;
    line-height: 1.15;
}

.post-display-footer.is-inline .post-display-stat-shares .post-display-stat-icon {
    display: inline;
}

.post-display-footer.is-inline .post-display-stat-shares .post-display-stat-label {
    display: none;
}

.post-display-footer.is-inline .js-post-reaction-trigger,
.post-display-footer.is-inline .js-comment-reaction-trigger {
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
}

.blog-reaction-user-avatar.is-avatar-fallback {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .16);
}

:root[data-theme="dark"] .blog-reaction-user-avatar.is-avatar-fallback {
    box-shadow: 0 0 0 1px rgba(226, 232, 240, .28);
}

.post-display-footer.is-inline .blog-modal-comments-filter {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.post-display-footer.is-inline .blog-modal-comment-form,
.post-display-footer.is-inline .blog-modal-comment-form > .d-flex,
.post-display-footer.is-inline .blog-modal-comment-bar-inner > .d-flex {
    width: 100%;
    min-width: 0;
}

.post-display-scroll-locked {
    overflow: hidden !important;
}

@media (hover: hover) {
    .blog-reaction-trigger-wrap:hover .blog-reaction-picker {
        display: inline-flex;
    }

    .blog-reaction-trigger-wrap.is-picker-dismissed .blog-reaction-picker {
        display: none !important;
    }
}

.js-comment-reactions-summary {
    appearance: none;
    margin: 0;
    padding: 1px 5px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.js-comment-reactions-summary:hover,
.js-comment-reactions-summary:focus-visible {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, .08);
    outline: none;
}

.post-display-comment-reactions-popover {
    position: fixed;
    z-index: 10020;
    width: min(340px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 24px));
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .38);
    border-radius: 14px;
    color: #172033;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
}

.post-display-comment-reactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 8px;
}

.post-display-comment-reactions-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: #334155;
    background: #e2e8f0;
    font-size: 1.3rem;
    line-height: 1;
}

.post-display-comment-reactions-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-display-comment-reaction-person {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 7px 5px;
    border-radius: 10px;
}

.post-display-comment-reaction-person:hover {
    background: #f1f5f9;
}

.post-display-comment-reaction-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #1e3a8a;
    background: #dbeafe;
    font-weight: 800;
}

.post-display-comment-reaction-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-display-comment-reaction-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-display-comment-reaction-value {
    color: #475569;
    font-size: .85rem;
    white-space: nowrap;
}

:root[data-theme="dark"] .post-display-dialog,
:root[data-theme="dark"] .post-display-footer,
:root[data-theme="dark"] .post-display-header {
    background: #111a2c;
}

:root[data-theme="dark"] .post-display-article-title {
    color: #edf4ff;
}

:root[data-theme="dark"] .post-display-intro,
:root[data-theme="dark"] .post-display-mode-label {
    color: #a9bdd7;
}

:root[data-theme="dark"] .post-display-mode-switch {
    color: #bfdbfe;
    border-color: #475569;
    background: #17233a;
}

:root[data-theme="dark"] .post-display-interactions {
    border-left-color: rgba(148, 163, 184, .28);
}

:root[data-theme="dark"] .post-display-overlay {
    --post-display-overlay: rgba(15, 23, 42, .58);
}

:root[data-theme="dark"] .post-display-comment-reactions-popover {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, .3);
    background: #17233a;
}

:root[data-theme="dark"] .post-display-comment-reaction-person:hover {
    background: rgba(148, 163, 184, .12);
}

:root[data-theme="dark"] .post-display-comment-reaction-value {
    color: #cbd5e1;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .post-display-overlay {
        background: rgba(245, 247, 250, .84);
    }

    :root[data-theme="dark"] .post-display-overlay {
        background: rgba(15, 23, 42, .72);
    }
}

@media (max-width: 1100px) {
    .post-display-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
        gap: 18px;
        padding: 18px;
    }
}

@media (max-width: 820px) {
    .post-display-overlay {
        padding: 0;
    }

    .post-display-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .post-display-layout {
        display: block;
        padding: 16px;
    }

    .post-display-interactions {
        max-height: none;
        margin-top: 24px;
        padding: 20px 0 8px;
        overflow: visible;
        border-top: 1px solid rgba(148, 163, 184, .3);
        border-left: 0;
    }

    .post-display-main-media,
    .post-display-main-media .blog-modal-image {
        max-height: 48vh;
    }

    .post-display-header {
        min-height: 58px;
        padding: 8px 12px;
    }

    .post-display-mode-switch {
        padding: 5px 9px;
    }
}

/* État explicite des mutations de réaction. */
.blog-reaction-trigger-wrap.is-reaction-pending {
    opacity: .72;
}

.blog-reaction-trigger-wrap.is-reaction-pending .blog-reaction-picker {
    pointer-events: none;
}

.post-display-comment-reactions-truncated {
    margin: 8px 4px 2px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.35;
}

:root[data-theme="dark"] .post-display-comment-reactions-truncated {
    color: #94a3b8;
}

/*
 * Version 2026.07.26.2 : composeur de commentaire inspiré des réseaux sociaux.
 * Le formulaire reste le même dans les modes lecture, média et article long,
 * seule sa présentation est adoucie et adaptée au thème actif.
 */
.post-display-footer .blog-modal-comment-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px !important;
    margin-top: 7px;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 18px;
    background: #f0f2f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.post-display-footer .blog-modal-comment-form > .d-flex:last-child {
    width: 100%;
    min-width: 0;
    gap: 7px !important;
}

.post-display-footer .blog-modal-comment-form .form-control {
    min-width: 0;
    border-color: transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
    box-shadow: none;
}

.post-display-footer .blog-modal-comment-form .form-control:focus {
    border-color: rgba(37, 99, 235, .3);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.post-display-footer .blog-modal-comment-form button[type="submit"] {
    flex: 0 0 auto;
    border-radius: 12px;
}

.post-display-footer .blog-modal-reply-context:not(.d-none) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
}

:root[data-theme="dark"] .post-display-footer .blog-modal-comment-form {
    border-color: rgba(148, 163, 184, .2);
    background: #263244;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

:root[data-theme="dark"] .post-display-footer .blog-modal-comment-form .form-control {
    color: #e5edf8;
    border-color: transparent;
    background: rgba(15, 23, 42, .7);
}

:root[data-theme="dark"] .post-display-footer .blog-modal-comment-form .form-control:focus {
    border-color: rgba(96, 165, 250, .42);
    background: #111a2c;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, .14);
}


/* Version 2026.07.26.3 : stabilité et lisibilité du sélecteur de réactions. */
.blog-reaction-trigger-wrap::after {
    left: -10px;
    right: -10px;
    bottom: calc(100% - 2px);
    height: 20px;
}

.blog-reaction-picker {
    pointer-events: auto;
}

.blog-reaction-choice {
    position: relative;
    transition: transform 130ms ease, background-color 130ms ease, box-shadow 130ms ease;
}

.blog-reaction-choice.is-selected,
.blog-reaction-choice[aria-pressed="true"] {
    background: rgba(37, 99, 235, .14);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
    transform: translateY(-2px) scale(1.08);
}

:root[data-theme="dark"] .blog-reaction-choice.is-selected,
:root[data-theme="dark"] .blog-reaction-choice[aria-pressed="true"] {
    background: rgba(96, 165, 250, .22);
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #60a5fa;
}

/*
 * Version 2026.07.26.4 : composeur multiligne et avatars robustes.
 */
.post-display-footer .blog-modal-comment-form > .d-flex:last-child {
    align-items: flex-end;
}

.post-display-footer textarea.js-modal-comment-input {
    box-sizing: border-box;
    min-height: 36px;
    max-height: 142px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow-y: hidden;
    resize: none;
    line-height: 1.35;
    scrollbar-width: thin;
}

.post-display-footer textarea.js-modal-comment-input[aria-busy="true"],
.post-display-footer form[aria-busy="true"] textarea.js-modal-comment-input {
    opacity: .72;
}

.blog-person-avatar.is-avatar-fallback,
.blog-reaction-user-avatar.is-avatar-fallback,
.blog-modal-comment-avatar.is-avatar-fallback,
.post-display-comment-reaction-avatar.is-avatar-fallback {
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .post-display-footer textarea.js-modal-comment-input {
        max-height: 126px;
    }
}

/* Version 2026.07.26.5 : outils emoji/image du commentaire et pièce jointe. */
.post-display-comment-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    width: 100%;
    min-width: 0;
}

.post-display-comment-composer-row textarea.js-modal-comment-input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Club Alex Borg 8.15.9.7.4 — identité du compte qui commente. */
.post-display-comment-account {
    position: relative;
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    align-self: flex-end;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: help;
    outline: none;
}

.post-display-comment-account-avatar {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bs-border-color, #dee2e6) 82%, transparent);
}

.post-display-comment-account-avatar.is-fallback {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--bs-primary, #0d6efd) 12%, var(--bs-body-bg, #fff));
    color: var(--bs-primary, #0d6efd);
    font-size: .74rem;
    font-weight: 800;
}

.post-display-comment-account-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + .48rem);
    z-index: 60;
    width: max-content;
    max-width: min(17rem, calc(100vw - 2rem));
    padding: .42rem .58rem;
    border: 1px solid color-mix(in srgb, var(--bs-border-color, #dee2e6) 72%, transparent);
    border-radius: .58rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    box-shadow: 0 .65rem 1.7rem rgba(15, 23, 42, .18);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.2rem);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
    pointer-events: none;
}

.post-display-comment-account:hover .post-display-comment-account-tooltip,
.post-display-comment-account:focus .post-display-comment-account-tooltip,
.post-display-comment-account:focus-visible .post-display-comment-account-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.post-display-comment-account:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary, #0d6efd) 20%, transparent);
}

.post-display-comment-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
}

.post-display-comment-tool {
    display: inline-grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
}

.post-display-comment-tool:hover,
.post-display-comment-tool:focus-visible {
    background: rgba(100, 116, 139, .12);
    color: #1d4ed8;
    outline: none;
}

.post-display-comment-emoji-panel {
    position: absolute;
    right: 52px;
    bottom: calc(100% + 7px);
    z-index: 30;
    width: min(310px, calc(100vw - 44px));
    padding: 8px;
    border: 1px solid #d7dde6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .2);
}

.post-display-comment-emoji-categories {
    display: flex;
    gap: 3px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.post-display-comment-emoji-category,
.post-display-comment-emoji-item {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    line-height: 1;
}

.post-display-comment-emoji-category {
    width: 32px;
    height: 28px;
}

.post-display-comment-emoji-category.is-active,
.post-display-comment-emoji-category:hover,
.post-display-comment-emoji-category:focus-visible {
    background: #e8f0ff;
    outline: none;
}

.post-display-comment-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 2px;
    max-height: 168px;
    padding-top: 7px;
    overflow-y: auto;
}

.post-display-comment-emoji-item {
    min-height: 32px;
    font-size: 1.2rem;
}

.post-display-comment-emoji-item:hover,
.post-display-comment-emoji-item:focus-visible {
    background: #f0f2f5;
    outline: none;
    transform: scale(1.08);
}

.post-display-comment-image-preview {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

.post-display-comment-image-preview[hidden] {
    display: none;
}

.post-display-comment-image-preview img {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    object-fit: cover;
}

.post-display-comment-image-preview-name {
    overflow: hidden;
    color: #475569;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-display-comment-image-remove {
    display: inline-grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(100, 116, 139, .12);
    color: #475569;
    font-size: 1.1rem;
}

.blog-comment-attachment-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
}

.blog-comment-attachment-image {
    display: block;
    max-width: min(100%, 420px);
    max-height: 360px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
}

:root[data-theme="dark"] .post-display-comment-emoji-panel {
    border-color: rgba(148, 163, 184, .3);
    background: #172033;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .46);
}

:root[data-theme="dark"] .post-display-comment-emoji-categories {
    border-bottom-color: rgba(148, 163, 184, .22);
}

:root[data-theme="dark"] .post-display-comment-emoji-category.is-active,
:root[data-theme="dark"] .post-display-comment-emoji-category:hover,
:root[data-theme="dark"] .post-display-comment-emoji-category:focus-visible,
:root[data-theme="dark"] .post-display-comment-emoji-item:hover,
:root[data-theme="dark"] .post-display-comment-emoji-item:focus-visible {
    background: rgba(96, 165, 250, .18);
}

:root[data-theme="dark"] .post-display-comment-image-preview {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(15, 23, 42, .68);
}

:root[data-theme="dark"] .post-display-comment-image-preview-name {
    color: #cbd5e1;
}

:root[data-theme="dark"] .blog-comment-attachment-image {
    border-color: rgba(148, 163, 184, .26);
    background: #0f172a;
}

@media (max-width: 620px) {
    .post-display-comment-tools {
        gap: 1px;
    }
    .post-display-comment-tool {
        width: 27px;
        height: 27px;
        font-size: .92rem;
    }
    .post-display-comment-emoji-panel {
        right: 4px;
    }
}

[data-post-display-scroll-region="1"]:focus {
    outline: none;
}

[data-post-display-scroll-region="1"]:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .42);
    outline-offset: -2px;
}

.blog-modal-content-body p:empty,
.blog-modal-content-body div:empty {
    display: none;
}

.blog-modal-content-body hr {
    height: 1px;
    margin: 1.35rem 0;
    border: 0;
    background: rgba(100, 116, 139, .32);
}

/*
 * Version 2026.07.27.6.4 : synthèse sociale compacte sur téléphone.
 * Les libellés restent complets pour les lecteurs d'écran via aria-label.
 */
.post-display-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.post-display-stat-icon {
    display: none;
    line-height: 1;
}

.post-display-stat strong {
    font-weight: inherit;
}

@media (max-width: 820px) {
    .post-display-footer.is-inline .blog-modal-social-summary {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 6px;
        row-gap: 2px;
        margin-bottom: 0;
        padding: .32rem 0;
    }

    .post-display-footer.is-inline .blog-modal-social-summary > :first-child {
        display: flex !important;
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        overflow: hidden;
    }

    .post-display-footer.is-inline .blog-reaction-icons-stack {
        flex: 0 0 auto;
    }

    .post-display-footer.is-inline .js-modal-post-recent-reactions {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .post-display-footer.is-inline .blog-recent-reactions-inline {
        width: 100%;
        gap: 4px;
    }

    .post-display-footer.is-inline .blog-recent-reactions-avatars {
        flex: 0 0 auto;
    }

    .post-display-footer.is-inline .blog-recent-reactions-text {
        flex: 1 1 auto;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: .72rem;
        line-height: 1.2;
    }

    .post-display-footer.is-inline .js-modal-post-reactions-total {
        flex: 0 0 auto;
        font-size: .72rem;
    }

    .post-display-footer.is-inline .blog-modal-social-stats {
        display: inline-flex !important;
        min-width: 0;
        flex: 0 0 auto;
        gap: 6px !important;
        font-size: .74rem;
    }

    .post-display-footer.is-inline .post-display-stat-icon {
        display: inline;
        font-size: .82rem;
    }

    .post-display-footer.is-inline .post-display-stat-comments .post-display-stat-label,
    .post-display-footer.is-inline .post-display-stat-separator {
        display: none;
    }

    .post-display-footer.is-inline .blog-modal-scroll-bottom-btn {
        display: none !important;
    }

    .post-display-footer.is-inline .blog-modal-social-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;
        padding-bottom: .24rem;
    }

    .post-display-footer.is-inline .blog-modal-social-actions > .blog-reaction-trigger-wrap,
    .post-display-footer.is-inline .blog-modal-social-actions > .btn-link,
    .post-display-footer.is-inline .blog-modal-social-actions > span:not(.post-display-stat) {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        padding: .42rem .2rem !important;
        border-radius: 8px;
        text-align: center;
    }

    .post-display-footer.is-inline .blog-modal-social-actions > .blog-reaction-trigger-wrap .btn-link {
        width: 100%;
        padding: 0 !important;
        text-align: center;
    }

    .post-display-footer.is-inline .blog-modal-social-actions > .btn-link:hover,
    .post-display-footer.is-inline .blog-modal-social-actions > .blog-reaction-trigger-wrap:hover {
        background: rgba(100, 116, 139, .08);
    }

    .post-display-footer.is-inline .blog-modal-comments-filter {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 4px;
    }
}

@media (max-width: 430px) {
    .post-display-footer.is-inline .blog-reaction-icon-mini {
        width: 19px;
        height: 19px;
        font-size: .68rem;
    }

    .post-display-footer.is-inline .blog-reaction-user-avatar {
        width: 18px;
        height: 18px;
    }

    .post-display-footer.is-inline .js-modal-post-reactions-total,
    .post-display-footer.is-inline .blog-modal-social-stats {
        font-size: .68rem;
    }
}


/* Club Alex Borg 8.15.9.7.8 — composeur commentaire compact et utile.
 * Objectif : donner la largeur au texte, pas aux accessoires.
 * Commun aux modes Lecture, Média et Article long, Day/Night. */
.post-display-comment-composer-row {
    position: relative;
    align-items: flex-start;
    gap: 4px;
}

.post-display-comment-account {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 4px;
    margin-left: -4px;
    align-self: flex-start;
}

.post-display-comment-account-avatar {
    width: 24px;
    height: 24px;
}

.post-display-comment-account-avatar.is-fallback {
    font-size: .64rem;
}

.post-display-comment-input-shell {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.post-display-comment-input-shell textarea.js-modal-comment-input {
    width: 100%;
    min-height: 38px;
    padding: 7px 60px 7px 10px;
    border-radius: 14px;
}

.post-display-comment-tools {
    position: absolute;
    z-index: 3;
    right: 5px;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-body-bg, #fff) 76%, transparent);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.post-display-comment-tool {
    width: 24px;
    height: 24px;
    font-size: .9rem;
}

.post-display-comment-submit {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 4px -2px 0 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #0d6efd;
    cursor: pointer;
    font-size: 1.28rem;
    line-height: 1;
    transition: color .12s ease, background-color .12s ease, transform .12s ease;
}

.post-display-comment-submit:hover,
.post-display-comment-submit:focus-visible {
    background: rgba(13, 110, 253, .11);
    color: #075bd8;
    outline: none;
    transform: translateX(1px);
}

.post-display-comment-submit:disabled,
.post-display-comment-submit[aria-disabled="true"] {
    color: #94a3b8;
    cursor: default;
    transform: none;
}

:root[data-theme="dark"] .post-display-comment-tools,
:root[data-bs-theme="dark"] .post-display-comment-tools {
    background: rgba(15, 23, 42, .72);
}

:root[data-theme="dark"] .post-display-comment-submit,
:root[data-bs-theme="dark"] .post-display-comment-submit {
    color: #60a5fa;
}

:root[data-theme="dark"] .post-display-comment-submit:hover,
:root[data-theme="dark"] .post-display-comment-submit:focus-visible,
:root[data-bs-theme="dark"] .post-display-comment-submit:hover,
:root[data-bs-theme="dark"] .post-display-comment-submit:focus-visible {
    background: rgba(96, 165, 250, .14);
    color: #93c5fd;
}

@media (max-width: 820px) {
    .post-display-comment-account {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        margin-left: -3px;
    }

    .post-display-comment-account-avatar {
        width: 22px;
        height: 22px;
    }

    .post-display-comment-input-shell textarea.js-modal-comment-input {
        padding-right: 56px;
    }

    .post-display-comment-tool {
        width: 22px;
        height: 22px;
        font-size: .84rem;
    }

    .post-display-comment-submit {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 1.18rem;
    }
}


/* Club Alex Borg 8.15.9.7.10 — métriques sociales compactes.
 * Les compteurs restent lisibles sans transformer la ligne sociale en phrase.
 * SVG inline = même dessin en Day/Night, sans emoji dépendant de l'OS. */
.blog-modal-social-stats {
    margin-left: auto;
    gap: 10px !important;
    white-space: nowrap;
}

.post-display-stat-comments,
.post-display-stat-shares {
    color: #64748b;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.post-display-stat-icon-svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-display-stat-icon-share {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.post-display-stat-comments strong,
.post-display-stat-shares strong {
    color: inherit;
    font-weight: 600;
    line-height: 1;
}

/* Les vieux libellés/separateurs ne doivent plus reprendre de place si un fragment
 * historique est réhydraté par le navigateur. */
.post-display-stat-comments .post-display-stat-label,
.post-display-stat-shares .post-display-stat-label,
.blog-modal-social-stats .post-display-stat-separator {
    display: none !important;
}

:root[data-theme="dark"] .post-display-stat-comments,
:root[data-theme="dark"] .post-display-stat-shares {
    color: #a8b6ca;
}

@media (max-width: 820px) {
    .post-display-footer.is-inline .blog-modal-social-stats {
        gap: 8px !important;
    }

    .post-display-footer.is-inline .post-display-stat-icon-svg {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .post-display-footer.is-inline .post-display-stat-icon-share {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
}

/* Club Alex Borg 8.15.9.7.11 — barre sociale réellement compacte.
 * En lecture/article long: une seule ligne interactive pour réactions, commentaires,
 * partages et types de réactions. Pas de noms dans le résumé compact. */
.post-display-social-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 2px 0 6px;
}

.post-display-social-reaction-wrap {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.post-display-social-tool,
.post-display-social-reaction-types {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 30px;
    padding: 4px 7px;
    border: 0;
    border-radius: 9px;
    color: #55657a;
    background: transparent;
    font: inherit;
    font-size: .79rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 130ms ease, background-color 130ms ease, transform 130ms ease;
}

.post-display-social-tool:hover,
.post-display-social-tool:focus-visible,
.post-display-social-reaction-types:hover,
.post-display-social-reaction-types:focus-visible {
    color: #1d4ed8;
    background: rgba(37, 99, 235, .07);
    outline: none;
}

.post-display-social-tool:active,
.post-display-social-reaction-types:active {
    transform: translateY(1px);
}

.post-display-social-tool.is-passive {
    cursor: default;
    opacity: .74;
}

.post-display-social-tool-reaction.is-reacted {
    color: #2563eb;
}

.post-display-social-tool strong {
    color: inherit;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.post-display-social-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    font-size: 1rem;
    line-height: 1;
}

.club-social-like-svg,
.club-social-icon,
.club-social-action-svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.club-social-like-svg.is-filled {
    fill: currentColor;
    stroke-width: 1.45;
}

.post-display-social-reaction-types {
    margin-left: auto;
    padding-inline: 5px;
}

.post-display-social-reaction-types .blog-reaction-icons-stack {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.post-display-social-reaction-types .blog-reaction-icon-mini {
    width: 19px;
    height: 19px;
    margin-left: -3px;
    font-size: .72rem;
    box-shadow: 0 0 0 1.5px #fff;
}

.post-display-social-reaction-types .blog-reaction-icon-mini:first-child {
    margin-left: 0;
}

.post-display-footer.is-inline .blog-modal-comments-filter {
    margin-top: 3px;
}

/* Les anciens blocs résumé + actions ne doivent plus réserver de hauteur dans les
 * fragments 9.7.11. Les classes restent supportées pour les vieux fragments en cache. */
.post-display-footer.is-inline .blog-modal-social-summary:empty,
.post-display-footer.is-inline .blog-modal-social-actions:empty {
    display: none !important;
}

:root[data-theme="dark"] .post-display-social-tool,
:root[data-theme="dark"] .post-display-social-reaction-types {
    color: #b6c3d7;
}

:root[data-theme="dark"] .post-display-social-tool:hover,
:root[data-theme="dark"] .post-display-social-tool:focus-visible,
:root[data-theme="dark"] .post-display-social-reaction-types:hover,
:root[data-theme="dark"] .post-display-social-reaction-types:focus-visible {
    color: #bfdbfe;
    background: rgba(96, 165, 250, .13);
}

:root[data-theme="dark"] .post-display-social-tool-reaction.is-reacted {
    color: #60a5fa;
}

:root[data-theme="dark"] .post-display-social-reaction-types .blog-reaction-icon-mini {
    box-shadow: 0 0 0 1.5px #111a2c;
}

@media (max-width: 430px) {
    .post-display-social-toolbar {
        gap: 3px;
    }

    .post-display-social-tool,
    .post-display-social-reaction-types {
        min-height: 28px;
        padding: 3px 5px;
        font-size: .73rem;
    }

    .club-social-like-svg,
    .club-social-icon,
    .club-social-action-svg {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .post-display-social-reaction-types .blog-reaction-icon-mini {
        width: 18px;
        height: 18px;
        font-size: .68rem;
    }
}

@media (min-width: 1101px) {
    .is-mode-reading .post-display-dialog {
        width: min(1460px, calc(100vw - 32px));
    }

    .is-mode-reading .post-display-layout {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 410px);
        gap: 20px;
    }

    .is-mode-reading .post-display-interactions {
        padding-left: 14px;
    }
}

/*
 * Club Alex Borg 8.15.9.7.13 — lecteur compact desktop pour publications sans
 * grand visuel. Une URL / carte de lien sans média principal reste dans cette
 * variante : le critère est la présence réelle d'un grand bloc visuel dans le
 * lecteur, pas l'existence d'un lien.
 */
.post-display-header-menu-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.post-display-header-menu-host:empty {
    display: none;
}

.post-display-header-menu-host .blog-post-card-menu {
    position: relative;
    top: auto;
    right: auto;
    z-index: 12;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

.post-display-header-menu-host .blog-post-card-menu-toggle {
    width: 34px;
    height: 34px;
    border-color: transparent;
    background: rgba(148, 163, 184, .14);
    font-size: 1.22rem;
}

.post-display-header-menu-host .blog-post-card-menu-toggle:hover,
.post-display-header-menu-host .blog-post-card-menu-toggle:focus-visible {
    border-color: rgba(100, 116, 139, .22);
    background: rgba(148, 163, 184, .24);
}

.post-display-header-menu-host .blog-post-card-menu-popover {
    top: calc(100% + .42rem);
    right: 0;
    z-index: 10040;
}

.post-display-compact-discussion {
    margin-top: 22px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, .28);
}

.post-display-compact-discussion-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
    padding: 2px 0 6px;
}

.post-display-compact-discussion-controls .post-display-social-toolbar {
    min-width: 0;
    padding-bottom: 0;
}

.post-display-compact-discussion-controls .blog-modal-comments-filter {
    width: auto;
    min-width: 170px;
    margin: 0;
}

.post-display-layout-compact .blog-modal-comments {
    margin-top: 0 !important;
}

@media (min-width: 821px) {
    .is-compact-reading.post-display-dialog,
    .is-compact-reading .post-display-dialog {
        width: min(790px, calc(100vw - 48px));
        height: min(92vh, 920px);
        max-height: 92vh;
    }

    .is-compact-reading .post-display-header {
        min-height: 58px;
        padding: 8px 12px 8px 16px;
    }

    .is-compact-reading .post-display-heading {
        display: flex;
        align-items: baseline;
        gap: .55rem;
        min-width: 0;
    }

    .is-compact-reading .post-display-mode-label {
        flex: 0 0 auto;
        margin: 0;
        font-size: .65rem;
        letter-spacing: .075em;
    }

    .is-compact-reading .blog-post-modal-title {
        min-width: 0;
        overflow: hidden;
        color: #1f2937;
        font-size: .98rem;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .is-compact-reading .post-display-layout-compact {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .is-compact-reading .post-display-layout-compact .post-display-reader {
        width: 100%;
        max-width: none;
        padding: 18px 20px 12px;
    }

    .is-compact-reading .post-display-layout-compact .post-display-article-title {
        margin-bottom: 8px;
        font-size: clamp(1.42rem, 2vw, 1.8rem);
        line-height: 1.15;
    }

    .is-compact-reading .post-display-layout-compact .blog-modal-meta {
        margin-bottom: 14px !important;
    }

    .is-compact-reading .post-display-layout-compact .blog-modal-content-body {
        max-width: none;
        margin-inline: 0;
        font-size: .98rem;
        line-height: 1.58;
    }

    .is-compact-reading .post-display-layout-compact .post-display-reader-embed {
        margin-top: 14px;
    }

    .is-compact-reading .post-display-content {
        scrollbar-gutter: stable;
    }

    .is-compact-reading .post-display-footer {
        padding: 8px 12px 10px;
        box-shadow: 0 -8px 18px rgba(15, 23, 42, .045);
    }

    .is-compact-reading .post-display-footer .blog-modal-comment-form {
        margin-top: 0;
    }

    .is-compact-reading .blog-post-modal-close {
        display: inline-grid;
        width: 34px;
        height: 34px;
        padding: 0;
        place-items: center;
        border-radius: 50%;
        background: rgba(148, 163, 184, .14);
        font-size: 1.45rem;
    }

    .is-compact-reading .blog-post-modal-close:hover,
    .is-compact-reading .blog-post-modal-close:focus-visible {
        background: rgba(148, 163, 184, .24);
        outline: none;
    }
}

:root[data-theme="dark"] .post-display-header-menu-host .blog-post-card-menu-toggle,
:root[data-theme="dark"] .is-compact-reading .blog-post-modal-close {
    color: #cbd5e1;
    background: rgba(148, 163, 184, .13);
}

:root[data-theme="dark"] .is-compact-reading .blog-post-modal-title {
    color: #edf4ff;
}

:root[data-theme="dark"] .post-display-compact-discussion {
    border-top-color: rgba(148, 163, 184, .24);
}

@media (max-width: 820px) {
    .post-display-compact-discussion-controls {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .post-display-compact-discussion-controls .blog-modal-comments-filter {
        width: 100%;
        min-width: 0;
    }
}
