/* ============================================================
   ACTU FORTE — Section mise en avant (3 colonnes)
   ============================================================ */

.actu-forte {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px 32px;
    background: #ffffff;
    border-bottom: 1px solid #dcdee8;
    max-width: 1228px;
    margin: 0 auto;
}

@media (min-width: 880px) {
    .actu-forte {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "left center-1"
            "left center-2";
        gap: 15px;
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .actu-forte {
        grid-template-columns: 240px minmax(0, 1fr) 250px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "left center-1 right"
            "left center-2 right";
        padding: 32px 0 40px;
    }
}

/* ---- Colonnes ---- */

.af-col {
    display: flex;
    flex-direction: column;
}

.af-col--center {
    gap: 8px;
    order: -1;
}

@media (min-width: 880px) {
    .af-col--center {
        display: contents;
        order: unset;
    }

    .af-col--center .af-overlay:nth-child(1) {
        grid-area: center-1;
        min-width: 0;
        overflow: hidden;
    }

    .af-col--center .af-overlay:nth-child(2) {
        grid-area: center-2;
        min-width: 0;
        overflow: hidden;
    }

    .af-col--center .af-overlay__link {
        height: 100%;
    }

    .af-col--center .af-overlay__feat {
        height: 100%;
    }
}

.af-col--left {
    gap: 20px;
}

@media (min-width: 880px) {
    .af-col--left {
        grid-area: left;
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 1 / -1;
        gap: 15px;
    }

    .af-col--left .af-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .af-col--left .af-card__feat {
        aspect-ratio: 3 / 2;
        flex: 0 0 auto;
    }

    .af-col--left .af-card__excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .af-col--left .af-card__meta {
        margin-top: auto;
    }
}

.af-col--right {
    display: none;
}

.af-edition-mobile {
    display: block;
    order: -2;
}

@media (min-width: 1024px) {
    .af-col--right {
        display: flex;
        flex-direction: column;
        grid-area: right;
    }

    .af-edition-mobile {
        display: none;
    }
}

/* ============================================================
   AF-OVERLAY — Cartes overlay (colonne centrale)
   ============================================================ */

.af-overlay__link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 8px;
}

.af-overlay__link:hover .af-overlay__title,
.af-overlay__link:focus-visible .af-overlay__title {
    text-decoration: underline;
    text-underline-position: under;
}

.af-overlay__feat {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.af-overlay__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.af-overlay__link:hover .af-overlay__img {
    transform: scale(1.03);
}

.af-overlay__img--placeholder {
    background: #e2e4ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-overlay__img--placeholder svg {
    width: 48px;
    height: 48px;
    color: #a0a4b8;
}

.af-overlay__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 70%, transparent 100%);
}

@media (min-width: 880px) {
    .af-overlay__content {
        padding: 20px 24px;
    }
}

.af-overlay__categories {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.af-overlay__cat {
    display: inline-block;
    background: var(--g-color, #ba1d41);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.af-overlay__title {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 130%;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

@media (min-width: 880px) {
    .af-overlay__title {
        font-size: 2.2rem;
    }
}

@media (min-width: 1200px) {
    .af-overlay__title {
        font-size: 2.4rem;
    }
}

.af-overlay__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: rgba(255,255,255,.8);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1;
}

.af-overlay__meta svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ============================================================
   AF-CARD — Petites cartes grille (colonne gauche)
   ============================================================ */

.af-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.af-card__feat {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: 10px;
}

.af-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.af-card__link:hover .af-card__img {
    transform: scale(1.03);
}

.af-card__img--placeholder {
    background: #e2e4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.af-card__img--placeholder svg {
    width: 32px;
    height: 32px;
    color: #a0a4b8;
}

.af-card__categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.af-card__cat {
    display: inline-block;
    background: var(--g-color, #ba1d41);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.af-card__cat:hover {
    background: #8e1531;
    text-decoration: none;
}

.af-card__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 135%;
    color: #202020;
    margin: 0 0 6px;
}

@media (min-width: 1200px) {
    .af-card__title {
        font-size: 1.6rem;
    }
}

.af-card__title a {
    color: inherit;
    text-decoration: none;
}

.af-card__title a:hover,
.af-card__title a:focus-visible {
    text-decoration: underline;
    text-underline-position: under;
}

.af-card__excerpt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    line-height: 150%;
    color: #555;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8b8fa0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    line-height: 1;
}

.af-card__meta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #a0a4b8;
}

