﻿:root {
    --short-bg: #f7f7f7;
    --short-card-bg: #ffffff;
    --short-text: #111111;
    --short-line: #c4c4c4;
    --short-author: #777777;
    --short-card-active: #ffbf77;
    --short-accent: #e3601c;
    --short-player-surface: #090b0f;
}

[theme="dark"] {
    --short-bg: #1f1f1f;
    --short-card-bg: #2a2a2a;
    --short-text: #ffffff;
    --short-line: #444444;
    --short-author: #9a9a9a;
    --short-card-active: #efb87a;
}

.publio-short-surface[hidden],
.publio-short-modal[hidden],
.publio-short-media-error[hidden],
.publio-short-modal-error[hidden] {
    display: none !important;
}

.short-video-block,
.home-short-section {
    color: var(--short-text);
}

.short-video-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 16px;
}

.short-video-header h3 {
    margin: 0;
    color: var(--short-text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.short-video-line {
    height: 2px;
    min-width: 30px;
    background: var(--short-line);
}

.home-short-section {
    width: 100%;
    margin: 30px 0;
    padding: 24px;
    border-radius: 12px;
    background: var(--short-bg);
}

.short-section-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(230px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.short-slider-wrapper {
    min-width: 0;
}

.short-video-slider-shell {
    position: relative;
}

.short-video-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.short-video-slider::-webkit-scrollbar {
    display: none;
}

.short-video-slider .slider-btn,
.short-video-slider-shell > .slider-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 0 5px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.short-video-slider-shell > .slider-btn.prev {
    left: 8px;
}

.short-video-slider-shell > .slider-btn.next {
    right: 8px;
}

.short-video-slider-shell > .slider-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.short-video-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    max-width: 225px;
    overflow: hidden;
    border-radius: 10px;
    color: var(--short-text);
    background: var(--short-card-bg);
    box-shadow: 0 8px 24px rgba(12, 18, 28, 0.12);
    text-decoration: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.short-video-card:hover,
.short-video-card:focus-visible {
    color: var(--short-text);
    box-shadow: 0 12px 30px rgba(12, 18, 28, 0.2);
    transform: translateY(-3px);
}

.short-video-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #202633 0%, #111722 52%, #080b10 100%);
}

.short-video-media video,
.short-video-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-video-media img {
    z-index: 1;
    transition: opacity 160ms ease;
}

.short-video-card.is-previewing .short-video-media img {
    opacity: 0;
}

.short-video-card-pastille {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.short-video-card-pastille img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-video-card-body {
    min-height: 76px;
    padding: 11px 12px 12px;
}

.short-video-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--short-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.short-video-author {
    overflow: hidden;
    margin-top: 6px;
    color: var(--short-author);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.short-video-mobile-volume,
.short-video-mobile-title,
.short-video-mobile-progress {
    display: none;
}

.short-video-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.short-video-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 0 12px;
    border: 1px solid var(--short-accent);
    border-radius: 4px;
    color: #ffffff !important;
    background: var(--short-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.short-video-list-items {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.short-video-list-item {
    border-bottom: 1px solid var(--short-line);
}

.short-video-list-item a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 4px;
    color: var(--short-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 17px;
    text-decoration: none;
}

.short-video-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    background: #111722;
    font-size: 11px;
}

.short-video-page {
    padding-top: 14px;
}

.short-video-page .short-video-block {
    margin-bottom: 28px;
}

.short-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.short-video-grid .short-video-card {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.publio-short-status {
    min-height: 24px;
    padding: 4px 0;
    color: var(--short-author);
    font-size: 13px;
}

.publio-short-status:empty {
    display: none;
}

.publio-short-status.is-error,
.publio-short-feed-status.is-error {
    color: #d93445;
}

/* Modal de prévisualisation de l'accueil */
.publio-short-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.publio-short-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: default;
}

.publio-short-modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(250px, 320px);
    gap: 20px;
    align-items: center;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
}

.publio-short-modal-player {
    position: relative;
    height: min(85vh, 760px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 16px;
    background: #050608;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.publio-short-modal-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.publio-short-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.62);
    font-size: 25px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}

.publio-short-modal-close {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
}

.publio-short-modal-volume {
    position: absolute;
    z-index: 4;
    top: 62px;
    left: 12px;
    font-size: 17px;
}

.publio-short-modal-overlay {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 60px 20px 20px;
    color: #ffffff;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.88));
}

.publio-short-progress {
    width: 100%;
    height: 4px;
    margin: 0;
    accent-color: #ffffff;
    cursor: pointer;
}

.publio-short-modal-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 21px;
}

.publio-short-modal-author {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.publio-short-modal-ad {
    color: #ffffff;
    text-align: center;
}

.publio-short-modal-ad > span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.publio-short-modal-ad-heading {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.publio-short-modal-ad hr {
    width: 100%;
    border-top: 2px solid #ffffff;
    opacity: 0.75;
}

.publio-short-modal-error,
.publio-short-media-error {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.88);
    background: radial-gradient(circle at 50% 35%, #202633 0%, #111722 52%, #080b10 100%);
    font-size: 14px;
    text-align: center;
}

body.is-short-modal-open {
    overflow: hidden;
}

/* Fil plein écran inspiré du player Publio */
body.publio-short-player-layout {
    overflow: hidden;
    color: #ffffff;
    background: #000000;
}

body.publio-short-player-layout .header,
body.publio-short-player-layout header,
body.publio-short-player-layout footer,
body.publio-short-player-layout #nous-joindre-button-vertical {
    display: none !important;
}

body.publio-short-player-layout #consentPopup,
body.publio-short-player-layout #newsletterSubscriptionSuccessModal {
    display: none !important;
}

body.publio-short-player-layout #wrapper,
body.publio-short-player-layout .main-content {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #000000;
}

.publio-short-feed {
    position: fixed;
    z-index: 10000;
    inset: 0;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
    font-family: "Raleway", Arial, sans-serif;
}

.publio-short-feed-shell {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px 82px;
}

.publio-short-feed-ad {
    position: absolute;
    top: 50%;
    right: calc(50% + 343px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    transform: translateY(-50%);
    transition: opacity 180ms ease;
}

/* Rail Publio réutilisable placé au sommet des pages Trium. */
.publio-short-layout-widget {
    position: relative;
    z-index: 0;
    margin-top: 18px;
    margin-bottom: 22px;
}

.publio-short-layout-widget-inner {
    padding: 14px;
    border-radius: 14px;
    background: var(--short-bg);
}

.publio-short-layout-widget .short-video-slider {
    flex-wrap: nowrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.publio-short-layout-widget .short-video-card,
.publio-short-layout-widget .short-video-slider .short-video-card {
    flex: 0 0 225px;
    width: 225px;
    min-width: 225px;
    min-height: 0;
    height: 345px;
    padding: 0;
    border-radius: 10px;
    background: #090b0f;
}

.publio-short-layout-widget .short-video-card:hover,
.publio-short-layout-widget .short-video-card:focus-visible {
    background: #090b0f;
    transform: translateY(-2px);
}

.publio-short-layout-widget .short-video-media,
.publio-short-layout-widget .short-video-media video,
.publio-short-layout-widget .short-video-media img {
    height: 100%;
    border-radius: 10px;
}

.publio-short-layout-widget .short-video-card-body {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 0;
    padding: 54px 12px 13px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.25), transparent);
    pointer-events: none;
}

.publio-short-layout-widget .short-video-title {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 18px;
}

.publio-short-layout-widget .short-video-author {
    display: none;
}

.publio-short-layout-widget .short-video-slider-shell > .slider-btn {
    width: 44px;
    height: 44px;
    padding: 0 0 5px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.76);
    font-size: 34px;
}

.publio-short-layout-widget .short-video-slider-shell > .slider-btn.prev {
    left: 8px;
}

.publio-short-layout-widget .short-video-slider-shell > .slider-btn.next {
    right: 8px;
}

.publio-short-layout-widget .publio-short-status {
    min-height: 0;
    padding: 0;
}

@media (max-width: 700px) {
    .publio-short-layout-widget {
        width: 100%;
        margin-top: 10px;
        margin-bottom: 16px;
        padding-right: 0;
        padding-left: 0;
    }

    .publio-short-layout-widget-inner {
        padding: 10px 0;
        border-radius: 0;
    }

    .publio-short-layout-widget .short-video-slider {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
        scroll-padding-left: 12px;
    }

    .publio-short-layout-widget .short-video-card,
    .publio-short-layout-widget .short-video-slider .short-video-card {
        flex-basis: calc((100vw - 40px) / 3);
        width: calc((100vw - 40px) / 3);
        min-width: calc((100vw - 40px) / 3);
        height: calc((100vw - 40px) / 1.69);
    }

    .publio-short-layout-widget .short-video-slider-shell > .slider-btn {
        display: none;
    }

    .publio-short-layout-widget .short-video-card-pastille {
        width: 30px;
        height: 30px;
    }

    .publio-short-layout-widget .short-video-card-body {
        padding: 36px 8px 8px;
    }

    .publio-short-layout-widget .short-video-title {
        font-size: 12px;
        line-height: 15px;
    }
}

.publio-short-feed.has-details .publio-short-feed-ad {
    opacity: 0;
    pointer-events: none;
}

.publio-short-feed-stage {
    position: relative;
    width: min(650px, calc(100vw - 430px));
    height: calc(100vh - 20px);
    min-width: 320px;
    margin: 0 auto;
    overflow: visible;
    transition: transform 260ms ease;
}

.publio-short-feed.has-details .publio-short-feed-stage {
    transform: translateX(-210px);
}

.publio-short-feed-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.publio-short-feed-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.publio-short-feed-slide.is-before {
    transform: translate(-50%, -150%);
}

.publio-short-feed-slide.is-current {
    transform: translate(-50%, -50%);
}

.publio-short-feed-slide.is-after {
    transform: translate(-50%, 50%);
}

.publio-short-feed-slide.is-far-before {
    transform: translate(-50%, -250%);
}

.publio-short-feed-slide.is-far-after {
    transform: translate(-50%, 150%);
}

.publio-short-feed-slide.is-animating {
    transition: transform 0.5s ease-in-out;
}

.publio-short-feed-frame {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100% - 68px);
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--short-player-surface);
    transform: translateX(-50%);
}

.publio-short-feed-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.publio-short-feed-close,
.publio-short-feed-volume {
    position: absolute;
    z-index: 15;
    left: 52px;
}

.publio-short-feed-close {
    top: 16px;
}

.publio-short-feed-volume {
    top: 66px;
    font-size: 17px;
}

.publio-short-feed-copy {
    position: absolute;
    z-index: 10;
    right: 34px;
    bottom: 0;
    left: 34px;
    padding: 80px 20px 20px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
}

.publio-short-feed-copy a,
.publio-short-feed-copy button,
.publio-short-feed-copy input {
    pointer-events: auto;
}

.publio-short-feed-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.publio-short-feed-identity {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin-top: 12px;
}

.publio-short-feed-avatar {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.publio-short-feed-author,
.publio-short-feed-title,
.publio-short-feed-destination {
    color: #ffffff !important;
    text-decoration: none !important;
}

.publio-short-feed-author {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 850;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publio-short-feed-title {
    display: -webkit-box;
    width: 100%;
    max-height: 44px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 650;
    line-height: 21px;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    cursor: pointer;
}

.publio-short-feed-destination {
    display: inline-flex;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 750;
    text-decoration: underline !important;
}

.publio-short-feed-actions {
    position: absolute;
    z-index: 12;
    right: -20px;
    bottom: 82px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.publio-short-feed-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff !important;
    background: rgba(28, 31, 38, 0.88);
    font-size: 20px;
    text-decoration: none !important;
    cursor: pointer;
}

.publio-short-feed-navigation {
    position: absolute;
    z-index: 12;
    top: 50%;
    right: -68px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.publio-short-feed-navigation button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(24, 27, 34, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.publio-short-feed-navigation button:hover:not(:disabled),
.publio-short-feed-navigation button:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(44, 49, 59, 0.94);
    transform: scale(1.06);
}

.publio-short-feed-navigation svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.publio-short-feed-navigation button:disabled {
    opacity: 0.32;
    cursor: default;
}

.publio-short-feed-status {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    width: min(360px, 80%);
    padding: 18px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(17, 23, 34, 0.92);
    font-size: 14px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.publio-short-feed-status:empty {
    display: none;
}

.publio-short-detail {
    position: fixed;
    z-index: 10020;
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: clamp(360px, 42vw, 500px);
    overflow: hidden;
    border-radius: 28px;
    color: #14202f;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    transform: translateX(calc(100% + 30px));
    transition: transform 260ms ease;
}

.publio-short-feed.has-details .publio-short-detail {
    transform: translateX(0);
}

.publio-short-detail-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #14202f;
    background: #eef2f7;
    font-size: 25px;
    cursor: pointer;
}

.publio-short-detail-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 76px 22px 24px;
}

.publio-short-detail-identity {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.publio-short-detail-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f7;
}

.publio-short-detail-identity a {
    color: #14202f;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.publio-short-detail-date {
    margin-top: 3px;
    color: #687383;
    font-size: 12px;
}

.publio-short-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.publio-short-detail-meta span {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(18, 33, 54, 0.08);
    border-radius: 999px;
    color: rgba(20, 32, 47, 0.82);
    background: #f5f8fc;
    font-size: 11px;
    font-weight: 650;
}

.publio-short-detail-story {
    padding: 22px;
    border: 1px solid rgba(18, 33, 54, 0.08);
    border-radius: 24px;
    background: #ffffff;
}

.publio-short-detail-label {
    margin-bottom: 10px;
    color: #687383;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.publio-short-detail-story p {
    margin: 0;
    color: rgba(20, 32, 47, 0.94);
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
    .short-section-content {
        grid-template-columns: 1fr;
    }

    .short-video-list-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }

    .short-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .publio-short-feed-ad {
        display: none;
    }

    .publio-short-feed-stage {
        width: min(650px, calc(100vw - 120px));
    }
}

@media (max-width: 860px) {
    .short-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .publio-short-feed-shell {
        padding: 10px 56px;
    }

    .publio-short-feed-stage {
        width: min(650px, calc(100vw - 76px));
        min-width: 0;
    }

    .publio-short-feed.has-details .publio-short-feed-stage {
        transform: none;
    }

    .publio-short-detail {
        width: min(500px, calc(100vw - 20px));
    }
}

@media (max-width: 700px) {
    .home-short-section {
        margin: 20px -12px;
        width: calc(100% + 24px);
        padding: 18px 12px;
        border-radius: 0;
    }

    .short-video-header h3 {
        font-size: 20px;
    }

    .short-video-slider {
        gap: 8px;
        padding: 2px 0;
        scroll-snap-type: x proximity;
    }

    .short-video-card {
        min-width: calc((100vw - 56px) / 3);
        scroll-snap-align: start;
    }

    .short-video-card-body {
        min-height: 58px;
        padding: 8px;
    }

    .short-video-title {
        font-size: 10px;
        line-height: 13px;
    }

    .short-video-author {
        margin-top: 3px;
        font-size: 9px;
        line-height: 12px;
    }

    .short-video-card-pastille {
        width: 28px;
        height: 28px;
    }

    .short-video-slider-shell > .slider-btn {
        display: none;
    }

    .short-video-list-items {
        grid-template-columns: 1fr;
    }

    .publio-short-modal-dialog {
        grid-template-columns: 1fr;
    }

    .publio-short-modal-ad {
        display: none;
    }
}

@media (max-width: 576px) {
    .short-video-grid {
        grid-template-columns: 1fr;
    }

    .short-video-grid .short-video-card {
        display: grid;
        grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
    }

    .short-video-grid .short-video-media {
        height: 240px;
        aspect-ratio: auto;
    }

    .short-video-grid .short-video-card-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 0;
        padding: 16px;
    }

    .short-video-grid .short-video-title {
        font-size: 15px;
        line-height: 20px;
    }

    .short-video-grid .short-video-author {
        font-size: 12px;
        line-height: 16px;
    }

    .publio-short-feed-shell {
        padding: 10px;
    }

    .publio-short-feed-stage {
        width: 100%;
        height: calc(100vh - 20px);
    }

    .publio-short-feed-frame {
        width: 100%;
    }

    .publio-short-feed-copy {
        right: 0;
        left: 0;
        padding: 70px 58px 18px 16px;
    }

    .publio-short-feed-close,
    .publio-short-feed-volume {
        left: 14px;
    }

    .publio-short-feed-actions {
        right: 8px;
        bottom: 78px;
    }

    .publio-short-feed-navigation {
        top: 88px;
        right: 10px;
        transform: none;
    }

    .publio-short-feed-navigation button {
        width: 36px;
        height: 36px;
    }

    .publio-short-feed-navigation svg {
        width: 18px;
        height: 18px;
    }

    .publio-short-feed-destination {
        display: none !important;
    }

    .publio-short-detail {
        inset: 10px;
        width: auto;
        border-radius: 24px;
    }

    .publio-short-detail-scroll {
        padding: 70px 18px 22px;
    }
}

/* Fidélité visuelle avec les surfaces Short historiques de Trium. */
.short-video-page {
    padding-top: 20px;
    padding-bottom: 30px;
}

.short-video-block {
    margin: 0 0 12px;
    padding: 18px;
    border-radius: 14px;
    background: var(--short-bg);
}

.home-short-section {
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.short-section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
}

.short-slider-wrapper {
    display: flex;
    flex: 1 1 66%;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
}

.short-video-slider-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.short-video-slider {
    display: flex;
    gap: 14px;
    margin-right: -15px;
    padding: 16px 0;
    overflow-x: auto;
}

.short-video-slider .short-video-card {
    flex: 0 0 calc((100% - 28px) / 3);
}

.short-video-slider-shell > .slider-btn {
    width: 32px;
    height: 32px;
    padding: 0 0 3px;
    color: #000000;
    background: rgba(255, 255, 255, 0.6);
    font-size: 26px;
}

.short-video-slider-shell > .slider-btn.prev {
    left: 15px;
}

.short-video-slider-shell > .slider-btn.next {
    right: 15px;
}

.short-video-list {
    flex: 0 0 280px;
    border-radius: 12px;
}

.short-video-list-items {
    display: block;
}

.short-video-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

[theme="dark"] .short-video-list-item {
    border-bottom-color: var(--short-line);
}

.short-video-list-item:last-child {
    border-bottom: 0;
}

.short-video-list-item a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-height: 0;
    padding: 0;
}

