.news-item h4 {
    margin-top: 0;
}

.news-date {
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 12px;
}

.news-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap; /* pour que ça reste responsive */
}

.news-text {
    flex: 1 1 60%;
}

.news-image {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
}

.news-image img {
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.section-card .articles-layout {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.form-articles button {
	border-radius: 999px;
}

.articles-list {
    flex: 1;
}

.articles-tags {
    width: 250px;
}

.articles-tags ul {
    list-style: none;
    padding: 0;
}

.articles-tags li {
    margin: 8px 0;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.articles-tags li:hover {
    background: rgba(77,163,255,0.15);
}

.articles-tags li.active {
    background: rgba(77,163,255,0.35);
    color: #fff;
    font-weight: 600;
}

#article-content p {
    line-height: 1.6em;
    margin-bottom: 16px;
}

.article-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}
.article-img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 70%;
}

.article-img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Miniature */
.article-img-thumb {
    width: 40%;
    min-width: 180px;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.article-img-thumb:hover {
    transform: scale(1.03);
}

/* Modal */
.article-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.article-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(77,163,255,0.45);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ============================
   Base Neptune Glass Buttons
   ============================ */

.page-number,
.page-btn {
    all: unset; /* neutralise le style par défaut des <button> */
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-number.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-number.active:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 8px var(--accent);
}

.theme-dark .page-number:hover,
.theme-dark .page-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

.theme-light .page-number:hover,
.theme-light .page-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.pagination {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .news-content {
        flex-direction: column;
    }

    .news-image img {
        max-width: 90%;
    }
	
	.form-articles button {
		right: 32px; /* ✅ espace plus confortable à droite */
		left: 32px;  /* ✅ optionnel : équilibre visuel si tu veux le centrer */
		width: calc(100% - 64px); /* ✅ garde la largeur fluide sans toucher les bords */
	}
	
	.articles-tags {
        display: none;
    }
}
