.table {
    display: table;
    position:relative;
    margin-bottom: 0;
}
.table-cell {
    width: 50%;
    display: table-cell;
    vertical-align: middle;
}

.bandeau {
    padding-top: 0;
    padding-bottom: 0;
}

.dir_rtl {
    direction: rtl;
}
.dir_rtl .table-cell:first-child {
    direction: ltr;
}

.title p,
.title h1,
.title h2,
.title h3,
.title h4,
.title h5,
.title h6 {
    letter-spacing: -0.01em !important;
    text-transform: capitalize;
    font-size:18px ;
}
.title p em,
.title h1 em,
.title h2 em,
.title h3 em,
.title h4 em,
.title h5 em,
.title h6 em {
    font-style: italic;
}
.description p,
.description h1,
.description h2,
.description h3,
.description h4,
.description h5,
.description h6,
.description ul{
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.875rem, 0.4vw + 0.8rem, 1rem);
    padding-top: 10px;
    white-space: collapse;
    line-height: 1.7;
    color: var(--bs-body-color);
}
.text-option p,
.text-option h1,
.text-option h2,
.text-option h3,
.text-option h4,
.text-option h5,
.text-option h6 {
    display: block;
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 16px;

}
.bandeau .texte {
    text-align: left;
}
.bandeau .title strong,
.bandeau .description strong {
    font-weight: 600;
}
.bandeau.type_1 .texte p,
.bandeau.type_2 . {
    text-align: left;
}
/*.bandeau.type_1 .table .table-cell:first-child{*/
/*    padding: 50px;*/
/*    padding-left: 0;*/
/*}*/
/*.bandeau.type_2 .table .table-cell:first-child {*/
/*    padding: 50px;*/
/*    padding-right: 0;*/
/*}*/
.bandeau.type_1 .table-cell:first-child {
    padding: clamp(30px, 5vw, 50px);
}
.bandeau.type_2 .table-cell:first-child {
    padding: clamp(30px, 5vw, 50px);
}
.bandeau.type_21 > .container,
.bandeau.type_22 > .container,
.bandeau.type_23 > .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.bandeau.type_21 .table,
.bandeau.type_22 .table,
.bandeau.type_23 .table {
    padding: 0;
    margin-bottom: 0;
    /*background: radial-gradient( ellipse at 30% 40%, rgba(255,255,255,0.08), rgba(0,0,0,0.85) ), linear-gradient( 135deg, #0a0617 0%, #160b3a 60%, #0b0620 100% );*/
}
.bandeau.type_21 .table-cell:first-child,
.bandeau.type_22 .table-cell:first-child,
.bandeau.type_23 .table-cell:first-child {
    position: absolute;
    top: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    right: 50%;
    height: max-content;
    width: 80%;
    z-index: 2;
}
.bandeau.type_21 .background,
.bandeau.type_22 .background,
.bandeau.type_23 .background {
    /*opacity: .7;*/
    width: 100%;
}
.bandeau.type_21 .background img,
.bandeau.type_22 .background img,
.bandeau.type_23 .background img {
    display: none;
}
.bandeau.type_21 .texte p {
    text-align: left;
}
.bandeau.type_22 .texte p {
    text-align: right;
}
.bandeau.type_23 .texte p {
    text-align: center;
}
.bandeau.type_21 .title p,
.bandeau.type_22 .title p,
.bandeau.type_23 .title p {
    font-size: clamp(24px, 5vw, 3rem);
    line-height: 1.15;
    /*text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);*/
    max-width: 100%;
}
.bandeau.type_21 .description,
.bandeau.type_22 .description,
.bandeau.type_23 .description {
    margin-top: 1rem;
}
.bandeau.type_21 .description p,
.bandeau.type_22 .description p,
.bandeau.type_23 .description p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.bandeau.type_21 .description p {
    margin: 0 auto auto 0;
}
.bandeau.type_22 .description p {
    margin: 0 0 auto auto;
}
.bandeau.type_31 .couleur_bg {
    padding-top: 30px;
    padding-bottom: 30px;
}
.bandeau.type_51 .left-bloc {
    padding: 50px;
    padding-left: 0;
}
.bandeau.type_52 .left-bloc {
    padding: 50px;
    padding-right: 0;
}
.bandeau.type_51 .texte,
.bandeau.type_52 .texte {
    height: 100%;
    align-content: center;
}
.bouton .btn {
    letter-spacing: .12em;
    position: relative;
    display: inline-block;
    border: 1px solid #191919;
    color: #191919;
    font-weight: 400;
    text-transform: uppercase;
    padding: 14px 26px;
    font-size: 12px;
    margin-top: 1rem;
}
.bouton .btn:hover {
    color: #fff;
    background: #191919;
}
.bc-swiper,
.swiper-wrapper .swiper-slide img,
.swiper-backface-hidden .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
}
.bcSwiper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.bcSwiper .swiper-button-next,
.bcSwiper .swiper-button-prev {
    color: #fff;
}
.bcSwiper .swiper-pagination {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    bottom: 20px;
    text-align: right;
    padding-right: 15px;
}
.bcSwiper .swiper-button-next,
.bcSwiper .swiper-button-prev {
    opacity: 0.6;
}
.bcSwiper:hover .swiper-button-next,
.bcSwiper:hover .swiper-button-prev {
    opacity: 1;
}
.swiper-pagination-current {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
    font-size: 30px;
    font-weight: 600;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 27px!important;
}
.rich-text table > :not(caption) > * > *,
.table > :not(caption) > * > * {
    background: transparent;
    padding: 0;
}
.bandeau.type_4 .gallery-slide {
    height: 450px;
}
.bandeau.type_5 .table-cell {
    display: block;
    width: 100%;
}
.table-cell.background img {
    width: 100% !important;
}
.bc-youtube-bg {
    margin: 50px 0;
}


