/* Styles ultra-modernes pour SAFINA FM 98.2 - Version Verte Dominante avec Fond Blanc et Textes Visibles */

/* Variables CSS avec fallbacks pour anciens navigateurs */
:root {
    --primary-color: #198754;
    --secondary-color: #20c997;
    --accent-color: #0d5132;
    --dark-color: #198754; /* Changé de #212529 à #198754 */
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-dark: #198754; /* Changé de #2c3e50 à #198754 */
    --text-muted: #495057; /* Changé de #6c757d à #495057 pour meilleure visibilité */
    --gradient-primary: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-secondary: linear-gradient(135deg, #20c997 0%, #198754 100%);
    --gradient-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-dark: linear-gradient(135deg, #0d5132 0%, #198754 100%);
    --neon-glow: 0 0 20px rgba(25, 135, 84, 0.6);
    --green-glass: rgba(25, 135, 84, 0.05);
    --white-glass: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #ffffff !important;
    min-height: 100vh;
    color: #198754 !important;
}

/* Textes de base avec bonne visibilité */
h1, h2, h3, h4, h5, h6 {
    color: #198754 !important;
    font-weight: 700;
}

p, span, div {
    color: #000000 !important; /* Changé de #198754 à #000000 (noir) */
}

.text-muted {
    color: #495057 !important;
    font-weight: 500;
}

.text-dark {
    color: #198754 !important;
}

.text-white {
    color: #ffffff !important;
}

/* Navigation ultra-moderne verte sur fond blanc */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(25, 135, 84, 0.1);
    box-shadow: 0 2px 20px rgba(25, 135, 84, 0.1);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #198754 !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Hero Section ultra-moderne verte */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Classe pour ajouter une image de fond */
.hero-section.with-bg-image {
    background: linear-gradient(rgba(25, 135, 84, 0.3), rgba(25, 135, 84, 0.3)), var(--hero-bg-image);
    background-size: cover;
    background-position: center;
}

.hero-section.with-bg-image.bg-primary {
    background: linear-gradient(rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.3)), var(--hero-bg-image);
    background-size: cover;
    background-position: center;
}

.hero-section.with-bg-image.bg-success {
    background: linear-gradient(rgba(25, 135, 84, 0.3), rgba(25, 135, 84, 0.3)), var(--hero-bg-image);
    background-size: cover;
    background-position: center;
}

.hero-section.with-bg-image.bg-dark {
    background: linear-gradient(rgba(33, 37, 41, 0.3), rgba(33, 37, 41, 0.3)), var(--hero-bg-image);
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    font-weight: 800;
}

.hero-section p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-size: 1.1rem;
}

