/* Club Alex Borg 8.15.9.6.0 — repartage interne riche + partage externe V1 */

.cab-reshare-commentary {
    margin: .55rem 0 .7rem;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--site-text, #172033);
    white-space: normal;
}

.cab-reshare-original {
    display: grid;
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
    gap: .7rem;
    align-items: stretch;
    margin: .55rem 0 .2rem;
    padding: .55rem;
    border: 1px solid color-mix(in srgb, var(--site-border, #d9e1ec) 90%, transparent);
    border-radius: .95rem;
    background: color-mix(in srgb, var(--site-surface, #fff) 92%, var(--site-bg, #f4f7fb));
    color: inherit;
    overflow: hidden;
}
.cab-reshare-original:hover {
    border-color: color-mix(in srgb, var(--site-accent, #0d6efd) 40%, var(--site-border, #d9e1ec));
}
.cab-reshare-original-image {
    width: 96px;
    height: 86px;
    object-fit: cover;
    border-radius: .7rem;
    align-self: center;
}
.cab-reshare-original-visual {
    width: 96px;
    height: 86px;
    display: grid;
    place-items: center;
    padding: .45rem;
    border-radius: .7rem;
    overflow: hidden;
    color: #fff;
    text-align: center;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.18;
    text-shadow: 0 1px 2px rgba(15,23,42,.28);
}
.cab-reshare-original.no-visual {
    grid-template-columns: minmax(0, 1fr);
}
.cab-reshare-original-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .12rem;
}
.cab-reshare-original-author,
.cab-reshare-original-preview,
.cab-reshare-original-link {
    display: block;
}
.cab-reshare-original-author {
    font-size: .72rem;
    font-weight: 700;
    color: var(--site-muted, #68758a);
}
.cab-reshare-original-title {
    display: block;
    font-size: .91rem;
    line-height: 1.22;
    color: var(--site-text, #172033);
}
.cab-reshare-original-preview {
    margin-top: .08rem;
    font-size: .76rem;
    line-height: 1.28;
    color: var(--site-muted, #68758a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cab-reshare-original-link {
    margin-top: .18rem;
    font-size: .72rem;
    font-weight: 750;
    color: var(--site-accent, #0d6efd);
}
.cab-reshare-original.is-locked {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    color: var(--site-muted, #68758a);
}
.cab-reshare-original.is-locked strong,
.cab-reshare-original.is-locked span span {
    display: block;
}
.cab-reshare-original.is-locked strong {
    font-size: .82rem;
    color: var(--site-text, #172033);
}
.cab-reshare-original.is-locked span span {
    margin-top: .12rem;
    font-size: .74rem;
    line-height: 1.3;
}

/* Dialogue dynamique de repartage. Toujours compact, y compris mobile. */
.cab-reshare-dialog {
    /* Hotfix 9.7.9 : reste interactive au-dessus du lecteur Article long/Lecture,
       y compris dans le fallback sans top-layer natif. */
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-blog-article-overlay, 120060) + 120);
    pointer-events: auto;
    width: min(560px, calc(100vw - 1.25rem));
    max-width: 560px;
    max-height: min(86dvh, 680px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--site-surface, #fff);
    color: var(--site-text, #172033);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}
.cab-reshare-dialog::backdrop {
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
}
.cab-reshare-shell {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}
.cab-reshare-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: .7rem;
    padding: 1rem 1rem .55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--site-border, #d9e1ec) 80%, transparent);
}
.cab-reshare-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.cab-reshare-header h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.2;
}
.cab-reshare-header p {
    margin: .22rem 0 0;
    font-size: .77rem;
    color: var(--site-muted, #68758a);
}
.cab-reshare-close {
    flex: 0 0 auto;
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--site-muted, #68758a);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.cab-reshare-close:hover,
.cab-reshare-close:focus-visible {
    background: color-mix(in srgb, var(--site-border, #d9e1ec) 45%, transparent);
    color: var(--site-text, #172033);
}
.cab-reshare-body {
    overflow: auto;
    overscroll-behavior: contain;
    padding: .85rem 1rem;
}
.cab-reshare-source {
    padding: .65rem .75rem;
    border-radius: .8rem;
    background: color-mix(in srgb, var(--site-bg, #f4f7fb) 78%, var(--site-surface, #fff));
}
.cab-reshare-source-author {
    display: block;
    font-size: .72rem;
    color: var(--site-muted, #68758a);
}
.cab-reshare-source-title {
    display: block;
    margin-top: .1rem;
    font-size: .88rem;
}
.cab-reshare-label {
    display: block;
    margin: .8rem 0 .35rem;
    font-size: .78rem;
    font-weight: 800;
}
.cab-reshare-textarea {
    width: 100%;
    min-height: 84px;
    max-height: 180px;
    resize: vertical;
    padding: .65rem .7rem;
    border: 1px solid var(--site-border, #d9e1ec);
    border-radius: .8rem;
    background: var(--site-surface, #fff);
    color: inherit;
}
.cab-reshare-counter {
    margin-top: .18rem;
    text-align: right;
    font-size: .68rem;
    color: var(--site-muted, #68758a);
}
.cab-reshare-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
}
.cab-reshare-scope {
    position: relative;
}
.cab-reshare-scope input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cab-reshare-scope label {
    min-height: 64px;
    display: grid;
    place-items: center;
    gap: .15rem;
    padding: .5rem .35rem;
    border: 1px solid var(--site-border, #d9e1ec);
    border-radius: .85rem;
    background: var(--site-surface, #fff);
    cursor: pointer;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
}
.cab-reshare-scope input:checked + label {
    border-color: var(--site-accent, #0d6efd);
    background: color-mix(in srgb, var(--site-accent, #0d6efd) 8%, var(--site-surface, #fff));
    box-shadow: inset 0 0 0 1px var(--site-accent, #0d6efd);
}
.cab-reshare-scope.is-disabled label {
    opacity: .38;
    cursor: not-allowed;
}
.cab-reshare-note {
    margin: .7rem 0 0;
    font-size: .71rem;
    color: var(--site-muted, #68758a);
}
.cab-reshare-error {
    margin-top: .7rem;
    padding: .55rem .65rem;
    border-radius: .7rem;
    background: #fff1f2;
    color: #9f1239;
    font-size: .76rem;
}
.cab-reshare-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .75rem 1rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--site-border, #d9e1ec) 80%, transparent);
}
.cab-reshare-footer button {
    min-height: 38px;
    border-radius: .7rem;
    padding: .45rem .8rem;
}
.cab-reshare-cancel {
    border: 0;
    background: color-mix(in srgb, var(--site-border, #d9e1ec) 32%, transparent);
}
.cab-reshare-submit {
    border: 0;
    background: var(--site-accent, #0d6efd);
    color: #fff;
    font-weight: 750;
}
.cab-reshare-external {
    border: 1px solid color-mix(in srgb, var(--site-accent, #0d6efd) 35%, var(--site-border, #d9e1ec));
    background: color-mix(in srgb, var(--site-accent, #0d6efd) 6%, var(--site-surface, #fff));
    color: var(--site-accent, #0d6efd);
    font-weight: 750;
}
.cab-reshare-external:hover,
.cab-reshare-external:focus-visible {
    background: color-mix(in srgb, var(--site-accent, #0d6efd) 12%, var(--site-surface, #fff));
}
.cab-reshare-external-note {
    margin: .5rem 0 0;
    font-size: .71rem;
    color: var(--site-muted, #68758a);
}

@media (max-width: 575.98px) {
    .cab-reshare-dialog {
        width: min(calc(100vw - 1rem), 520px);
        max-height: min(82dvh, 620px);
        border-radius: 1rem;
    }
    .cab-reshare-header { padding: .8rem .8rem .5rem; }
    .cab-reshare-body { padding: .7rem .8rem; }
    .cab-reshare-footer { padding: .65rem .8rem .8rem; }
    .cab-reshare-scope-grid { gap: .35rem; }
    .cab-reshare-scope label {
        min-height: 58px;
        padding: .4rem .25rem;
        font-size: .72rem;
    }
    .cab-reshare-original {
        grid-template-columns: 74px minmax(0, 1fr);
        padding: .45rem;
        gap: .55rem;
    }
    .cab-reshare-original-image,
    .cab-reshare-original-visual {
        width: 74px;
        height: 72px;
    }
    .cab-reshare-original-visual {
        padding: .35rem;
        font-size: .61rem;
    }
}
