/* ============================= */
/* WRAPPER GLOBAL */
/* ============================= */

.dpb-home-podcasts-slider-wrapper {
    position: relative;
    margin: 50px;
}

/* ============================= */
/* BOUTONS NAVIGATION */
/* ============================= */

.dpb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dpb-nav-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.05);
}

.dpb-nav-prev { left: 0; }
.dpb-nav-next { right: 0; }

/* ============================= */
/* GRILLE DES PODCASTS */
/* ============================= */

.dpb-home-podcasts-banner {
    display: grid;
    grid-template-columns: repeat(var(--dpb-cols, 6), minmax(0, 1fr));
    gap: 30px;
}

/* ============================= */
/* TABLETTE */
/* ============================= */

@media (max-width: 1024px) {
    .dpb-home-podcasts-banner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ============================= */
/* MOBILE (Slider horizontal) */
/* ============================= */

@media (max-width: 767px) {

    .dpb-home-podcasts-slider-wrapper {
        margin: 30px 0;
        padding: 0 40px;
    }

    .dpb-home-podcasts-banner {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 10px 0;
    }

    .dpb-home-podcasts-banner::-webkit-scrollbar {
        display: none;
    }

    .dpb-podcast-item {
        flex: 0 0 80%;
        min-width: 80%;
        scroll-snap-align: start;
    }

    .dpb-emission-title,
    .dpb-podcast-desc {
        display: none;
    }
}

/* ============================= */
/* CARTE PODCAST */
/* ============================= */

.dpb-podcast-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: auto;          /* hauteur flexible */
    min-height: 350px;     /* garantit une taille uniforme */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dpb-podcast-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.dpb-podcast-item a {
    color: inherit !important;
    text-decoration: none;
}

/* ============================= */
/* IMAGE UNIFORME SANS COUPE */
/* ============================= */

.dpb-podcast-thumb {
    width: 100%;
    height: 180px !important;
    min-height: 180px;
    max-height: 180px;
    flex: 0 0 180px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dpb-podcast-thumb > a {
    display: block;
    width: 100%;
    height: 100%;
}

.dpb-home-podcasts-banner .dpb-podcast-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    display: block;
}

/* ============================= */
/* CONTENU + BOUTON EN BAS */
/* ============================= */

.dpb-podcast-content {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;      /* prend l’espace restant */
}

.dpb-podcast-button-wrap {
    margin-top: auto;
    padding-top: 32px;
}

/* ============================= */
/* TITRES ET DESCRIPTION */
/* ============================= */

.dpb-podcast-title {
    font-size: 0.95rem !important;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
}

.dpb-emission-title {
    font-size: 0.8rem;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.dpb-podcast-desc {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ============================= */
/* BOUTON PODCAST */
/* ============================= */

.dpb-podcast-button-wrap .dpb-podcast-button,
.dpb-podcast-button-wrap .dpb-podcast-button * {
    color: #ffffff !important;
    background-color: #0294f4 !important;
    border: 2px solid #0294f4 !important;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.dpb-podcast-button-wrap .dpb-podcast-button:hover,
.dpb-podcast-button-wrap .dpb-podcast-button:hover * {
    background-color: #ffffff !important;
    color: #0294f4 !important;
    border-color: #0294f4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================= */
/* DIVERS */
/* ============================= */

#cn-close-notice {
    display: none;
}
