/* =====================================================
   STYLE GLOBAL DU SITE CNS
   ===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    scroll-behavior: smooth;
}
/* =====================================================

   EN-TÊTE COMMUN DU SITE

   ===================================================== */

.site-header {

    background: #ffffff;

    padding: 18px 7%;

    display: flex;

    align-items: center;

    justify-content: flex-start;

}

/* Lien englobant le logo et le nom du CNS */

.brand-link {

    display: flex;

    align-items: center;

    gap: 15px;

    width: fit-content;

    color: inherit;

    text-decoration: none;

}

/* Suppression du soulignement dans tous les états */

.brand-link:link,

.brand-link:visited,

.brand-link:hover,

.brand-link:active,

.brand-link:focus {

    color: inherit;

    text-decoration: none;

}

/* Logo */

.brand-link img {

    width: 75px;

    height: 75px;

    object-fit: contain;

    flex-shrink: 0;

}

/* Bloc texte */

.brand-link > div {

    display: flex;

    flex-direction: column;

    justify-content: center;

}

/* Sigle CNS */

.brand-link h1 {

    color: #8b1022;

    font-size: 42px;

    line-height: 1;

    margin: 0 0 6px;

}

/* Nom complet */

.brand-link p {

    color: #005b38;

    font-size: 16px;

    font-weight: bold;

    line-height: 1.2;

    margin: 0;

}



/* =====================================================
   ACTUALITÉS DU CNS — DESIGN MODERNE
   Fichier : static/css/actualites.css
   ===================================================== */

:root {
    --news-green: #005b38;
    --news-green-dark: #003f28;
    --news-green-light: #078052;
    --news-burgundy: #8b1022;
    --news-burgundy-light: #c14358;
    --news-ink: #14251d;
    --news-muted: #65716b;
    --news-line: rgba(0, 91, 56, 0.13);
    --news-soft: #f4f8f6;
    --news-cream: #faf8f3;
    --news-white: #ffffff;
    --news-shadow: 0 18px 45px rgba(0, 57, 35, 0.10);
    --news-radius: 22px;
}

.cns-news-page,
.cns-article-page {
    background: var(--news-white);
    color: var(--news-ink);
}

.cns-news-container {
   
     width: min(86%, 1400px);
    margin-inline: auto;
}

.cns-news-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero liste */
.cns-news-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.12), transparent 24%),
        radial-gradient(circle at 8% 92%, rgba(139,16,34,.28), transparent 27%),
        linear-gradient(125deg, var(--news-green-dark), var(--news-green) 55%, var(--news-green-light));
}

.cns-news-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 70px solid rgba(255,255,255,.045);
    border-radius: 50%;
}

.cns-news-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    align-items: center;
    gap: 70px;
    padding-block: 70px;
}

.cns-news-kicker,
.cns-news-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--news-burgundy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cns-news-kicker {
    color: #fff;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}

.cns-news-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.07;
    letter-spacing: -.035em;
}

.cns-news-hero__content > p {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.7;
}

.cns-news-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.cns-news-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.cns-news-btn:hover {
    transform: translateY(-2px);
}

.cns-news-btn--light {
    color: var(--news-green);
    background: #fff;
    box-shadow: 0 12px 26px rgba(0,0,0,.13);
}

.cns-news-btn--outline {
    color: #fff;
    border-color: rgba(255,255,255,.42);
    background: rgba(255,255,255,.07);
}

.cns-news-btn--outline:hover {
    background: rgba(255,255,255,.14);
}

.cns-news-hero__panel {
    min-height: 285px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 28px;
    background: rgba(255,255,255,.10);
    box-shadow: 0 25px 55px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
}

.cns-news-hero__mark {
    position: absolute;
    right: -12px;
    top: -25px;
    color: rgba(255,255,255,.10);
    font-size: 135px;
    font-weight: 900;
    line-height: 1;
}

.cns-news-hero__panel-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cns-news-hero__panel-content span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.cns-news-hero__panel-content strong {
    font-size: 27px;
    line-height: 1.05;
}

/* Barre de recherche */
.cns-news-toolbar {
    position: relative;
    z-index: 4;
    margin-top: -34px;
}

.cns-news-toolbar__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border: 1px solid var(--news-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--news-shadow);
}

.cns-news-search {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cns-news-search svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--news-green);
    stroke-width: 2;
    stroke-linecap: round;
}

.cns-news-search input {
    width: 100%;
    padding: 12px 4px;
    border: 0;
    outline: 0;
    color: var(--news-ink);
    background: transparent;
    font: inherit;
    font-size: 15px;
}

