/* ==================================================
   ACTUALITÉS — LISTE DES ARTICLES
================================================== */

.news-listing,
.news-listing *{
    box-sizing:border-box;
}

.news-listing{
    position:relative;
    overflow:hidden;
    padding:95px 0 110px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(37,99,235,.05),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fd 100%
        );
}

.news-listing::before{
    content:"";
    position:absolute;
    top:180px;
    right:-190px;
    width:440px;
    height:440px;
    border:1px solid rgba(37,99,235,.05);
    border-radius:50%;
    box-shadow:
        0 0 0 55px rgba(37,99,235,.012),
        0 0 0 110px rgba(37,99,235,.008);
    pointer-events:none;
}

.news-listing .le-container{
    position:relative;
    z-index:2;
    width:min(1680px,94%);
    margin:0 auto;
}

/* ==================================================
   EN-TÊTE
================================================== */

.news-listing-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:40px;
    margin-bottom:52px;
}

.news-listing-heading{
    max-width:800px;
}

.news-listing-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:0 13px;
    margin-bottom:17px;
    border:1px solid rgba(37,99,235,.12);
    border-radius:999px;
    background:#eef4ff;
    color:#2563eb;
    font-size:11px;
    font-weight:900;
    line-height:1;
    letter-spacing:.75px;
}

.news-listing-heading h2{
    margin:0 0 17px;
    color:#000d20;
    font-size:clamp(38px,3.4vw,52px);
    font-weight:950;
    line-height:1.08;
    letter-spacing:-1.6px;
}

.news-listing-heading h2 span{
    color:#2563eb;
}

.news-listing-heading p{
    max-width:760px;
    margin:0;
    color:#64748b;
    font-size:16px;
    font-weight:500;
    line-height:1.75;
}

/* ==================================================
   GRILLE
================================================== */

.news-posts-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px;
}

/* ==================================================
   CARTE
================================================== */

.news-post-card{
    position:relative;
    min-width:0;
    height:100%;
    margin:0;
    overflow:hidden;
    border:1px solid rgba(0,13,32,.07);
    border-radius:24px;
    background:#ffffff;
    box-shadow:
        0 18px 45px rgba(0,13,32,.055);
    transition:
        transform .4s cubic-bezier(.22,.61,.36,1),
        border-color .35s ease,
        box-shadow .4s ease;
}

.news-post-card:hover{
    transform:translateY(-9px);
    border-color:rgba(37,99,235,.16);
    box-shadow:
        0 30px 70px rgba(0,13,32,.11);
}

.news-post-card-link{
    display:flex;
    flex-direction:column;
    height:100%;
    color:inherit;
    text-decoration:none;
}

.news-post-card-image{
    position:relative;
    min-height:265px;
    aspect-ratio:16 / 10;
    overflow:hidden;
    background:#eaf0f8;
}

.news-post-card-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transform:scale(1.015);
    transition:
        transform .75s cubic-bezier(.22,.61,.36,1),
        filter .4s ease;
}

.news-post-card:hover .news-post-card-image img{
    transform:scale(1.085);
    filter:brightness(1.035);
}

.news-post-card-image::after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:40%;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(0,13,32,.22)
        );
    pointer-events:none;
}

.news-post-card-category{
    position:absolute;
    left:18px;
    bottom:17px;
    z-index:2;
    min-height:30px;
    padding:0 13px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(0,13,32,.72);
    color:#ffffff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 8px 22px rgba(0,0,0,.15);
    font-size:10.5px;
    font-weight:900;
    line-height:1;
    letter-spacing:.35px;
    text-transform:uppercase;
}

.news-post-card-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(37,99,235,.15),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #000d20,
            #071f46
        );
    color:rgba(255,255,255,.55);
}

.news-post-card-placeholder svg{
    width:62px;
    height:62px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.4;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ==================================================
   CONTENU
================================================== */

.news-post-card-content{
    flex:1;
    min-width:0;
    padding:26px 27px 27px;
    display:flex;
    flex-direction:column;
}

.news-post-card-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:17px;
}

.news-post-card-date,
.news-post-card-reading{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#94a3b8;
    font-size:11.5px;
    font-weight:750;
    line-height:1;
}

.news-post-card-date svg,
.news-post-card-reading svg{
    width:15px;
    height:15px;
    flex:0 0 15px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.news-post-card h3{
    margin:0 0 14px;
    color:#000d20;
    font-size:21px;
    font-weight:950;
    line-height:1.28;
    letter-spacing:-.45px;
    transition:color .3s ease;
}

.news-post-card:hover h3{
    color:#2563eb;
}

.news-post-card-content > p{
    margin:0 0 24px;
    color:#64748b;
    font-size:14px;
    font-weight:500;
    line-height:1.72;
}

.news-post-card-button{
    margin-top:auto;
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#2563eb;
    font-size:13px;
    font-weight:900;
    line-height:1;
}

.news-post-card-button svg{
    width:18px;
    height:18px;
    flex:0 0 18px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.25;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .3s ease;
}

.news-post-card:hover .news-post-card-button svg{
    transform:translateX(5px);
}

/* ==================================================
   PAGINATION
================================================== */

.news-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
    margin-top:58px;
}

