.subscript-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.subscript-card {
    flex: 1 1 calc(25% - 20px); /* 4 par ligne */
    /*max-width: calc(25% - 20px);*/
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.subscript-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-direction: column;
    flex-wrap: nowrap;
}

.subscript-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.subscript-author-name {
    font-weight: 600;
}

.subscript-tags {
    margin: 8px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 11px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    margin-right: 6px;
    background: #f0f0f0;
}

.subscript-title {
    font-weight: 600;
    margin: 8px 0;
    font-size: 1.6rem;
}

.subscript-text {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 12px;
}





.subscript-pagination {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    padding: 8px 14px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.page-link.active {
    background: #6a5acd;
    color: white;
}

.subscript-filter {
    margin-bottom: 20px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}


.filter-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.filter-btn {
    padding: 6px 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.subscript-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
}

.subscript-date {
    opacity: 0.7;
    background-color: #f0f0f085;
    width: 100%;
    margin: 2px;
    padding: 2px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.8rem;
}

.subscript-actions {
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-evenly;
    align-items: center;
}

.btn-subscript {
  display: inline-block;
  padding: 8px 12px;
  background:#0078d4;
  color:#fff;
  border-radius:4px;
  text-decoration:none;
  border:none;
  cursor:pointer;
}
.btn-subscript:hover { opacity:0.9; }

.subscript-author-block {
    display: flex;
    align-items: center;
    gap: 8px;
}


.subscript-author {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.15s ease;
}

.subscript-author:hover {
    color: #6a4bc3; /* ton violet Claudium */
}
   /* Container principal : deux colonnes (contenu + menu) */
article .body-article {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Colonne contenu : prend tout l'espace restant */
article .body-article .article-content {
    flex: 1 1 auto;
    min-width: 0; /* important pour éviter overflow des enfants */
    box-sizing: border-box;
}

/* Colonne menu : largeur fixe, reste à droite */
.share-article-links {
    flex: 0 0 260px; /* largeur fixe du menu */
    max-width: 260px;
    box-sizing: border-box;
}

/* Style interne du menu */
.share-article-links > div {
    background: transparent;
    padding: 0.5rem;
}

/* Rendre le menu sticky (reste visible en scroll) */
.share-article-links {
    position: sticky;
    top: 100px; /* ajuste selon la hauteur de ton header */
}

/* Ajustements des cards : la grille reste fluide selon view-X */
.subscript-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Par défaut 4 par ligne, les classes view-1..view-4 contrôlent ceci */
.view-1 .subscript-card { flex: 1 1 100%; }
.view-2 .subscript-card { flex: 1 1 calc(50% - 20px); }
.view-3 .subscript-card { flex: 1 1 calc(33.333% - 20px); }
.view-4 .subscript-card { flex: 1 1 calc(25% - 20px); }

/* Responsive : sur petits écrans, empiler le menu sous le contenu */
@media (max-width: 900px) {
    article .body-article {
        flex-direction: column;
    }
    .share-article-links {
        position: static;
        width: 100%;
        max-width: none;
    }
}