/* Style général */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

/* Conteneur des publications */
.posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centre les cartes sur la page */
}

/* Style des publications */
.post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px; /* Largeur fixe pour un affichage uniforme */
    transition: transform 0.2s; /* Animation au survol */
}

.post:hover {
    transform: scale(1.05); /* Agrandit la carte au survol */
}

/* En-tête de la publication */
.post-header {
    position: relative;
}

.post-image {
    width: 100%;
    height: auto;
}

/* Titre de la publication */
.post-title {
    font-size: 1.5em;
    margin: 10px;
}

/* Corps de la publication */
.post-body {
    padding: 10px;
}

.post-description {
    font-size: 0.9em;
    color: #555;
}

.post-price {
    font-weight: bold;
    color: #333;
}

/* Pied de la publication */
.post-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid #eaeaea;
}

.post-footer button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-footer button:hover {
    background-color: #0056b3;
}

.comments-container {
    margin: 20px;
}

.comment {
    display: flex;
    align-items: flex-start; /* Aligne l'image et le contenu en haut */
    margin-bottom: 15px;
    background-color: #f9f9f9; /* Couleur de fond pour le commentaire */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc; /* Bordure légère */
}

.comment-image {
    width: 50px; /* Réduction de la largeur de l'image */
    height: 50px; /* Réduction de la hauteur de l'image */
    border-radius: 50%; /* Arrondir l'image */
    background-color: black; /* Couleur de fond noire */
    object-fit: cover; /* Ajuste l'image pour couvrir le conteneur */
    margin-right: 10px; /* Espace entre l'image et le contenu */
}

.comment-content {
    flex-grow: 1; /* Permet au contenu de prendre l'espace restant */
}

.post-footer {
    margin-top: 10px; /* Espace au-dessus des boutons */
}

button {
    margin-right: 5px; /* Espacement entre les boutons */
}
/* Ajustements pour les petits écrans */
@media (max-width: 600px) {
    .post {
        width: 100%; /* Utilise toute la largeur de l'écran */
    }

    .post-title {
        font-size: 1.25em; /* Réduit la taille du titre */
        margin: 5px; /* Ajuste la marge du titre */
    }

    .post-description {
        font-size: 0.8em; /* Réduit la taille de la description */
    }

    .post-price {
        font-size: 1em; /* Ajuste la taille du prix */
    }

    .post-footer button {
        padding: 6px 10px; /* Réduit le padding des boutons */
    }
}