/* ============================================================
   LIRE LA SUITE / LIRE MOINS - Effet fluide & responsive
   Surveillance-Camera-IP / LYACAM
   ============================================================ */

/* Bloc limité par défaut */
.description-toggle-block .description-wrapper {
  position: relative;
  max-height: 180px; /* visible par défaut */
  overflow: hidden;
  transition: max-height 0.8s ease-in-out, opacity 0.6s ease;
  opacity: 1;
}

/* Dégradé visuel en bas (indique qu'il y a plus de texte) */
.description-toggle-block .description-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Quand on déplie */
.description-toggle-block .description-wrapper.expanded {
  max-height: 4000px;
  opacity: 1;
  transition: max-height 1s ease-in-out, opacity 0.6s ease;
}

.description-toggle-block .description-wrapper.expanded::after {
  opacity: 0; /* le dégradé disparaît quand le texte est ouvert */
}

/* Boutons Lire la suite / Lire moins */
.description-toggle-block .btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 500;
  color: #007bff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.description-toggle-block .btn-toggle:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Mobile : aperçu plus compact */
@media (max-width: 768px) {
  .description-toggle-block .description-wrapper {
    max-height: 120px;
  }
}

/* ✅ Réimpose le cadre du slider après chargement de Swiper CSS */
#common-home .swiper-viewport {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  z-index: 0; /* garantit qu’il ne passe pas au-dessus du menu */
}
