@media (min-width: 981px) {
    .portfolio .row {
        display: none;
    }

}

.side-pub {
    position: absolute;
    z-index: 1000;
    width: clamp(0px, calc(50vw - 520px), 180px);
    overflow: hidden;
}

.side-pub--left {
    right: calc(100% + 20px);
    left: auto;
}

.side-pub--right {
    left: calc(100% + 20px);
    right: auto;
}

.side-pub--top-offset {
    top: 10px;
}

.side-pub img {
    display: block;
    width: 100%;
    height: auto;
}

div #middle.white_ver .middle_content_accueil .portfolio {
    padding-left: 5px;
}

.widget_custom_portfolio_entries_slides {
    display: none;
}

.row-fluid .controlslide {
    display: none;
}

@media (max-width: 1060px) {
    .row {
        padding: 0 0 !important;
    }

    #container {
        padding: 10px 0 !important;
    }
}

@media (max-width: 540px) {
    .image_shadow_container img {
        width: 100%;
    }

    .image_shadow_container {
        width: 100%;
    }
}

@media (max-width: 979px) {
    .three_blocks .one_third .wrap .tab-content-items-slider-text h4 {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .home .ckoi_boutons .btn-inverse {
        display: none;
    }

    .home .liste-full .ovh {
        padding-right: 15px;
    }

    .home .flickr_badge_image {
        margin-top: 10px !important;
        margin-bottom: 16px !important;
    }

    .current_date {
        margin-top: -2px;
    }

    #newheader .header-bureau .col_header:not(.module-player) {
        display: none;
    }

    #newheader .col_header.custom-un-demi, #newheader .col_header.custom-un-tiers {
        width: 480px;
        margin: 0 auto !important;
        float: none !important;
    }

    #newheader .col_header.custom-un-tiers {
        width: 316px;
    }

    .bloc-top10 .mp3-carousel li, .bloc-podcasts .mp3-carousel li, .bloc-rss.rss-podcast .mp3-carousel li, .bloc-musiques .mp3-carousel li, .bloc-ckoi .mp3-carousel li {
        height: initial !important;
    }
}

.lineclamp1 {
    text-overflow: ellipsis;
    display: -webkit-inline-box !important;
    width: 94%;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
}

.lineclamp2 {
    text-overflow: ellipsis;
    display: -webkit-box !important;
    width: 94%;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2 !important;
    padding: 0 !important;
}

li.troistiers {
    float: left;
}

li.troistiers div.ovh {
    float: left;
}

.home .three_blocks .one_third .ovh small {
    text-overflow: ellipsis;
    display: -webkit-inline-box;
    width: 94%;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}

#newheader .nomflux, #newheader .title, #newheader .artist-outer {
    text-overflow: ellipsis;
    display: -webkit-inline-box;
    width: 230px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
}

.rslides_nav.prev, .rslides_nav.next {
    font-size: 0px;
}

.with_title .rslides_nav.prev, .with_title .rslides_nav.next {
    position: absolute;
    top: 10px;
    font-size: 15px;
}

#navResponsiveSlide .rslides_nav.prev, #navResponsiveSlide .rslides_nav.next {
    font-size: 15px;
}

#slidejss div.slidejs_element {
    display: none;
}

#slidejss div.slidejs_element:first-child {
    display: block;
}

#slidejss img {
    max-width: 980px !important;
    max-height: 400px !important;
}

#slidejss a, #slidejss .slidejs_element {
    float: none !important;
}

#navResponsiveSlide a {
    font-size: 0px !important;
}

