/* ============================================
   SUPPRIME L'ENTRY-HEADER VIDE D'ASTRA
   ============================================ */
.entry-header.ast-no-thumbnail.ast-no-title,
.entry-header.ast-no-title,
.entry-header.ast-no-thumbnail {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    pointer-events: none !important;
}

.entry-title {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   PLEINE LARGEUR + PLEINE HAUTEUR
   ============================================ */
.carousel-wrapper {
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background: transparent !important;
    z-index: 1 !important;
}

.carousel-wrapper .carousel,
.carousel-wrapper .carousel-inner,
.carousel-wrapper .item,
.carousel-wrapper .fill {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   TRANSITION FADE MODERNE
   ============================================ */
.carousel.fade-modern .item {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    z-index: 1;
}

.carousel.fade-modern .item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    position: relative;
}

.carousel.fade-modern .item.active.left,
.carousel.fade-modern .item.active.right {
    opacity: 0;
    transform: scale(0.97);
    z-index: 1;
}

.carousel.fade-modern .item.next.left,
.carousel.fade-modern .item.prev.right {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel.fade-modern .item.next,
.carousel.fade-modern .item.prev {
    opacity: 0;
    transform: scale(0.97);
    z-index: 1;
}

.carousel.fade-modern .item .fill {
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.05);
}

.carousel.fade-modern .item.active .fill {
    transform: scale(1);
}

/* ============================================
   SUPPRIME TOUTES LES MARGES/PADDINGS
   ============================================ */
.entry-content:has(.carousel-wrapper),
.site-content:has(.carousel-wrapper),
.content-area:has(.carousel-wrapper),
.ast-container:has(.carousel-wrapper),
.ast-content-layout:has(.carousel-wrapper) {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.site-header,
.ast-site-header,
#masthead,
.ast-header,
.ast-primary-header,
.ast-main-header-wrap,
.main-header-bar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.carousel-wrapper + *,
* + .carousel-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    clear: both !important;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
    display: none !important;
    content: none !important;
}

[data-stellar-background-ratio] {
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.admin-bar .carousel-wrapper {
    height: calc(100vh - 32px) !important;
    min-height: calc(100vh - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    margin-top: -32px !important;
}

.admin-bar .carousel-wrapper .carousel,
.admin-bar .carousel-wrapper .carousel-inner,
.admin-bar .carousel-wrapper .item,
.admin-bar .carousel-wrapper .fill {
    height: calc(100vh - 32px) !important;
    min-height: calc(100vh - 32px) !important;
    max-height: calc(100vh - 32px) !important;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    .admin-bar .carousel-wrapper {
        height: calc(100vh - 46px) !important;
        min-height: calc(100vh - 46px) !important;
        max-height: calc(100vh - 46px) !important;
        margin-top: -46px !important;
    }
    .admin-bar .carousel-wrapper .carousel,
    .admin-bar .carousel-wrapper .carousel-inner,
    .admin-bar .carousel-wrapper .item,
    .admin-bar .carousel-wrapper .fill {
        height: calc(100vh - 46px) !important;
        min-height: calc(100vh - 46px) !important;
        max-height: calc(100vh - 46px) !important;
    }
    [data-stellar-background-ratio] {
        background-attachment: scroll !important;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}