.news-pagination .page-numbers{
    min-width:46px;
    height:46px;
    padding:0 14px;
    border:1px solid rgba(0,13,32,.09);
    border-radius:12px;
    background:#ffffff;
    color:#334155;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    box-shadow:0 8px 22px rgba(0,13,32,.04);
    text-decoration:none;
    font-size:13px;
    font-weight:850;
    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

.news-pagination a.page-numbers:hover{
    transform:translateY(-3px);
    border-color:#2563eb;
    background:#2563eb;
    color:#ffffff;
    box-shadow:0 14px 30px rgba(37,99,235,.20);
}

.news-pagination .page-numbers.current{
    border-color:#2563eb;
    background:#2563eb;
    color:#ffffff;
    box-shadow:0 12px 26px rgba(37,99,235,.20);
}

.news-pagination .page-numbers.dots{
    border-color:transparent;
    background:transparent;
    box-shadow:none;
}

.news-pagination .prev,
.news-pagination .next{
    padding:0 18px;
}

.news-pagination .prev svg,
.news-pagination .next svg{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ==================================================
   AUCUN ARTICLE
================================================== */

.news-posts-empty{
    max-width:720px;
    margin:0 auto;
    padding:65px 35px;
    border:1px solid rgba(37,99,235,.09);
    border-radius:26px;
    background:#ffffff;
    text-align:center;
    box-shadow:0 25px 60px rgba(0,13,32,.06);
}

.news-posts-empty-icon{
    width:76px;
    height:76px;
    margin:0 auto 23px;
    border-radius:50%;
    background:#eef4ff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
}

.news-posts-empty-icon svg{
    width:34px;
    height:34px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.news-posts-empty h3{
    margin:0 0 11px;
    color:#000d20;
    font-size:25px;
    font-weight:950;
    line-height:1.25;
}

.news-posts-empty p{
    max-width:520px;
    margin:0 auto;
    color:#64748b;
    font-size:14px;
    line-height:1.7;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:1180px){

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

}

@media(max-width:900px){

    .news-listing{
        padding:78px 0 90px;
    }

    .news-listing .le-container{
        width:min(100%,92%);
    }

    .news-listing-header{
        margin-bottom:42px;
    }

    .news-listing-heading h2{
        font-size:clamp(36px,6vw,44px);
    }

}

@media(max-width:700px){

    .news-listing{
        padding:65px 0 75px;
    }

    .news-listing::before{
        display:none;
    }

    .news-posts-grid{
        grid-template-columns:1fr;
        gap:22px;
    }

    .news-post-card-image{
        min-height:240px;
    }

    .news-pagination{
        margin-top:44px;
    }

}

@media(max-width:520px){

    .news-listing .le-container{
        width:calc(100% - 28px);
    }

    .news-listing-label{
        min-height:28px;
        padding:0 11px;
        font-size:10px;
    }

    .news-listing-heading h2{
        margin-bottom:14px;
        font-size:34px;
        letter-spacing:-1px;
    }

    .news-listing-heading p{
        font-size:14.5px;
        line-height:1.65;
    }

    .news-post-card{
        border-radius:20px;
    }

    .news-post-card-image{
        min-height:215px;
        aspect-ratio:16 / 10.5;
    }

    .news-post-card-category{
        left:14px;
        bottom:14px;
    }

    .news-post-card-content{
        padding:22px 20px 23px;
    }

    .news-post-card-meta{
        gap:11px;
        margin-bottom:14px;
    }

    .news-post-card h3{
        font-size:19px;
    }

    .news-post-card-content > p{
        font-size:13.5px;
    }

    .news-pagination{
        gap:7px;
    }

    .news-pagination .page-numbers{
        min-width:42px;
        height:42px;
        padding:0 12px;
        border-radius:11px;
        font-size:12px;
    }

    .news-pagination .prev span,
    .news-pagination .next span{
        display:none;
    }

    .news-pagination .prev,
    .news-pagination .next{
        width:42px;
        padding:0;
    }

}

@media(max-width:390px){

    .news-listing .le-container{
        width:calc(100% - 20px);
    }

    .news-post-card-image{
        min-height:195px;
    }

    .news-post-card-content{
        padding:20px 17px 21px;
    }

    .news-post-card-reading{
        display:none;
    }

}

@media(prefers-reduced-motion:reduce){

    .news-listing *,
    .news-listing *::before,
    .news-listing *::after{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }

}