
:root {
  --color-btn: #334960;
  --color-btn-hover: #a88d39;
  --color-bgc-input : #D9D9D9;
  --color-white: #fff
}

.campagne {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  
  }
  
  .t_c{
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  
  .separateur_campagne {
    top: 50%;
  }
  
.carousel-campagne {position: relative; top: 3%; width: 100%; max-width: 1600px; margin-top: 20px; margin: 0px auto; padding-top: 40px; padding: 0 10px; z-index: 10000; }
.carousel-viewport-campagne { position: relative; overflow: hidden; width: 100%;}
.carousel-track-campagne { display: flex; will-change: transform; }

/* Carte */
.card-campagne { position: relative; flex: 0 0 auto; width: var(--card-width-campagne); margin: 24px 12px; height: var(--card-height-campagne); border-radius: 8px; background: linear-gradient(180deg, #1f2430 0%, #151922 100%); box-shadow: 0px -5px 10px rgba(0,0,0,0.25); transition: transform 300ms ease, filter 300ms ease; transform-origin: center center; overflow: hidden;}
.card-inner-campagne { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;}

/* Suppression des effets dynamiques sur la carte */
.card-campagne { transform: none; }
.card-background_campagne_image { filter: none; }

/* Bordure intérieure */
.card-inner-campagne::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid var(--color-btn-hover);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2000000;
}

/* Le hover doit se faire sur la carte, pas sur l'intérieur */
.card-campagne:hover .card-inner-campagne::before {
  opacity: 1;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }

/* Dots pagination */
.carousel-dots-campagne { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0 4px; }
.carousel-dot-campagne { width: 8px; height: 8px; border-radius: 50%; border: none; background: #DDDDDD; transition: background 200ms ease, transform 200ms ease; cursor: pointer; }
.carousel-dot-campagne[aria-current="true"] { background: #334960; transform: scale(1.25); }



/* Désactivation sélection/drag dans le carousel campagne */
.carousel-campagne, .carousel-campagne * { -webkit-tap-highlight-color: transparent; }
.card-campagne { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.card-background_campagne_image { -webkit-user-drag: none; pointer-events: none; }
.card-campagne_info { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
.card-logo_campagne { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; }

/* Responsif: cible 5 cartes visibles par défaut (scopé campagne) */
:root { 
  --card-width-campagne: 280px; 
  --card-height-campagne: 400px;
}
@media (max-width: 1100px) { 
  :root { 
    --card-width-campagne: calc(100% / 4); 
    --card-height-campagne: 380px;
  } 
}
@media (max-width: 900px)  { 
  :root { 
    --card-width-campagne: calc(100% / 3); 
    --card-height-campagne: 350px;
  } 
}
@media (max-width: 680px)  { 
  :root { 
    --card-width-campagne: calc(100% / 2.5); 
    --card-height-campagne: 340px;
  } 
}
@media (max-width: 480px)  { 
  :root { 
    --card-width-campagne: calc(100% / 1.5); 
    --card-height-campagne: 300px;
  } 
}


.card-background_campagne {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  z-index: 0;
}

.card-background_campagne::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-filter: blur(2px);
  -moz-filter: blur(2px);
  -o-filter: blur(2px);
  -ms-filter: blur(2px);
  filter: blur(2px);
  background-color: rgba(255, 255, 255, 0.321);
  z-index: 1;
  transition: all 0.3s ease;
}

.card-campagne:hover .card-background_campagne::after{
  filter: blur(0px);
  -webkit-filter: blur(0px);
  -moz-filter: blur(0px);
  -o-filter: blur(0px);
  -ms-filter: blur(0px);
  filter: blur(0px);
  background-color: rgba(255, 255, 255, 0);
  z-index: 1;
}

.card-background_campagne_image{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-logo_campagne{
  position: absolute;
  width: 80%;
  height: 50%;
  object-fit: contain;
  object-position: center;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  z-index: 2;
}

.card-campagne_info{
  position: absolute;
  width: 100%;
  bottom: 27%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;


}

.card-campagne_info h3{
  color: rgba(255, 255, 255, 0.893);
  text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
  font-size: 26px;
}


.card-more_info_hover{
  background-color: var(--color-btn-hover);
  width: 100%;
  height: 25%;
  position: absolute;
  bottom: -25%;
  left: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.card-campagne:hover .card-more_info_hover{
  bottom: 0%;
}
