/*!
 * Custom css - Version - 1.1.1
 * Copyright (c) 2026 Webstudio <info@astrolab.com> and another company

 * L’autorisation est accordée à toute personne qui en obtient une copie de ce style.
 * Il est strictement interdit de publier(vendre) sans l'autorisation préalable des auteurs.
 * Des spécialistes sont à l'origine des documents fournis.
*/

/* Section News */

/* Section Program */
/* #news h3 {
    font-weight: 800;
    font-size: 20px;
    color: #000;
}

#news p {
    font-weight: 400;
    color: #000;
}

.news-card .card-img-top {
    --ratio: 4 / 3;
    width: 100%;
    aspect-ratio: var(--ratio);
    overflow: hidden;
    background: transparent;
    padding: 0px;
    position: relative;
    transition: transform .3s ease;
}

.news-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #ffffff;
    transition: transform .3s ease;
} */

/* =========================
   TYPOGRAPHIE & BASE
========================= */

#news h3 {
    font-weight: 700;
    font-size: 18px;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    
    transition: color 0.3s ease, box-shadow 0.3s ease;
}

#news p {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* =========================
   CARD DESIGN
========================= */

.news-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover h3 {
    color: var(--secondary) !important;
}

/* Image container */
.news-card .card-img-top {
    --ratio: 4 / 3;
    width: 100%;
    aspect-ratio: var(--ratio);
    overflow: hidden;
    position: relative;
}

/* Image */
.news-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Content padding */
.news-card .card-body {
    padding: 10px !important;
}

/* =========================
   INTERACTIONS (subtiles)
========================= */

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-card:hover img {
    transform: scale(1.05);
}

/* =========================
   TABLET
========================= */

@media (min-width: 768px) {
    #news {
        padding: 40px 24px;
    }

    #news h3 {
        font-size: 20px;
    }

    #news p {
        font-size: 15px;
    }

    .news-card .card-body {
        padding: 20px;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1024px) {

    #news h3 {
        font-size: 20px;
    }

    #news p {
        font-size: 16px;
    }

    .news-card {
        border-radius: 18px;
    }
}