@charset "UTF-8";

/*!
 * Version - 1.1.1
 * Copyright (c) 2026 2A Digital <info@2adigital.site>
 * 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.
*/

.truncate {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Grid */
.grid-une {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .grid-une {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-une {
        grid-template-columns: 1fr;
    }
}

.grid-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Cards */
.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card.featured {
    grid-column: span 2;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Conteneur image */
.news-card .news-image {
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 400px;
    overflow: hidden;
}

/* Image */
.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.news-content {
    padding: 25px 20px 30px 20px;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    color: #022d1c;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.news-card:hover .news-content h3 span::after {
    transform: scaleX(1);
}

.news-card:hover .news-content h3 {
    color: var(--secondary);
}

.news-content p {
    font-size: 0.95rem;
    color: #313131;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #022d1c;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s;
}

.news-cta:hover {
    color: var(--primary);
}




.s-news-card {
    background-color: #fff !important;
    border: 1px solid #f5f5f548 !important;
    border-radius: 0px !important;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease;
}

.s-news-card .s-card-badge {
    --badge-bg: var(--secondary);
    --badge-color: var(--dark);
    background-color: var(--badge-bg) !important;
    color: var(--badge-color) !important;
    border-radius: 0px !important;
    font-weight: 400;
}



.s-card-theme-red *,
.s-card-theme-red .s-card-badge {
    --hover-color: var(--secondary-dark);
    --badge-bg: var(--secondary-dark);
    --badge-color: var(--light);
}


.s-news-card .s-card-image {
    --ratio: 4 / 3;
    width: 100%;
    aspect-ratio: var(--ratio);
    overflow: hidden;
    background: transparent;
    padding: 0px;
    position: relative;
    transition: transform .3s ease;
}

.s-news-card .s-card-image.ratio-3-2 {
    --ratio: 3 / 2;
}

.s-news-card .s-card-image.ratio-16-9 {
    --ratio: 16 / 9
}

.s-news-card.large .s-card-image {
    --ratio: 16 / 9;
}

.s-news-card .s-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #ffffff;
    transition: transform .3s ease;
}

.s-news-card .s-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity .3s ease;
}

.s-news-card:hover .s-card-image::after {
    opacity: 1;
}

.s-news-card .s-card-title {
    --font-size: 1.02rem;
    --max-height: 60px;
    font-size: var(--font-size);
    font-weight: 500 !important;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s, transform .3s ease;
    margin-top: 3px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-height: var(--max-height);
    font-family: var(--ff-title);
}

.s-news-card.large .s-card-title {
    --font-size: 1.875rem;
    --max-height: auto;
}

.s-news-card:hover .s-card-title {
    color: var(--hover-color) !important;
}

.s-news-card .card-icon-view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.s-news-card .card-icon-view i {
    --card-icon-height: 40px;
    --card-icon-width: 40px;

    height: var(--card-icon-height);
    width: var(--card-icon-width);
    padding: 10px;
    border-radius: 2.5em;
    border: 3px solid #ffffff2d;
    color: var(--light);
    opacity: 0;
    transition: all .3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.s-news-card .card-icon-view.icon-sm i {
    --card-icon-height: 20px;
    --card-icon-width: 20px;
    font-size: 10px;
}

.s-news-card:hover .card-icon-view i {
    background-color: var(--hover-color) !important;
    opacity: 1;
}

/* 6. skeleton */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Variation pour simuler des images */
.skeleton-image {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
}