
   /* --- Variables CSS personnalisées pour les couleurs - Version Bleu Clair/Foncé Pro --- */
:root {
    --primary-light-color: #6EB5FF; /* Un bleu ciel lumineux pour l'accentuation claire */
    --primary-color: #007bff;     /* Bleu professionnel standard (Bootstrap) */
    --primary-dark-color: #004d99; /* Un bleu marine profond pour les fonds sombres/accents */
    --secondary-color: #6c757d;    /* Gris bleuâtre professionnel (Bootstrap) */
    --secondary-dark-color: #4a4f53; /* Nuance plus foncée du gris bleuâtre */
    --light-bg-color: #f8f9fa;     /* Arrière-plan très clair (neutre) */
    --dark-bg-color: #2c3e50;      /* Bleu très foncé/presque noir pour navbar/footer */
    --text-color-light: #fff;      /* Texte clair (blanc) */
    --text-color-dark: #212529;    /* Texte foncé (noir presque pur) */
    --border-color: rgba(0, 0, 0, 0.1); /* Bordure discrète */
    --shadow-color-light: rgba(0, 0, 0, 0.05); /* Ombre très légère */
    --shadow-color-medium: rgba(0, 0, 0, 0.1); /* Ombre moyenne */
    --shadow-color-strong: rgba(0, 0, 0, 0.2); /* Ombre plus prononcée pour les effets */
}


/* --- Variables CSS personnalisées pour les couleurs - Version Finale Raffinée --- */
:root {
    --primary-light-color: #6EB5FF;     /* Bleu ciel lumineux, pour les accents et highlights */
    --primary-color: #007bff;           /* Bleu professionnel standard, pour les actions primaires */
    --primary-dark-color: #004d99;      /* Bleu marine profond, pour les titres et éléments importants */
    --secondary-color: #6c757d;         /* Gris bleuâtre, pour les textes secondaires et icônes */
    --secondary-light-color: #e9ecef;   /* Gris très clair, pour les fonds de sections subtils */
    --dark-bg-color: #1d466e;           /* Bleu très foncé/marine, pour navbar, footer, lecteur */
    --light-bg-color: #f8f9fa;          /* Arrière-plan très clair, pour le corps de la page */
    --card-bg-color: #ffffff;           /* Fond blanc pur pour les cartes */
    --text-color-light: #fff;           /* Texte blanc sur fonds sombres */
    --text-color-dark: #343a40;         /* Texte gris foncé sur fonds clairs */
    --border-color-light: rgba(0, 0, 0, 0.08); /* Bordure très légère pour les séparations */
    --shadow-color-subtle: rgba(0, 0, 0, 0.05); /* Ombre très discrète */
    --shadow-color-medium: rgba(0, 0, 0, 0.1);  /* Ombre moyenne pour les éléments en relief */
    --shadow-color-strong: rgba(0, 0, 0, 0.25); /* Ombre prononcée pour les effets interactifs */
}

/* --- Styles généraux pour le corps et la typographie --- */
body {
    padding-top: 58px; /* Ajusté pour la navbar */
    padding-bottom: 90px; /* Ajusté pour le lecteur audio */
    background-color: var(--light-bg-color);
    color: var(--text-color-dark);
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Police moderne et claire */
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Police pour les titres, plus impactante */
    color: var(--primary-dark-color);
    font-weight: 700; /* Plus de poids pour les titres */
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

hr {
    border-top: 1px solid var(--border-color-light);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    background-color: var(--dark-bg-color) !important;
    box-shadow: 0 4px 10px var(--shadow-color-medium);
    padding: 0.6rem 1rem; /* Légèrement plus de padding */
}

.navbar .navbar-brand {
    color: var(--text-color-light) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar .navbar-logo {
    height: 68px; /* Taille du logo (ajustez si besoin) */
    width: auto; /* Pour maintenir les proportions */
    /* Assurez-vous que l'image est bien alignée si elle n'a pas la même hauteur que le texte */
    vertical-align: middle;
}

.navbar .navbar-brand i {
    font-size: 2.2rem;
    margin-right: 0.5rem;
    color: var(--primary-light-color); /* Icône en bleu clair */
}

.navbar .nav-link {
    color: var(--text-color-light) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 0.3rem;
}
.navbar .nav-link i {
   font-size: 2.2rem;
}

.navbar .nav-link:hover {
    color: var(--primary-light-color) !important;
    background-color: rgba(255, 255, 255, 0.1); /* Léger fond au survol */
}

.navbar .nav-link.active {
    color: var(--primary-light-color) !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15); /* Fond plus visible pour l'actif */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* --- Offcanvas (Sidebar Mobile) --- */
.offcanvas {
    background-color: var(--card-bg-color); /* Fond blanc pour l'offcanvas */
    color: var(--text-color-dark);
    box-shadow: 0 0 20px var(--shadow-color-medium);
}

.offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--border-color-light);
    padding: 1rem 1.5rem;
}

