.slider-formation-photo {
    overflow: hidden;
    padding: 32px 20px;
}

.slider-formation-photo.is-admin-preview.block-admin-empty {
    min-height: 160px;
}

.slider-formation-photo.is-admin-preview > .section-nav-title {
    display: block !important;
    font-weight: 700;
    margin: 0;
    text-align: center;
    font-size: 20px;
    color: #111111 !important;
}

.acf-block-preview .slider-formation-photo.is-admin-preview.block-admin-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d9b24c;
    background: #fffaf0;
}

@media screen and (min-width: 768px) {
    .slider-formation-photo {
        padding: 64px 20px;
    }
}

.slider-formation-photo.has-background {
    background: var(--ocre-20);
}

.has-1 .slider-formation-photo--title {
    display: none;
}

@media screen and (min-width: 992px) {
    .has-more .slider-formation-photo--title {
        order: 1;
        max-width: 60%;
    }
}

.has-2 .slider-formation-photo--container,
.has-more .slider-formation-photo--container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media screen and (min-width: 992px) {
    .has-more .slider-formation-photo--container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .has-2 .slider-formation-photo--container,
    .has-more .slider-formation-photo--container {
        gap: 60px;
    }
}

.slider-formation-photo--container h2 {
    color: var(--neutre-100);
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    max-width: 464px;
    margin: auto;
}

@media screen and (min-width: 992px) {
    .slider-formation-photo--container h2 {
        font-size: 32px;
        line-height: 40px;
        text-align: left;
        margin: 0;
    }

    .has-2 .slider-formation-photo--container h2 {
        max-width: 60%;
    }
}

.has-2 .slider-formation-photo--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media screen and (min-width: 992px) {
    .has-2 .slider-formation-photo--list {
        flex-direction: row;
        gap: 32px;
    }

    .has-more .slider-formation-photo--list {
        order: 3;
    }
}

@media screen and (min-width: 768px) {
    .slider-formation-photo .co-text--content-btn {
        justify-content: center;
        gap: 32px;
    }
}

.slider-formation-photo--card {
    color: var(--neutre-100);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    text-decoration: none;
}

.has-1 .slider-formation-photo--card {
    gap: 16px;
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card {
        flex-direction: row;
        gap: 32px;
    }
}

.slider-formation-photo--card .has-2 {
    flex: 1;
}

.slider-formation-photo--card-content {
    display: flex;
    flex-direction: column;
}

.has-2 .slider-formation-photo--card-content,
.has-more .slider-formation-photo--card-content {
    gap: 4px;
}

.has-1 .slider-formation-photo--card-content {
    gap: 16px;
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card-content {
        gap: 30px;
    }
}

.th-dore .slider-formation-photo--card-content .uptitle {
    color: var(--ocre-100);
}

.has-1 .slider-formation-photo--card-content .uptitle {
    margin-bottom: -10px;
    text-align: center;
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card-content .uptitle {
        margin-bottom: -26px;
        text-align: left;
    }
}

.slider-formation-photo--card-content h3 {
    font-size: 1.375rem;
}

.has-1 .slider-formation-photo--card-content h3 {
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card-content h3 {
        font-size: 3rem;
        line-height: 56px;
        text-align: left;
    }

    .has-2 .slider-formation-photo--card-content h3,
    .has-more .slider-formation-photo--card-content h3 {
        font-size: 1.5rem;
    }
}

.has-1 .slider-formation-photo--card-content p {
    color: var(--neutre-60);
    text-align: center;
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card-content p {
        text-align: left;
    }
}