.cns-news-toolbar__meta {
    padding-left: 20px;
    border-left: 1px solid var(--news-line);
    color: var(--news-muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* Sections */
.cns-news-section {
    padding: 74px 0;
}

.cns-news-featured-section {
    padding-top: 92px;
}

.cns-news-list-section,
.cns-related-news {
    background:
        radial-gradient(circle at 96% 10%, rgba(139,16,34,.045), transparent 23%),
        linear-gradient(180deg, var(--news-soft), #fff);
}

.cns-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.cns-news-heading h2 {
    margin: 0;
    color: var(--news-green);
    font-size: clamp(28px, 3.3vw, 42px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.cns-news-heading p {
    margin: 10px 0 0;
    color: var(--news-muted);
    line-height: 1.6;
}

/* Vedette */
.cns-news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    background: #fff;
    box-shadow: var(--news-shadow);
}

.cns-news-featured__media {
    min-height: 430px;
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--news-soft);
}

.cns-news-featured__media img,
.cns-news-card__media img,
.cns-article-cover img,
.cns-article-gallery__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cns-news-featured__media img {
    transition: transform .6s ease;
}

.cns-news-featured:hover .cns-news-featured__media img {
    transform: scale(1.035);
}

.cns-news-featured__flag {
    position: absolute;
    left: 22px;
    top: 22px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--news-burgundy);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(139,16,34,.25);
}

.cns-news-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 56px);
}

.cns-news-badge {
    width: fit-content;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--news-burgundy);
    background: rgba(139,16,34,.09);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cns-news-featured__content h3 {
    margin: 18px 0 16px;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.cns-news-featured__content h3 a,
.cns-news-card h3 a {
    color: var(--news-ink);
    text-decoration: none;
}

.cns-news-featured__content h3 a:hover,
.cns-news-card h3 a:hover {
    color: var(--news-green);
}

.cns-news-featured__content > p {
    margin: 0;
    color: var(--news-muted);
    font-size: 16px;
    line-height: 1.75;
}

.cns-news-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--news-line);
}

.cns-news-featured__footer time,
.cns-news-card__topline time {
    color: var(--news-muted);
    font-size: 12px;
    font-weight: 700;
}

.cns-news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--news-burgundy);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.cns-news-read-link span {
    transition: transform .25s ease;
}

.cns-news-read-link:hover span {
    transform: translateX(4px);
}

/* Cartes */
.cns-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cns-news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,57,35,.07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cns-news-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0,91,56,.27);
    box-shadow: 0 22px 44px rgba(0,57,35,.13);
}

.cns-news-card__media {
    height: 220px;
    display: block;
    overflow: hidden;
    background: var(--news-soft);
}

.cns-news-card__media img {
    transition: transform .55s ease;
}

.cns-news-card:hover .cns-news-card__media img {
    transform: scale(1.055);
}

.cns-news-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(0,91,56,.22);
    background:
        radial-gradient(circle at 20% 20%, rgba(139,16,34,.08), transparent 28%),
        linear-gradient(135deg, #edf7f2, #fff);
    font-size: 56px;
    font-weight: 900;
}

.cns-news-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.cns-news-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cns-news-card h3 {
    margin: 17px 0 12px;
    font-size: 21px;
    line-height: 1.33;
}

