

/* Import de la police Gilroy */
@import url('https://fonts.googleapis.com/css2?family=Gilroy:wght@400;600;700&display=swap');

body, .carousel-article-card, .carousel-text, .main-carousel-text {
  font-family: 'Gilroy', Arial, Helvetica, sans-serif;
}
.main-carousel-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 0 42px 42px 0;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    0 0 0 5px rgba(255,245,220,0.9) inset,
    0 0 0 0px rgba(255,245,220,0.9) inset;
}
/* ============================================
   6. CAROUSEL – CARROUSEL MIXTE
   ============================================ */

#mixedCarousel {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 42px;
  border: 2px solid #7a3e00;
  background: radial-gradient(
    ellipse at center,
    #fff6df 0%,
    #f8ddb0 45%,
    #ebc58c 75%,
    #d4a468 100%
  );
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.18),
    inset 0 0 0 5px rgba(255, 245, 220, 0.9),
    inset 0 -6px 10px rgba(0, 0, 0, 0.1),
    inset 0 8px 14px rgba(255, 255, 255, 0.55),
    inset 0 0 0 10px rgba(122, 62, 0, 0.22);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

#mixedCarousel:hover {
  transform: translateY(-6px);
  filter: brightness(1.03);
}

#mixedCarousel .carousel-inner {
  overflow: visible;
  position: relative;
}

#mixedCarousel .carousel-item {
  display: none !important;
  min-height: 280px;
  position: relative;
}

#mixedCarousel .carousel-item.active {
  display: block !important;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Masquer complètement les indicateurs du carrousel */
.carousel-indicators,
.carousel-indicators * {
  display: none !important;
}
.carrousel-wrapper {
  position: relative;
}

/* ============================================
   IMAGES CARROUSEL
   ============================================ */

.main-carousel-image-wrapper {
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  border-radius: 0 42px 42px 0;
}

.main-carousel-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none !important;
  transition: none !important;
  border-radius: 0 42px 42px 0 !important;
}

/* ============================================
   TEXTE CARROUSEL
   ============================================ */
   .main-carousel-link{
    text-decoration: none !important;
    color: black!important;
   }

.main-carousel-article-card {
  min-height: 280px;
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.main-carousel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  z-index: 10;
  width: 50%;
  position: relative;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  background: transparent;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  text-overflow: ellipsis;
  max-width: 100%;
  max-height: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
 

}

.main-carousel-text h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  overflow: hidden;
}

.main-carousel-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  overflow: hidden;
  
}

.main-carousel-text a {
  font-weight: 700;
  text-decoration: none;
}


/* ============================================
   SECTION RESPONSIVE – MOBILE & TABLETTE
   ============================================ */

@media (max-width: 576px) {
  
  .main-carousel-article-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .main-carousel-image-wrapper {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 140px;
    max-height: 220px;
    margin-bottom: 0.75rem;
    border-radius: 32px 32px 0 0 !important;
    
    overflow: hidden;
    order: 1;
  }
  .main-carousel-image-wrapper img {
    width: 96.5% !important;
    margin: 0 auto ;
    margin-top: 7px;
    height: 100% !important;
    max-height: 220px;
    object-fit: cover;
    border-radius: 32px 32px 0 0 !important;
    
    display: block;
  }
  .main-carousel-text {
    position: static;
    width: 100%;
    padding: 1.5rem!important;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    order: 2;
    box-sizing: border-box;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
@media (min-width: 577px) {
  .main-carousel-text {
    width: 50% !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    padding: 2.5rem 2rem 2.5rem 2.5rem !important;
    background: transparent !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 2rem !important;
    z-index: 10 !important;
  }
  .main-carousel-image-wrapper {
    width: 50% !important;
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: hidden !important;
    border-radius: 0 42px 42px 0 !important;
  }
}

  #mixedCarousel {
    
   border-radius: 32px;
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }
  .carousel-article-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .carousel-image-wrapper {
    position: static;
    width: 100%;
    height: 140px;
    margin-bottom: 0.75rem;
    top: auto;
    right: auto;
    bottom: auto;
    
    overflow: hidden;
  }
  .carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    display: block;
  }
  .carousel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1rem 1rem 1rem;
    background: transparent;
  }
  .carousel-text h1 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .carousel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.1rem 1.2rem 1.3rem 1.2rem;
    background: transparent;
  }
  }