.page-programmes-recherche.single {

    /* Fil d'ariane : mutualisé dans indus-core/assets/css/cpt-single-intro.css. */

    /* head commun (.head, .head::before, .cols-wrapper, intro-content padding, .illus)
       → mutualisé dans indus-core/assets/css/cpt-single-intro.css (.cpt-single). */

    .head .cols-wrapper>.illus-wrapper {
        flex-basis: calc(40% - 1rem);
        max-width: calc(40% - 1rem);
    }

    .head .intro-content {
        flex-basis: calc(60% - 1rem);
    }

    /* Filet (hr) : géométrie mutualisée dans
       indus-core/assets/css/cpt-single-intro.css. Variante programme : couleur. */
    .head .intro-content hr {
        background-color: #F0F0F0;
    }

    .full-title {
        font-size: 1.375rem;
        font-weight: 700;
    }



    .programme-item:not(:first-child):not(:last-child):not(.programme-publications):not(.programme-presse):not(.programme-responsables:has(~ .programme-accordions)) {
        padding-bottom: 4rem;
        margin-bottom: 2rem;
        border-bottom: 2px solid #F0F0F0;
    }

    .programme-item:first-child,
    .programme-publications,
    .programme-presse {
        margin-bottom: 4rem;
    }

    .programme-responsables:has(~ .programme-accordions) {
        margin-bottom: 2rem;
    }

    .title-section-2 {
        font-family: var(--font-general);
        margin-bottom: 2rem;
    }

    .list .item {
        flex-basis: calc(25% - 1.21875rem);
    }

    .item:not(.swiper-slide) .link {
        padding: 1.5rem;
        border: none;
        column-gap: 1.5rem;
    }

    .item .icon svg {
        width: 3rem;
        min-width: 3rem;
    }

    .item .date {
        margin-bottom: 0.825rem;
    }

    .item h3 {
        font-size: 1.25rem;
    }

    .programme-videos .cols-wrapper {
        display: flex;
        flex-wrap: wrap;
        column-gap: 1.5rem;
    }

    .programme-item .col {
        flex-basis: calc(50% - .75rem);
    }

    iframe,
    .programme-item .col video {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .programme-slider {
        position: relative;
    }

    /* Bouton lecture/pause RGAA (le design global vient de custom.css d'indus-core) :
       ici on ne gère que le positionnement dans le slider. */
    .programme-slider .btn-media-toggle {
        top: 1.5rem;
        right: 1.5rem;
        bottom: auto;
        z-index: 4;
    }

    .programme-slider .swiper-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .programme-slider .legend {
        margin-top: 0.5rem;
        font-size: 0.875rem;
    }

    .programme-slider .swiper-initialized~.slider-pagination {
        top: unset;
        bottom: -1.125rem;
    }

    .programme-slider .swiper-initialized~.slider-pagination .swiper-pagination-bullet {
        border-radius: unset;
        border: 1px solid var(--color-primary);
    }

    .programme-slider .swiper-initialized~.slider-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet) {
        background-color: var(--color-background);
        opacity: 1;
    }

    .annuaires-list,
    .events-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .module-event-slider {
        padding-top: 0;
        padding-bottom: 0;
        padding-right: 11.25rem;
        margin-bottom: 0.5rem;
    }

    .module-event-slider .container-large {
        padding-left: 0;
        padding-right: 0;
    }

    .module-event-slider .location {
        display: none;
    }

    .module-event-slider .img {
        aspect-ratio: 210 / 297;
        object-fit: cover;
    }

    .module-event-slider .slider-navigation.next {
        transform: translateX(100%);
        width: 11.25rem;
    }

    .module-event-slider .slider-navigation.next::before {
        content: "\2192";
        border: none;
        transform: translate(-2rem, -50%);
        right: 0;
        left: 75%;
        top: 0;
        font-weight: 300;
        font-size: 2.25rem;
        color: var(--color-primary);
        transition: all .3s ease;
    }

    .module-event-slider .slider-navigation.prev {
        transform: translateX(-100%);
    }

    .module-event-slider .slider-navigation.prev::before {
        content: "\2190";
        border: none;
        transform: translate(-1rem, -50%);
        right: 0;
        left: 75%;
        top: 0;
        font-weight: 300;
        font-size: 2.25rem;
        color: var(--color-primary);
        transition: all .3s ease;
    }

    .module-event-slider .slider-navigation.next:hover::before {
        transform: translate(-1rem, -50%);
    }

    .module-event-slider .slider-navigation.prev:hover::before {
        transform: translate(-2rem, -50%);
    }

    .events-list li {
        padding: 0.375rem 0;
        border-bottom: 1px solid var(--color-tertiary, #d6d6d6);
    }

    .programme-calendrier .annee {
        margin-top: 1.5rem;
        color: var(--color-primary, #224f5a);
        text-align: left;
    }

    .programme-calendrier .txt h3,
    .programme-calendrier .txt ul {
        margin-bottom: 0;
        margin-top: .5rem;
    }

    .programme-publications,
    .programme-presse {
        padding: 1.5rem;
        border: 3px solid var(--color-primary);
    }

    .programme-partenaires .slider-wrapper {
        position: relative;
    }

    /* Bouton lecture/pause RGAA du slider partenaires (design global via custom.css). */
    .programme-partenaires .btn-media-toggle {
        top: 0.5rem;
        right: 0.5rem;
        bottom: auto;
        z-index: 4;
    }

    .programme-partenaires .js_partenaires-slider {
        margin: 0 2.3rem;
    }

    .programme-partenaires .swiper-slide.item,
    .programme-partenaires .swiper-slide.item:hover,
    .programme-slider .swiper-slide.item,
    .programme-slider .swiper-slide.item:hover {
        background-color: transparent;
    }

    .programme-partenaires .swiper-slide img {
        width: 100%;
        height: 6rem;
        object-fit: contain;
    }

    .programme-partenaires .slider-navigation.prev::before {
        content: "\2190";
        border: none;
        transform: translateX(calc(5px - 100%));
        left: 0;
        top: 0;
        font-weight: 300;
        font-size: 2.25rem;
        color: var(--color-primary);
        transition: all .3s ease;
    }

    .programme-partenaires .slider-navigation.next::before {
        content: "\2192";
        border: none;
        transform: translateX(calc(5px - 100%));
        transform: none;
        right: 0;
        top: 0;
        font-weight: 300;
        font-size: 2.25rem;
        color: var(--color-primary);
        transition: all .3s ease;
    }

    .programme-item.programme-calendrier .title-section-3 {
        font-size: 1.5625rem;
        text-align: left;
        margin-bottom: 1rem;
        font-family: var(--font-general);
    }
}

@media only screen and (min-width: 1024px) {
    .page-programmes-recherche.single.has-sidebar article>.container>.cpt-intro {
        grid-column: 1 / 3;
    }

    .page-programmes-recherche.single.has-sidebar article>.container>.cpt-sidebar {
        grid-row: 2 / span 2;
    }
}

/* =========================================================
   Fouilles : grille avec image mise en avant
   ========================================================= */
.page-programmes-recherche .fouilles-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-programmes-recherche .fouilles-grid .fouille-card {
    width: calc(33% - 1rem);
}

.page-programmes-recherche .fouilles-grid .link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}

.page-programmes-recherche .fouilles-grid .visual {
    max-width: 25%;
}

.page-programmes-recherche .fouilles-grid .visual img {
    aspect-ratio: 1/1;
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.page-programmes-recherche .fouilles-grid .link:hover {
    background-color: var(--color-primary);
}

.page-programmes-recherche .fouilles-grid .link:hover .fouille-title {
    color: var(--color-background);
}

.page-programmes-recherche .fouilles-grid .fouille-title {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0;
    transition: all .3s ease;
    text-align: left;
}

@media (max-width: 900px) {
    .page-programmes-recherche .fouilles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .page-programmes-recherche .fouilles-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Accordéon (.programme-accordions) — styles AUTOPORTÉS.
   On n'utilise PAS la classe module-accordion (sinon le module-loader du
   thème bind le toggle EN PLUS de main.js → double/triple clic). Le CSS du
   module n'étant de toute façon pas dans l'app.css de ce site, on reprend
   ici l'essentiel du style nickl. Le JS vient de main.js (plugin).
   ========================================================= */
.page-programmes-recherche .programme-accordions .accordion {
    position: relative;
    padding-bottom: 2px;
}

.page-programmes-recherche .programme-accordions .title {
    position: relative;
    display: block;
    width: 100%;
    padding: 1.6875rem 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: var(--font-general);
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-default);
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-programmes-recherche .programme-calendrier .programme-accordions .title {
    color: var(--color-primary);
}

.page-programmes-recherche .programme-accordions .title:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-tertiary);
    opacity: 0.4;
}

