/* ============================================================
   MODULE PUBLICATIONS — page publique et admin
   ============================================================ */

/* ---- Section publications sur landing ---- */
.publications-section {
    padding: 80px 0;
    background: #f9fafb;
}

/* ---- Grid de cartes ---- */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.pub-grid--list {
    margin-top: 32px;
}

/* ---- Carte publication ---- */
.pub-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}
.pub-card--featured {
    grid-column: span 2;
}
@media (max-width: 900px) {
    .pub-card--featured { grid-column: span 1; }
}

.pub-card__image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pub-card__image--placeholder {
    color: white;
}
.pub-card__placeholder-icon {
    font-size: 4rem;
    opacity: 0.85;
}
.pub-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pub-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pub-card__cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.pub-card__pin {
    font-size: 14px;
}
.pub-card__date {
    font-size: 12.5px;
    color: #6b7280;
    margin-left: auto;
}
.pub-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #0a2540;
    line-height: 1.35;
    margin: 0;
}
.pub-card__excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-card__link {
    color: #0a2540;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}
.pub-card:hover .pub-card__link {
    color: #fbbf24;
}

/* ---- Page publications ---- */
.pub-page {
    padding: 60px 0;
    min-height: 60vh;
}
.pub-page__header {
    text-align: center;
    margin-bottom: 40px;
}
.pub-page__header h1 {
    font-size: 2.5rem;
    color: #0a2540;
    margin-bottom: 12px;
}
.pub-page__header p {
    color: #6b7280;
    font-size: 1.05rem;
}

.pub-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}
.pub-filter__tab {
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.pub-filter__tab:hover {
    border-color: #0a2540;
    color: #0a2540;
}
.pub-filter__tab--active {
    background: #0a2540;
    color: white;
    border-color: #0a2540;
}

.pub-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

/* ---- Article détail ---- */
.pub-article__header {
    background: #f9fafb;
    padding: 40px 0 32px;
    margin-bottom: 32px;
}
.pub-article__back {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.pub-article__back:hover { color: #0a2540; }

.pub-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 16px;
}
.pub-article__cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11.5px;
}

.pub-article__title {
    font-size: 2.3rem;
    color: #0a2540;
    line-height: 1.2;
    margin: 0 0 16px;
}
.pub-article__excerpt {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
    font-style: italic;
}

.pub-article__cover {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 0 16px;
}
.pub-article__cover img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.pub-article__body {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1f2937;
}
.pub-article__body h2 { color: #0a2540; margin: 32px 0 16px; }
.pub-article__body h3 { color: #0a2540; margin: 24px 0 12px; }
.pub-article__body p  { margin: 0 0 16px; }
.pub-article__body ul, .pub-article__body ol { padding-left: 24px; margin: 0 0 16px; }
.pub-article__body a { color: #0a2540; text-decoration: underline; }
.pub-article__body blockquote {
    border-left: 4px solid #fbbf24;
    background: #fef3c7;
    padding: 12px 20px;
    margin: 20px 0;
    color: #78350f;
    font-style: italic;
}

.pub-article__related {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid #f3f4f6;
}
.pub-article__related h2 {
    color: #0a2540;
    margin-bottom: 24px;
}

/* ============================================================
   CONSULTATION RÉSULTATS PUBLIC
   ============================================================ */

.results-consult {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
}
.results-consult__card {
    background: white;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(10, 37, 64, 0.08);
    text-align: center;
    border-top: 4px solid #0a2540;
}
.results-consult__icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}
.results-consult__card h1 {
    color: #0a2540;
    margin: 0 0 8px;
    font-size: 1.8rem;
}
.results-consult__subtitle {
    color: #6b7280;
    margin: 0 0 28px;
    font-size: 1rem;
}
.results-consult__form {
    text-align: left;
}
.results-consult__form .form__group {
    margin-bottom: 20px;
}
.form__input--lg, .form__select--lg {
    font-size: 1.05rem;
    padding: 12px 14px;
}
.form__hint {
    display: block;
    color: #6b7280;
    font-size: 12.5px;
    margin-top: 4px;
}
.results-consult__submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px !important;
    font-size: 1.05rem !important;
    justify-content: center;
}
.results-consult__notice {
    margin-top: 24px;
    padding: 14px;
    background: #f0f9ff;
    border-left: 3px solid #0891b2;
    border-radius: 6px;
    font-size: 13px;
    color: #164e63;
    text-align: left;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert--error {
    background: #fee2e2;
    border-left: 3px solid #dc2626;
    color: #991b1b;
}

/* ---- Page résultats ---- */
.results-page {
    padding: 40px 0 80px;
    background: #f9fafb;
    min-height: 80vh;
}
.results-page__back {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 14px;
}
.results-page__back:hover { color: #0a2540; }

.results-student {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid #0a2540;
}
.results-student__avatar {
    font-size: 3.5rem;
}
.results-student__info h1 {
    margin: 0 0 8px;
    color: #0a2540;
    font-size: 1.5rem;
}
.results-student__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 8px;
}
.results-student__semester {
    color: #6b7280;
    font-size: 14px;
}

.results-verdict {
    background: white;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 6px solid #10b981;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.results-verdict--warn {
    border-left-color: #d97706;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 55%);
}
.results-verdict--ko {
    border-left-color: #dc2626;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 55%);
}
.results-verdict--ok {
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 55%);
}
.results-verdict__icon {
    font-size: 3rem;
    flex-shrink: 0;
}
.results-verdict__content { flex: 1; min-width: 0; }
.results-verdict__decision {
    font-size: 1.5rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 4px;
    line-height: 1.2;
}
.results-verdict--warn .results-verdict__decision { color: #b45309; }
.results-verdict--ko .results-verdict__decision { color: #dc2626; }
.results-verdict__sub {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 12px;
}
.results-verdict__details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.results-verdict__chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13.5px;
    color: #4b5563;
}
.results-verdict__chip strong { color: #0a2540; font-size: 15px; font-weight: 800; }
.results-verdict__chip--mention strong { color: #7c3aed; }

/* Barre de progression des crédits */
.results-credits-bar {
    margin-top: 14px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.results-credits-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width .4s ease;
}
.results-verdict--warn .results-credits-bar__fill { background: linear-gradient(90deg, #f59e0b, #d97706); }
.results-verdict--ko .results-credits-bar__fill { background: linear-gradient(90deg, #ef4444, #dc2626); }

.results-empty {
    background: white;
    padding: 60px 24px;
    border-radius: 12px;
    text-align: center;
}
.results-empty__icon {
    font-size: 4rem;
    margin-bottom: 12px;
}
.results-empty h2 {
    color: #0a2540;
    margin: 0 0 8px;
}
.results-empty p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

.results-rattrapage {
    background: #fef3c7;
    border-left: 5px solid #d97706;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.results-rattrapage h2 {
    color: #92400e;
    margin: 0 0 8px;
    font-size: 1.3rem;
}
.results-rattrapage__intro {
    color: #78350f;
    margin: 0 0 20px;
    font-size: 14.5px;
}
.results-rattrapage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.results-rattrapage__card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}
.results-rattrapage__code {
    font-weight: 700;
    color: #92400e;
    font-size: 15px;
    margin-bottom: 4px;
}
.results-rattrapage__name {
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}
.results-rattrapage__unit {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 12px;
    font-style: italic;
}
.results-rattrapage__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #4b5563;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.results-details {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.results-details h2 {
    color: #0a2540;
    margin: 0 0 20px;
    font-size: 1.3rem;
}

.results-ue {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.results-ue__header {
    background: #f9fafb;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}
.results-ue__code {
    font-weight: 700;
    color: #0a2540;
    font-size: 15px;
}
.results-ue__name {
    color: #4b5563;
    font-size: 13.5px;
}
.results-ue__moyenne {
    text-align: right;
}
.results-ue__moyenne-value {
    display: block;
    font-weight: 700;
    font-size: 18px;
}
.results-ue__moyenne-value.ok { color: #059669; }
.results-ue__moyenne-value.ko { color: #dc2626; }
.results-ue__moyenne-credits {
    font-size: 12px;
    color: #6b7280;
}

.results-ue__table {
    width: 100%;
    border-collapse: collapse;
}
.results-ue__table th {
    background: #f3f4f6;
    padding: 10px;
    text-align: left;
    font-size: 12.5px;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.results-ue__table td {
    padding: 12px 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
}

.results-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.results-status.st-ok    { background: #d1fae5; color: #065f46; }
.results-status.st-warn  { background: #fef3c7; color: #92400e; }
.results-status.st-ko    { background: #fee2e2; color: #991b1b; }
.results-status.st-elim  { background: #450a0a; color: #fecaca; }
.results-status.st-muted { background: #e5e7eb; color: #6b7280; }

.results-footer {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.results-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 13.5px;
    flex: 1;
    min-width: 300px;
}

.text-center { text-align: center; }

@media print {
    .public-header, .public-footer, .results-page__back, .results-footer button { display: none !important; }
    .results-page { background: white; padding: 0; }
}

.alert--ok {
    background: #d1fae5;
    border-left: 3px solid #059669;
    color: #065f46;
}

/* ============================================================
   LISTE ADMIN DES PUBLICATIONS — vue en cartes intuitive
   ============================================================ */
.pub-admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}
.pub-admin-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s;
}
.pub-admin-tab:hover { color: #0a2540; }
.pub-admin-tab.is-active {
    color: #0a2540;
    border-bottom-color: #06b6d4;
}
.pub-admin-tab__count {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Barre de filtres */
.pub-admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.pub-admin-filters .form__select { width: auto; min-width: 170px; }
.pub-admin-filters .form__input { flex: 1; min-width: 200px; }

/* Grille de cartes */
.pub-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
}

.pub-admin-card {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.06);
    transition: box-shadow 0.18s, transform 0.18s;
}
.pub-admin-card:hover {
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.10);
    transform: translateY(-2px);
}
.pub-admin-card--archived { opacity: 0.85; background: #fafafa; }
.pub-admin-card__bar {
    width: 6px;
    flex-shrink: 0;
    background: var(--cat-color, #0a2540);
}
.pub-admin-card__content {
    flex: 1;
    padding: 16px 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pub-admin-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.pub-admin-card__cat {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--cat-color, #0a2540);
    background: color-mix(in srgb, var(--cat-color, #0a2540) 10%, white);
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.pub-status {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.pub-status--online   { background: #d1fae5; color: #065f46; }
.pub-status--draft    { background: #f3f4f6; color: #4b5563; }
.pub-status--archived { background: #fee2e2; color: #991b1b; }

.pub-admin-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
}
.pub-admin-card__excerpt {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}
.pub-admin-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 12px;
    margin-top: auto;
}
.pub-admin-card__hint {
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pub-admin-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.pub-admin-card__actions form { display: inline; margin: 0; }
.pub-admin-card__delete { color: #b91c1c; }
.pub-admin-card__delete:hover { background: #fee2e2; }

/* Vide */
.pub-admin-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
}
.pub-admin-empty__icon { font-size: 3rem; margin-bottom: 8px; }
.pub-admin-empty h3 { margin: 0 0 6px; color: #111827; }
.pub-admin-empty p { color: #6b7280; margin: 0; max-width: 440px; margin: 0 auto; }

@media (max-width: 640px) {
    .pub-admin-grid { grid-template-columns: 1fr; }
    .pub-admin-filters .form__select,
    .pub-admin-filters .form__input { width: 100%; flex: 1 1 100%; }
}

/* ============================================================
   PAGE PUBLIQUE « ACTUALITÉS & ANNONCES » — design magazine
   Classes .news-* autonomes (n'affectent ni la home ni les
   articles liés qui utilisent .pub-card).
   ============================================================ */
.news {
    padding: 56px 0 80px;
    min-height: 60vh;
    background: #f4f6fa;
}
.news__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}
.news__title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #0a2540;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.news__title span { color: #f0a41e; }
.news__subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ---- Filtres ---- */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}
.news-filter__tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.news-filter__tab:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.07);
}
.news-filter__tab.is-active {
    background: var(--tab-color, #0a2540);
    border-color: var(--tab-color, #0a2540);
    color: #fff;
}
.news-filter__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.news-filter__tab.is-active .news-filter__dot { background: rgba(255,255,255,0.9) !important; }

/* ---- Grille ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ---- Carte ---- */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8edf3;
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(10, 37, 64, 0.14);
    border-color: #dbe3ec;
}

/* Média (image ou dégradé + icône) */
.news-card__media {
    position: relative;
    height: 168px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--cat-color, #0a2540);
    overflow: hidden;
}
.news-card__media--placeholder {
    background-image: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(0,0,0,0.28));
}
.news-card__icon {
    position: absolute;
    right: 10px;
    bottom: -6px;
    font-size: 5.5rem;
    line-height: 1;
    opacity: 0.28;
    filter: grayscale(0.2);
    pointer-events: none;
}
.news-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.news-card__pin {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #111827;
    color: #fde68a;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
}

/* Corps */
.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px 18px 20px;
    flex: 1;
}
.news-card__date {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
}
.news-card__heading {
    font-size: 17.5px;
    font-weight: 700;
    color: #0f2540;
    line-height: 1.32;
    margin: 0;
}
.news-card__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--cat-color, #0a2540);
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-card__more span { transition: transform 0.2s ease; }
.news-card:hover .news-card__more span { transform: translateX(4px); }

/* ---- Carte « à la une » (première) : pleine largeur, horizontale ---- */
@media (min-width: 760px) {
    .news-card--featured {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    .news-card--featured .news-card__media {
        width: 44%;
        height: auto;
        min-height: 260px;
    }
    .news-card--featured .news-card__icon { font-size: 8rem; }
    .news-card--featured .news-card__body {
        width: 56%;
        justify-content: center;
        padding: 32px 34px;
    }
    .news-card--featured .news-card__heading { font-size: 24px; }
    .news-card--featured .news-card__excerpt {
        -webkit-line-clamp: 4;
        font-size: 15px;
    }
}

/* ---- Vide ---- */
.news-empty {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    max-width: 520px;
    margin: 0 auto;
}
.news-empty__icon { font-size: 3.4rem; margin-bottom: 10px; }
.news-empty h3 { margin: 0 0 6px; color: #0f2540; }
.news-empty p { color: #64748b; margin: 0; }

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .news { padding: 36px 0 56px; }
}
