/* ==========================================================================
   Actualités — liste filtrable et article — version « choc »
   --------------------------------------------------------------------------
   A. Liste : ouverture bleue, article de tête en grande tuile bleue,
      articles suivants en tuiles, colonne de filtres en pastilles
   B. Article : ouverture bleue, marge collante en tuile, corps, « À lire aussi »
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Liste
   -------------------------------------------------------------------------- */

.news-head .eyebrow,
.article-head .eyebrow {
    margin-bottom: clamp(1rem, 0.75rem + 1vw, 1.75rem);
    color: var(--white);
}

/* « 03 articles · dernière publication le … » : pastille au contour */
.news-head__stamp {
    padding: 0.4rem 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--pill);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.news-head .page-head__title {
    padding-bottom: 0.06em;
}

/* Colonne d'articles + colonne de filtres */
.news {
    display: grid;
    gap: clamp(2.5rem, 2rem + 3vw, 4rem);
    padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section);
}

.news__main {
    display: grid;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
    align-content: start;
    min-width: 0;
}

@media (min-width: 1000px) {
    .news {
        grid-template-columns: minmax(0, 8.4fr) minmax(0, 3.6fr);
        gap: clamp(1.5rem, 3vw, 3rem);
        align-items: start;
    }

    .news__rail {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

/* Rappel du filtre actif */
.news-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 0.6rem 0.6rem 0.6rem 1.25rem;
    border-radius: var(--pill);
    background: var(--yellow);
    font-weight: 600;
    color: var(--ink);
}

.news-status .mark {
    background: none;
    font-weight: 800;
}

.news-status .link-arrow {
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--white);
}

/* Zone tactile élargie sans modifier le dessin du lien ou de l'étiquette */
.news .tag,
.article .tag,
.article-more .tag {
    position: relative;
}

.news .tag::after,
.article .tag::after,
.article-more .tag::after {
    content: "";
    position: absolute;
    inset: -0.3rem -0.15rem;
}

/* Libellés : pastilles pleines */
.news .tag,
.article .tag,
.article-more .tag {
    border: 0;
    background: var(--paper-2);
    font-family: var(--font-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.news a.tag:hover,
.news a.tag:focus-visible,
.news .tag.is-active,
.article a.tag:hover,
.article a.tag:focus-visible,
.article-more a.tag:hover,
.article-more a.tag:focus-visible {
    background: var(--ink);
    color: var(--white);
}

/* Article de tête : grande tuile bleue, visuel arrondi ----------------------- */
.news-lead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
    border-radius: var(--tile-radius);
    background: var(--brand);
    color: var(--white);
}

.news-lead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3rem),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3rem);
}

