/* === CONTENEUR PRINCIPAL === */
.mbp-news-container {
    width: 100%;
    box-sizing: border-box;
    font-family: "Source Sans Pro", sans-serif;
    position: relative;
    overflow: hidden;
}

/* === EN-TÊTE FIXE === */
.mbp-news-header {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    padding: 12px 20px;
    z-index: 20;
    height: 50px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    border-bottom: 2px solid #e0e0e0;
}

/* === TITRE === */
.mbp-news-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400px;
    color: #000;
    line-height: 1.2;
    word-break: break-word; 
}

/* === ZONE DE DÉFILEMENT (VIEWPORT) === */
.mbp-news-viewport {
    position: relative;
    overflow: hidden;
    height: 550px;    /* Hauteur fixe : 550px total de ticker */
    margin-top: 50px; 
}

/* === CONTENU DÉFILANT === */
.mbp-news-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transition: transform .1s linear;
    will-change: transform;
}

/* === ITEMS DE NEWS === */
.mbp-news-item {
    padding: 10px 20px;   /* un peu plus de largeur horizontale */
    position: relative;
}

/* Séparateur fin entre items */
.mbp-news-item + .mbp-news-item::before {
    content: "";
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: rgba(0,0,0,0.05);
}

/* === TITRES DES NEWS === */
.mbp-news-item h3 {
    margin: 0 0 6px;      
    font-size: 0.85rem;
    font-family : Source sans Pro;
    color: #457687;
    font-weight:400px;
}

/* === DESCRIPTION DES NEWS === */
.mbp-news-item p {
    margin: 0 0 2px;      
    font-size: 0.95rem;   
    color: #555;
    line-height: 1.4;
}

/* === LIENS "READ MORE" === */
.mbp-news-item a {
    font-size: 0.85rem;
    color:rgb(235, 149, 12);
    text-decoration: none;
    display: inline-block;
    margin-top: 1px;     
    transition: transform .2s, color .2s;
}
.mbp-news-item a:hover {
    
    color:rgb(0, 191, 255);
}

/* === FALLBACK : LOGOS D'AFFILIATION === */
.mbp-news-affiliations {
    display: flex;
    flex-direction: column;     /* alignement vertical */
    align-items: flex-start;    /* alignement à gauche */
    gap: 15px;                  /* espace entre chaque logo */
    padding: 20px 15px;
}

.mbp-affiliation-logo img {
    max-height: 56px;          
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.mbp-affiliation-logo img:hover {
    opacity: 1;
}


.mbp-news-static {
    margin-top: 50px; 
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mbp-news-header {
        position: relative; 
        z-index: 10;
        background: white;
        height: auto;
        padding: 10px 15px;
    }
    .mbp-news-title {
        font-size: 1.2rem;
    }
    .mbp-news-viewport {
        height: 200px;
        margin-top: 0; 
    }
    .mbp-news-item {
        padding: 8px 15px;
    }
    .mbp-news-item p {
        font-size: 0.9rem;
    }
    .mbp-news-item a {
        font-size: 0.8rem;
    }
    .mbp-news-static {
        margin-top: 45px;
    }
}


/.mbp-news-container.archive-mode {
    padding: 40px 0 60px;
}

.mbp-news-archive {
    max-width: 800px;
    margin-top: 50px;
    padding: 10px 20px;
}

.mbp-news-archive .mbp-news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
   
}

.mbp-news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.mbp-news-archive .mbp-news-item h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.mbp-news-archive .mbp-news-item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}
