﻿.actualites-page {
    background:
        radial-gradient(1200px 460px at 0% 0%, rgba(18, 45, 89, 0.12), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #edf3fc 100%);
    color: #132849;
}

.news-shell {
    width: min(1160px, 94%);
    margin: 24px auto 40px;
}

.news-head {
    position: relative;
    border: 1px solid #c7daf4;
    border-radius: 22px;
    overflow: hidden;
    min-height: 320px;
    background: linear-gradient(140deg, #0f2340 0%, #18345e 58%, #102746 100%);
    box-shadow: 0 22px 40px rgba(7, 20, 39, 0.2);
}

.news-head__visual {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(10, 24, 47, 0.84) 0%, rgba(10, 24, 47, 0.48) 42%, rgba(10, 24, 47, 0.78) 100%),
        url('../photos/logos/New logo amicale SP.webp') center 38% / cover no-repeat;
}

.news-head__overlay {
    position: relative;
    z-index: 1;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 34px 34px 30px;
}

.news-head__content {
    display: block;
    width: min(760px, 100%);
}

.news-head__intro {
    max-width: 680px;
}

.news-kicker {
    display: inline-block;
    margin: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(235, 244, 255, 0.14);
    color: #e6f2ff;
    border: 1px solid rgba(214, 232, 255, 0.28);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.news-head h1 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    color: #f2f8ff;
    letter-spacing: -0.03em;
    max-width: 15ch;
    text-wrap: balance;
}

.news-lead {
    margin: 0;
    color: #d7e5fa;
    font-size: 1rem;
    line-height: 1.76;
    max-width: 60ch;
}

.news-head__stats {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-head__pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(197, 223, 255, 0.24);
    background: rgba(132, 178, 235, 0.12);
    color: #e7f3ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.actualites-page .news-head--editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    min-height: 420px;
    border-radius: 30px;
    border: 1px solid rgba(193, 211, 236, 0.9);
    background:
        radial-gradient(340px 180px at 100% 0%, rgba(58, 126, 217, 0.12), transparent 72%),
        linear-gradient(135deg, #f7fbff 0%, #edf4ff 100%);
    box-shadow:
        0 24px 50px rgba(14, 33, 63, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.actualites-page .news-head--editorial .news-head__visual {
    position: relative;
    inset: auto;
    min-height: 420px;
    background:
        linear-gradient(90deg, rgba(8, 18, 35, 0.16) 0%, rgba(8, 18, 35, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 18, 35, 0.08) 0%, rgba(7, 18, 35, 0.52) 100%),
        url('../photos/logos/New logo amicale SP.webp') center 38% / cover no-repeat;
}

.actualites-page .news-head--editorial .news-head__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 54%, rgba(7, 18, 35, 0.42) 100%),
        radial-gradient(260px 120px at 18% 18%, rgba(255, 255, 255, 0.14), transparent 72%);
}

.actualites-page .news-head__editorial-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 34px 34px 34px 28px;
}

.actualites-page .news-head__editorial-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 1px;
    background: linear-gradient(180deg, rgba(44, 91, 154, 0), rgba(44, 91, 154, 0.22) 18%, rgba(44, 91, 154, 0.22) 82%, rgba(44, 91, 154, 0));
}

.actualites-page .news-head--editorial .news-kicker {
    width: fit-content;
    padding: 7px 12px;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    color: #234879;
    border: 1px solid rgba(179, 201, 232, 0.74);
    box-shadow: 0 10px 18px rgba(20, 49, 91, 0.06);
}

.actualites-page .news-head--editorial h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.2rem, 3.8vw, 3.3rem);
    line-height: 0.98;
    color: #102d52;
    letter-spacing: -0.045em;
}

.actualites-page .news-head--editorial .news-lead {
    max-width: 44ch;
    color: #526d8d;
    font-size: 0.98rem;
    line-height: 1.8;
}

.actualites-page .news-head__editorial-meta {
    display: grid;
    gap: 10px;
}

.actualites-page .news-head__editorial-meta article {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(204, 218, 239, 0.9);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.92));
    box-shadow: 0 12px 24px rgba(17, 42, 78, 0.05);
}

.actualites-page .news-head__editorial-meta strong {
    color: #163a66;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.actualites-page .news-head__editorial-meta span {
    color: #5c7694;
    font-size: 0.84rem;
    line-height: 1.55;
}

.actualites-page .news-head--editorial .news-head__stats {
    margin-top: 0;
    gap: 8px;
}

.actualites-page .news-head--editorial .news-head__pill {
    background: #ffffff;
    color: #2d568b;
    border-color: rgba(195, 213, 238, 0.88);
    box-shadow: 0 8px 16px rgba(18, 45, 83, 0.05);
}

.news-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.news-card {
    grid-column: span 4;
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    background:
        radial-gradient(320px 150px at 100% -10%, rgba(61, 125, 219, 0.12), transparent 63%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.99) 100%);
    border: 1px solid rgba(210, 223, 242, 0.92);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 22px 42px rgba(12, 30, 58, 0.08),
        0 4px 10px rgba(12, 30, 58, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease, filter 0.34s ease;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #8f2732 0%, #c0453a 34%, #356eb7 72%, #8ebeff 100%);
    opacity: 0.92;
    z-index: 3;
}