.hero-section .lead {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Cards ultra-modernes vertes sur fond blanc */
.card {
    background: #ffffff !important;
    border: 1px solid rgba(25, 135, 84, 0.15);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(25, 135, 84, 0.08);
}

/* Responsive Design pour la section "Nos Domaines d'Activité" */
@media (max-width: 576px) {
    /* Extra small devices (phones, less than 576px) */
    .hover-card {
        margin-bottom: 1rem !important;
        min-height: 200px;
    }
    
    .hover-card .card-body {
        padding: 1rem !important;
    }
    
    .hover-card .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hover-card .rounded-circle i {
        font-size: 1rem !important;
    }
    
    .hover-card h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hover-card .small {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hover-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small devices (landscape phones, 576px and up) */
    .hover-card {
        margin-bottom: 1.5rem !important;
        min-height: 220px;
    }
    
    .hover-card .rounded-circle {
        width: 55px !important;
        height: 55px !important;
    }
    
    .hover-card .rounded-circle i {
        font-size: 1.1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Medium devices (tablets, 768px and up) */
    .hover-card .rounded-circle {
        width: 65px !important;
        height: 65px !important;
    }
    
    .hover-card .rounded-circle i {
        font-size: 1.3rem !important;
    }
}

/* Amélioration de l'espacement pour tous les écrans */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.15);
}

/* Responsivité pour les titres de section */
@media (max-width: 576px) {
    /* Titre principal "Nos Domaines d'Activité" */
    .text-success.fw-bold {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Description sous le titre */
    .text-muted {
        font-size: 0.9rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Espacement général des sections sur mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Container padding sur mobile */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small devices */
    .text-success.fw-bold {
        font-size: 1.75rem !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

.card-title {
    color: #198754 !important;
    font-weight: 700;
}

.card-text {
    color: #198754 !important;
    line-height: 1.6;
}

.card-title a {
    color: #198754 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color) !important;
}

.card-body {
    background: #ffffff !important;
    color: #198754 !important;
}

.card-body * {
    color: #198754 !important;
}

.card-body .text-success {
    color: var(--primary-color) !important;
}

.card-body .text-muted {
    color: #495057 !important;
    font-weight: 500;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.15), var(--neon-glow);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 0.03;
}

/* Buttons ultra-modernes verts */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: var(--gradient-primary) !important;
    border: none;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
    font-weight: 700;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.4);
    background: var(--gradient-dark) !important;
    color: white !important;
}

.btn-warning {
    background: #ffffff !important;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.1);
    font-weight: 700;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.2);
    background: var(--primary-color) !important;
    color: white !important;
}

.btn-outline-success {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.btn-outline-success:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
    color: white !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white !important;
    font-weight: 700;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: white;
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Sections avec fond blanc */
section {
    position: relative;
    z-index: 1;
    background: #ffffff !important;
}

.container {
    background: transparent !important;
    color: #198754 !important;
}

.container * {
    color: #198754 !important;
}

.container .text-success {
    color: var(--primary-color) !important;
}

.container .text-muted {
    color: #495057 !important;
    font-weight: 500;
}

.container .text-white {
    color: #ffffff !important;
}

/* Témoignages ultra-modernes verts */
.card.bg-success {
    background: var(--gradient-primary) !important;
    border: none;
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.2);
}

.card.bg-success * {
    color: white !important;
}

/* Programme du jour moderne vert sur fond blanc */
.list-group-item {
    background: #ffffff !important;
    border: 1px solid rgba(25, 135, 84, 0.1);
    border-radius: 15px !important;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(25, 135, 84, 0.05);
    color: #198754 !important;
}

.list-group-item * {
    color: #198754 !important;
}

.list-group-item .text-success {
    color: var(--primary-color) !important;
}

.list-group-item:hover {
    transform: translateX(10px);
    background: rgba(25, 135, 84, 0.02) !important;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.1);
    border-color: var(--primary-color);
}

/* Audio Player moderne vert sur fond blanc */
audio {
    border-radius: 25px;
    background: #ffffff !important;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.15);
}

