/* =========================================
   Styles Communs
   ========================================= */
.posts-sliders-wrapper {
  /* On enlève les marges négatives du wrapper pour le mode Hero */
  margin: 0;
  opacity: 0; /* Astuce: on cache le slider avant que le JS ne se charge pour éviter le "flash" de contenu non stylisé */
  transition: opacity 0.3s ease;
}
/* Quand Slick est initialisé, il ajoute cette classe, on réaffiche */
.posts-sliders-wrapper.slick-initialized {
  opacity: 1;
}

/* =========================================
   MODE CARTE (Classique)
   ========================================= */
/* On applique le padding seulement si on est en mode carte */
.ps-card-mode-active .ps-post-item {
  padding: 15px 10px;
  outline: none;
}

/* Le reste de votre CSS de carte existant... */
.ps-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}
.ps-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.ps-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.ps-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ps-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #333;
  line-height: 1.4;
}
.ps-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}
.ps-card-link {
  margin-top: auto;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.ps-card-mode-active .slick-prev:before,
.ps-card-mode-active .slick-next:before {
  color: #333 !important;
}
/* =========================================
   NOUVEAU : MODE HERO (Grand Format)
   ========================================= */

/* Le conteneur principal du slide */
.ps-hero-item {
  /* Hauteur de 80% de la fenêtre */
  height: 80vh;
  min-height: 500px; /* Sécurité pour les petits écrans mobiles */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  outline: none;
  /* Flexbox pour centrer le contenu */
  display: flex !important; /* Important car Slick force parfois 'block' */
  align-items: center; /* Centrage Vertical */
  justify-content: center; /* Centrage Horizontal */
  text-align: center;
  color: #fff;
  padding: 0; /* Important: reset du padding du mode carte */
}

/* Couche de superposition sombre (Overlay) */
.ps-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* Noir à 45% d'opacité */
  z-index: 1;
}

/* Le conteneur du texte, placé au-dessus de l'overlay */
.ps-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Titre Hero */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* Extrait Hero */
.hero-excerpt {
  font-size: 1.2rem;
  /* margin-bottom: 30px; */
  line-height: 1.6;
  color: #f0f0f0;
}

/* Bouton Hero */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0; /* géré via Elementor */
}

.hero-button-icon {
  display: inline-flex;
  line-height: 1;
}

/* Ajustements Responsive pour le mode Hero sur mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-excerpt {
    font-size: 1rem;
  }
  .ps-hero-item {
    height: 70vh; /* Un peu moins haut sur mobile */
  }
}

/* Repositionnement des flèches Slick dans le mode Hero pour qu'elles soient visibles sur l'image */
.ps-hero-mode-active .slick-arrow {
  z-index: 10;
  width: 50px;
  height: 50px;
}
.ps-hero-mode-active .slick-prev {
  left: 20px;
}
.ps-hero-mode-active .slick-next {
  right: 20px;
}
.ps-hero-mode-active .slick-prev:before,
.ps-hero-mode-active .slick-next:before {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}

.ps-hero-mode-active .slick-dotted.slick-slider {
  margin-bottom: 0px !important;
}
/* =====================================================
   SLICK HERO – DOTS (COMMUN)
===================================================== */
.ps-hero-mode-active .slick-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  z-index: 10;
}

/* =====================================================
   DOTS STYLE : DEFAULT
===================================================== */
.ps-hero-mode-active.dots-style-default .slick-dots li button::before {
  color: #fff;
  font-size: 12px;
}

/* =====================================================
   DOTS STYLE : RECTANGLE
===================================================== */
.ps-hero-mode-active.dots-style-rectangle .slick-dots li {
  display: inline-block;
  margin: 0 10px;
  list-style: none;
  cursor: pointer;
}

.ps-hero-mode-active.dots-style-rectangle .slick-dots li button {
  width: 30px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.27);
  cursor: pointer;
  outline: none;
  font-size: 0;
  color: transparent;
  transition: background-color 0.3s ease;
}

.ps-hero-mode-active.dots-style-rectangle .slick-dots li button::before {
  content: none;
}

.ps-hero-mode-active.dots-style-rectangle .slick-dots li button:hover {
  background-color: rgba(255, 255, 255, 0.52);
}

.ps-hero-mode-active.dots-style-rectangle .slick-dots li.slick-active button {
  background-color: #fff;
}
.hero-meta {
  display: flex;
  align-items: center;
}

.hero-categories {
  display: flex;
  gap: 6px;
}
