/* Custom Gradient for Hero - Purple Theme with Image Overlay */
.bg-hero-gradient {
  background:
    linear-gradient(17deg, rgba(9, 2, 36, 1) 25%, rgba(42, 2, 52, 0.75) 100%),
    url('../img/bg-site.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1d0224;
  /* Fallback */
}

/* Texture/Gradient Event */
.bg-events-texture {
  background: radial-gradient(circle at top right, #f5d0fe 0%, #ecacfb 40%, #dcb0e8 100%);
  position: relative;
}

/* Motif pointillé subtil */
.bg-events-texture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Le triangle de connexion pour les dates */
.triangle-right {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #ecacfb;
  /* Was Lime, now Light Purple */
  z-index: 10;
}

/* Texte Vertical */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* Texte vertical sans rotation */
.vertical-text-upright {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /* Pas de rotation pour le sens normal haut->bas */
}

/* Grayscale and Mix Blend for Photos */
.speaker-card img {
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  /* Helps blend with the lime background */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Loading Animation */
@keyframes loading {
  0% {
    width: 0%;
    margin-left: 0;
  }

  50% {
    width: 100%;
    margin-left: 0;
  }

  100% {
    width: 0%;
    margin-left: 100%;
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll-left {
  animation: scroll-left 30s linear infinite;
}

.hover\:pause-scroll:hover {
  animation-play-state: paused;
}

/* --- Hero Slider CSS (Corrected to match Example) --- */

.h6-slider-area {
  position: relative;
  overflow: hidden;
  margin: 80px 0 0;
}

/* Curve Top */
.h6-slider-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: #FAF8F5;
  -webkit-mask-image: url(../img/h6-slider-curve-1.svg);
  mask-image: url(../img/h6-slider-curve-1.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 10;
  pointer-events: none;
}

/* Curve Bottom */
.h6-slider-area::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: #FAF8F5;
  -webkit-mask-image: url(../img/h6-slider-curve-2.svg);
  mask-image: url(../img/h6-slider-curve-2.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 10;
  pointer-events: none;
}

/* Responsive Heights for Curves */
@media (min-width: 1921px) and (max-width: 2500px) {

  .h6-slider-area::before,
  .h6-slider-area::after {
    height: 60px;
  }
}

@media (min-width: 2501px) and (max-width: 3200px) {

  .h6-slider-area::before,
  .h6-slider-area::after {
    height: 70px;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {

  .h6-slider-area::before,
  .h6-slider-area::after {
    height: 38px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {

  .h6-slider-area::before,
  .h6-slider-area::after {
    height: 30px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {

  .h6-slider-area::before,
  .h6-slider-area::after {
    height: 24px;
  }
}

@media only screen and (max-width: 767px) {

  .h6-slider-area::before,
  .h6-slider-area::after {
    height: 20px;
  }
}

/* Smooth Marquee Animation for Swiper */
.swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  -o-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
  /* Force GPU acceleration to avoid jitter */
  transform: translate3d(0, 0, 0);
}

/* Force hardware acceleration for smoother text/image rendering during move */
.swiper-slide {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Force slide width to be auto so multiple slides fit */
.swiper-slide.h6-slider-item {
  width: auto !important;
  flex-shrink: 0;
  display: block;
  margin-right: 20px !important;
  /* Ensure no border or outline on the container */
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.h6-slider-item .slider-img {
  width: auto;
  height: 225px;
  /* Reduced by another 10% (was 250px) */
  max-width: 160px;
  /* Reduced by ~10% (was 180px) */
  object-fit: cover;
  border-radius: 20px !important;
  display: block;

  /* Fix potential rendering artifacts (thin lines) */
  outline: none !important;
  border: none !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  /* Critical Fix: clip-path removes artifact lines cleanly */
  clip-path: inset(1px 0 0 0 round 20px);
}

/* Responsive Heights */
@media (min-width: 768px) {
  .h6-slider-item .slider-img {
    height: 450px;
    /* Increased height for desktop */
    max-width: 320px;
    /* Proportional max-width */
  }
}

/* Custom Scrollbar */