.short-video-list-item a:hover {
    color: #e67f0c;
}

.short-video-list-icon {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 20px;
    margin-top: 3px;
    padding: 2px 0 0 2px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    color: var(--short-text);
    background: transparent;
    font-size: 11px;
}

.short-video-list-text {
    font-weight: 700;
    line-height: 1.3;
}

.short-video-all {
    min-height: 33px;
    height: 33px;
    line-height: 31px;
}

.short-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.short-video-card,
.short-video-grid .short-video-card {
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 8px;
    overflow: hidden;
    border-radius: 25px;
    background: transparent;
    box-shadow: none;
}

.short-video-card:hover,
.short-video-card:focus-visible {
    background: var(--short-card-active);
    box-shadow: none;
    transform: none;
}

.short-video-media {
    height: 400px;
    overflow: hidden;
    border-radius: 25px;
    background: #000000;
    aspect-ratio: auto;
}

.short-video-media video,
.short-video-media img {
    height: 400px;
    object-fit: cover;
    background: #000000;
}

.short-video-card-body {
    min-height: 0;
    padding: 10px 12px 0;
}

.short-video-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.short-video-author {
    margin-top: 0;
    font-size: 12px;
    line-height: normal;
}

@media (min-width: 514px) {
    .short-video-card {
        min-height: 460px;
    }
}

