
/* =========================================================
   ACTUALITÉS — CIME
   Page principale et pages de détail
   ========================================================= */


/* =========================================================
   DEUXIÈME HEADER — COMMUN AUX DEUX PAGES
   ========================================================= */

.news-intro {
    width: 100%;
    padding: 72px 7% 68px;
    background: #f4f7fb;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.news-intro-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.news-label {
    display: inline-block;
    margin-bottom: 20px;
    color: #1769aa;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.news-intro h1 {
    margin: 0 0 18px;
    color: #142f52;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.news-intro-content > p {
    max-width: 800px;
    margin: 0 auto;
    color: #4e6784;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   PAGE PRINCIPALE — SECTION ACTUALITÉS
   ========================================================= */

.news-section {
    padding: 76px 7% 90px;
    background: #ffffff;
}

.news-section-heading {
    max-width: 1200px;
    margin: 0 auto 38px;
}

.news-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #1769aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-section-heading h2,
.news-gallery-heading h2 {
    margin: 0;
    color: #142f52;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   GRILLE DES ACTUALITÉS
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}


/* =========================================================
   CARTE D'ACTUALITÉ
   ========================================================= */

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-top: 3px solid #142f52;
    box-shadow: 0 8px 25px rgba(20, 47, 82, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 47, 82, 0.11);
}


/* IMAGE DE COUVERTURE SUR LA CARTE */

.news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f7fb;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.035);
}


/* TEXTE DE LA CARTE */

.news-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 23px 24px;
}

.news-date {
    display: block;
    margin: 0 0 13px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0 0 14px;
    color: #142f52;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}


/* RÉSUMÉ COURT : MAXIMUM DEUX LIGNES */

.news-summary {
    display: -webkit-box;
    width: 100%;
    margin: 0 0 22px;
    overflow: hidden;
    color: #4e6784;
    font-size: 15px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}


/* LIEN VERS L'ARTICLE COMPLET */

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 5px;
    color: #1769aa;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
}

.news-read-more span {
    transition: transform 0.2s ease;
}

.news-read-more:hover {
    color: #142f52;
}

.news-read-more:hover span {
    transform: translateX(4px);
}


/* =========================================================
   DEUXIÈME HEADER — PAGE DE DÉTAIL
   ========================================================= */

.news-detail-intro {
    padding-top: 62px;
    padding-bottom: 58px;
}

.news-detail-intro .news-intro-content {
    max-width: 1000px;
}

.news-detail-intro h1 {
    max-width: 950px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.25;
}

.news-detail-date {
    margin-top: 18px !important;
    font-size: 14px !important;
    font-weight: 600;
}


/* =========================================================
   CONTENU DE L'ARTICLE
   ========================================================= */

.news-detail-section {
    padding: 48px 7% 85px;
    background: #ffffff;
}

.news-detail-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* LIEN DE RETOUR */

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: #1769aa;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
}

.news-back:hover {
    color: #142f52;
}

.news-back span {
    font-size: 18px;
}


/* COUVERTURE PRINCIPALE DE L'ARTICLE */

.news-detail-cover {
    width: 100%;
    max-height: 520px;
    margin: 0 auto 36px;
    overflow: hidden;
    background: #f4f7fb;
}

.news-detail-cover img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}


/* TEXTE COMPLET */

.news-detail-content {
    max-width: 850px;
    margin: 0 auto;
}

.news-detail-content p {
    margin: 0 0 22px;
    color: #3f5268;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.news-detail-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   GALERIE PHOTOS
   ========================================================= */

.news-gallery {
    margin-top: 55px;
}

.news-gallery-heading {
    margin-bottom: 24px;
}

.news-gallery-heading .news-section-label {
    margin-bottom: 12px;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.news-gallery-item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #f4f7fb;
    border: 1px solid #e1e8f0;
}

.news-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* LIEN DE RETOUR EN BAS */

.news-back-bottom {
    margin-top: 38px;
    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE — TABLETTES
   ========================================================= */

@media (max-width: 1000px) {

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .news-section,
    .news-detail-section {
        padding-right: 5%;
        padding-left: 5%;
    }

    .news-intro {
        padding-right: 5%;
        padding-left: 5%;
    }

}


/* =========================================================
   RESPONSIVE — TÉLÉPHONES
   ========================================================= */

@media (max-width: 640px) {

    .news-intro {
        padding: 48px 6% 45px;
    }

    .news-label {
        margin-bottom: 15px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    .news-intro h1 {
        margin-bottom: 14px;
        font-size: 34px;
        letter-spacing: -0.5px;
    }

    .news-intro-content > p {
        font-size: 15px;
        line-height: 1.7;
    }

    .news-section {
        padding: 48px 6% 60px;
    }

    .news-section-heading {
        margin-bottom: 25px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .news-card-content {
        padding: 22px 20px;
    }

    .news-card h3 {
        font-size: 20px;
    }

    .news-detail-intro {
        padding-top: 45px;
        padding-bottom: 42px;
    }

    .news-detail-intro h1 {
        font-size: 30px;
    }

    .news-detail-section {
        padding: 30px 6% 55px;
    }

    .news-detail-cover {
        margin-bottom: 26px;
    }

    .news-detail-cover img {
        max-height: 360px;
    }

    .news-detail-content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .news-gallery {
        margin-top: 38px;
    }

    .news-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

}


/* =========================================================
   ACCESSIBILITÉ — MOUVEMENTS RÉDUITS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .news-card,
    .news-card-image img,
    .news-read-more span {
        transition: none;
    }

    .news-card:hover,
    .news-card:hover .news-card-image img {
        transform: none;
    }

}
