
/* Styles pour la grille de publications accueil */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 50px auto;
  align-items: stretch; /* Ajuster l'alignement vertical à partir du haut */
 
}

/* Styles pour une publication */
.publication {
  background-color: #f4f4f4;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  display: flex;
  flex-direction: column; /* Utilisation de Flexbox */

}
.img-publication{
   height:250px ;
   border-radius: 16px;
  margin: 10px auto;
  width: 380px;
 object-fit: cover;
}


/* Styles pour les boutons "J'aime" et "Je n'aime pas" */
.like-dislike-commentaire {
  margin-top: auto; /* Pousse les boutons en bas de la publication */
}

.description {
  max-height: 100px; 
  overflow: hidden;
  position: relative;
}

.voirPlus{
  color:#000;
  font-style: italic;
  /* font-size: 15px; */
  font-weight: bold;
  text-decoration: none;

}

.description p {
  margin: 0;
  padding: 0;
}

.voirPlus:hover {
  /* text-decoration: underline; */
  color: #f59e0b;
}
.pubRecherche{
  margin-top: 20px;
}

/* profile */


.container {
margin: 100px auto;
display: flex;
justify-content: center; /* Centrer horizontalement */
align-items: center; /* Centrer verticalement */
/* height: 100vh; */
max-width: 800px;

/* width: 100%; */
background-color: #f2f2f2;
padding: 20px;
}

.profile-section {
text-align: center;
}

.profile-info img {
width: 150px;
height: 150px;
border-radius: 50%;
margin-bottom: 10px;
}

 .add-publication-button, .edit-profile-info-button {
background-color: #5B8E7D;
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
margin: 5px;
}
 .delete-account-button {
  background-color: #f91717;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  margin: 5px;
  }

h2 {
font-size: 24px;
margin: 20px 0 10px 0;
}

/* publications profile */
.publications-profile {
display: grid;
grid-template-columns: repeat(2, 1fr); /* Deux publications par ligne */
gap: 10px;
}
.publication-profile {
background-color: #fff;
border: 1px solid #ccc;
flex: 1;
}


#publication h3 {
font-size: 20px;
margin: 5px 0;
}






/* detail.php */

.sectionDetailPub{
/* display:block; */
 text-align: center;
 background-color: #f4f4f4;
 width: 800px;
 height: 100%;
 margin: 100px auto;
 border-radius: 12px;

}


.detailPub p {
 text-transform: capitalize;
 text-align:center;

 margin: 20px 30px;
}
.btn_commentaire{
border: none;
color: #393838;
}
.commentaires{
text-align: start;
margin: 20px 30px;

}
.commentaire{
border-radius: 10px;
background-color:#5B8E7D;
padding:5px 10px;
}
.img-publiee{
border-radius: 12px;
width: 40vw;
height: 10%;
object-fit: cover;
margin: 0 auto ;
}

.reaction{
display: flex;
justify-content: center;
gap: 30px;
 font-size: 15px;
}
.reaction a {
margin-top: 8px;
text-decoration: none;
color: #393838;
/* cursor: pointer; */

}
.reaction .btn_commentaire:hover{
color: #780000;
}
.reaction  a:hover {
color: #780000;

}