.cns-news-card__body > p {
    margin: 0 0 22px;
    color: var(--news-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cns-news-card .cns-news-read-link {
    margin-top: auto;
}

.cns-news-empty {
    grid-column: 1 / -1;
    padding: 35px;
    border: 1px dashed rgba(0,91,56,.26);
    border-radius: 18px;
    text-align: center;
    background: #fff;
}

.cns-news-empty strong {
    display: block;
    color: var(--news-green);
    font-size: 20px;
}

.cns-news-empty p {
    margin: 8px 0 0;
    color: var(--news-muted);
}

.cns-news-empty--search {
    margin-top: 24px;
}

/* CTA */
.cns-news-cta {
    color: #fff;
    background: linear-gradient(120deg, var(--news-burgundy), #6f0b1a);
}

.cns-news-cta__inner {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-block: 50px;
}

.cns-news-section-label--light {
    color: rgba(255,255,255,.78);
}

.cns-news-cta h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.cns-news-cta p {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
}

/* =====================================================
   DÉTAIL D’UNE ACTUALITÉ
   ===================================================== */
.cns-article-hero {
    color: #fff;
    background:
        radial-gradient(circle at 86% 12%, rgba(255,255,255,.10), transparent 25%),
        linear-gradient(125deg, var(--news-green-dark), var(--news-green) 62%, var(--news-green-light));
}

.cns-article-hero__inner {
    max-width: 1000px;
    padding-block: 60px 72px;
}

.cns-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.cns-article-breadcrumb a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.cns-news-badge--hero {
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
}

.cns-article-hero h1 {
    max-width: 960px;
    margin: 18px 0 0;
    font-size: clamp(37px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.cns-article-hero__lead {
    max-width: 820px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.7;
}

.cns-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-top: 30px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 700;
}

.cns-article-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cns-article-meta__icon {
    color: #fff;
}

.cns-article-layout {
    width: min(1180px, 88%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 50px;
    margin: 55px auto 80px;
}

.cns-article-main {
    min-width: 0;
}

.cns-article-cover {
    height: clamp(320px, 48vw, 560px);
    margin: 0 0 42px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--news-soft);
    box-shadow: var(--news-shadow);
}

.cns-article-body {
    max-width: 820px;
    color: #2c3933;
    font-size: 17px;
    line-height: 1.9;
}

.cns-article-body p {
    margin: 0 0 22px;
}

.cns-article-body h2,
.cns-article-body h3 {
    color: var(--news-green);
    line-height: 1.25;
}

.cns-article-body h2 {
    margin: 42px 0 18px;
    font-size: 30px;
}

.cns-article-body h3 {
    margin: 32px 0 14px;
    font-size: 23px;
}

.cns-article-body blockquote {
    margin: 35px 0;
    padding: 25px 28px;
    border-left: 5px solid var(--news-burgundy);
    border-radius: 0 14px 14px 0;
    color: var(--news-green);
    background: var(--news-cream);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.cns-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.cns-article-gallery {
    margin-top: 60px;
    padding-top: 45px;
    border-top: 1px solid var(--news-line);
}

.cns-article-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cns-article-gallery__item {
    height: 210px;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(0,57,35,.09);
}

.cns-article-gallery__item img {
    transition: transform .45s ease;
}

.cns-article-gallery__item:hover img {
    transform: scale(1.055);
}

.cns-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 55px;
    padding-top: 28px;
    border-top: 1px solid var(--news-line);
}

.cns-article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--news-green);
    font-weight: 900;
    text-decoration: none;
}

.cns-article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.cns-article-share > span {
    color: var(--news-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.cns-article-share button {
    padding: 9px 12px;
    border: 1px solid var(--news-line);
    border-radius: 9px;
    color: var(--news-green);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cns-article-share button:hover {
    color: #fff;
    border-color: var(--news-green);
    background: var(--news-green);
}

.cns-article-sidebar {
    position: sticky;
    top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cns-article-sidebar__box {
    padding: 25px;
    border: 1px solid var(--news-line);
    border-radius: 18px;
    background: var(--news-cream);
    box-shadow: 0 12px 28px rgba(0,57,35,.06);
}

.cns-article-sidebar__box h2 {
    margin: 0 0 13px;
    color: var(--news-green);
    font-size: 22px;
    line-height: 1.3;
}

.cns-article-sidebar__box p {
    margin: 0 0 20px;
    color: var(--news-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cns-article-sidebar__box--green {
    color: #fff;
    border: 0;
    background: linear-gradient(145deg, var(--news-green), var(--news-green-dark));
}

.cns-article-sidebar__box--green > span {
    color: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cns-article-sidebar__box--green h2 {
    margin-top: 12px;
    color: #fff;
}

.cns-article-sidebar__box--green p {
    color: rgba(255,255,255,.76);
}

/* Responsive */
@media (max-width: 1050px) {
    .cns-news-hero__inner,
    .cns-news-featured,
    .cns-article-layout {
        grid-template-columns: 1fr;
    }

    .cns-news-hero__panel {
        min-height: 220px;
    }

    .cns-news-featured__media {
        min-height: 360px;
    }

    .cns-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cns-article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .cns-news-container,
    .cns-article-layout {
        width: min(92%, 1180px);
    }

    .cns-news-hero__inner {
        min-height: auto;
        gap: 40px;
        padding-block: 52px 72px;
    }

    .cns-news-hero h1,
    .cns-article-hero h1 {
        font-size: 37px;
    }

    .cns-news-hero__content > p,
    .cns-article-hero__lead {
        font-size: 16px;
    }

    .cns-news-hero__actions,
    .cns-news-cta__inner,
    .cns-article-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cns-news-btn {
        width: 100%;
    }

    .cns-news-toolbar__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .cns-news-toolbar__meta {
        padding: 12px 0 0;
        border-top: 1px solid var(--news-line);
        border-left: 0;
    }

    .cns-news-section {
        padding: 55px 0;
    }

    .cns-news-featured-section {
        padding-top: 75px;
    }

    .cns-news-featured__media {
        min-height: 275px;
    }

    .cns-news-grid,
    .cns-article-sidebar,
    .cns-article-gallery__grid {
        grid-template-columns: 1fr;
    }

    .cns-news-featured__footer,
    .cns-news-card__topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .cns-news-card__media {
        height: 235px;
    }

    .cns-news-cta__inner {
        padding-block: 46px;
    }

    .cns-article-hero__inner {
        padding-block: 42px 55px;
    }

    .cns-article-layout {
        gap: 38px;
        margin-top: 35px;
    }

    .cns-article-cover {
        height: 280px;
        margin-bottom: 30px;
        border-radius: 17px;
    }

    .cns-article-body {
        font-size: 16px;
        line-height: 1.8;
    }

    .cns-article-gallery__item {
        height: 250px;
    }

    .cns-article-share {
        justify-content: flex-start;
    }
}

@media print {
    .site-header,
    .main-nav,
    .simple-footer,
    .cns-article-sidebar,
    .cns-article-share,
    .cns-article-back {
        display: none !important;
    }

    .cns-article-hero {
        color: #000;
        background: #fff;
    }

    .cns-article-hero__lead,
    .cns-article-meta,
    .cns-article-breadcrumb {
        color: #333;
    }

    .cns-article-layout {
        width: 100%;
        display: block;
        margin: 0;
    }
}
