

/* Conteneur principal */
.container {
    max-width: 800px;
    margin: 0 auto;
	word-wrap: break-word; /* Coupe les mots longs */
          
}

/* Formulaire de publication */
.post-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.post-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    min-height: 80px;
}

.post-form button {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-form button:hover {
    background-color: #5a4bcb;
}



.post .username {
    font-weight: bold;
    color: #6c5ce7;
}

.post .date {
    font-size: 0.9em;
    color: #777;
}

.post .content {
    margin: 10px 0;
}

.post .actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.post .actions button {
    background-color: #dfe6e9;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.post .actions button:disabled {
    background-color: #b2bec3;
    cursor: not-allowed;
}

/* Commentaires */
.comments {
    margin-top: 15px;
    padding-left: 20px;
}

.comment {
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.comment .username {
    font-size: 0.9em;
}

.comment-form {
    margin-top: 10px;
}

.comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 50px;
}

.comment-form button {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #5a4bcb;
}

/* Navigation */
.nav-links {
    text-align: center;
    margin-top: 20px;
}

.nav-links a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}







/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h2 {
        font-size: 1.5em;
    }

    .post-form, .post {
        padding: 15px;
    }
}