.rslides_tabs {
    background: rgba(0, 0, 0, .25);
    font-size: 12px;
    list-style: none;
    margin: 0 auto 20px;
    height: 13px;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.rslides_tabs li {
    display: inline;
    float: none;
    margin: 0 4px;
    background: #fff;
}

.rslides_tabs li.rslides_here {
    background: #000;
}

.rslides_tabs a {
    width: 13px !important;
    height: 0 !important;
    padding-top: 13px;
    color: transparent;
    background: #000 !important;
    display: block;
    float: left;
    font-weight: normal;
    line-height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.rslides_tabs a:hover {
    border: 0;
    color: transparent !important
}

.rslides_tabs li:first-child {
    margin-left: 0;
}

.rslides_tabs li:first-child a {
    margin-left: 48%;
}

.rslides_tabs .rslides_here a {
    background: rgba(255, 255, 255, .1);
    background: #fff !important;
    font-weight: bold;
}

.rslides_nav.prev {
    right: 15px;
}

.rslides_nav.next {
    right: 0px;
}

@media (max-width: 767px) {
    .with_title .rslides_nav.prev, .with_title .rslides_nav.next {
        font-size: 25px;
        top: 4px;
    }

    .rslides_nav.prev {
        right: 25px;
    }

    .rslides_nav.next {
        right: 5px;
    }

    .tous-bloc-untiers .widget_custom_portfolio_entries .one_third {
        width: 96% !important;
    }

}

div.one_item_in_troistiers {
    display: inline-block;
}

div.one_item_in_troistiers .ovh {
    width: 161px;
    margin-right: 5px;
}

@media (max-width: 979px) {

    li.troistiers {
        height: auto;
    }

    .bloc-full .widget_custom_popular_entries .one_third {
        width: 97% !important;
    }

    .bloc-deuxtiers .widget_custom_portfolio_entries .one_third {
        width: 96% !important;
    }

    .tab-content-items-slider-text h4 {
        display: inline-block;
        margin-bottom: 0;
    }

    #newheader .controlslide {
        top: -2px !important;
    }

    #newheader .controlslide i {
        font-size: 32px;
    }

    #newheader .controlslide a.prev {
        margin-right: 5px;
    }

}

.bloc-deuxtiers .wrap {
    line-height: 10px;
}

.bloc-deuxtiers .one_third {
    padding-bottom: 0px !important;
}

li.deuxtiers.lislide {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 0px !important;
}

li.troistiers {
    margin-bottom: 0px !important;
}

.wrap {
    line-height: initial;
}

@media (max-width: 640px) {
    .ovh .tbutton.small {
        display: none;
    }

}

@media (max-width: 479px) {
    #newheader .custom-un-demi {
        width: 100% !important;
    }

    #newheader .custom-un-demi .track-info .btn-ecoute {
        float: left !important;
    }

    #newheader .custom-un-demi .track-info {
        margin-top: 8px !important;
        margin-left: 110px !important;
        float: none;
    }

    #newheader .content-un-demi .track-info a.btn-ecoute {
        display: none !important;
    }

    #newheader .custom-un-demi .track-info p {
        line-height: 15px;
    }

    #newheader .custom-un-demi button {
        display: block !important;
        position: absolute;
        bottom: 3px;
        left: 110px;
    }
}

@media (max-width: 979px) and (min-width: 768px) {
    .tous-bloc-untiers .bloc-ckoi .widget_custom_portfolio_entries_slides .tab-content-items-slider-text h4 {
        width: calc(100% - 95px);
    }

}


@media (min-width: 981px) {
    .bloc-full {
        width: 950px !important;
    }
}

@media (max-width: 981px) {
    .bloc-full {
        width: 95% !important;
    }
}

/* ----- Bloc social de l'accueil ----- */
.home-social-block {
    --home-social-facebook: #1877f2;
    --home-social-twitter: #000000;
    --home-social-youtube: #ff0000;
    --home-social-instagram: #dd2a7b;
    --home-social-tiktok: #000000;
    --home-social-snapchat: #fffc00;
    --home-social-dailymotion: #0a0a0a;
    --home-social-linkedin: #0a66c2;
    --home-social-threads: #000000;
    --home-social-whatsapp: #25d366;
    --home-social-twitch: #9146ff;
    --home-social-discord: #5865f2;
    --home-social-spotify: #1db954;
    --home-social-deezer: #a238ff;
    --home-social-ios: #000000;
    --home-social-android: #3ddc84;
    --home-social-instagram-gradient: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
    margin: 8px 0 28px;
}

.home-social-block__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-social-block__entry {
    min-width: 0;
    margin: 0;
}

.home-social-block__item {
    --home-social-color: #000000;
    --home-social-background: var(--home-social-color);
    --home-social-contrast: #ffffff;
    color: inherit;
    text-decoration: none;
}

.home-social-block__item--facebook {
    --home-social-color: var(--home-social-facebook);
}

.home-social-block__item--twitter {
    --home-social-color: var(--home-social-twitter);
}

.home-social-block__item--youtube {
    --home-social-color: var(--home-social-youtube);
}

