/* =============================================================================
   4. BANNIÈRE
   ============================================================================ */

/* 4.1 - Slogan */
.banner-slogan {
    display: block;
    position: absolute;
    top: 60%;
    left: 50%;
    width: 80%;
    text-align: center;
    text-wrap: balance;
    color: var(--typo-sur-fond-sombre);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.body-page-1 .banner-slogan {
    top: 50%;
}

.banner-slogan h1 {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    text-align: center;
    color: inherit;
}

.banner-slogan h1:before {
    display: none;
}

.banner-slogan .banner-title {
    display: block;
    font-family: var(--family-titre);
    font-size: var(--taille-font-4xl);
    line-height: var(--taille-font-3xl);
    text-transform: initial;
}

.banner-slogan .banner-title span {
    font-size: inherit;
}

.banner-slogan .banner-subtitle {
    display: block;
    font-family: var(--family-titre);
    font-size: var(--taille-font-2xl);
    font-weight: 200;
    line-height: 1.3;
    text-transform: initial;
}

/* 4.2 - Bannière container */
.banner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--banniere-height, 100vh);
    background-position: center;
    overflow: hidden;
}

.banner:after {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    background-color: var(--overlay-lt);
    pointer-events: none;
    z-index: 1;
}

.banner:before {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background-color: var(--overlay-lt);
    backdrop-filter: blur(7px);
    pointer-events: none;
    z-index: 2;
}

.banner :is(img, video) {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.body-page-1 .banner {
    position: relative;
}

.body-page-1 .banner:after {
    background: var(--gradient-banniere);
    opacity: 1;
}

.body-page-1 .banner:before {
    content: none;
}

/* 4.3 - Swiper & pagination */
.banner .swiper.banner-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.banner .banner-slider img {
    will-change: scale;
    transform: scale(1);
    animation: 30s zoomAB infinite ease-in-out;
}

.banner .swiper-pagination {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    position: absolute;
    top: 50%;
    right: 2rem;
    left: auto;
    bottom: auto;
    height: auto;
    padding: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.banner span.swiper-pagination-bullet {
    width: 27px;
    height: 3px;
    margin: 0.5rem 0 !important;
    background: var(--fond-page);
    border-radius: 0;
    opacity: 0.8;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.banner span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 50px;
    background: var(--fond-bouton);
    opacity: 1;
}

.banner-slider .swiper-button:is(.prev, .next) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin: 0 5rem;
    color: var(--typo-sur-fond-sombre);
    background: var(--fond-bouton);
    backdrop-filter: blur(5px);
    transition: opacity 0.4s ease, background-color 0.4s ease;
    z-index: 10;
}

.banner-slider .swiper-button:is(.prev, .next).swiper-button-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* 4.4 - Bouton descendre */
.banner-scroll {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 90%;
	left: 50%;
	width: 3em;
	aspect-ratio: 1;
	text-decoration: none;
	background: var(--fond-page);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.banner-scroll:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background: var(--fond-page);
    border-radius: 50%;
    animation: pulse-border 1.5s ease-out infinite;
    z-index: -1;
}

/* Animations */
@keyframes zoomAB {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Responsive */
@media (max-width: 1199px) {
    .banner-slogan .banner-subtitle {
        font-size: var(--taille-font-lg);
        line-height: 1.2;
    }
}

@media (max-width: 991px) {
    .banner {
        position: relative;
        height: 25vh;
    }

    .banner-slogan {
        top: 50%;
        left: 50%;
        width: 90%;
        text-align: center;
        transform: translate(-50%, -50%);
    }
    .banner-slogan .banner-title {
        font-size: var(--taille-font-3xl);
        line-height: 1.1;
    }
    .banner .cta {
        display: none;
    }
    .banner-scroll {
        display: none;
    }
    .banner .swiper-pagination {
        display: none;
    }
}

@media (max-width: 767px) {
    .banner-slogan .banner-title {
        font-size: var(--taille-font-2xl);
    }
    .banner-slogan .banner-subtitle {
        font-size: var(--taille-font-base);
    }
}