
/* ===================================================
   CAROUSEL
   ================================================= */

.articles-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0 0px;
}

.articles-carousel .swiper-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.articles-carousel .swiper-slide {
    height: auto;
    width: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.articles-next,
.articles-prev {
    position: static;
    margin-top: 0px;
    transform: none;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #1B84FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid #E1E3EA;
}

.articles-next {
    right: 15px;
}

.articles-prev {
    left: 15px;
}

.articles-next:hover,
.articles-prev:hover {
    /* background: #1B84FF; */
    /* color: #fff; */
    /* border-color: #1B84FF; */
    /* transform: translateY(-50%) scale(1.05); */
}

.articles-next::after,
.articles-prev::after {
    display: none;
}

.articles-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    margin-top: 25px !important;
    text-align: center;
    height: auto !important;
}

.articles-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #E1E3EA;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.articles-pagination .swiper-pagination-bullet-active {
    background: #1B84FF;
    transform: scale(1.2);
}

.container-fluid {
    /* overflow-x: hidden; */
}

/* Style pour le wrapper de lien englobant toute la carte */
.card-link-wrapper {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-link-wrapper:hover {
  text-decoration: none;
  color: inherit;
}

.articles-carousel .card {
  transition: none; /* Désactiver la transition */
  border: 1px solid rgba(0,0,0,0.08);
  height: 100%;
}

.articles-carousel .card:hover {
  transform: none !important; /* Empêcher le translateY(-3px) */
  box-shadow: inherit !important; /* Garder l'ombre par défaut */
}

/* EFFET IMAGE : Zoom sur l'image au survol AVEC PRÉSERVATION DU BORDER-RADIUS */
.card-img-wrapper {
  overflow: hidden;
  border-top-left-radius: var(--bs-card-inner-border-radius, 0.475rem);
  border-top-right-radius: var(--bs-card-inner-border-radius, 0.475rem);
}

.card-img-top {
  border-top-left-radius: 0 !important; /* Supprimer le border-radius de l'image */
  border-top-right-radius: 0 !important; /* Supprimer le border-radius de l'image */
  transition: transform 0.5s ease;
}

.card-link-wrapper:hover .card-img-top {
  transform: scale(1.1);
}

/* EFFET TITRE : Change la couleur du titre en bleu au survol */
.card-title {
  transition: color 0.3s ease, transform 0.3s ease;
}

.card-link-wrapper:hover .card-title {
  color: var(--bs-primary, #1B84FF) !important;
  /*transform: scale(1.02);  Agrandissement léger du titre */
}

/* RESPONSIVE CORRIGÉ - FLÈCHES MOBILES VISIBLES (ARTICLES) */
@media (max-width: 1199px) {
	.articles-next,
    .articles-prev {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 767px) {
	.articles-next,
    .articles-prev {
        width: 32px;
        height: 32px;
        display: flex !important; /* FORCE la visibilité */
    }
    
    .articles-next {
        right: 2px; /* Position ajustée */
    }
    
    .articles-prev {
        left: 2px; /* Position ajustée */
    }
    
    .articles-next i,
    .articles-prev i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .articles-next,
    .articles-prev {
        width: 26px;
        height: 26px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
    
    .articles-next {
        right: 5px;
    }
    
    .articles-prev {
        left: 5px;
    }
}

/* ===================================================
   CAROUSEL D'ÉVÉNEMENTS
   ================================================= */

/* Conteneur principal avec position relative */
.events-carousel-container {
  position: relative;
  padding: 0 40px; /* Espace pour les flèches */
  margin: 0 -20px; /* Compenser le padding */
  width: calc(100% + 40px); /* Ajuster la largeur */
  box-sizing: border-box;
}

/* Carousel Swiper */
.swiper.events-carousel {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Flèches de navigation pour les événements */
.swiper-button-prev.events-prev,
.swiper-button-next.events-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #1B84FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid #E1E3EA;
}

.swiper-button-prev.events-prev {
  left: 15px;
}

.swiper-button-next.events-next {
  right: 15px;
}

.swiper-button-prev.events-prev::after,
.swiper-button-next.events-next::after {
  display: none;
}

/* Pagination pour les événements */
.swiper-pagination.events-pagination {
  position: relative;
  margin-top: 20px;
  bottom: auto;
}

.swiper-pagination.events-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #E1E3EA;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.2s ease;
}

.swiper-pagination.events-pagination .swiper-pagination-bullet-active {
  background: #1B84FF;
  transform: scale(1.2);
}

/* CARTE D'ÉVÉNEMENT - DESIGN SIMPLE */
.event-card-simple {
  background: #fff;
  /* border-radius: 5px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #f1f1f4;
}

.card-link-wrapper:hover .event-card-simple {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Image de l'événement avec effet de zoom */
.event-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: relative;
  background: linear-gradient(90deg, #f6f7f8 0%, #edeef1 25%, #f6f7f8 50%, #edeef1 75%, #f6f7f8 100%);
  background-size: 200% 200%;
  animation: shimmerEffect 3s ease-in-out infinite;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-link-wrapper:hover .event-image {
  transform: scale(1.1);
}

/* Hover unifié sur toute la carte */
.event-card-simple:hover .event-image {
  transform: scale(1.1);
  transition: transform 0.4s ease-in-out;
}

.event-card-simple:hover .event-title-simple {
  color: #1B84FF;
  /* text-decoration: underline; */
}

.event-card-simple:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Contenu de la carte */
.event-content {
  padding: 20px;
}

/* Section avec date et titre */
.event-header-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Date en grand format */
.event-date-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1;
  margin-right: 16px;
  min-width: 50px;
  flex-shrink: 0;
}

.event-date-box {
  width: 40px;
  height: 40px;
  margin-right: 30px;
  /* background: #f5f6fa; */
  /* color: #2a2a2a; */
  text-align: center;
  border-radius: 8px;
  /* border: 1px solid #d3d7df; */
  font-family: "Inter", sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.event-day {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
  font-weight: 500;
  opacity: 0.85;
}

/* Titre de l'événement */
.event-title-simple {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

.card-link-wrapper:hover .event-title-simple {
  color: #1B84FF;
}

/* Détails de l'événement */
.event-details-simple {
  margin-bottom: 16px;
}

.event-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
}

.event-detail-item:last-child {
  margin-bottom: 0;
}

.event-detail-item strong {
  margin-right: 4px;
}

.event-detail-item .info-icon {
  margin-left: 6px;
  color: #6b7280;
  cursor: help;
}

/* Badge de type d'événement */
.event-badge-simple {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* Variantes de couleurs pour les badges */
.event-badge-webinar {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.event-badge-conference {
  background-color: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}

.event-badge-networking {
  background-color: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.event-badge-workshop {
  background-color: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

/* RESPONSIVE POUR LES ÉVÉNEMENTS */
@media (max-width: 1199px) {
  .events-carousel-container {
    padding: 0 35px;
    margin: 0 -17.5px;
    width: calc(100% + 35px);
  }
}

@media (max-width: 767px) {
  .events-carousel-container {
    padding: 0 30px;
    margin: 0 -15px;
    width: calc(100% + 30px);
  }
  
  .swiper-button-prev.events-prev,
  .swiper-button-next.events-next {
    /* width: 28px; */
    /* height: 28px; */
    /* margin-top: -14px; */
    /* display: flex !important; */
  }
  
  .event-image-container {
    height: 150px;
  }
  
  .event-content {
    padding: 16px;
  }
  
  .event-date-large {
    font-size: 2rem;
    margin-right: 12px;
  }
  
  .event-title-simple {
    font-size: 1.1rem;
  }
  
  .event-detail-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .events-carousel-container {
    padding: 0 25px;
    margin: 0 -12.5px;
    width: calc(100% + 25px);
  }
  
  .swiper-button-prev.events-prev,
  .swiper-button-next.events-next {
    width: 26px;
    height: 26px;
    margin-top: -13px;
  }
  
  .event-image-container {
    height: 130px;
  }
  
  .event-content {
    padding: 14px;
  }
  
  .event-header-info {
    margin-bottom: 12px;
  }
  
  .event-details-simple {
    margin-bottom: 12px;
  }
  
  .event-date-large {
    font-size: 1.75rem;
    margin-right: 10px;
  }
  
  .event-title-simple {
    font-size: 1rem;
  }
}
.hover-effect-combined:hover {
  --bs-card-box-shadow: none !important;
  box-shadow: none !important;
}
.event-card-simple, .hover-effect-combined {
  --bs-card-box-shadow: none !important;
  box-shadow: none !important;
}

/* CSS pour les images d'événements (à ajouter) */
.event-image-container .image-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f6f7f8 0%, #edeef1 25%, #f6f7f8 50%, #edeef1 75%, #f6f7f8 100%);
  background-size: 200% 200%;
  animation: shimmerEffect 3s ease-in-out infinite;
  z-index: 2;
}

.event-image.lozad {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 3;
}

.event-image.lozad.loaded {
  opacity: 1;
}


/* Shimmer sur toute la zone du carousel pendant le chargement */
.carousel-shimmer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f6f7f8 0%, #edeef1 25%, #f6f7f8 50%, #edeef1 75%, #f6f7f8 100%);
  background-size: 200% 200%;
  animation: shimmerEffect 3s ease-in-out infinite;
  z-index: 10;
  opacity: 1;
  display: block;
}

/* Classe pour le fade-out avec animation CSS */
.carousel-shimmer-overlay.fade-out {
  animation: fadeOutShimmer .5s ease-out forwards;
}

/* Animation shimmer élégante */
@keyframes shimmerEffect {
  0% {
    background-position: 200% 0%;
  }
  50% {
    background-position: -200% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* Animation fade-out */
@keyframes fadeOutShimmer {
  0% { 
    opacity: 1; 
  }
  100% { 
    opacity: 0; 
    visibility: hidden; 
  }
}

/* Position relative pour le conteneur */
.carousel-container {
  position: relative;
}
