.mslider-wrapper-inner.mslider_horizontal_padding {
  padding: 0 !important;
}

/* =========================================================
   SPPB Articles Carousel (home) — remplacement Minitek slider
   Mai 2026 — migration mplux.be
   IMPORTANT : SPPB Articles Carousel utilise SLICK (pas Owl).
   Classes Slick : .slick-list, .slick-track, .slick-slide,
   .slick-cloned, .slick-arrow, .slick-prev, .slick-next, .slick-dots
   ========================================================= */

/* Wrapper en position relative pour que les enfants absolus se calent dessus */
.sppb-articles-carousel-wrap {
  position: relative;
}

/* Slick clip : éviter que les clones débordent en-dessous */
.sppb-articles-carousel-wrap .slick-list {
  overflow: hidden;
}

/* 1) Box d'article : border-radius + shadow + HAUTEUR FIXE */
.sppb-articles-carousel-wrap .sppb-articles-carousel-column {
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin: 0 8px;
  /* Hauteur stricte pour égaliser toutes les cards quoi qu'il arrive,
     indépendamment de ce que Slick décide */
  display: flex;
  flex-direction: column;
  height: 480px;
  box-sizing: border-box;
}

/* Image : hauteur fixe, cover */
.sppb-articles-carousel-wrap .sppb-articles-carousel-img,
.sppb-articles-carousel-wrap .sppb-articles-carousel-img-link {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
}
.sppb-articles-carousel-wrap .sppb-articles-carousel-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.47,0,.745,.715);
}
.sppb-articles-carousel-wrap .sppb-articles-carousel-column:hover .sppb-articles-carousel-img img {
  transform: scale(1.04);
}

/* 2) Slick : juste laisser le slide englober la card (height fixe ci-dessus fait le job).
   Pas de display:flex sur slick-track pour éviter de casser le positionnement Slick. */
.sppb-articles-carousel-wrap .slick-slide > div {
  width: 100%;
}

/* Contenu textuel : flex pour pousser la catégorie en bas */
.sppb-articles-carousel-wrap .sppb-articles-carousel-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1.25rem 1.25rem;
}

/* Titre : 2 lignes max */
.sppb-articles-carousel-wrap .sppb-articles-carousel-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
  margin: .25rem 0;
}

/* Intro : 3 lignes max */
.sppb-articles-carousel-wrap .sppb-articles-carousel-introtext {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: .5rem 0 .75rem;
  color: #555;
}

/* Catégorie poussée en bas */
.sppb-articles-carousel-wrap .sppb-articles-carousel-meta-category {
  margin-top: auto;
  padding-top: .5rem;
}

/* 3) Flèches Slick désactivées (gardons les bullets seuls) */
.sppb-articles-carousel-wrap .slick-arrow,
.sppb-articles-carousel-wrap .slick-prev,
.sppb-articles-carousel-wrap .slick-next {
  display: none !important;
}

/* Bullets propres en bas
   ATTENTION : SPPB injecte un <span> à l'intérieur de chaque <li>
   en plus du <button> de Slick → ça créait DEUX rangées visibles
   (le button rond + le span rond du CSS SPPB). On masque tout sauf le button. */
.sppb-articles-carousel-wrap .slick-dots {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.sppb-articles-carousel-wrap .slick-dots li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  width: 12px;
  height: 12px;
  line-height: 0;
}
/* Reset de TOUT enfant des li (span SPPB, divs, etc.) */
.sppb-articles-carousel-wrap .slick-dots li > * {
  display: none !important;
}
/* Sauf le button Slick, qu'on stylise en cercle.
   IMPORTANT : Slick met le numéro de slide ("1","2",...) dans le button →
   on doit le rendre invisible (font-size + color transparent + text-indent). */
.sppb-articles-carousel-wrap .slick-dots li > button {
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: 0 !important;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  transition: background .2s;
  box-shadow: none !important;
  outline: none !important;
}
.sppb-articles-carousel-wrap .slick-dots li.slick-active > button {
  background: #67860F;
}
.sppb-articles-carousel-wrap .slick-dots li > button:hover {
  background: #869791;
}

/* =========================================================
   WALL (Category Blog natif) — pageclass_sfx="wall-grid"
   Remplacement de Minitek Wall.
   Pages /pecher/* et /faunaflore/* utilisant Category Blog.
   ========================================================= */