/* ---- Mobile : af-card en style overlay (identique aux af-overlay) ---- */
@media (max-width: 879px) {
    .af-col--left .af-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        aspect-ratio: 16 / 9;
        padding: 16px 20px;
    }

    .af-col--left .af-card__link {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .af-col--left .af-card__feat {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        margin: 0;
        border-radius: 0;
    }

    .af-col--left .af-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 70%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }

    .af-col--left .af-card__categories,
    .af-col--left .af-card__title,
    .af-col--left .af-card__meta {
        position: relative;
        z-index: 2;
    }

    .af-col--left .af-card__excerpt {
        display: none;
    }

    .af-col--left .af-card__categories {
        margin-bottom: 8px;
    }

    .af-col--left .af-card__cat {
        pointer-events: none;
    }

    .af-col--left .af-card__title {
        color: #fff;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 130%;
        text-shadow: 0 1px 4px rgba(0,0,0,.3);
        margin: 0 0 8px;
    }

    .af-col--left .af-card__title a {
        color: #fff;
    }

    .af-col--left .af-card__meta {
        color: rgba(255,255,255,.8);
    }

    .af-col--left .af-card__meta svg {
        color: rgba(255,255,255,.8);
    }
}

/* ============================================================
   AF-EDITION — Bloc couverture édition numérique
   ============================================================ */

.af-edition {
    display: flex;
    flex-direction: column;
    background: #f0f1f5;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
}

.af-edition--mobile {
    margin-bottom: 0;
}

.af-edition__header {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #202020;
    padding: 14px 16px 0;
}

.af-edition__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 16px 16px;
    gap: 12px;
}

.af-edition__img-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: zoom-in;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.af-edition__zoom-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
    border-radius: 6px;
}

.af-edition__img-btn:hover .af-edition__zoom-hint {
    opacity: 1;
    background: rgba(0,0,0,.35);
}

.af-edition__img-btn:hover .af-edition__cover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.af-edition__cover {
    width: 100%;
    max-width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease;
    display: block;
}

.af-edition__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ba1d41;
    text-decoration: none;
    transition: gap .2s ease;
}

.af-edition__cta:hover {
    gap: 10px;
}

.af-edition__cta svg {
    flex-shrink: 0;
}

.af-edition__meta {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #626772;
    text-align: center;
}

/* Edition dans la grille d'actualités */
.af-edition--grid {
    margin-bottom: 0;
    height: auto;
    justify-content: flex-start;
}

.af-edition--grid .af-edition__img-btn,
.af-edition--grid .af-edition__meta {
    width: 218px;
    max-width: 100%;
}

.af-edition--grid .af-edition__cover {
    width: 100%;
    max-width: 100%;
}

/* Les plus lus dans la grille d'actualités */
.af-trend--grid {
    margin-bottom: 0;
}

.af-trend--grid .af-trend__item-wrap {
    border-bottom: 1px solid #e2e4ed;
}

.af-trend--grid .af-trend__item-wrap:last-child {
    border-bottom: none;
}

/* ============================================================
   AF-TREND — Colonne droite : tendances (style Google News)
   ============================================================ */

.af-trend {
    display: flex;
    flex-direction: column;
    background: #f0f1f5;
    border-radius: 12px;
    padding: 0;
}

.af-trend__header {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #202020;
    padding: 14px 16px 0;
}

.af-trend__empty {
    padding: 24px 16px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* ---- Item ---- */

.af-trend__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e2e4ee;
    transition: background .15s ease;
}

.af-trend__item-wrap:last-child .af-trend__item {
    border-bottom: none;
}

.af-trend__item:hover {
    background: rgba(0,0,0,.03);
}

.af-trend__item:hover .af-trend__title {
    text-decoration: underline;
    text-underline-position: under;
}

/* ---- Content (left side) ---- */

.af-trend__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-trend__source {
    display: inline-block;
    background: var(--g-color, #ba1d41);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    align-self: flex-start;
}

.af-trend__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 140%;
    color: #202020;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-trend__time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    color: #a0a4b8;
    line-height: 1;
}

/* ---- Thumbnail (right side) ---- */

.af-trend__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

.af-trend__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Item wrapper (for preview positioning) ---- */

.af-trend__item-wrap {
    position: relative;
}

/* ---- Preview popover ---- */

.af-trend__preview {
    display: none;
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
    z-index: 100;
    pointer-events: none;
    border: 1px solid #e2e4ee;
}