.home-social-block__item--instagram {
    --home-social-color: var(--home-social-instagram);
    --home-social-background: var(--home-social-instagram-gradient);
}

.home-social-block__item--tiktok {
    --home-social-color: var(--home-social-tiktok);
}

.home-social-block__item--snapchat {
    --home-social-color: var(--home-social-snapchat);
    --home-social-contrast: #000000;
}

.home-social-block__item--dailymotion {
    --home-social-color: var(--home-social-dailymotion);
}

.home-social-block__item--linkedin {
    --home-social-color: var(--home-social-linkedin);
}

.home-social-block__item--threads {
    --home-social-color: var(--home-social-threads);
}

.home-social-block__item--whatsapp {
    --home-social-color: var(--home-social-whatsapp);
}

.home-social-block__item--twitch {
    --home-social-color: var(--home-social-twitch);
}

.home-social-block__item--discord {
    --home-social-color: var(--home-social-discord);
}

.home-social-block__item--spotify {
    --home-social-color: var(--home-social-spotify);
}

.home-social-block__item--deezer {
    --home-social-color: var(--home-social-deezer);
}

.home-social-block__item--ios {
    --home-social-color: var(--home-social-ios);
}

.home-social-block__item--android {
    --home-social-color: var(--home-social-android);
}

/* Logo seul (colonne 1/3) */
.home-social-block--icons .home-social-block__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.home-social-block--icons .home-social-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--home-social-background);
    color: var(--home-social-contrast);
    font-size: 20px;
}

/* Cartes logo + nom (pleine largeur et 2/3) */
.home-social-block--named .home-social-block__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.home-social-block--named .home-social-block__item {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid var(--home-social-color);
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
    overflow: hidden;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-social-block--named .home-social-block__item:hover {
    background: var(--home-social-background);
    color: var(--home-social-contrast);
    transform: translateY(-1px);
}

.home-social-block__item:focus-visible {
    outline: 2px solid var(--home-social-color);
    outline-offset: 2px;
}

.home-social-block--named .home-social-block__icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--home-social-background);
    color: var(--home-social-contrast);
    font-size: 24px;
}

.home-social-block--named .home-social-block__text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 7px 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .home-social-block--named .home-social-block__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-social-block--named .home-social-block__item {
        min-height: 56px;
    }

    .home-social-block--named .home-social-block__text {
        padding: 0 14px;
        white-space: normal;
    }
}

.home-social-widget {
    width: 100%;
}

.home-social-wrap {
    padding-bottom: 25px;
}

.home-social-post--second {
    margin-left: 11px;
}

/* ----- Réseaux sociaux en logos seuls : footer et sidebar ----- */
.footer-social-post,
.social-icons-block {
    width: 100%;
}

.social-icons-block .home-social-block {
    margin: 10px 0 20px;
}

.social-icons-block .home-social-block--icons .home-social-block__list {
    justify-content: flex-start;
}

.social-icons-block .home-social-block__item:hover .home-social-block__icon {
    opacity: 0.85;
}

.social-icons-block .home-social-block--icons .home-social-block__icon {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Sidebar : logos centrés sous le titre */
.sidebar-social-block .home-social-block {
    margin: 10px 0;
}

.sidebar-social-block .home-social-block--icons .home-social-block__list {
    justify-content: center;
}

/* ----- Accueil : blocs social et liste des players en 2/3 + 1/3 entre 768 et 980px ----- */
.home-social-post .home-social-block__list,
.home-social-post .home-social-block__entry {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 980px) {
    #middle .middle_content .portfolio.three_blocks .post.home-social-post.bloc-deuxtiers,
    #middle .middle_content .portfolio.three_blocks .post.home-social-post.bloc-untiers,
    #middle .middle_content .portfolio.three_blocks .post.home-webradios-post.bloc-deuxtiers,
    #middle .middle_content .portfolio.three_blocks .post.home-webradios-post.bloc-untiers {
        box-sizing: border-box;
        max-width: 100%;
    }

    #middle .middle_content .portfolio.three_blocks .post.home-social-post.bloc-deuxtiers,
    #middle .middle_content .portfolio.three_blocks .post.home-webradios-post.bloc-deuxtiers {
        width: calc((100% - 36px) * 2 / 3);
    }

    #middle .middle_content .portfolio.three_blocks .post.home-social-post.bloc-untiers,
    #middle .middle_content .portfolio.three_blocks .post.home-webradios-post.bloc-untiers {
        width: calc((100% - 36px) / 3);
    }

    #middle .middle_content .portfolio.three_blocks .post.home-social-post--second,
    #middle .middle_content .portfolio.three_blocks .post.home-webradios-post--second {
        margin-left: 11px;
    }
}

