.vv-carousel {
    --vv-visible: var(--vv-columns, 3);
    --vv-gap: 24px;
    min-width: 0;
    max-width: 100%;
    color: inherit;
}
.vv-carousel :is(.vv-carousel__track, .fts-jal-fb-group-display) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--vv-visible) - 1) * var(--vv-gap)) / var(--vv-visible));
    grid-template-columns: none;
    gap: var(--vv-gap);
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px;
}
.vv-carousel__track[data-vv-scrollable] { scrollbar-width: none; }
.vv-carousel__track[data-vv-scrollable]::-webkit-scrollbar { display: none; }
.vv-carousel[data-mode="mobile"] :is(.vv-carousel__track, .fts-jal-fb-group-display) {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(var(--vv-visible), minmax(0, 1fr));
    overflow: visible;
}
.vv-carousel .vv-slide,
.vv-carousel--facebook .fts-jal-single-fb-post {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    overflow-wrap: anywhere;
}
:where(.vv-carousel .vv-slide:not([class*="is-layout-"])) { display: flex; flex-direction: column; }
:where(.vv-carousel .vv-slide) {
    gap: var(--wp--style--block-gap, 1rem);
    padding: 24px;
    border: 1px solid var(--wp--preset--color--accent-6, currentColor);
    border-radius: 10px;
}
:where(.vv-slide:not([class*="is-layout-"])) > * { margin-block: 0; }
:where(.vv-slide:not([class*="is-layout-"])) > .wp-block-buttons:last-child { margin-top: auto; padding-top: 16px; }
.vv-slide img, .vv-slide video, .vv-slide iframe { max-width: 100%; }
:where(.vv-carousel.is-style-testimonials .vv-slide) { border: 0; text-align: center; padding: clamp(24px, 5vw, 64px) clamp(20px, 4vw, 48px); }
.vv-carousel.is-style-testimonials blockquote { border: 0; padding: 0; margin: auto; }
.vv-carousel.is-style-testimonials blockquote p { font-size: clamp(24px, 3.3vw, 36px); line-height: 1.35; text-wrap: balance; }
.vv-carousel.is-style-testimonials blockquote cite { display: block; margin-top: 28px; font-size: 16px; font-style: normal; }
.vv-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 24px; padding: 8px 0; }
.vv-carousel__controls[hidden] { display: none; }
.vv-carousel__controls button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.vv-carousel__controls button:disabled { opacity: .35; cursor: default; }
.vv-carousel__status { min-width: 4em; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.vv-carousel .vv-carousel__track:focus-visible,
.vv-carousel__controls button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Keep FT Social links, videos and event handlers intact. */
.vv-carousel--facebook .fts-jal-single-fb-post { float: none; width: auto !important; margin: 0 !important; border: 1px solid var(--wp--preset--color--accent-6, currentColor); border-radius: 10px; padding: 20px !important; }
.vv-carousel--facebook .fts-jal-fb-header { grid-column: 1 / -1; }
.vv-carousel--facebook .fts-clear { display: none; }
.vv-carousel--facebook .fts-jal-fb-right-wrap { float: none; width: 100%; }
.vv-carousel--facebook .fts-jal-fb-link-wrap img,
.vv-carousel--facebook .fts-jal-fb-vid-wrap img { width: 100%; height: auto; }
@media (max-width: 1023px) {
    .vv-carousel { --vv-visible: var(--vv-tablet, 2); }
}
@media (max-width: 781px) {
    .vv-carousel { --vv-visible: var(--vv-mobile, 1); }
    .vv-carousel[data-mode="mobile"] :is(.vv-carousel__track, .fts-jal-fb-group-display) {
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - (var(--vv-visible) - 1) * var(--vv-gap)) / var(--vv-visible));
        grid-template-columns: none;
        overflow-x: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .vv-carousel .vv-carousel__track { scroll-behavior: auto !important; }
}

