.mxwd{
    width: 300px;
}

.loopright {
    float: right; /* Fait flotter l'image à droite */
}

.posts-grid {
    display: grid;
    grid-gap: 30px;
    padding: 20px;
    grid-template-columns: 1fr;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 170px; 
    object-fit: cover; 
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    padding: 16px;
    height: 480px; 
    box-shadow: var(--box-shadow);
}

.post-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    overflow: visible; 
    text-overflow: clip;
    white-space: normal; 
}

.post-title a{
    color: black;
}

.post-title a:hover{
    color: var(--color-accent);
}

.post-excerpt {
    font-size: 1em;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.read-more {
    margin-top: auto; 
    background: var(--color-primary); 
    color: white;
    padding: 5px 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

.read-more:hover{
    background-color: rgba(0, 119, 196, 0.8);
    color: #fff;
    text-shadow: 1px 1px 2px #000000; 
}
