.news-section {
    width: 100%;
    padding: 40px 0 60px;
    box-sizing: border-box;	
	background-image: url('../images/sti1.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.news-container {
    width: 75%;
    max-width: 1600px;
    margin: 0 auto;
    color: var(--text-color);	
	background: var(--bg-color);
	padding: 15px;
	border-radius: 15px;
}

/* En-tête */

.news-heading {
    margin-bottom: 28px;
}

.news-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.news-heading p {
    margin: 0;
    opacity: 0.75;
    line-height: 1.6;
}

/* Disposition générale */

.news-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);    
	background: #212932;
    border: 1px solid var(--border-color, #263d55);
    border-radius: 12px;
    overflow: hidden;	
}

/* Colonne des catégories */

.news-sidebar {
    padding: 24px 16px;
    border-right: 1px solid var(--border-color, #263d55);
}

.news-sidebar h2 {
    font-size: 1rem;
    margin: 0 0 20px;
}

.news-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-category {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.news-category span {
    width: 24px;
    text-align: center;
}

.news-category:hover {
    background: rgba(60, 150, 255, 0.10);
}

.news-category.active {
    background: rgba(40, 135, 255, 0.18);
    border-color: rgba(60, 150, 255, 0.25);
    font-weight: 600;
}

/* Colonne des annonces */

.news-content {
    min-width: 0;
    padding: 20px;	
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}


.news-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-mark-read {
    padding: 10px;
    border: 1px solid #16a34a;
    border-radius: 8px;
    background: transparent;
    color: #16a34a;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
	height: 43px;
}

.news-mark-read:hover {
    background: #16a34a;
    color: #fff;
}

@media (max-width: 600px) {
    .news-toolbar-actions {
        flex-wrap: wrap;
    }
}

.news-results {
    font-size: 0.9rem;
    opacity: 0.75;
}

.news-toolbar select {
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color, #263d55);
    border-radius: 7px;
    background: var(--bg-color);
    color: var(--text-color);
    font: inherit;
}

select.news-sort::picker-icon {
	color: var(--text-color);
}
select.news-sort, select.news-sort::picker(select.news-sort) {
	appearance: base-select;
}

/* Cartes */

.news-card {
    margin-bottom: 14px;
    border: 1px solid var(--border-color, #263d55);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(60, 130, 200, 0.035);
    transition: border-color 0.2s, background 0.2s;
}

.news-card:hover {
    border-color: rgba(60, 150, 255, 0.45);
}

.news-card[hidden],
.news-card-body[hidden],
.news-empty[hidden] {
    display: none !important;
}

/* Zone cliquable */

.news-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.news-card-header:hover {
    background: rgba(60, 130, 200, 0.06);
}

.news-card-header:focus-visible,
.news-category:focus-visible {
    outline: 2px solid #399cff;
    outline-offset: -3px;
}

.news-card-info {
    flex: 1;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /*gap: 8px 14px;*/
	gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    opacity: 0.85;
}

.news-meta span:last-child {
    margin-left: auto;
}

/* Badges */

.news-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.news-badge.release {
    background: #159b63;
}

.news-badge.devlog {
    background: #168de0;
}

.news-badge.announcement {
    background: #e99a2e;
}

.news-badge.tutorial {
    background: #9460df;
}

/* Titres et résumés */

.news-card-header h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.news-summary {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    opacity: 0.8;
}

/* Flèche */

.news-chevron {
    flex-shrink: 0;
    margin-top: 28px;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s;
}

.news-card-header[aria-expanded="true"] .news-chevron {
    transform: rotate(180deg);
}

/* Contenu développé */

.news-card-body {
    padding: 20px;
    border-top: 1px solid var(--border-color, #263d55);
}

.news-article {
    max-width: 100%;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.news-article h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.news-article p {
    margin: 0 0 16px;
}

.news-article ul,
.news-article ol {
    padding-left: 24px;
    margin: 12px 0 20px;
}

.news-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-article a,
.news-article-link {
    color: var(--link-color, #39a7ff);
}

.news-article-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    text-decoration: none;
}

.news-article-link:hover {
    text-decoration: underline;
}

/* Aucun résultat */

.news-empty {
    padding: 30px 12px;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */

@media (max-width: 1100px) {
    .news-container {
        width: 90%;
    }

    .news-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .news-container {
        width: 94%;
    }

    .news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-sidebar {
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border-color, #263d55);
    }

    .news-sidebar h2 {
        margin-bottom: 12px;
    }

    .news-categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .news-category {
        width: auto;
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .news-content {
        padding: 12px;
    }

    .news-card-header {
        padding: 14px;
        gap: 8px;
    }

    .news-meta {
        gap: 8px;
    }

    .news-card-header h2 {
        font-size: 1rem;
    }

    .news-summary {
        font-size: 0.88rem;
    }

    .news-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
