/* =========================================================
   NEWS PAGE  —  assets/css/news.css
   Partage aussi page-breadcrumb-band avec contact/services
========================================================= */

:root {
    --breadcrumb-bg: #EDF2F5;
    --blue-mkba:     #005FAC;
    --orange-mkba:   #ED6A18;
    --dark-mkba:     #111827;
}

/* =========================================================
   HERO BANNIÈRE BLEUE
========================================================= */

.news-hero{
    background-color: var(--blue-mkba);
    min-height: 180px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.news-hero .container{
    display:flex;
    justify-content:center;
    align-items:center;
}

.news-hero-title{
    color:#fff;
    font-size:clamp(2rem,4vw,3.2rem);
    font-weight:400;
    letter-spacing:-0.5px;
    margin:0;
    padding:40px 0;
}

/* =========================================================
   LISTING SECTION
========================================================= */

.news-listing {
    background: #ffffff;
}

.news-listing-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-mkba);
}

/* =========================================================
   NEWS CARD
========================================================= */
.news-card{
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.news-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,.10);
}

.news-card::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
    background:var(--blue-mkba);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .35s ease;
}

.news-card:hover::after{
    transform:scaleX(1);
}

/* IMAGE WRAPPER */
.news-card-img-link {
    display: block;
    overflow: hidden;
}

.news-card-img-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
} 

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

/* BODY */
.news-card-body{
    padding:18px 20px 20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.news-card-date {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--blue-mkba);
    line-height: 1.45;
    margin-bottom: 10px;
}

.news-card-desc {
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}

/* FOOTER avec lien */
.news-card-footer{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid #e5e7eb;
    opacity:0;
    transform:translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events:none;
}

.news-card:hover .news-card-footer{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.news-card-link{
    font-size:.84rem;
    font-weight:600;
    color:var(--blue-mkba);
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:4px;
    opacity:0;
    transform:translateX(15px);
    transition:
        opacity .25s ease,
        transform .25s ease,
        gap .2s ease,
        color .2s ease;
    transition-delay:0s;
}

.news-card:hover .news-card-link{
    opacity:1;
    transform:translateX(0);
    transition-delay:.15s;
}

.news-card-link:hover{
    color:var(--orange-mkba);
    gap:8px;
}

.news-card-link-disabled{
    cursor: default;
    pointer-events: none;
}

.news-pagination{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:6px;
}

.news-page-btn{
    width:40px;
    height:40px;
    border-radius:0;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#374151;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:all .25s ease;
}

.news-page-btn:hover {
    border-color: var(--blue-mkba);
    color: var(--blue-mkba);
    background: #f0f7ff;
}

.news-page-btn--active {
    background: var(--blue-mkba);
    border-color: var(--blue-mkba);
    color: #ffffff;
}

.news-page-btn--active:hover {
    background: #004a89;
    border-color: #004a89;
    color: #ffffff;
}

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

@media (max-width: 767px) {
    .news-hero-title {
        font-size: 2rem;
        padding: 30px 0;
    }
    .news-listing-title {
        font-size: 1.3rem;
    }
    .news-card-img-wrapper {
        aspect-ratio: 16 / 9;
    }
}

/*==================================================
NEWS DETAILS HERO
==================================================*/
.news-details-hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center; /* Centre verticalement */
    overflow: hidden;
}

.news-details-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.news-details-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.news-details-hero .container{
    position:relative;
    z-index:2;
    width:100%;
}

.news-details-content{
    max-width:700px;
    padding-bottom:0; /* Plus besoin */
    transform: translateY(30px);
}

.news-details-content h1{
    color:#fff;
    font-size:40px;
    font-weight:400;
    line-height:1.2;
    margin:0;
}

/*==================================================
ARTICLE
==================================================*/
.news-details{
    background:#fff;
}

.article-title{
    font-size:2rem;
    margin-bottom:25px;
    color:#333;
    font-weight:400;
}

.news-details p{
    color:#666;
    line-height:1.9;
    margin-bottom:25px;
}

.news-details h3{
    margin:45px 0 25px;
    font-size:2rem;
    font-weight:300;
    color:#444;
}

.news-details h4{
    margin-top:40px;
    margin-bottom:15px;
    color:#222;
    font-size:1.5rem;
}

/*==================================================
LIST
==================================================*/
.article-list{
    list-style:none;
    padding:0;
    margin:30px 0;
}

.article-list li{
    position:relative;
    padding-left:26px;
    margin-bottom:18px;
    color:#555;
    line-height:1.8;
}

.article-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:12px;
    width:8px;
    height:8px;
    background:var(--blue-mkba);
}

/*==================================================
SHARE BOX
==================================================*/
.share-box{
    position:sticky;
    top:120px;
    padding-left:50px;
}

.share-box h4{
    font-size:1.6rem;
    margin-bottom:20px;
    color:#333;
}

.share-icons{
    display:flex;
    gap:10px;
}

.share-icons a{
    width:40px;
    height:40px;
    border:1px solid #ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#555;
    transition:.3s;
}

.share-icons a:hover{
    background:var(--blue-mkba);
    color:#fff;
    border-color:var(--blue-mkba);
}

/*==================================================
RELATED
==================================================*/
.related-news{
    background:#fff;
    padding-top:20px;
}

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

@media(max-width:992px){
    .news-details-hero{
        height:420px;
    }
    .news-details-content{
        bottom:40px;
    }
    .news-details-content h1{
    font-size:2.3rem;
    }
    .share-box{
        position:static;
        padding-left:0;
        margin-top:50px;
    }
}

@media(max-width:768px){
    .news-details-hero{
        height:340px;
    }
    .news-details-content h1{
        font-size:1.8rem;
        line-height:1.5;
    }
    .article-title{
        font-size:1.7rem;
    }
    .news-details h3{
        font-size:1.5rem;
    }
}



