/* ============================================================
   Display News - vignettes airshow + rail de displays
   ============================================================ */

#displaynews-page {
    --dn-red: #C12133;
    --dn-dark: #001A30;
    --dn-muted: #5a6470;
    --dn-radius: 14px;
    --dn-radius-sm: 10px;
    color: #1a1f25;
}

/* ---------- Header + légende ---------- */
.displaynews-section {
    padding: 2.5rem 0 4rem;
}
.displaynews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.displaynews-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dn-red);
    padding: 0.35rem 0.8rem;
    background: rgba(193, 33, 51, 0.08);
    border-radius: 100px;
}
.displaynews-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--dn-muted);
    flex-wrap: wrap;
}
.displaynews-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* ---------- Titre du jour d'update ---------- */
.displaynews-daytitle {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dn-dark);
    border-left: 4px solid var(--dn-red);
    padding: 0.35rem 0 0.35rem 0.8rem;
    margin: 2.2rem 0 1rem;
}
.displaynews-daytitle a {
    color: inherit;
    text-decoration: none;
}
.displaynews-daytitle a:hover {
    color: var(--dn-red);
}
.displaynews-daytitle i {
    margin-right: 0.4rem;
    color: var(--dn-red);
}

/* ---------- Groupe de cartes airshow ---------- */
.displaynews-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* ---------- Carte airshow ---------- */
.displaynews-card {
    border-radius: var(--dn-radius);
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    background: #00162B;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.displaynews-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

/* Bandeau haut = lien vers l'airshow */
.displaynews-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    min-height: 96px;
    position: relative;
}
.displaynews-card-head:hover {
    color: #fff;
}

.displaynews-date {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dn-red);
    border-radius: var(--dn-radius-sm);
    padding: 0.45rem 0.8rem;
    text-align: center;
    min-width: 62px;
    flex-shrink: 0;
}
.displaynews-date .d {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.displaynews-date .m {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.displaynews-airshow-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
    min-width: 0;
}
.displaynews-airshow-info strong {
    font-size: 1.1rem;
    text-transform: capitalize;
    line-height: 1.25;
}
.displaynews-airshow-meta {
    font-size: 0.82rem;
    opacity: 0.88;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.25rem;
}
.displaynews-airshow-meta i {
    margin-right: 0.35rem;
    opacity: 0.75;
}

/* Badge NEW */
.displaynews-badge-new {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--dn-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(193, 33, 51, 0.4);
    white-space: nowrap;
}
.displaynews-badge-new .count {
    background: rgba(255, 255, 255, 0.22);
    padding: 0.05rem 0.45rem;
    border-radius: 100px;
    font-size: 0.75rem;
}

/* ---------- Rail des displays (wrap, pas de scroll) ---------- */
.displaynews-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.3rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.displaynews-tile {
    flex: 0 0 calc((100% - 3 * 0.75rem) / 4);
    aspect-ratio: 4 / 3;
    border-radius: var(--dn-radius-sm);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #1a232b;
    text-decoration: none;
    color: #fff;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.displaynews-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.displaynews-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.6rem 0.7rem;
}
.displaynews-tile-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.displaynews-tile-sub {
    font-size: 0.72rem;
    opacity: 0.8;
    font-family: monospace;
    margin-top: 0.15rem;
}

.displaynews-tile-roles {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.3rem;
}
.displaynews-tile-roles .aircraft-role {
    height: 1.6rem;
    width: 1.6rem;
    font-size: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .displaynews-tile {
        flex: 0 0 calc((100% - 2 * 0.75rem) / 3);
    }
}
@media (max-width: 767px) {
    .displaynews-tile {
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }
    .displaynews-card-head {
        flex-wrap: wrap;
    }
    .displaynews-airshow-info {
        flex-basis: calc(100% - 62px - 1rem);
    }
    .displaynews-badge-new {
        margin-left: calc(62px + 1rem);
    }
}
@media (max-width: 480px) {
    .displaynews-tile {
        flex: 0 0 100%;
        aspect-ratio: 16 / 9;
    }
}