.news-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 30%);
    opacity: 0.72;
    pointer-events: none;
    z-index: 0;
}

.news-card--wide {
    grid-column: span 12;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    min-height: 0;
}

.news-card--wide .news-card__body {
    justify-content: center;
    min-height: 0;
    padding: 28px 26px 24px;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: #bed3ef;
    box-shadow:
        0 28px 50px rgba(9, 25, 49, 0.12),
        0 10px 20px rgba(9, 25, 49, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    filter: saturate(1.03) contrast(1.01);
}

.news-card__media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e0ebfb;
    background: linear-gradient(145deg, #dce9ff, #cfe0fa);
}

.news-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(180deg, rgba(7, 18, 36, 0) 0%, rgba(7, 18, 36, 0.12) 34%, rgba(7, 18, 36, 0.54) 100%);
    pointer-events: none;
}

.news-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(220px 100px at 85% 16%, rgba(74, 145, 236, 0.12), transparent 72%);
    z-index: 1;
    pointer-events: none;
}

.news-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.news-card > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.04);
}

.news-card:hover > img {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.04);
}

.news-card__placeholder {
    height: 220px;
    display: grid;
    place-items: center;
    padding: 0 20px;
    text-align: center;
    color: #22456f;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background:
        radial-gradient(200px 100px at 50% 0%, rgba(72, 137, 230, 0.18), transparent 70%),
        linear-gradient(145deg, #e5efff, #d7e6fc);
}

.news-card__accent {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(126, 28, 38, 0.88), rgba(199, 72, 55, 0.9));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 22px rgba(122, 24, 33, 0.22);
}

.news-card__accent::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 244, 222, 0.92);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.news-card--wide .news-card__media img,
.news-card--wide .news-card__placeholder {
    height: 100%;
    min-height: 340px;
}

.news-card--wide > img {
    height: 100%;
    min-height: 340px;
}

.news-card__body {
    position: relative;
    z-index: 1;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.news-card__top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-tag {
    display: inline-block;
    margin-bottom: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 245, 255, 0.9);
    border: 1px solid #d4e1f5;
    color: #355884;
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    width: fit-content;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.news-date {
    color: #68809d;
    font-size: 0.69rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.22;
    color: #102b4b;
    letter-spacing: -0.022em;
    font-weight: 900;
    text-wrap: balance;
}

.news-card--wide h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.12;
}

.news-card p {
    margin: 0;
    color: #526c89;
    line-height: 1.78;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #d2e1f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-card__state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #617891;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.news-card__state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6fcb, #74aef6);
    box-shadow: 0 0 0 4px rgba(58, 126, 217, 0.12);
}

.news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(202, 214, 233, 0.96);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3)),
        linear-gradient(180deg, #ffffff, #f4f8ff);
    color: #173c69;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    gap: 8px;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, gap 0.18s ease;
    width: fit-content;
    box-shadow: 0 10px 18px rgba(17, 42, 78, 0.08);
}

.news-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.01);
    box-shadow: 0 14px 24px rgba(17, 42, 78, 0.12);
    gap: 10px;
    text-decoration: none;
}

.actualites-page #footer {
    margin-top: 0;
}

.actualites-page .footer-bottom {
    width: min(1160px, 94%);
    margin: 0 auto 20px;
    border-top-color: #cfd9ea;
    color: #203a61;
    opacity: 1;
}

@media (max-width: 980px) {
    .news-card {
        grid-column: span 6;
    }

    .news-card--wide {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }

    .news-card--wide .news-card__media img,
    .news-card--wide .news-card__placeholder {
        min-height: 260px;
    }

    .news-card--wide > img {
        min-height: 260px;
    }
}

@media (max-width: 680px) {
    .news-shell {
        margin-top: 14px;
    }

    .news-head {
        min-height: 280px;
    }

    .news-head__overlay {
        min-height: 280px;
        padding: 18px 16px 16px;
    }

    .news-head__stats {
        gap: 6px;
    }

    .actualites-page .news-head--editorial {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .actualites-page .news-head--editorial .news-head__visual {
        min-height: 230px;
    }

    .actualites-page .news-head__editorial-panel {
        padding: 18px 16px 16px;
        gap: 14px;
    }

    .actualites-page .news-head__editorial-panel::before {
        display: none;
    }

    .actualites-page .news-head--editorial h1 {
        max-width: 12ch;
        font-size: clamp(1.9rem, 7.4vw, 2.5rem);
    }

    .actualites-page .news-head__editorial-meta article {
        padding: 12px 13px;
    }

    .news-card {
        grid-column: span 12;
    }

    .news-card__media img,
    .news-card__placeholder {
        height: 210px;
    }

    .news-card > img {
        height: 210px;
    }

    .news-card__body {
        padding: 15px 14px 14px;
        min-height: 0;
    }

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