body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2 {
    color: #000;
    margin-bottom: 15px;
}

h1 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    text-align: center;
}

/* Liens */
a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}
.add-comment-container, .comments-container, .page-container {
    text-align: center;
}
a:hover {
    text-decoration: underline;
}

/* Formulaires */
form {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.profile-container {
    width: 300px;
}

.profil {
    display: flex;
    justify-content: center;
 
}
.voirplus {
    text-align: end;
}
.profile-info{
    width: 300px;
    text-align: center;
    font-size: 20px;
}
form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

form input[type="submit"], form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
/* Message de bienvenue */
.welcome-message {
    font-size: 2em;
    margin-top: 20px;
    color: #444;
}
/* style.css */

.main-container {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-details h1 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
    font-size: 24px;
}

.post-details p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.comments-section h2 {
    color: #000;
    border-bottom: 2px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 20px;
}

.comment-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-item p {
    color: #555;
    margin: 10px 0;
}

.comment-item small {
    display: block;
    color: #888;
    margin-top: 5px;
    font-size: 0.9em;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-actions .btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-actions .btn:hover {
    background-color: #555;
}

.add-comment-section {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-comment-section h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 18px;
}

.add-comment-section textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    resize: vertical;
}

.add-comment-section button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-comment-section button:hover {
    background-color: #555;
}

.login-notice p {
    color: #444;
    font-style: italic;
    text-align: center;
}

.post-not-found p {
    color: #f00;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* Conteneur des posts */
.posts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Chaque post */
.post {
    background-color: #fff;
    border: 2px solid #0e0e0e;
    border-radius: 8px;
    padding: 15px;
    width: 300px;
  
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Titre du post */
.titre {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.contenu {
    font-size: 1em;
    margin-bottom: 15px;
    color: #555;
}

.detail-button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.detail-button:hover {
    background-color: #0056b3;
}

/* Lien de détail */
.detail-link {
    text-align: right;
    display: block;
}
.archiver {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 3 colonnes */
    gap: 20px; /* Espace entre les posts */
    padding: 20px;
    justify-items: center;
}

.post {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 100%; /* S'adapte automatiquement */
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ID manquant */
.missing-id {
    color: red;
    font-style: italic;
}
form input[type="submit"]:hover, form button:hover {
    background-color: #555;
}

/* Sections */
.post, .user, .comment {
    background: #fff;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 600px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post h2, .user h2, .comment p {
    margin: 0 0 10px;
}

.post a, .user a, .comment a {
    margin-right: 10px;
    color: #555;
}

.post a:hover, .user a:hover, .comment a:hover {
    color: #000;
}

/* Header */
header {
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.navbar {
    background-color: #333; /* Couleur de fond noir */
    display: flex;
    justify-content: space-around; /* Espacement égal entre les éléments */
    align-items: center;
    padding: 10px 20px;
}

/* Liens de navigation */
.nav-item {
    color: #fff; /* Couleur du texte en blanc */
    text-decoration: none; /* Pas de soulignement */
    padding: 10px 15px;
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s ease; /* Transition pour l'effet de survol */
}

.nav-item:hover {
    background-color: #555; /* Couleur de fond grise au survol */
}

/* Statut de connexion */
.nav-status {
    color: #ccc; /* Couleur grise pour le statut */
    font-style: italic; /* Italique pour différencier */
}

/* Mise en page principale */
.admin-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Sections */
.admin-section {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Cartes pour posts, utilisateurs, commentaires */
.card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.card h3 {
    margin: 0 0 10px;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.card-actions a {
    color: #555;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.card-actions a:hover {
    background-color: #eee;
}

/* Formulaire */
form textarea {
    min-height: 100px;
}

/* En-tête et pied de page */
header, footer {
    text-align: center;
    padding: 20px;
}