/* Styles additionnels Le Courrier de Bukavu Pro */

/* 1. Plein Écran & Fluidité Totale */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

#primary, #masthead, #colophon, #cb-persistent-player {
    width: 100% !important;
    max-width: 100% !important;
}

/* Annulation du centrage bridé par défaut WordPress 6.x */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wp-site-blocks,
.wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
}

/* 2. Pied de Page Institutionnel Garanti 100% Visible & Plein Écran */
footer#colophon,
#colophon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    background-color: #0a192f !important;
    background: #0a192f !important;
    color: #cbd5e1 !important;
    border-top: 4px solid var(--cb-red-primary, #c53030) !important;
    clear: both !important;
    position: relative !important;
    z-index: 40 !important;
    margin-top: 3rem !important;
    padding-top: 3.5rem !important;
    padding-bottom: 7.5rem !important; /* Dégagement au-dessus du lecteur audio fixe */
    box-sizing: border-box !important;
}

#colophon h3,
#colophon h4 {
    color: #ffffff !important;
    font-weight: 700;
}

#colophon p,
#colophon span,
#colophon li {
    color: #cbd5e1 !important;
}

#colophon a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

#colophon a:hover {
    color: #ef4444 !important;
}

/* Barres de l'égaliseur audio dynamique */
.cb-eq-bar {
    width: 3px;
    background: linear-gradient(to top, var(--cb-blue-light, #1e3a8a), var(--cb-red-primary, #c53030));
    border-radius: 2px;
    transition: height 0.15s ease-in-out;
}

/* Animations de direct */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.cb-live-pulse {
    animation: pulse-ring 2s infinite;
}

/* 3. Défilement automatique continu du bandeau Flash Info */
@keyframes cbTickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.cb-ticker-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    white-space: nowrap;
}

.cb-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: cbTickerScroll 36s linear infinite;
    will-change: transform;
}

.cb-ticker-wrapper:hover .cb-ticker-track {
    animation-play-state: paused;
}

/* Typographie soignée pour les articles */
.font-serif-editorial p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* 4. Logo personnalisé WordPress & alignement aux côtés du nom du site */
.cb-custom-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 90px;
    max-height: 70px;
}

.cb-custom-logo-container img.custom-logo,
.cb-custom-logo-container a.custom-logo-link img {
    max-width: 80px;
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
