.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 65px;
  padding: 20px;
}

.grid-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 300px;
    max-width: 100%;
}

.grid-item:hover {
  transform: translateY(-5px);
}

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

.post-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.post-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.post-btn i {
    font-size: 16px; 
    display: inline-block;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

/* Titre */
.title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Contenu avec image et texte */
.content {
  display: flex;
  align-items: flex-start; /* Aligne les deux colonnes au niveau supérieur */
  gap: 20px;
}

/* Conteneur pour l'image */
.image-container {
  flex: 1; /* Prend l'espace nécessaire à l'image */
}

.detail-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

/* Conteneur pour le texte */
.text-content {
  flex: 1; /* Prend l'espace restant */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}