/* À partir de 981px, custom.css remet les blocs de l'accueil en largeur automatique.
   Sans .one_third interne, ces blocs prendraient la largeur de leur contenu (logos sur une ligne,
   images des players) : la colonne 1/3, y compris en 1/3 1/3 1/3, reprend la largeur des modules
   natifs (.one_third à 286px). */
@media (min-width: 981px) {
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .post.home-social-post.bloc-untiers,
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .post.home-social-post.tous-bloc-untiers,
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .post.home-webradios-post.bloc-untiers,
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .post.home-webradios-post.tous-bloc-untiers {
        width: 286px;
    }

    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .post.home-social-post--second,
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .post.home-webradios-post--second {
        margin-left: 11px;
    }
}

@media (max-width: 767px) {
    #middle .middle_content .portfolio.three_blocks .post.home-social-post,
    #middle .middle_content .portfolio.three_blocks .post.home-webradios-post {
        width: 100%;
        margin-left: 0;
    }
}

/* Ces blocs n'ont pas de .one_third : ils reprennent ses marges (style.css) pour que leur titre
   soit au niveau des modules natifs et que la carte compense la marge basse négative du .widget */
#middle.white_ver .middle_content_accueil .portfolio.three_blocks .home-social-widget,
#middle.white_ver .middle_content_accueil .portfolio.three_blocks .home-webradios-widget {
    padding-bottom: 20px;
}

@media (max-width: 981px) {
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .home-social-widget,
    #middle.white_ver .middle_content_accueil .portfolio.three_blocks .home-webradios-widget {
        width: 91%;
        padding-left: 16px;
        margin-top: 10px;
        padding-bottom: 36px;
    }
}

/* Liste des players : page webradios et blocs accueil, sidebar, footer */
.webradios-grid {
    --webradios-columns: 6;
    --webradios-gap: 12px;
    width: 100%;
}

.webradios-grid--page {
    --webradios-columns: 3;
}

.webradios-grid--two-thirds {
    --webradios-columns: 4;
}

.webradios-grid--one-third,
.webradios-grid--sidebar,
.webradios-grid--footer {
    --webradios-columns: 3;
}

.webradios-grid__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--webradios-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.webradios-grid__entry {
    flex: 0 0 calc((100% - var(--webradios-gap) * (var(--webradios-columns) - 1)) / var(--webradios-columns));
    max-width: calc((100% - var(--webradios-gap) * (var(--webradios-columns) - 1)) / var(--webradios-columns));
    margin: 0;
    padding: 0;
    list-style: none;
}

.webradios-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.webradios-grid__item:hover,
.webradios-grid__item:focus {
    color: inherit;
    text-decoration: none;
}

.webradios-grid__logo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f2f2f2;
}

.webradios-grid__logo img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.2s ease;
}

.webradios-grid__item:hover .webradios-grid__logo img,
.webradios-grid__item:focus-visible .webradios-grid__logo img {
    transform: scale(1.05);
}

.webradios-grid__entry .webradios-grid__name {
    margin: 6px 0 0;
    text-align: center;
}

/* Nom sur 2 lignes au plus, sans couper les mots (pas d'utilitaire ellipsis dans ce thème) */
.webradios-grid__entry h4.webradios-grid__name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.webradios-page {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .webradios-grid,
    .webradios-grid--two-thirds {
        --webradios-columns: 3;
    }

    .webradios-grid--page {
        --webradios-columns: 2;
    }
}

@media (max-width: 425px) {
    .webradios-grid--page {
        --webradios-columns: 1;
    }
}

.home-webradios-post--second {
    margin-left: 11px;
}

.home-webradios-wrap,
.sidebar-webradios-wrap {
    padding-bottom: 25px;
}

/* Bloc « Émissions du jour » : horaire, mention de la veille, jour vide */
.programs-today-schedule {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
}

.programs-today-previous-day {
    font-style: italic;
}

.programs-today-empty {
    margin: 10px 0;
    font-style: italic;
}