.af-trend__preview::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #e2e4ee;
    border-top: 1px solid #e2e4ee;
    z-index: 1;
}

.af-trend__item-wrap:hover .af-trend__preview {
    display: block;
    animation: af-preview-in .2s ease both;
}

@keyframes af-preview-in {
    from { opacity: 0; transform: translateY(-50%) translateX(6px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.af-trend__preview-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.af-trend__preview-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-trend__preview-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-trend__preview-cat {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--g-color, #ba1d41);
    letter-spacing: 0.03em;
    line-height: 1;
}

.af-trend__preview-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 140%;
    color: #202020;
    margin: 0;
}

.af-trend__preview-excerpt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 150%;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-trend__preview-time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    color: #a0a4b8;
    line-height: 1;
}

/* ============================================================
   AF-EVENTS — Bloc agenda compact (homepage sidebar)
   ============================================================ */

.af-events {
    margin-top: 14px;
    background: #f0f1f5;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.af-events__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.af-events__header {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #202020;
}

.af-events__all {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--g-color, #ba1d41);
    text-decoration: none;
    white-space: nowrap;
}

.af-events__all:hover {
    text-decoration: underline;
}

.af-events__item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    border: 1px solid #e4e6ef;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.af-events__item-wrap {
    position: relative;
}

.af-events__item:hover {
    border-color: rgba(186, 29, 65, 0.35);
    box-shadow: 0 6px 16px rgba(186, 29, 65, 0.12);
    transform: translateY(-1px);
}

.af-events__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(145deg, #ba1d41 0%, #8e1231 100%);
    color: #fff;
    min-height: 50px;
}

.af-events__date-day {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.af-events__date-month {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.92;
}

.af-events__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.af-events__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #21242c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-events__meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.02rem;
    color: #6d7282;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-events__empty {
    margin: 4px 0 2px;
    font-size: 1.06rem;
    color: #7b8192;
    font-style: italic;
}

.af-events__preview {
    display: none;
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e4ee;
    box-shadow: 0 10px 34px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
    pointer-events: none;
    z-index: 120;
}

.af-events__preview::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #e2e4ee;
    border-top: 1px solid #e2e4ee;
}

.af-events__item-wrap:hover .af-events__preview {
    display: block;
    animation: af-events-preview-in .22s ease both;
}

@keyframes af-events-preview-in {
    from { opacity: 0; transform: translateY(-50%) translateX(6px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.af-events__preview-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.af-events__preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.af-events__preview-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.af-events__preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.af-events__preview-type,
.af-events__preview-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
}

.af-events__preview-type {
    color: #fff;
    background: var(--g-color, #ba1d41);
}

.af-events__preview-price {
    color: #4b5563;
    background: #eceff5;
}

.af-events__preview-title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    color: #202020;
}

.af-events__preview-facts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.08rem;
    color: #5f6573;
}

.af-events__preview-facts span {
    display: block;
    line-height: 1.35;
}

.af-events__preview-excerpt {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.12rem;
    line-height: 1.5;
    color: #4d5463;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-events__preview-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--g-color, #ba1d41);
}

@media (max-width: 1180px) {
    .af-events__preview {
        display: none !important;
    }
}

/* ============================================================
   IMG STAMP WRAPPER — Position des badges sur images
   ============================================================ */

.img-stamp-wrapper {
    position: relative;
}

.img-stamp-wrapper .badge {
    left: 8px;
    position: absolute;
    top: 8px;
}

/* ============================================================
   BADGE
   ============================================================ */

.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    background-color: #323232;
    border-radius: 4px;
    color: #f8f8f8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 125%;
    padding: 3.5px 8px;
    text-transform: lowercase;
}

.badge--small  { font-size: 1.2rem; padding: 2.5px 8px; }
.badge--medium { font-size: 1.4rem; padding: 3.5px 8px; }

/* ============================================================
   HOME HERO — Maquette type screenshot
   ============================================================ */

.home-hero {
    max-width: 1228px;
    margin: 0 auto;
    padding: 22px 16px 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 1024px) {
    .home-hero {
        padding: 24px 0 12px;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 10px;
        align-items: stretch;
    }

    .home-hero__main {
        align-self: stretch;
    }

    .home-hero__main-link {
        display: block;
        height: 100%;
    }

    .home-hero__main-media {
        height: 100%;
        aspect-ratio: auto;
    }
}

.home-hero__main {
    position: relative;
    border: 1px solid #5f646c;
    border-radius: 8px;
    overflow: hidden;
    background: #1d1f23;
}