.offcanvas .offcanvas-title {
    color: var(--primary-dark-color);
    font-weight: 700;
}

.offcanvas .btn-close {
    color: var(--text-color-dark); /* Couleur sombre pour le bouton */
    opacity: 0.7;
}

.offcanvas .nav-link {
    color: var(--text-color-dark);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.3rem;
}

.offcanvas .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.08);
}

.offcanvas .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 123, 255, 0.15);
    font-weight: 600;
}

.offcanvas .sidebar-heading {
    color: var(--secondary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding-left: 1.5rem; /* Aligné avec les liens */
    padding-right: 1.5rem;
}

/* --- Sidebars fixes (Desktop/Tablet) --- */
.sidebar {
    position: fixed;
    top: 58px; /* Correspond à la hauteur de la navbar */
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 1rem 0;
    background-color: var(--card-bg-color); /* Fond blanc pour les sidebars */
    box-shadow: inset -1px 0 0 var(--border-color-light);
    overflow-y: auto;
}

aside.sidebar {
    left: auto;
    right: 0;
    box-shadow: inset 1px 0 0 var(--border-color-light);
}

.sidebar .position-sticky {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.sidebar .sidebar-heading {
    color: var(--secondary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding-left: 0.8rem; /* Ajusté pour l'indentation de la liste */
    padding-right: 0.8rem;
    margin-bottom: 0.75rem;
}

.sidebar .nav-link {
    color: var(--text-color-dark);
    padding: 0.6rem 0.8rem;
    transition: all 0.25s ease;
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.08);
}

.sidebar .nav-link.active {
    font-weight: 600;
    color: var(--primary-color) !important;
    background-color: rgba(0, 123, 255, 0.15);
    border-radius: 0.3rem;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px; /* Largeur fixe pour alignement des icônes */
    text-align: center;
}

.sidebar .nav-link img {
    border-radius: 50%;
    border: 1px solid var(--border-color-light);
    margin-right: 0.75rem;
    width: 24px;
    height: 24px;
    object-fit: cover;
}

/* Barre de recherche dans la sidebar */
.sidebar .p-3.bg-white {
    background-color: var(--secondary-light-color) !important; /* Gris très clair pour le bloc de recherche */
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px var(--shadow-color-subtle);
    padding: 1rem !important;
}

.sidebar .p-3.bg-white h4 {
    color: var(--primary-dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* --- Contenu principal --- */
main {
    margin-left: calc(16.66% + 20px); /* 16.66% est la largeur de col-lg-2, + padding */
    margin-right: calc(16.66% + 20px);
    padding-top: 1rem; /* Espace au-dessus du fil d'Ariane */
    flex-grow: 1;
}

/* --- Fil d'Ariane --- */
.breadcrumb {
    background-color: var(--card-bg-color);
    border-radius: 0.5rem;
    padding: 0.8rem 1.2rem; /* Plus de padding */
    box-shadow: 0 2px 8px var(--shadow-color-subtle);
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 500;
}

/* --- Alertes --- */
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
}

/* --- Cartes des émissions --- */
.episode-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 4px 15px var(--shadow-color-subtle); /* Ombre initiale plus douce */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
    position: relative;
}

.episode-card:hover {
    transform: translateY(-8px); /* Soulèvement plus prononcé */
    box-shadow: 0 12px 30px var(--shadow-color-medium),
                0 0 0 5px var(--primary-light-color); /* Ombre plus forte et bordure lumineuse épaisse */
    /* border-color: var(--primary-light-color); */ /* Moins nécessaire avec le glow */
}

/* Pour le glow, si on ne veut pas de bordure sur la carte elle-même */
.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.75rem;
    border: 3px solid transparent; /* Bordure interne pour le glow */
    transition: border-color 0.3s ease-out;
    pointer-events: none;
}

.episode-card:hover::before {
    border-color: var(--primary-light-color); /* Le glow apparaît */
}

.episode-card .card-img-top {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    height: 160px; /* Légèrement plus grande */
    object-fit: cover;
    transition: transform 0.3s ease; /* Zoom sur l'image au survol */
}

.episode-card:hover .card-img-top {
    transform: scale(1.05); /* Petit zoom sur l'image */
}


.episode-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Assure le bouton en bas */
}