@media (min-width: 992px) {
    .bandeau.type_4 .table-cell  {
        width: 100%;
        display: block;
    }
    .bandeau.type_4 .gallery-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .bandeau.type_4 .gallery-slide {
        position: relative!important;
        opacity: 1!important;
        display: block;
        flex: 0 0 calc((100% - (var(--slide-count, var(--gallery-columns, 4)) - 1) * var(--slide-gap, 10px)) / var(--slide-count, var(--gallery-columns, 4)));
        width: calc((100% - (var(--slide-count, var(--gallery-columns, 4)) - 1) * var(--slide-gap, 10px)) / var(--slide-count, var(--gallery-columns, 4)));
        max-width: calc((100% - (var(--slide-count, var(--gallery-columns, 4)) - 1) * var(--slide-gap, 10px)) / var(--slide-count, var(--gallery-columns, 4)));
    }
    .bandeau.type_4 .gallery-video-el {
        position: unset;
    }
    .bandeau.type_4 .gallery-dots,
    .bandeau.type_4 .gallery-next,
    .bandeau.type_4 .gallery-prev {
        display: none;
    }
}

@media (max-width: 991px) {
    .table-cell {
        width: 100%;
        display: block;
    }
    .bouton {
        margin-top: 25px;
        margin-bottom: 15px;
    }

}

@media (max-width: 767px) {
    .table {
        display: block;
    }

    .bandeau.type_4 .gallery-slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}


/* ============================================================
 * Swiper integration overrides
 * Quand bcmultiblocs.js transforme .bc-gallery-slider en Swiper,
 * on neutralise le CSS du mode "slider custom" pour que Swiper
 * puisse positionner ses slides librement.
 * ============================================================ */
.bc-gallery-slider.swiper {
    /* Swiper a besoin de overflow visible pour les contrôles externes */
    /* (mais on garde overflow:hidden sur .swiper-wrapper qui est dedans) */
}

.bc-gallery-slider.swiper .gallery-container.swiper-wrapper {
    /* Override .gallery-container { background: #f5f5f5 } qui pourrait masquer */
    /* Swiper gère display:flex de son côté */
}

/* CRITIQUE : neutralise le CSS .gallery-slide { position:absolute; opacity:0 }
   qui empile et masque les slides. Swiper a besoin de slides "normales". */
.bc-gallery-slider.swiper .gallery-slide.swiper-slide {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100%;
}

/* Les contrôles ont position:absolute relatif au plus proche parent positionné.
   Comme on les sort de .gallery-container vers .bc-gallery-slider, et que
   .bc-gallery-slider est position:relative, ça reste OK. On force juste
   un z-index élevé pour passer au-dessus de .swiper-wrapper. */
.bc-gallery-slider.swiper > .gallery-prev,
.bc-gallery-slider.swiper > .gallery-next {
    z-index: 20;
    pointer-events: auto;
}

.bc-gallery-slider.swiper > .gallery-dots.swiper-pagination {
    z-index: 20;
    pointer-events: auto;
    /* Les bullets restent stylées par .gallery-dot et .gallery-dot.active du CSS existant */
}

/* Curseur grab activé par Swiper */
.bc-gallery-slider.swiper {
    cursor: grab;
}
.bc-gallery-slider.swiper:active {
    cursor: grabbing;
}


