  /* FONT_END */
  :root {
    --swiper-theme-color: #ccc;
    /*
    --swiper-preloader-color: var(--swiper-theme-color);
    --swiper-wrapper-transition-timing-function: initial;
    */
}


.swiper-slide {
    pointer-events: none; /* Désactive le clic sur les slides inactives */
}
.swiper-slide-active {
    pointer-events: auto; /* Active le clic uniquement sur la slide visible */
}
.mySwiper-produit {
}
.mySwiper-content {
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9;
}
.swiper-slide-produit {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide-produit img {
width: 100%!important;
height: 100vh!important;
object-fit: contain;
}



/* --- 1. Conteneur principal et dimensions --- */
.swiper-full-home {
  width: 100%;
  height: 100svh;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden; /* Empêche tout débordement visuel */
}

.mySwiper-home {
width: 100%;
height: 100vh;
}

/* --- 2. Zones cliquables invisibles (50% gauche / 50% droite) --- */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
    background: transparent !important; /* Force l'absence total de fond */
}

.swiper-button-prev-custom {
    left: 0;
    cursor: w-resize;
}

.swiper-button-next-custom {
    right: 0;
    cursor: e-resize;
}

@media (max-width: 1024px) {
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        pointer-events: none; 
    }
}

/* --- 3. Flèches visibles avec mix-blend-mode: difference --- */
[class^="swiper-button-"][class$="-visible"] {
    color: #ffffff; 
    background-color: transparent !important;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    pointer-events: none;
    
    /* S'adapte dynamiquement au fond sans fond noir */
    mix-blend-mode: difference;
    
    transition: transform 0.2s ease, opacity 0.2s ease;
}

[class^="swiper-button-"][class$="-visible"]:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev-visible {
    left: 10px; 
}

.swiper-button-next-visible {
right: 10px;
}

/* Taille et icônes natives de Swiper */
.swiper-button-prev-visible::after, .swiper-button-next-visible::after {
font-size: 26px;
font-family: swiper-icons;
line-height: 1;
}

.swiper-button-prev-visible::after {
    content: 'prev';
}

.swiper-button-next-visible::after {
    content: 'next';
}

/* --- 4. Pagination (Compteur 1/4) en haut à droite --- */
.swiper-pagination-custom {
    position: absolute;
    top: 70px; /* Marge de 70px pour le header fixe */
    right: 40px;
    width: auto !important;
    left: auto !important;
    z-index: 30;
    
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    mix-blend-mode: difference; /* S'adapte aussi au fond */
    pointer-events: none;
}
/* --- Légende de la photo en bas à gauche --- */
.swiper-slide-caption {
    position: absolute !important;
    bottom: 20px !important; /* Ajusté légèrement pour tenir compte du padding de l'image */
    left: 40px !important;  /* Aligné avec le padding de l'image */
    z-index: 40 !important;
    
    color: #111!important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    max-width: 600px;
    
    mix-blend-mode: difference !important;
    background: transparent !important;
    pointer-events: none;
}

/* Curseur flèche vers la gauche sur la zone de gauche */
.swiper-button-prev-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
    cursor: w-resize; /* Ou utilisez un curseur personnalisé URL si vous préférez */
}

/* Curseur flèche vers la droite sur la zone de droite */
.swiper-button-next-custom {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
    cursor: e-resize; /* Ou un autre curseur */
}

[class^="swiper-button-"][class$="-visible"] {
color: #ffffff;
background-color: transparent !important;
width: 15px;
height: 30px;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 20;
cursor: pointer;
pointer-events: auto;
mix-blend-mode: difference;
transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1024px) {
    [class^="swiper-button-"][class$="-visible"] {
        pointer-events: auto !important; /* Force l'interactivité au toucher */
    }
}