.episode-card .card-title {
    color: var(--primary-dark-color);
    font-weight: 700; /* Titres plus gras */
    font-size: 1.2rem; /* Légèrement plus grande */
    margin-bottom: 0.6rem;
    line-height: 1.3;
    min-height: 3.2rem; /* Légèrement plus grande */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
   /* -webkit-line-clamp: 2;*/
    -webkit-box-orient: vertical;
}

.episode-card .card-text.text-muted {
    font-size: 0.88rem; /* Légèrement plus grande */
    color: var(--secondary-color) !important;
    margin-bottom: 0.8rem;
}

.episode-card .card-text {
    font-size: 0.92rem; /* Légèrement plus grande */
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
   /* -webkit-line-clamp: 3;*/
    -webkit-box-orient: vertical;
}

/* --- Bouton "Écouter" --- */
.play-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1rem; /* Plus grande */
    padding: 0.5rem 1rem; /* Plus de padding */
    border-radius: 0.5rem;
    width: 100%;
    font-weight: 600;
}

.play-button:hover {
    background-color: var(--primary-dark-color);
    border-color: var(--primary-dark-color);
    transform: translateY(-2px); /* Léger soulèvement au survol */
    box-shadow: 0 4px 8px var(--shadow-color-medium);
}

/* --- Blocs Radio --- */
.radio-block {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px var(--shadow-color-medium); /* Ombre plus prononcée */
    background-color: var(--card-bg-color);
    margin-bottom: 2.5rem; /* Plus d'espace */
    overflow: hidden; /* Pour que les coins de l'en-tête soient bien arrondis */
}

.radio-block .card-header {
    background: linear-gradient(135deg, var(--primary-light-color), var(--primary-color)); /* Dégradé pour l'en-tête */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    padding: 1.2rem 1.8rem; /* Plus de padding */
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Pour la responsivité */
}

.radio-block .card-header .radio-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-right: 15px;
}

.radio-block .card-header .radio-info img {
    border-radius: 50%;
    border: 3px solid var(--text-color-light);
    padding: 3px;
    box-shadow: 0 2px 8px var(--shadow-color-subtle);
    width: 100px; /* CHANGEZ CECI */
    height: 100px; /* CHANGEZ CECI */
    object-fit: cover;
}

.radio-block .card-header .radio-info h3 {
    color: var(--text-color-light);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.8rem; /* Plus grande */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Ombre légère pour le texte */
}

.radio-block .radio-header .radio-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Bouton "S'abonner" */
.subscribe-button {
    background-color: var(--primary-dark-color);
    border-color: var(--primary-dark-color);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.subscribe-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px var(--shadow-color-subtle);
}