/* NE PAS overrider .article-list : Joomla l'utilise déjà avec .row > .col-lg-4 (Bootstrap).
   On garde la grille Bootstrap native, on ajoute juste un breakpoint tablette. */
.wall-grid .article-list .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
.wall-grid .article-list .col-lg-4 {
  margin-bottom: 1.5rem;
}
/* Sur tablette : 2 colonnes */
@media (min-width: 768px) and (max-width: 991px) {
  .wall-grid .article-list .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Chaque carte article : border-radius + flex interne */
.wall-grid .article-list .article {
  position: relative;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  margin: 0;
}

/* Image : passer de float:left à block 100% */
.wall-grid .article-list .article-intro-image,
.wall-grid .article-list .article-intro-image.float-left {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  width: 100%;
  height: 240px;
  overflow: hidden;
  flex: 0 0 auto;
}
.wall-grid .article-list .article-intro-image img,
.wall-grid .article-list .article-intro-image a img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  transition: transform .4s cubic-bezier(.47,0,.745,.715);
  margin: 0 !important;
  display: block;
}
.wall-grid .article-list .article:hover .article-intro-image img {
  transform: scale(1.04);
}

/* Header / Titre */
.wall-grid .article-list .article-header {
  padding: 1rem 1.25rem;
  flex: 0 0 auto;
}
.wall-grid .article-list .article-header h2,
.wall-grid .article-list .article-header h2 a {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Masquer les intros (résidus EasyBlog moches) */
.wall-grid .article-list .article-introtext,
.wall-grid .article-list .article-body,
.wall-grid .article-list .article-info {
  display: none !important;
}

/* Hover overlay vert #67860F (parité Minitek Wall) */
.wall-grid .article-list .article {
  cursor: pointer;
}
.wall-grid .article-list .article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(103, 134, 15, 0.75);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  pointer-events: none;
  z-index: 2;
}
.wall-grid .article-list .article:hover::after {
  opacity: 1;
}
/* Titre en blanc au survol par-dessus l'overlay */
.wall-grid .article-list .article-header h2 {
  position: relative;
  z-index: 3;
  transition: color 0.3s;
}
.wall-grid .article-list .article:hover .article-header h2,
.wall-grid .article-list .article:hover .article-header h2 a {
  color: #fff;
}

/* Pagination centrée */
.wall-grid .pagination {
  justify-content: center;
  margin-top: 2rem;
}

/* =========================================================
   SPPB Articles Masonry (Wall v3)
   - Remplacement de column-count par CSS Grid (équilibrage propre).
   - Titres tronqués 1 ligne.
   - Hauteur d'image fixée (300px).
   ========================================================= */

/* Force CSS Grid au lieu de column-count (qui faisait wrap le 3e article) */
.sppb-addon-articles .sppb-addon-article-layout-masonry-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  column-count: unset !important;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .sppb-addon-articles .sppb-addon-article-layout-masonry-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 575px) {
  .sppb-addon-articles .sppb-addon-article-layout-masonry-row {
    grid-template-columns: 1fr !important;
  }
}

/* Pagination "Charger plus d'articles" : pleine largeur + padding-top conservé */
.sppb-addon-articles__pagination {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 50px;
}

/* =========================================================
   Joomla 5 charge FontAwesome 6 — le template fait référence
   à "Font Awesome 5 free" qui n'existe plus → on remet la
   font-family à jour pour les icônes ::before customisées.
   ========================================================= */
.sp-custom-login.sp-mod-login .info-text .sppb-btn-link::before,
.sourcecoast.sclogin-modal-links.sclogin::before,
.fa.fa-map-marker::before,
#sp-right .sp-module ul > li > a::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
}

.sppb-addon-article-layout-masonry-wrapper {
  overflow: hidden !important;
  box-sizing: border-box;
  width: 100%;
  break-inside: avoid;
}
.sppb-addon-article-layout-masonry-content {
  overflow: hidden !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sppb-addon-article-layout-masonry-content .sppb-article-info-wrap {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  display: block;
}
.sppb-addon-article-layout-masonry-content h3 {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.sppb-addon-article-layout-masonry-content h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Image : hauteur fixe pour uniformiser toutes les cards */
.sppb-addon-article-layout-masonry-content .sppb-article-img-wrap {
  display: block;
  height: 300px;
  overflow: hidden;
}
.sppb-addon-article-layout-masonry-content .sppb-article-img-wrap img.sppb-img-responsive {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