.mySwiper-projet {
  width: 1360px;
  height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
}
.swiper-slide-home {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide-home img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 70px;
box-sizing: border-box;
}
.swiper-slide-projet {
  width: 100%;
  height: 100%;
  text-align: center;
}
.swiper-pagination-produit {
  position: relative;
  bottom: 20px;
  font-weight: initial;
  font-size: 12px;
}
.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 18px;
}
.swiper-slide-box-gallery {
  /* position: absolute!important; */ /* <--- C'est ici que ça coince */
  width: 100%;
  height: calc(36vw);
  border-radius: 5px;
}
.swiper-slide-gallery {
	width: 100%;
	height: 100%;
	background-color: #ffffff;
}
.swiper-slide-gallery img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	position: absolute;
	cursor: zoom-in;
}
.swiper-slide-box-gallery {
  position: absolute!important;
  width: 100%;
  height: calc(36vw);
  border-radius: 0px;
     border-radius: 5px;
}
.swiper-slide-box-gallery-content {
  display: block;
  width: 100%;
  height: calc(36vw);
  background-size: cover;
  background-position: center;
  transition: all 0.5s cubic-bezier(0.22, 0, 0.22, 1);

}
.swiper-slide-box-gallery-content img {
display: block;
width: 100%!important;
height: 100%!important;
object-fit: cover;
transition: transform 0.5s ease;
padding-bottom: 25px;
}
.swiper-slide-box-gallery-content img:hover {
  transform: scale(1.01); /* Zoom léger */
}
.text-mode .swiper-slide-open {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; 
  padding: 0px;
  text-align: center;
  min-height: 50vh;
}
.swiper-txt-photo {
  font-size: 1.4rem;
  font-weight: 400;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
}
.lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100dvh;
display: flex;
justify-content: center;
align-items: center;
z-index: 9;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.4s ease, visibility 0.4s ease;
background: rgba(255, 255, 255, 1);
backdrop-filter: blur(20px);
}

/* 🔥 État d'ouverture (Quand la classe .active est ajoutée) */
.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 🧊 Bonus Optionnel : Léger effet d'échelle sur les slides à l'ouverture */
.lightbox .swiper-slide {
  transform: scale(0.95);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .swiper-slide-active {
  transform: scale(1);
}
.lightbox-close {
position: fixed;
top: 20px;
right: 40px;
background: none;
border: medium;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
mix-blend-mode: difference;
display: block;
z-index: 99;
padding: 0px;
}
.lightbox-close img {
width: 26px !important;
height: auto;
}
.lightbox-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Styles pour centrer les images et les légendes */
.swiper-open {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.swiper-slide-open {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
height: 100%;
padding: 10px;
box-sizing: border-box;
position: relative;
padding-top: 0px;
}

/* Image dans la lightbox */
.swiper-slide-open img {
  max-width: 100%;
  max-height: 80vh; /* Limite la taille maximale de l'image pour ne pas déborder */
  object-fit: contain; /* Assure que l'image garde ses proportions */
  display: block;
  margin-bottom: 10px; /* Espacement entre l'image et la légende */
  padding: 0px 100px 0px 100px;
}
.image-caption {
  font-size: 14px;
  text-align: left;
  margin-top: 10px;
  opacity: 0.8;
  padding: 5px 10px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 99999;
  letter-spacing: 0.4px;
  color: #111;
}
/* Effet de survol pour la légende */
.swiper-slide:hover .image-caption {
  opacity: 1; /* Rendre la légende plus visible lors du survol */
}
.swiper-pagination-open {
position: fixed;
color: rgb(255, 255, 255);
font-size: 16px;
text-align: left;
left: 40px;
mix-blend-mode: difference;
top: 20px;
display: block;
height: 20px;
z-index: 9;
}
.swiper-pagination-open span {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
}
.swiper-cursor img {
width: 100%;
height: auto;
cursor: zoom-out;
}
.swiper-button-next, .swiper-button-prev {
color: #9a9a9a;
}
.swiper-button-next, .swiper-button-prev {
height: 100%;
top: 0;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
color: #fff;
mix-blend-mode: difference;
opacity: 1;
padding-top:0px;
}
.swiper-button-next {
  right: 0;
  justify-content: flex-end;
  padding-right: 40px;
  cursor: e-resize;
}
.swiper-button-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 40px;
  cursor: w-resize;
}
.swiper-button-next::after, .swiper-button-prev::after {
font-size: 24px;
font-weight: 800;
}
.swiper-pagination-bullet {
width: var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,6px));
height: var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,6px));
display: inline-block;
opacity: var(--swiper-pagination-bullet-inactive-opacity, .2);
background: var(--swiper-pagination-bullet-inactive-color,rgba(0, 0, 0));
}
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
margin: 0 var(--swiper-pagination-bullet-horizontal-gap,4px);
}
.swiper-pagination-bullet-active {
background: var(--swiper-pagination-color,#736b6b);
opacity: 1;
}
.swiper-pagination-custom {
padding-top: 5px;
padding-bottom: 5px;
bottom: 0px!important;
}
.swiper-custom-2 {
background-color: initial;
border-bottom: 0px solid #eee;
}