.news-lead__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.news-lead__kicker span,
.news-lead__kicker time {
    padding: 0.35rem 0.8rem;
    border-radius: var(--pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-lead__kicker span {
    background: var(--yellow);
    color: var(--ink);
}

.news-lead__kicker time {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.news-lead__figure {
    margin: 0;
}

.news-lead__figure .figure__cap {
    display: none;
}

.news-lead__media {
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--tile-radius) - 0.5rem);
    background: rgba(255, 255, 255, 0.12);
}

/* Visuel de petite taille : montré tel quel, sans agrandissement, sur une plaque blanche */
.news-lead__frame {
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: calc(var(--tile-radius) - 0.5rem);
    background: var(--white);
}

.news-lead__frame.crop-marks::before,
.news-lead__frame.crop-marks::after {
    display: none;
}

.news-lead__frame img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.news-lead__body {
    display: grid;
    gap: 1.1rem;
    align-content: start;
}

.news-lead__title {
    font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.news-lead__title a,
.news-row__title a {
    color: inherit;
    text-decoration: none;
}

.news-lead__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
}

.news-lead__title span {
    background: linear-gradient(var(--yellow), var(--yellow)) left 92% / 0% 0.12em no-repeat;
    transition: background-size 0.6s var(--ease);
}

.news-lead:hover .news-lead__title span,
.news-lead:focus-within .news-lead__title span {
    background-size: 100% 0.12em;
}

.news-lead__text {
    max-width: 36em;
    font-size: var(--step-0);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.news-lead__foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 0.4rem;
}

/* Sur l'aplat bleu : capsule blanche, pastille bleue ; libellés translucides */
.news-lead .btn:not(.btn--ghost):not(.btn--yellow) {
    --btn-bg: var(--white);
    --btn-fg: var(--ink);
    --btn-badge-bg: var(--brand);
    --btn-badge-fg: var(--white);
    --btn-shadow: 0 16px 30px -18px rgba(6, 24, 42, 0.8);
}

.news-lead .tag {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.news-lead a.tag:hover,
.news-lead a.tag:focus-visible {
    background: var(--yellow);
    color: var(--ink);
}

.news-lead a:focus-visible {
    outline-color: var(--yellow);
}

@media (min-width: 760px) {
    .news-lead--plate,
    .news-lead--vignette {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-areas:
            "kicker kicker"
            "figure body";
        column-gap: clamp(1.5rem, 3vw, 2.5rem);
        align-items: start;
    }

    .news-lead--vignette {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    }

    .news-lead--plate .news-lead__kicker,
    .news-lead--vignette .news-lead__kicker {
        grid-area: kicker;
    }

    .news-lead__figure {
        grid-area: figure;
    }

    .news-lead--plate .news-lead__body,
    .news-lead--vignette .news-lead__body {
        grid-area: body;
    }

    .news-lead--plate .news-lead__media {
        aspect-ratio: 4 / 3.4;
    }
}

/* Articles suivants : tuiles ------------------------------------------------ */
.news-rows {
    display: grid;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

.news-row {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.9rem 1.5rem;
    padding: clamp(1.15rem, 0.9rem + 1.2vw, 1.85rem);
    border-radius: var(--tile-radius);
    background: var(--paper-2);
    transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.section--tint .news-row {
    background: var(--white);
}

.news-row:hover {
    box-shadow: inset 0 0 0 2px var(--brand);
}

.news-row__date {
    justify-self: start;
    margin: 0;
    padding: 0.35rem 0.8rem;
    border-radius: var(--pill);
    background: var(--brand);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-row__main {
    display: grid;
    gap: 0.6rem;
    min-width: 0;
}

.news-row__title {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.news-row__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.news-row__title span {
    background: linear-gradient(var(--yellow), var(--yellow)) left 90% / 0% 0.35em no-repeat;
    transition: background-size 0.6s var(--ease);
}

.news-row:hover .news-row__title span,
.news-row:focus-within .news-row__title span {
    background-size: 100% 0.35em;
}

.news-row__text {
    max-width: 40em;
    color: var(--ink-soft);
}

.news-row__foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-top: 0.35rem;
}

.news-row__thumb {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--tile-radius) - 0.5rem);
    background: var(--white);
}

.news-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.news-row:hover .news-row__thumb img {
    transform: scale(1.06);
}

@media (min-width: 640px) {
    .news-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-row--thumb {
        grid-template-columns: minmax(0, 1fr) clamp(9rem, 6rem + 8vw, 13rem);
        grid-template-areas:
            "date  thumb"
            "main  thumb";
        align-items: start;
    }

    .news-row--thumb .news-row__date { grid-area: date; }
    .news-row--thumb .news-row__main { grid-area: main; }
    .news-row--thumb .news-row__thumb { grid-area: thumb; }
}

/* Filtres : libellés et archive, en tuile bleu nuit ------------------------- */
.news__rail {
    display: grid;
    gap: 0.75rem;
}

.news-rail__block {
    padding: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
    border-radius: var(--tile-radius);
    background: var(--paper-2);
}

.news-rail__title {
    margin-bottom: 0.9rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted);
}

.news-rail__tags .tag,
.news-row .tag {
    background: var(--white);
}

.news-rail__n {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: var(--pill);
    background: var(--paper-2);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ink);
}

.news .tag.is-active .news-rail__n,
.news a.tag:hover .news-rail__n,
.news a.tag:focus-visible .news-rail__n {
    background: var(--yellow);
}

.news-archive {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-archive__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.45rem 0.45rem 1.1rem;
    border-radius: var(--pill);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.news-archive__year {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.news-archive__dots {
    display: none;
}

.news-archive__count {
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--paper-2);
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.news-archive__link:hover,
.news-archive__link:focus-visible,
.news-archive__link.is-active {
    background: var(--ink);
    color: var(--white);
}

.news-archive__link:hover .news-archive__count,
.news-archive__link:focus-visible .news-archive__count,
.news-archive__link.is-active .news-archive__count {
    background: var(--yellow);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   B. Article
   -------------------------------------------------------------------------- */

.article-head {
    padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.article-head__date {
    color: var(--yellow);
}

.article-head__title {
    max-width: 18em;
    font-size: clamp(2.25rem, 1.1rem + 4.4vw, 5.25rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--white);
    padding-bottom: 0.06em;
}

.article-head__lede {
    margin-top: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    max-width: 40em;
    color: rgba(255, 255, 255, 0.92);
}

/* Marge collante (date, libellés, retour) + corps de l'article */
.article__layout {
    display: grid;
    gap: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section);
}

@media (min-width: 1000px) {
    .article__layout {
        grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr);
        gap: clamp(2rem, 4vw, 4.5rem);
        align-items: start;
    }

    .article__side {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.article__side {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.article-meta {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
    border-radius: var(--tile-radius);
    background: var(--paper-2);
}

.article-meta__row {
    display: grid;
    gap: 0.45rem;
}

.article-meta__row dt {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-meta__row dd {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.article-meta .tag {
    background: var(--white);
}

.article__notice {
    padding: 1rem 1.2rem;
    border-radius: calc(var(--tile-radius) - 0.4rem);
    background: var(--yellow);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink);
}

.article__notice strong {
    font-weight: 800;
}

/* Vignette : visuel trop petit pour être agrandi, sur une plaque blanche arrondie */
.article__vignette {
    margin: 0;
}

.article__vignette-frame {
    display: grid;
    place-items: center;
    padding: 0.75rem;
    border-radius: var(--tile-radius);
    background: var(--paper-2);
}

.article__vignette-frame.crop-marks::before,
.article__vignette-frame.crop-marks::after {
    display: none;
}

.article__vignette-frame img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.article__vignette .figure__cap,
.article__figure .figure__cap {
    font-family: var(--font-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.article__back {
    justify-self: start;
    margin-top: 0.5rem;
}

.article__main {
    min-width: 0;
}

.article__figure {
    margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.article__figure .figure__media {
    border-radius: var(--tile-radius);
}

/* Corps : compléments à .prose pour les annonces d'événements --------------- */
.article__body {
    max-width: 44em;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Intitulé de session d'un programme */
.article__body h3 {
    margin-top: 2.2em;
    padding-top: 1.1em;
    border-top: 2px solid var(--line-soft);
    font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
    font-weight: 800;
}

/* Ligne d'horaire : « 12:00 (heure algérienne) 13 h 00 CEST… » */
.article__body .article__slot {
    margin-top: 0.7em;
    padding: 0.5rem 1rem;
    border-radius: 0.9rem;
    background: var(--paper-2);
    font-size: var(--step--1);
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink-soft);
}

.article__body .article__slot strong {
    font-weight: 800;
    color: var(--ink);
}

.article__body .ql-align-center {
    text-align: left;
}

/* Fin de l'article : un simple point jaune */
.article__end {
    max-width: 44em;
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.article__end .ruler {
    display: block;
    width: 3rem;
    height: 0.5rem;
    border-radius: var(--pill);
    background: var(--yellow);
}

/* À lire aussi -------------------------------------------------------------- */
.article-more__head {
    display: grid;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.article-more__title {
    font-size: clamp(2.25rem, 1.3rem + 4.2vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.article-more__title em {
    color: var(--blue);
}

@media (min-width: 900px) {
    .article-more__head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .article-more__head .eyebrow {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .article-more .news-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-more .news-row--thumb {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "thumb"
            "date"
            "main";
    }
}