@media (max-width: 1200px) {
    .short-video-slider {
        flex-wrap: wrap;
        overflow-x: hidden;
        scroll-behavior: auto;
    }

    .short-video-slider .short-video-card {
        flex: 0 0 calc((100% - 28px) / 2);
    }

    .short-video-slider-shell > .slider-btn {
        display: none;
    }
}

@media (max-width: 700px) {
    .home-short-section {
        width: 100%;
        margin: 0 0 24px;
        padding: 0;
    }

    .short-video-slider {
        gap: 14px;
        padding: 16px 0;
    }

    .home-short-section .short-video-card {
        min-width: 0;
    }

    .home-short-section .short-video-card-body {
        display: block;
        min-height: 0;
        padding: 10px 12px 0;
    }

    .home-short-section .short-video-title {
        font-size: 15px;
        line-height: 1.25;
    }

    .home-short-section .short-video-author {
        margin-top: 0;
        font-size: 12px;
        line-height: normal;
    }
}

@media (max-width: 513px) {
    .home-short-section .short-video-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 9 / 16;
    }

    .home-short-section .short-video-media video,
    .home-short-section .short-video-media img {
        height: 100%;
    }

    .short-video-page .short-video-card,
    .short-video-page .short-video-grid .short-video-card {
        display: flex;
        min-height: 0;
    }

    .short-video-page .short-video-media,
    .short-video-page .short-video-grid .short-video-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 9 / 16;
    }

    .short-video-page .short-video-media video,
    .short-video-page .short-video-media img {
        height: 100%;
    }

    .short-video-page .short-video-card-body,
    .short-video-page .short-video-grid .short-video-card-body {
        display: none;
    }

    .short-video-page .is-listing-card .short-video-mobile-volume {
        position: absolute;
        z-index: 4;
        top: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: #ffffff;
        background: rgba(0, 0, 0, 0.55);
        font-size: 18px;
    }

    .short-video-page .is-listing-card .short-video-mobile-title {
        position: absolute;
        z-index: 3;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 42px 14px 14px;
        color: #ffffff;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32), transparent);
        font-size: 20px;
        font-weight: 700;
        line-height: 1.4;
    }

    .short-video-page .is-listing-card .short-video-mobile-progress {
        position: absolute;
        z-index: 5;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
    }

    .short-video-page .is-listing-card .short-video-mobile-progress > span {
        display: block;
        width: 0;
        height: 100%;
        background: #ffa500;
    }
}
