/* D Slideshow - fullscreen swiper slideshow */

.dslideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100vh; /* évite les soucis de barre d'adresse mobile */
    overflow: hidden;
background: black;
}

.dslideshow-swiper,
.dslideshow-swiper .swiper-wrapper,
.dslideshow-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.dslideshow-slide {
    position: relative;
    overflow: hidden;
}

/* Rend toute la slide cliquable quand un lien est défini */
.dslideshow-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.dslideshow-media video {
    pointer-events: none;
}
.dslideshow-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    /* État "off" par défaut : le media reste invisible/zoomé tant que
       la classe .dslideshow-zoom-out n'est pas ajoutée en JS, une fois
       la transition de slide Swiper terminée. */
    opacity: 1;
    transform: scale(1.1);
}

/* Effet d'apparition (fade + scale) déclenché en JS une fois la slide stabilisée */
.dslideshow-media.dslideshow-zoom-out {
    animation: slideAppear 1.5s cubic-bezier(0.25, 0.1, 0.25, 1.0) -0.2s forwards;
}

@keyframes slideAppear {
    0% {
        opacity:1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#index .dslideshow-img,
#index .dslideshow-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay noir léger (10%) entre le media et la légende */
.dslideshow-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    z-index: 2;
    pointer-events: none;
}
body  #content .dslideshow-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 0;
    background: #ffffff;
    margin: 0 4px;
    border-radius: 8px;
}

body .dslideshow-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff !important;
}

.dslideshow-logo {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
    margin: 0 0 18px;
}
.réductions .dslideshow-logo {
    display: block;
    width: 550px;
    max-width: 90%;
    height: auto;
    margin: 0 0 18px;
}
.dslideshow-caption {
    position: absolute;
    z-index: 3; 
    color: #fff;
    text-align: left;
    left: 8%;
    bottom: 14%;
    width: 35%;
}

.dslideshow-title {
    font-size: 2.7rem;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 0px;
    color: inherit;
    /* text-transform: uppercase; */
    line-height: 1;
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    text-shadow: -1px 4px 4px #000000;
    margin-bottom: 10px;

}

.dslideshow-desc {
    font-size: 1.1rem;
    line-height: 1.1;    font-family: var(--fonttitre);
    margin: 8px 0 7px;text-shadow: -1px 4px 4px #000000;
}

.dslideshow-btn {
      display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease,transform 0.2s ease;
    background-color: #ffffff17;
    box-shadow: none;
    border: 0px solid rgba(255, 255, 255, .6);
    color: rgba(255, 255, 255, 1);
    border-radius: 14px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-size: 15px;margin-top:15px
}

.dslideshow-btn:hover, 
.dslideshow-btn:focus {
    opacity: 1;
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);background:white;color:#111111
}

.dslideshow-slide.dslideshow-text-center .dslideshow-caption {
    left: 50%;
    right: auto;
    width: 60%;
    transform: translateX(-50%);
    text-align: center;
}
 .dslideshow-logo {
filter: drop-shadow(-1px 4px 4px #000000);
}
.dslideshow-slide.dslideshow-text-center .dslideshow-logo {
    margin-left: auto;
    margin-right: auto
}

/* Mobile : légende centrée, plus haute et plus large */

.dslideshow-slide.dslideshow-text-center .dslideshow-caption.réductions, .dslideshow-slide.dslideshow-text-center .dslideshow-caption.uZine {
    left: 50%;
    right: auto;
    width: 60%;
    transform: translate(-50%, 50%);
    text-align: center;
    bottom: 40%;
}





@media (max-width: 767px) {
	
	.dslideshow-slide.dslideshow-text-center .dslideshow-caption.réductions, .dslideshow-slide.dslideshow-text-center .dslideshow-caption.uZine {
    transform: translate(-50%, 50%);
    text-align: center;
    bottom: 50%;
}

	.dslideshow-wrapper {
    height: auto;
}
.dslideshow-swiper, .dslideshow-swiper .swiper-wrapper, .dslideshow-swiper .swiper-slide {
    height: 150vw;
}

    .dslideshow-logo {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
    margin: 0 0 18px;
}

.dslideshow-caption {
    left: 10%;
    bottom: 65px;
    width: 80%;
    text-align: center;
    transform: translate(0, 0);
    }
.dslideshow-logo {
       margin: 0 auto 15px;
    width: 100px;
}
.réductions .dslideshow-logo {
    width: 550px;
    max-width: 100%;
    height: auto;
    margin: 0 0 18px;
}
    .dslideshow-title {
        font-size: 1.3rem;
        line-height: 0.9;
    }

    .dslideshow-desc {
    font-size: 1rem;
    margin: 0 0 4px;
    }

    .dslideshow-btn {
        padding: 10px 30px;        font-size: 13px;
        letter-spacing: 0;
    }
}

/* Pagination (points) */
.dslideshow-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px !important;
    z-index: 4;
    text-align: center;
}

.dslideshow-pagination .swiper-pagination-bullet {
    width: 50px;
    height: 2px;
    background: #fff;
    opacity: 0.5;
    margin: 0 5px;
    border-radius: 0px;
}
.dslideshow-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Flèches de navigation */
.dslideshow-arrow {
    z-index: 4;
    color: #fff;
    width: 44px;
    height: 44px;
    margin-top: -22px;    padding: 12px;
    border-radius: 50%;
    background: var(--color1);
    opacity: 0.6;
}

.dslideshow-arrow::after {
    font-size: 22px;
}

.dslideshow-arrow:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
	
	.dslideshow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(360deg, #000000, transparent);
    z-index: 2;
    pointer-events: none;
    height: 60%;
    bottom: 0;
    left: 0;
    top: initial;
}

    .dslideshow-arrow {
        background: #ffffff14;
        border-radius: 50%;
        backdrop-filter: blur(4px);
    }
	
.dslideshow-wrapper .swiper-button-prev, .dslideshow-wrapper .swiper-rtl .swiper-button-next {
    left: 20px;
    right: auto;
}
.dslideshow-wrapper .swiper-button-next, .dslideshow-wrapper .swiper-rtl .swiper-button-prev {
    right: 20px;
    left: auto;
}
}