/* Bouton "Voir plus d'émissions" */
.view-more-button {
    background-color: transparent;
    border: 2px solid var(--text-color-light); /* Bordure plus épaisse */
    color: var(--text-color-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.view-more-button:hover {
    background-color: var(--text-color-light);
    color: var(--primary-dark-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px var(--shadow-color-subtle);
}

/* --- Lecteur audio fixe --- */
#fixed-audio-player {
    z-index: 1040;
    background-color: var(--dark-bg-color) !important;
    color: var(--text-color-light);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 15px var(--shadow-color-medium);
    padding: 1rem 1.5rem; /* Plus de padding */
    display: flex; /* Gardez ceci pour l'affichage par défaut */
    align-items: center;
    justify-content: center;
}

#fixed-audio-player .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#fixed-audio-player .flex-grow-1 {
    margin-right: 1.5rem;
}

#fixed-audio-player p.mb-0 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem !important;
}

#fixed-audio-player small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

#fixed-audio-player audio {
    width: 100%;
    max-width: 450px; /* Plus large pour le lecteur */
    background-color: var(--dark-bg-color);
    filter: invert(1) hue-rotate(180deg); /* Garde les contrôles visibles */
    margin: 0.5rem 0; /* Espacement si les éléments se stackent */
}

#fixed-audio-player .btn-outline-light {
    color: var(--text-color-light);
    border-color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

#fixed-audio-player .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-light-color);
}

@media (max-width: 767.98px) {
    /* Supprimez ou commentez la ligne suivante pour que le lecteur soit visible sur mobile */
    /* #fixed-audio-player {
        display: none !important;
    } */

    /* Vous voudrez peut-être ajuster le style pour les petits écrans */
    #fixed-audio-player .container {
        flex-direction: column; /* Empile les éléments verticalement */
        align-items: center;
        text-align: center;
    }

    #fixed-audio-player .flex-grow-1 {
        margin-right: 0;
        margin-bottom: 0.5rem; /* Ajoute un peu d'espace entre le texte et le lecteur audio */
    }

    #fixed-audio-player audio {
        width: 100%; /* S'assure qu'il prend toute la largeur disponible */
        max-width: none; /* Supprime la limite de largeur pour mobile */
    }

    #fixed-audio-player .btn-outline-light {
        margin-top: 0.5rem; /* Espace le bouton de fermeture du lecteur */
    }
}
/* --- Footer --- */
footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--dark-bg-color) !important;
    color: var(--text-color-light);
    box-shadow: 0 -4px 10px var(--shadow-color-medium);
    padding: 1.5rem 0; /* Plus de padding */
    font-size: 0.9rem;
}

footer .container p {
    margin-bottom: 0.3rem;
}

footer .container small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) { /* Adjust breakpoint for larger tablets if needed */
    main {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sidebar {
        display: none !important;
    }

    /* Adjust main content padding when sidebars are hidden */
    body:not(.offcanvas-open) main {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-brand i {
        font-size: 1.5rem;
    }

    .offcanvas-start {
        width: 80%; /* Plus large sur les petits mobiles */
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .radio-block .card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }

    .radio-block .card-header .radio-info {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
    }

    .radio-block .card-header .radio-info h3 {
        font-size: 1.5rem;
    }

    .radio-block .radio-header .radio-buttons {
        width: 100%;
        flex-direction: row; /* Essaye de garder côte à côte si l'espace le permet */
        gap: 8px;
        justify-content: space-between; /* Espace les boutons */
    }

    .radio-block .radio-header .radio-buttons .btn {
        flex-grow: 1;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .episode-card .card-img-top {
        height: 120px;
    }

    .episode-card .card-title {
        font-size: 1.1rem;
        min-height: auto;
    }

    .episode-card .card-text {
        font-size: 0.85rem;
        /* -webkit-line-clamp: 2; Réduire à 2 lignes sur mobile */
    }

    .play-button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    #fixed-audio-player .container {
        flex-direction: column;
        align-items: flex-start;
    }

    #fixed-audio-player .flex-grow-1 {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    #fixed-audio-player audio {
        max-width: 100%;
    }

    #fixed-audio-player .btn-outline-light {
        margin-top: 0.5rem;
        align-self: flex-end; /* Bouton de fermeture à droite */
    }
}

@media (max-width: 575.98px) { /* Extra small devices */
    .radio-block .radio-header .radio-buttons {
        flex-direction: column; /* Empile les boutons si trop petit */
    }
}