.has-2 .slider-formation-photo--card-content p,
.has-more .slider-formation-photo--card-content p {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.has-1 .slider-formation-photo--card-content .btn {
    margin-inline: auto;
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card-content .btn {
        margin-inline: 0;
    }
}

.slider-formation-photo--card img {
    height: 230px;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 8px;
}

.has-more .slider-formation-photo--card img {
    height: 430px;
}

@media screen and (min-width: 992px) {
    .slider-formation-photo--card img {
        height: 430px;
    }
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--card img {
        width: 100vw;
        max-width: 800px;
    }
}

.slider-formation-photo--card[href]::after {
    content: "\2197";
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: transparent;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

@media (hover: hover) {
    .slider-formation-photo--card[href]::after {
        opacity: 0;
        transform: translateY(-4px);
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .slider-formation-photo--card[href]:hover::after,
    .slider-formation-photo--card[href]:focus-visible::after {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        background: var(--redirect-bg-hover);
        color: var(--redirect-color-hover);
        border-color: var(--redirect-bg-hover);
        transition-delay: 0s;
    }
}

@media screen and (max-width: 767px) {
    .slider-formation-photo--card[href]::after {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        color: var(--redirect-color);
        border-color: var(--redirect-color);
    }
}

@media screen and (min-width: 992px) {
    .slider-formation-photo--card[href]::after {
        top: 16px;
        right: 16px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

.slider-formation-photo--image-placeholder {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed var(--neutre-40);
    background: rgba(255, 255, 255, 0.7);
    color: var(--neutre-60);
    font-family: var(--roboto);
    font-size: 14px;
}

@media screen and (min-width: 992px) {
    .slider-formation-photo--image-placeholder {
        min-height: 430px;
    }
}

.slider-formation-photo--navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

@media screen and (min-width: 992px) {
    .slider-formation-photo--navigation {
        justify-content: flex-start;
    }
}

.has-1 .slider-formation-photo--navigation {
    display: none;
}

.has-more .slider-formation-photo--navigation {
    order: 3;
}

@media screen and (min-width: 992px) {
    .has-more .slider-formation-photo--navigation {
        order: 2;
    }
}

.slider-formation-photo.slider-formation-photo--static .slider-formation-photo--navigation,
.slider-formation-photo.slider-formation-photo--static .slider-formation-photo--dots,
.slider-formation-photo.slider-formation-photo--static .owl-dots {
    display: none !important;
}

.slider-formation-photo.slider-formation-photo--static .owl-stage-outer {
    overflow: visible;
}

.slider-formation-photo.slider-formation-photo--static .owl-stage {
    display: flex;
    width: 100% !important;
    transform: none !important;
}

.slider-formation-photo.slider-formation-photo--static .owl-item {
    flex: 1 1 0;
    width: auto !important;
}

.slider-formation-photo--dots {
    display: flex;
    width: 100%;
}

.th-dark .slider-formation-photo--dots {
    --button-bg: var(--neutre-40);
    --active-bg: var(--neutre-100);
}

.th-dore .slider-formation-photo--dots {
    --button-bg: var(--ocre-40);
    --active-bg: var(--ocre-100);
}

.th-light .slider-formation-photo--dots {
    --button-bg: var(--neutre-40);
    --active-bg: var(--neutre-100);
}

.has-1 .slider-formation-photo--dots {
    display: none;
}

.has-more .slider-formation-photo--dots {
    order: 3;
}

.slider-formation-photo--dots button {
    height: 1px;
    flex: 1;
    background: var(--button-bg);
    transition: all 0.4s ease;
}

.slider-formation-photo--dots button.active {
    background: var(--active-bg);
}

.slider-formation-photo--buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

@media screen and (min-width: 992px) {
    .slider-formation-photo--buttons {
        justify-content: center;
        gap: 32px;
    }
}

.has-1 .slider-formation-photo--buttons {
    display: none;
}

.has-2 .slider-formation-photo--buttons,
.has-more .slider-formation-photo--buttons {
    order: 9;
}

/* Keep the regular slider card layout when only one item is available. */
.has-1 .slider-formation-photo--container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.has-1 .slider-formation-photo--title {
    display: block;
}

.has-1 .slider-formation-photo--card {
    gap: 8px;
}

.has-1 .slider-formation-photo--card-content {
    gap: 4px;
}

.has-1 .slider-formation-photo--card-content h3 {
    font-size: 1.375rem;
    line-height: normal;
    text-align: left;
}

.has-1 .slider-formation-photo--card-content p {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-align: left;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.has-1 .slider-formation-photo--buttons {
    display: flex;
    order: 9;
}

.has-1.slider-formation-photo--static .owl-item {
    flex: 0 0 100%;
    width: 100% !important;
}

@media screen and (min-width: 768px) {
    .has-1.slider-formation-photo--static .owl-item {
        flex-basis: calc((100% - 16px) / 2);
        width: calc((100% - 16px) / 2) !important;
    }
}

@media screen and (min-width: 992px) {
    .has-1 .slider-formation-photo--container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 60px;
    }

    .has-1 .slider-formation-photo--title {
        order: 1;
        max-width: 60%;
    }

    .has-1 .slider-formation-photo--list {
        order: 3;
    }

    .has-1 .slider-formation-photo--card {
        flex-direction: column;
        gap: 8px;
    }

    .has-1 .slider-formation-photo--card-content {
        gap: 4px;
    }

    .has-1 .slider-formation-photo--card-content h3 {
        font-size: 1.5rem;
        line-height: normal;
    }

    .has-1 .slider-formation-photo--card img {
        width: 100%;
        max-width: none;
    }

    .has-1.source-formations.slider-formation-photo--static .owl-item {
        flex-basis: calc((100% - 64px) / 3);
        width: calc((100% - 64px) / 3) !important;
    }

    .has-1.source-domaines.slider-formation-photo--static .owl-item {
        flex-basis: calc((100% - 96px) / 4);
        width: calc((100% - 96px) / 4) !important;
    }
}

.slider-formation-photo--preview-thumbs {
    display: none;
}


.th-dark .slider-formation-photo--card,
.th-light .slider-formation-photo--card {
    --redirect-color: var(--neutre-100);
    --redirect-bg-hover: var(--neutre-100);
    --redirect-color-hover: var(--white);
}

.th-dore .slider-formation-photo--card {
    --redirect-color: var(--ocre-100);
    --redirect-bg-hover: var(--ocre-100);
    --redirect-color-hover: var(--white);
}

.th-light .slider-formation-photo--card {
    --redirect-bg-hover: var(--ocre-80);
    --redirect-color-hover: var(--white);
}
.acf-block-preview .slider-formation-photo,
.slider-formation-photo.is-admin-preview {
    padding: 24px 16px;
}

.acf-block-preview .slider-formation-photo.has-background,
.slider-formation-photo.is-admin-preview.has-background {
    background: var(--ocre-20, #f6efe0);
}

.acf-block-preview .slider-formation-photo .is-placeholder,
.slider-formation-photo.is-admin-preview .is-placeholder {
    opacity: 0.45;
}

.acf-block-preview .slider-formation-photo--container,
.slider-formation-photo.is-admin-preview .slider-formation-photo--container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
}

.acf-block-preview .slider-formation-photo--title h2,
.slider-formation-photo.is-admin-preview .slider-formation-photo--title h2 {
    text-align: left;
    margin-inline: 0;
    max-width: 560px;
    font-size: 32px;
    line-height: 40px;
}

.acf-block-preview .slider-formation-photo--list,
.slider-formation-photo.is-admin-preview .slider-formation-photo--list {
    display: grid;
    gap: 16px;
    width: 100%;
    overflow: hidden;
    align-items: start;
}

.acf-block-preview .source-domaines .slider-formation-photo--list,
.slider-formation-photo.is-admin-preview.source-domaines .slider-formation-photo--list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.acf-block-preview .source-formations .slider-formation-photo--list,
.slider-formation-photo.is-admin-preview.source-formations .slider-formation-photo--list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.acf-block-preview .source-domaines .slider-formation-photo--list > :nth-child(n + 5),
.slider-formation-photo.is-admin-preview.source-domaines .slider-formation-photo--list > :nth-child(n + 5) {
    display: none;
}

.acf-block-preview .source-formations .slider-formation-photo--list > :nth-child(n + 4),
.slider-formation-photo.is-admin-preview.source-formations .slider-formation-photo--list > :nth-child(n + 4) {
    display: none;
}

.acf-block-preview .slider-formation-photo--card,
.slider-formation-photo.is-admin-preview .slider-formation-photo--card {
    --redirect-color: var(--ocre-100, #a77a2f);
    --redirect-bg-hover: var(--ocre-100, #a77a2f);
    --redirect-color-hover: var(--white, #fff);
    gap: 12px;
}

.acf-block-preview .slider-formation-photo a,
.slider-formation-photo.is-admin-preview a,
.acf-block-preview .slider-formation-photo .btn,
.slider-formation-photo.is-admin-preview .btn {
    pointer-events: none;
}

.acf-block-preview .slider-formation-photo .slider-formation-photo--card[href]::after,
.slider-formation-photo.is-admin-preview .slider-formation-photo--card[href]::after {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.acf-block-preview .slider-formation-photo--card img,
.acf-block-preview .slider-formation-photo--image-placeholder,
.slider-formation-photo.is-admin-preview .slider-formation-photo--card img,
.slider-formation-photo.is-admin-preview .slider-formation-photo--image-placeholder {
    height: 320px;
    min-height: 320px;
    border-radius: 12px;
}

.acf-block-preview .slider-formation-photo--card-content,
.slider-formation-photo.is-admin-preview .slider-formation-photo--card-content {
    gap: 8px;
}

.acf-block-preview .slider-formation-photo--card-content h3,
.slider-formation-photo.is-admin-preview .slider-formation-photo--card-content h3 {
    font-size: 24px;
    line-height: 32px;
}

.acf-block-preview .slider-formation-photo--card-content p,
.slider-formation-photo.is-admin-preview .slider-formation-photo--card-content p {
    font-size: 16px;
    line-height: 28px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acf-block-preview .slider-formation-photo--preview-thumbs,
.slider-formation-photo.is-admin-preview .slider-formation-photo--preview-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    overflow: visible;
    order: 12;
}

.acf-block-preview .slider-formation-photo--preview-thumb,
.slider-formation-photo.is-admin-preview .slider-formation-photo--preview-thumb {
    flex: 1 1 150px;
    width: 100%;
    max-width: 150px;
    overflow: hidden;
}

.acf-block-preview .slider-formation-photo--preview-thumb img,
.acf-block-preview .slider-formation-photo--preview-thumb .slider-formation-photo--image-placeholder,
.slider-formation-photo.is-admin-preview .slider-formation-photo--preview-thumb img,
.slider-formation-photo.is-admin-preview .slider-formation-photo--preview-thumb .slider-formation-photo--image-placeholder {
    width: 100%;
    height: 72px;
    min-height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.acf-block-preview .slider-formation-photo--preview-thumb-title,
.slider-formation-photo.is-admin-preview .slider-formation-photo--preview-thumb-title {
    margin: 8px 0 0;
    color: var(--neutre-100, #1e1e1e);
    font-family: var(--roboto);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acf-block-preview .slider-formation-photo .owl-stage-outer,
.acf-block-preview .slider-formation-photo .owl-stage,
.acf-block-preview .slider-formation-photo .owl-item,
.slider-formation-photo.is-admin-preview .owl-stage-outer,
.slider-formation-photo.is-admin-preview .owl-stage,
.slider-formation-photo.is-admin-preview .owl-item {
    display: contents;
    overflow: visible;
}

.acf-block-preview .slider-formation-photo--navigation,
.acf-block-preview .slider-formation-photo--dots,
.acf-block-preview .slider-formation-photo .owl-dots,
.acf-block-preview .slider-formation-photo .owl-nav,
.slider-formation-photo.is-admin-preview .slider-formation-photo--navigation,
.slider-formation-photo.is-admin-preview .slider-formation-photo--dots,
.slider-formation-photo.is-admin-preview .owl-dots,
.slider-formation-photo.is-admin-preview .owl-nav {
    display: none !important;
}

.acf-block-preview .slider-formation-photo--buttons,
.slider-formation-photo.is-admin-preview .slider-formation-photo--buttons {
    display: flex !important;
    justify-content: center;
    gap: 16px;
    order: 10;
    margin-top: 8px;
}

@media screen and (min-width: 1280px) {
    .acf-block-preview .slider-formation-photo--container,
    .slider-formation-photo.is-admin-preview .slider-formation-photo--container {
        gap: 40px;
    }

    .acf-block-preview .slider-formation-photo--list,
    .slider-formation-photo.is-admin-preview .slider-formation-photo--list {
        gap: 24px;
    }

    .acf-block-preview .slider-formation-photo--card img,
    .acf-block-preview .slider-formation-photo--image-placeholder,
    .slider-formation-photo.is-admin-preview .slider-formation-photo--card img,
    .slider-formation-photo.is-admin-preview .slider-formation-photo--image-placeholder {
        height: 430px;
        min-height: 430px;
    }
}