.page-programmes-recherche .programme-accordions .title:hover {
    color: var(--color-primary);
}

.page-programmes-recherche .programme-calendrier .programme-accordions .title:hover {
    color: var(--color-default);
}

.page-programmes-recherche .programme-accordions .title .icon {
    position: absolute;
    top: 50%;
    right: 1.75rem;
    transform: translateY(-50%);
    line-height: 0;
}

.page-programmes-recherche .programme-accordions .title .icon svg {
    width: 1.5rem;
    height: auto;
    fill: var(--color-default);
    transform: rotate(180deg);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.page-programmes-recherche .programme-calendrier .programme-accordions .title .icon svg {
    fill: var(--color-primary);
}

.page-programmes-recherche .programme-accordions .title.active {
    color: var(--color-primary);
}

.page-programmes-recherche .programme-calendrier .programme-accordions .title.active {
    color: var(--color-default);
}

.page-programmes-recherche .programme-accordions .title.active::before {
    opacity: 0;
}

.page-programmes-recherche .programme-accordions .title.active .icon svg {
    fill: var(--color-primary);
    transform: rotate(0deg);
}

.page-programmes-recherche .programme-calendrier .programme-accordions .title.active .icon svg {
    fill: var(--color-default);
}

.page-programmes-recherche .programme-accordions .txt {
    display: none;
    padding: 0 3rem 1.75rem 1.6875rem;
}

@media (max-width: 960px) {
    .page-programmes-recherche .programme-accordions .title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .page-programmes-recherche .programme-accordions .title {
        font-size: 1.75rem;
        padding-left: 1rem;
        padding-right: 3rem;
    }

    .page-programmes-recherche .programme-accordions .txt {
        padding-left: 1rem;
        padding-right: 1.42rem;
    }
}

.page-programmes-recherche .programme-calendrier .events-slider .item h3.title {
    interpolate-size: allow-keywords;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.3em;
    max-height: 3.9em;
    transition:
        max-height .5s ease-in-out,
        color .3s ease,
        -webkit-line-clamp 0s ease .5s allow-discrete,
        line-clamp 0s ease .5s allow-discrete;
}

.page-programmes-recherche .programme-calendrier .events-slider .item:hover h3.title,
.page-programmes-recherche .programme-calendrier .events-slider .item:focus-within h3.title {
    -webkit-line-clamp: 99;
    line-clamp: 99;
    max-height: max-content;
    transition:
        max-height .5s ease-in-out,
        color .3s ease,
        -webkit-line-clamp 0s ease 0s allow-discrete,
        line-clamp 0s ease 0s allow-discrete;
}

/* Médias : podcasts empilés verticalement sous les vidéos. */
.page-programmes-recherche .programme-podcasts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-programmes-recherche .programme-podcasts .podcast-link {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.page-programmes-recherche .programme-podcasts .podcast-link svg {
    width: 2.5rem;
}

.page-programmes-recherche .programme-podcasts .podcast-soundcloud iframe {
    display: block;
    width: 100%;
    border: 0;
}

.page-programmes-recherche .programme-podcasts .podcast-link {
    width: fit-content;
}