/* Hero Blog */
.blog-hero {
    background-color: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* Cards Post */
.post-card {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-app);
}

.post-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image-wrapper img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-btn);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
}

/* Filtres Sections */
.section-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.section-link {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.section-link.active, .section-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.post-view-header { margin-bottom: 2rem; }
.post-full-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}
.post-full-content img { 
    max-width: 100%; 
    border-radius: var(--radius-card); 
    margin: 1.5rem 0;
    box-shadow: var(--shadow-app);
}
.post-sidebar-box {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 100px;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Style pour les images intégrées dans le texte */
.post-full-content img.align-left {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 45%;
    border-radius: var(--radius-card);
}

.post-full-content img.align-right {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 45%;
    border-radius: var(--radius-card);
}

/* Nettoyage du float pour éviter que la suite du design ne casse */
.post-full-content::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive : on remet l'image en plein écran sur mobile */
@media (max-width: 768px) {
    .post-full-content img.align-left, 
    .post-full-content img.align-right {
        float: none;
        margin: 15px 0;
        max-width: 100%;
        display: block;
    }
}

.post-full-content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    margin-right: 10px;
    line-height: 1;
    color: var(--primary-color);
    font-family: var(--font-main);
}