/* Présentation compacte du flux, avec les liens et lecteurs de FT Social. */
.vv-carousel--facebook .fts-jal-single-fb-post { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.vv-carousel--facebook .fts-jal-fb-right-wrap { display: flex; flex-direction: column; flex: 1; }
.vv-carousel--facebook .fts-jal-fb-top-wrap { padding: 20px; }
.vv-carousel--facebook .fts-jal-fb-user-thumb, .vv-carousel--facebook .fts-jal-fb-header, .vv-carousel--facebook .fts-jal-fb-description-wrap { display: none !important; }
.vv-carousel--facebook .fts-jal-fb-message { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.4; max-height: 4.2em; overflow-wrap: anywhere; }
.vv-carousel--facebook .fts-jal-fb-link-wrap, .vv-carousel--facebook .fts-jal-fb-vid-wrap { order: -1; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.vv-carousel--facebook .fts-jal-fb-link-wrap img, .vv-carousel--facebook .fts-jal-fb-vid-wrap img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.vv-carousel--facebook .fts-likes-shares-etc-wrap { margin-top: auto; padding: 0 20px 20px; }
.vv-carousel--facebook .fts-jal-fb-user-name, .vv-carousel--facebook .fts-jal-fb-post-time { float: none; display: block; }

/* Le défilement reste disponible au clavier et au tactile sans barre visible. */
.vv-carousel :is(.vv-carousel__track, .fts-jal-fb-group-display)::-webkit-scrollbar { display: none; width: 0; height: 0; }
.vv-carousel :is(a, button, [tabindex]):focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.vv-carousel :is(a, button, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.vv-carousel--facebook .fts-jal-single-fb-post { border-radius: var(--vv-radius, 10px); }
.vv-carousel--facebook .fts-jal-fb-top-wrap { padding: var(--vv-padding, 20px); }
.vv-carousel--facebook .fts-likes-shares-etc-wrap { padding: 0 var(--vv-padding, 20px) var(--vv-padding, 20px); }
.vv-carousel--facebook .fts-jal-fb-message { -webkit-line-clamp: var(--vv-lines, 3); max-height: calc(var(--vv-lines, 3) * 1.4em); }
.vv-carousel--facebook .fts-jal-fb-link-wrap, .vv-carousel--facebook .fts-jal-fb-vid-wrap { aspect-ratio: var(--vv-image-ratio, 4/3); }
.vv-carousel--facebook[data-hide-image="true"] :is(.fts-jal-fb-link-wrap, .fts-jal-fb-vid-wrap),
.vv-carousel--facebook[data-hide-author="true"] .fts-jal-fb-user-name,
.vv-carousel--facebook[data-hide-date="true"] .fts-jal-fb-post-time,
.vv-carousel--facebook[data-hide-stats="true"] .fts-fb-likes-shares-etc-content > a { display: none !important; }

/* Les marges du flux ne doivent pas décaler les images dans leur cadre. */
.vv-carousel--facebook .fts-jal-fb-link-wrap > a { display: block; width: 100%; height: 100%; margin: 0 !important; padding: 0; }
.vv-carousel--facebook .fts-jal-single-fb-post:has(.fts-view-on-facebook-url:focus-visible) { outline: 2px solid var(--wp--preset--color--contrast, #111); outline-offset: -3px; }
.vv-carousel--facebook .fts-jal-fb-link-wrap img, .vv-carousel--facebook .fts-jal-fb-vid-wrap img { object-fit: var(--vv-image-fit, cover); }

.vv-carousel--facebook.vv-author-size .fts-jal-fb-user-name, .vv-carousel--facebook.vv-author-size .fts-jal-fb-user-name a { font-size: var(--vv-author-size) !important; }
.vv-carousel--facebook.vv-author-weight .fts-jal-fb-user-name, .vv-carousel--facebook.vv-author-weight .fts-jal-fb-user-name a { font-weight: var(--vv-author-weight) !important; }
.vv-carousel--facebook.vv-author-family .fts-jal-fb-user-name, .vv-carousel--facebook.vv-author-family .fts-jal-fb-user-name a { font-family: var(--vv-author-family) !important; }
.vv-carousel--facebook.vv-author-color .fts-jal-fb-user-name, .vv-carousel--facebook.vv-author-color .fts-jal-fb-user-name a { color: var(--vv-author-color) !important; }
.vv-carousel--facebook.vv-date-size .fts-jal-fb-post-time { font-size: var(--vv-date-size) !important; }
.vv-carousel--facebook.vv-date-weight .fts-jal-fb-post-time { font-weight: var(--vv-date-weight) !important; }
.vv-carousel--facebook.vv-date-family .fts-jal-fb-post-time { font-family: var(--vv-date-family) !important; }
.vv-carousel--facebook.vv-date-color .fts-jal-fb-post-time { color: var(--vv-date-color) !important; }
.vv-carousel--facebook.vv-message-size .fts-jal-fb-message { font-size: var(--vv-message-size) !important; }
.vv-carousel--facebook.vv-message-weight .fts-jal-fb-message { font-weight: var(--vv-message-weight) !important; }
.vv-carousel--facebook.vv-message-family .fts-jal-fb-message { font-family: var(--vv-message-family) !important; }
.vv-carousel--facebook.vv-message-color .fts-jal-fb-message { color: var(--vv-message-color) !important; }
.vv-carousel--facebook.vv-link-size .fts-view-on-facebook { font-size: var(--vv-link-size) !important; }
.vv-carousel--facebook.vv-link-weight .fts-view-on-facebook { font-weight: var(--vv-link-weight) !important; }
.vv-carousel--facebook.vv-link-family .fts-view-on-facebook { font-family: var(--vv-link-family) !important; }
.vv-carousel--facebook.vv-link-color .fts-view-on-facebook { color: var(--vv-link-color) !important; }
.vv-carousel--facebook.vv-stats-size .fts-fb-likes-shares-etc-content > a { font-size: var(--vv-stats-size) !important; }
.vv-carousel--facebook.vv-stats-weight .fts-fb-likes-shares-etc-content > a { font-weight: var(--vv-stats-weight) !important; }
.vv-carousel--facebook.vv-stats-family .fts-fb-likes-shares-etc-content > a { font-family: var(--vv-stats-family) !important; }
.vv-carousel--facebook.vv-stats-color .fts-fb-likes-shares-etc-content > a { color: var(--vv-stats-color) !important; }

.vv-carousel__controls button svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vv-carousel--facebook.vv-author-margin-top .fts-jal-fb-user-name { margin-top: var(--vv-author-margin-top) !important; }
.vv-carousel--facebook.vv-author-margin-bottom .fts-jal-fb-user-name { margin-bottom: var(--vv-author-margin-bottom) !important; }
.vv-carousel--facebook.vv-date-margin-top .fts-jal-fb-post-time { margin-top: var(--vv-date-margin-top) !important; }
.vv-carousel--facebook.vv-date-margin-bottom .fts-jal-fb-post-time { margin-bottom: var(--vv-date-margin-bottom) !important; }
.vv-carousel--facebook.vv-message-margin-top .fts-jal-fb-message { margin-top: var(--vv-message-margin-top) !important; }
.vv-carousel--facebook.vv-message-margin-bottom .fts-jal-fb-message { margin-bottom: var(--vv-message-margin-bottom) !important; }
.vv-carousel--facebook.vv-link-margin-top .fts-view-on-facebook { margin-top: var(--vv-link-margin-top) !important; display: inline-block; }
.vv-carousel--facebook.vv-link-margin-bottom .fts-view-on-facebook { margin-bottom: var(--vv-link-margin-bottom) !important; display: inline-block; }
.vv-carousel--facebook.vv-stats-margin-top .fts-fb-likes-shares-etc-content > a { margin-top: var(--vv-stats-margin-top) !important; display: inline-block; }
.vv-carousel--facebook.vv-stats-margin-bottom .fts-fb-likes-shares-etc-content > a { margin-bottom: var(--vv-stats-margin-bottom) !important; display: inline-block; }

.vv-carousel--facebook.vv-image-margin-top :is(.fts-jal-fb-link-wrap, .fts-jal-fb-vid-wrap) { margin-top: var(--vv-image-margin-top) !important; }
.vv-carousel--facebook.vv-image-margin-bottom :is(.fts-jal-fb-link-wrap, .fts-jal-fb-vid-wrap) { margin-bottom: var(--vv-image-margin-bottom) !important; }
.vv-carousel--facebook .vv-facebook-end { display: flex; justify-content: center; }
.vv-carousel--facebook .vv-facebook-end > a { box-sizing: border-box; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: var(--vv-padding, 20px); color: inherit; text-align: center; text-decoration: none; }
.vv-facebook-end strong span { display: inline-block; transition: transform .2s ease; }
.vv-facebook-end a:hover strong span, .vv-facebook-end a:focus-visible strong span { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .vv-facebook-end strong span { transition: none; } }

/* FT Social n'applique ces styles que sur le site : conserver le rendu du thème dans les deux contextes. */
.vv-carousel--facebook .fts-jal-fb-post-time { color: inherit; font-size: inherit; line-height: inherit; padding-top: 0; margin-bottom: 0; }
.vv-carousel--facebook .fts-view-on-facebook-url { font-size: inherit; line-height: inherit; text-align: start; text-decoration: underline !important; }
.vv-carousel--facebook .fts-view-on-facebook-url .fts-view-on-facebook { padding: 0 !important; }