/* Lecteur Live Popup - Version Verte Originale */
.live-player-popup {
    position: fixed;
    bottom: -120px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, 
        rgba(25, 135, 84, 0.98) 0%, 
        rgba(32, 201, 151, 0.95) 50%, 
        rgba(25, 135, 84, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(25, 135, 84, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.live-player-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #20c997, #ffffff, #20c997);
    animation: shimmer 3s infinite;
}

.live-player-popup.show {
    bottom: 20px;
    transform: translateY(0);
}

/* Indicateur de lecture continue en vert */
.live-player-popup::after {
    content: 'Lecture continue';
    position: absolute;
    top: -25px;
    right: 10px;
    background: rgba(25, 135, 84, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.live-player-popup.show::after {
    opacity: 1;
}

.live-player-content {
    padding: 15px;
    color: white;
    position: relative;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.station-logo {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.station-details {
    flex: 1;
    min-width: 0;
}

.station-details h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse-compact 2s infinite;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    flex-shrink: 0;
}

.btn-close-popup {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    flex-shrink: 0;
}

.btn-close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
    color: white !important;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.btn-play-pause {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.btn-play-pause:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    transform: scale(1.1);
    color: white !important;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 100px;
    color: white !important;
}

.volume-control i {
    font-size: 14px;
    color: white !important;
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 60px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-info {
    text-align: center;
    margin-top: 8px;
}

.now-playing {
    font-size: 11px;
    opacity: 0.9;
    font-style: italic;
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* Responsive amélioré pour toutes les tailles d'écran */
@media (max-width: 480px) {
    .live-player-popup {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        bottom: -100px;
    }
    
    .live-player-popup.show {
        bottom: 10px;
    }
    
    .live-player-content {
        padding: 12px;
    }
    
    .player-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .station-info {
        justify-content: center;
    }
    
    .btn-close-popup {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .player-controls {
        gap: 8px;
        padding: 8px;
        justify-content: center;
    }
    
    .btn-play-pause {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .station-logo {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .station-details h6 {
        font-size: 12px;
    }
    
    .volume-control {
        min-width: 80px;
    }
    
    .now-playing {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .live-player-popup {
        width: 280px;
        right: 15px;
    }
    
    .player-controls {
        gap: 10px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .live-player-popup {
        width: 300px;
    }
}

/* Animation shimmer */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-compact {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.3);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.badge * {
    color: white !important;
}

#livePlayer * {
    color: white !important;
}

/* Bouton Live dans le header */
.live-btn {
    position: relative;
    background: var(--gradient-primary) !important;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
}

.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
}

.live-pulse {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .live-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Styles responsives pour la navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(25, 135, 84, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        position: static !important;
        transform: none !important;
        width: 100%;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        text-align: center;
        background: rgba(25, 135, 84, 0.05);
        margin: 0.25rem 0;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(25, 135, 84, 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-brand div {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.75rem;
    }
}

/* Styles pour le footer - textes visibles - VERSION NOIRE */
footer.bg-dark {
    background: #212529 !important; /* Remis en noir */
}

/* Cibler spécifiquement les paragraphes du footer */
footer.bg-dark .col-lg-4 p {
    color: #ffffff !important;
}

/* Cibler tous les textes du footer */
footer.bg-dark p,
footer.bg-dark span:not(.live-indicator),
footer.bg-dark div:not(.live-player-popup),
footer.bg-dark li {
    color: #ffffff !important;
}

/* Garder les titres en vert */
footer.bg-dark h5.text-success,
footer.bg-dark h6.text-success {
    color: #198754 !important;
}

/* Liens en blanc avec hover vert */
footer.bg-dark a.text-light {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.bg-dark a.text-light:hover {
    color: #198754 !important;
}

/* Icônes des réseaux sociaux */
footer.bg-dark .fab {
    color: #ffffff !important;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer.bg-dark .fab:hover {
    color: #198754 !important;
}

/* Icônes de contact */
footer.bg-dark .fas.fa-map-marker-alt,
footer.bg-dark .fas.fa-phone,
footer.bg-dark .fas.fa-envelope {
    color: #198754 !important;
}

/* Copyright */
footer.bg-dark .mb-0 {
    color: #ffffff !important;
}

/* Forcer la couleur blanche pour les textes spécifiques */
footer.bg-dark .col-lg-4 p:nth-child(3),
footer.bg-dark .col-lg-4 p:nth-child(4) {
    color: #ffffff !important;
    font-weight: 400;
}

/* Ligne de séparation */
footer.bg-dark hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Bouton d'écoute en direct */
footer.bg-dark .btn-success {
    background: var(--gradient-primary) !important;
    border: none;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer.bg-dark .btn-success:hover {
    background: var(--gradient-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
    color: #ffffff !important;
}

/* Bouton live du footer */
footer .btn-success {
    transition: all 0.3s ease;
}

footer .btn-success.connecting {
    background: linear-gradient(45deg, #ffc107, #ffca2c) !important;
    border-color: #ffc107 !important;
    animation: pulse-connecting 1.5s infinite;
}

footer .btn-success.playing {
    background: linear-gradient(45deg, #dc3545, #ff4757) !important;
    border-color: #dc3545 !important;
    animation: pulse-live 2s infinite;
    color: white !important;
}

footer .btn-success.paused {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    border-color: #6c757d !important;
}

footer .btn-success.error {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
    border-color: #dc3545 !important;
    animation: pulse-error 1s infinite;
}

/* Responsive pour le footer */
@media (max-width: 768px) {
    footer.bg-dark .col-lg-4,
    footer.bg-dark .col-lg-2,
    footer.bg-dark .col-lg-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer.bg-dark .d-flex.gap-3 {
        justify-content: center;
    }
    
    footer.bg-dark .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .live-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .live-btn .fa-play {
        font-size: 0.7rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Alternative pour les textes secondaires */
.text-secondary {
    color: #495057 !important;
    font-weight: 500;
}

/* Amélioration du toggler */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825, 135, 84, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Animation pour le menu mobile */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.collapsing {
    transition: height 0.3s ease;
}

/* Pulse animation pour le bouton live */
.live-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* États des boutons du popup */
.btn-play-pause.loading,
#livePlayPauseBtn.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-play-pause.playing,
#livePlayPauseBtn.playing {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-play-pause.error,
#livePlayPauseBtn.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.4), rgba(220, 53, 69, 0.2));
    border-color: rgba(220, 53, 69, 0.6);
}

.btn-play-pause:disabled,
#livePlayPauseBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styles pour le contrôle de volume du popup live */
#liveVolumeSlider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 2px;
}

#liveVolumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Animation pour le spinner */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallbacks pour navigateurs non supportés */
.btn-success {
    background: #198754 !important; /* Fallback */
    background: var(--gradient-primary) !important;
}

/* Amélioration pour très grands écrans (4K, ultrawide) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .live-player-popup {
        width: 380px;
        right: 30px;
    }
}

/* Amélioration pour écrans moyens (laptops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img {
        height: 45px;
    }
    
    .live-player-popup {
        width: 320px;
    }
}

/* Amélioration pour tablettes paysage */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .live-player-popup {
        width: 300px;
        right: 15px;
    }
    
    .navbar-brand img {
        height: 42px;
    }
}

/* Amélioration pour tablettes portrait */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .live-player-popup {
        width: 280px;
        right: 15px;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Amélioration pour très petits écrans */
@media (max-width: 375px) {
    .navbar-brand {
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .live-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero-section {
        min-height: 40vh;
        padding: 2rem 0;
    }
    
    .live-player-popup {
        width: calc(100vw - 10px);
        right: 5px;
        left: 5px;
    }
}

/* Compatibilité Safari */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .live-player-popup {
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
    }
    
    .player-controls {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* Compatibilité Firefox */
@-moz-document url-prefix() {
    .volume-slider::-moz-range-track {
        background: rgba(255, 255, 255, 0.3);
        height: 4px;
        border-radius: 5px;
    }
}

/* Compatibilité Internet Explorer/Edge Legacy */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .live-player-popup {
        background: rgba(25, 135, 84, 0.95);
    }
    
    .btn {
        border-radius: 25px;
    }
}

/* Mode sombre système - Maintenir le design blanc */
@media (prefers-color-scheme: dark) {
    body {
        background: #ffffff !important; /* Fond blanc au lieu de noir */
        color: #198754 !important;
    }
    
    .navbar {
        background: #ffffff !important; /* Navbar blanche au lieu de noire */
        border-bottom: 1px solid rgba(25, 135, 84, 0.2);
    }
    
    .nav-link {
        color: #198754 !important; /* Texte vert sur fond blanc */
    }
    
    .nav-link:hover {
        color: var(--primary-color) !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #198754 !important;
    }
    
    p, span, div {
        color: #198754 !important;
    }
    
    .text-dark {
        color: #198754 !important;
    }
    
    .card {
        background: #ffffff !important;
        border-color: rgba(25, 135, 84, 0.15);
        box-shadow: 0 4px 20px rgba(25, 135, 84, 0.1); /* Ombre légère verte */
    }
    
    .card-body {
        background: #ffffff !important;
        color: var(--text-dark) !important;
    }
    
    .card-body * {
        color: var(--text-dark) !important;
    }
    
    .list-group-item {
        background: #ffffff !important; /* Fond blanc */
        border-color: rgba(25, 135, 84, 0.3);
        color: #198754 !important;
    }
    
    .list-group-item * {
        color: #198754 !important;
    }
    
    .list-group-item:hover {
        background: rgba(25, 135, 84, 0.05) !important; /* Hover très légèrement vert */
    }
    
    .dropdown-item {
        background: #ffffff;
        color: #198754 !important;
    }
    
    .dropdown-item:hover {
        background: rgba(25, 135, 84, 0.05);
    }
    
    .btn-warning {
        background: #ffffff !important; /* Bouton blanc au lieu de noir */
        color: #198754 !important;
        border: 1px solid #198754;
    }
    
    section {
        background: #ffffff !important; /* Sections blanches */
    }
    
    .container {
        color: #198754 !important;
    }
    
    .container * {
        color: #198754 !important;
    }
    
    audio {
        background: #ffffff !important;
    }
}

/* Réduction des animations pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Amélioration du contraste pour accessibilité */
@media (prefers-contrast: high) {
    .btn-success {
        background: #0d5f2a !important;
        border: 2px solid #ffffff;
    }
    
    .live-player-popup {
        border: 3px solid #ffffff;
    }
}

/* Orientation paysage pour mobiles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }
    
    .live-player-popup {
        width: 250px;
        bottom: 10px;
    }
}

/* Support pour écrans pliables */
@media (max-width: 280px) {
    .navbar-brand {
        font-size: 0.7rem;
    }
    
    .live-player-popup {
        width: calc(100vw - 5px);
        right: 2.5px;
        left: 2.5px;
    }
}

/* Style pour le bouton LIVE actif */
.live-playing {
    background: linear-gradient(45deg, #ff4444, #ff6666) !important;
    animation: pulse-live 2s infinite;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 68, 68, 0.8); }
    100% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.5); }
}

/* Amélioration du popup lecteur */
#livePlayerPopup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.3);
    z-index: 9999;
    min-width: 280px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

#livePlayerPopup.show {
    transform: translateY(0);
    opacity: 1;
}

/* Indicateur de lecture continue */
#livePlayerPopup::before {
    content: "🔴 Lecture continue";
    position: absolute;
    top: -25px;
    left: 10px;
    background: rgba(25, 135, 84, 0.9); /* Changé de rouge à vert */
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* Styles pour les bannières publicitaires */
.bannieres-pub {
    margin: 20px 0;
}

.banniere-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.banniere-item:hover {
    transform: scale(1.02);
}

.banniere-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.banniere-image:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Tailles des bannières */
.banniere-petit .banniere-image {
    max-width: 200px;
    max-height: 100px;
}

.banniere-moyen .banniere-image {
    max-width: 300px;
    max-height: 150px;
}

.banniere-grand .banniere-image {
    max-width: 400px;
    max-height: 200px;
}

.banniere-pleine-largeur .banniere-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

/* Bannières dans la sidebar */
.sidebar .bannieres-pub {
    margin: 15px 0;
}

/* Bannières dans le header */
.header .bannieres-pub {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

/* Bannières dans le footer */
.footer .bannieres-pub {
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .banniere-grand .banniere-image,
    .banniere-moyen .banniere-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .live-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Styles responsives pour la navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(25, 135, 84, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        position: static !important;
        transform: none !important;
        width: 100%;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        text-align: center;
        background: rgba(25, 135, 84, 0.05);
        margin: 0.25rem 0;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(25, 135, 84, 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-brand div {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .live-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .live-btn .fa-play {
        font-size: 0.7rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Amélioration du toggler */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825, 135, 84, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Animation pour le menu mobile */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.collapsing {
    transition: height 0.3s ease;
}

/* Pulse animation pour le bouton live */
.live-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}