.home-hero__main-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-hero__main-media {
    width: 100%;
    aspect-ratio: 16 / 8.8;
    overflow: hidden;
}

.home-hero__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-hero__main-img--placeholder {
    background: #d9dce6;
}

.home-hero__main-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .46) 62%, transparent);
}

@media (min-width: 1024px) {
    .home-hero__main-content {
        padding: 22px;
    }
}

.home-hero__badge {
    display: inline-block;
    margin-bottom: 10px;
    background: #ba1d41;
    color: #fff;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 3px;
    padding: 2px 7px;
}

.home-hero__main-title {
    margin: 0;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.12;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

@media (min-width: 1024px) {
    .home-hero__main-title {
        font-size: 4rem;
    }
}

.home-hero__main-excerpt {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .94);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
    line-height: 1.4;
    max-width: 85%;
}

@media (max-width: 1023px) {
    .home-hero__main-excerpt {
        font-size: 1.15rem;
        max-width: 100%;
    }
}

.home-hero__main-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .85);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
}

@media (max-width: 1023px) {
    .home-hero__main-meta {
        font-size: 1.15rem;
    }
}

.home-hero__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .65);
    object-fit: cover;
}

.home-hero__main > .bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.home-hero__side {
    border: 1px solid #e2e4ed;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .home-hero__side {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

.home-hero__side-item {
    position: relative;
    border-bottom: 1px solid #e6e8ef;
}

.home-hero__side-item:last-child {
    border-bottom: none;
}

.home-hero__side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.home-hero__side-head > .bookmark-btn {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: auto;
}

.home-hero__side-head > .bookmark-btn svg {
    width: 12px;
    height: 12px;
}

.home-hero__side-head > .bookmark-btn:hover {
    transform: none;
}

@media (min-width: 1024px) {
    .home-hero__side-item {
        flex: 1 1 0;
    }
}

.home-hero__side-link {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 11px;
    padding: 9px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}

@media (min-width: 1024px) {
    .home-hero__side-link {
        height: 100%;
    }
}

.home-hero__side-link:hover {
    background: #f8f9fc;
}

.home-hero__side-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero__side-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.home-hero__side-thumb > .bookmark-btn {
    position: absolute;
    top: 8px;
    left: calc(100% + 8px);
    z-index: 3;
    width: 24px;
    height: 24px;
}

.home-hero__side-thumb > .bookmark-btn svg {
    width: 12px;
    height: 12px;
}

.home-hero__side-thumb > .bookmark-btn:hover {
    transform: none;
}

.home-hero__side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.home-hero__side-img--placeholder {
    background: #d9dce6;
    border-radius: 6px;
}

.home-hero__side-cat {
    display: block;
    margin-bottom: 5px;
    color: #ba1d41;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
}

.home-hero__side-title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.22;
    color: #1f2328;
    display: block;
    overflow: visible;
}

.home-hero__side-link:hover .home-hero__side-title {
    text-decoration: underline;
    text-underline-position: under;
}

@media (max-width: 1023px) {
    .home-hero__side-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .home-hero__side-cat {
        font-size: 1rem;
    }
}

.home-hero__side-time {
    display: block;
    margin-top: 7px;
    color: #767c87;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
}

.home-hero__side-categories {
    margin-bottom: 4px;
}

.home-hero__side-categories .card-grid__cat {
    font-size: .85rem;
}

.badge--dark { background-color: #fafbff; color: #202020; }
.badge--live { background-color: #e61e00; color: #fff; }

.badge__prefix {
    color: #ffc300;
    margin-right: 2px;
}

.badge--live .badge__prefix { color: #fff; }

/* ============================================================
   AF-COVER LIGHTBOX
   ============================================================ */

.af-cover-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.af-cover-lb.is-open {
    display: flex;
}

.af-cover-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.af-cover-lb__box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px;
    max-width: min(90vw, 520px);
    animation: af-lb-in .2s ease;
}

@keyframes af-lb-in {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.af-cover-lb__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    transition: background .15s;
    color: #333;
    padding: 0;
}

.af-cover-lb__close:hover {
    background: #f0f0f0;
}

.af-cover-lb__img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0,0,0,.55);
    object-fit: contain;
}

.af-cover-lb__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ba1d41;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 8px;
    transition: background .15s, gap .15s;
}

.af-cover-lb__cta:hover {
    background: #9a1535;
    gap: 12px;
}
