.postsbody {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  padding: 0;
  margin: 0;
}

.post {
  background: white;
  margin-bottom: -15px !important;
  padding: 10px 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-header {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.profile-pict {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #e4e6eb;
}

.author {
  font-weight: bold;
}

.post-title {
  font-size: 1em;
  margin: 10px;
  line-height: 22px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author {
  font-weight: bold;
}

.author-title {
  font-size: 0.9em;
  color: #666;
}

.post-time {
  display: flex;
  align-items: center;
  font-size: 0.85em;
  color: #777;
}


.time-icon img {
  width: 14px; 
  height: auto;
  margin-right: 4px;
  margin-top: 1px;
}


    
.post-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limite à environ 4 lignes */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1.2em;
  margin: 5px 10px;
  position: relative;
}

.post-content.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}

.show-more {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 0;
  margin: 5px 10px;
}


.post-img {
  width: 100%;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  margin-top: 0 5px;
}

.post-actions {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 25px;
  width: 45%;
  border: none;
  color: black;
  font-weight: bold;
  font-size: 12px;
  background: linear-gradient(135deg, #f3f3f3, #e8e8e8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  transform: translateY(-2px);
}

.share-btn:active {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  transform: translateY(0);
}

.share-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}







/* Conteneur principal des boutons de navigation (Précédent/Suivant) */
.navigation-posts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
}

/* Conteneur pour le bouton central, aligné au centre */
.load-all-container {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
}

/* Style de base pour tous les liens */
.nav-link,
.load-all-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Effets de survol et d'activation */
.nav-link:hover,
.load-all-btn:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-link:active,
.load-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Style spécifique pour les icônes de navigation */
.nav-icon {
  width: 18px;
  height: 18px;
  margin: 0 8px;
}

.prev-link .nav-icon {
  margin-left: -5px;
}

.next-link .nav-icon {
  margin-right: -5px;
}

/* Style pour le bouton "Charger tous les posts" */
.load-all-btn {
  padding: 12px 25px;
  border-color: #ccc;
  min-width: 250px;
  justify-content: center;
}
