/* Section de l'article */
.PostDetail {
    background-color: #fff;
    padding: 40px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-width: 900px;
    text-align: center;
}

/* Titre principal */
.PostDetail h2 {
    font-size: 36px;
    color: #222;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

/* Métadonnées de l'article */
.PostDetail .post-meta {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}

/* Contenu de l'article */
.PostDetail .post-content {
    font-size: 20px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 35px;
}


/* Tags */
.PostDetail .post-tags {
    margin-top: 25px;
}

.PostDetail .post-tags .tag {
    background-color: #007bff;
    color: #fff;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 25px;
    margin: 5px;
    display: inline-block;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.PostDetail .post-tags .tag:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Articles similaires */
.PostDetail .related-posts {
    margin-top: 50px;
}

.PostDetail .related-posts h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Conteneur des articles similaires */
.PostDetail .related-post-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Carte des articles similaires */
.PostDetail .related-post-item {
    background-color: #f8f9fa;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
    width: calc(33% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.PostDetail .related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.PostDetail .related-post-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
}

.PostDetail .related-post-item p {
    font-size: 15px;
    color: #555;
}

/* Bouton retour */
.btn-secondary {
    display: inline-block;
    padding: 14px 22px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(45deg, #6c757d, #495057);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 40px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6268, #343a40);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .PostDetail {
        padding: 30px;
        margin-top: 40px;
    }
    
    .PostDetail h2 {
        font-size: 28px;
    }

    .PostDetail .post-content {
        font-size: 18px;
    }

    .PostDetail .related-post-container {
        flex-direction: column;
    }

    .PostDetail .related-post-item {
        width: 100%;
    }
}
