/** Page ProgrammesRecherche **/
.page-programmes-recherche {
    padding-top: 2.125rem;
    padding-bottom: 2.125rem;
}

.page-programmes-recherche .archive-top .cols-wrapper .title,
.page-programmes-recherche .archive-top .cols-wrapper .txt {
    padding-bottom: 0;
}

.page-programmes-recherche .archive-top .title {
    padding-bottom: 2.5rem;
}

.page-programmes-recherche .archive-top .txt {
    padding-bottom: 3.5rem;
}

.page-programmes-recherche .archive-top .columns-1 .col-2 {
    margin-top: 2.125rem;
}

.page-programmes-recherche .archive-top .columns-2.cols-wrapper {
    display: flex;
    gap: 2.125rem;
}

.page-programmes-recherche .archive-top .columns-2 .col-1 {
    flex-basis: 33.33%;
}

.page-programmes-recherche .archive-top .columns-2 .col-2 {
    flex-basis: 65.81%;
}

.page-programmes-recherche.archive .btn-wrapper {
    display: flex;
    justify-content: flex-end;
}

.page-programmes-recherche .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1.25rem;
    column-gap: 1.625rem;
    row-gap: 1.625rem;
}

.page-programmes-recherche .list .item {
    flex: 0 1 auto;
    flex-basis: calc(33.33333% - 1.08333rem);
}

.page-programmes-recherche .item {
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    display: flex;
}

.border-rounded .page-programmes-recherche .item {
    border-radius: 0.75rem;
}

.page-programmes-recherche .item:hover {
    background-color: var(--color-secondary);
}

.page-programmes-recherche .item .link {
    flex-grow: 1;
    display: flex;
    column-gap: 2rem;
    padding: 3rem;
    align-items: flex-start;
}

.page-programmes-recherche .item .icon {
    max-width: 5.625rem;
}

.page-programmes-recherche .item h3 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-background);
    text-align: left;
    margin-bottom: 1.2rem;
}

.page-programmes-recherche .item p {
    color: var(--color-background);
}

.page-programmes-recherche .item .desc p {
    text-align: left;
}

.page-programmes-recherche .item .desc {
    padding-top: 0;
    padding-bottom: 0;
}

.page-programmes-recherche.single .list .item {
    flex-basis: calc(25% - 1.21875rem);
}

.page-programmes-recherche.single .item .link {
    padding: 1.5rem;
    border: none;
    column-gap: 1.5rem;
}

.page-programmes-recherche.single .item .icon svg {
    width: 3rem;
    min-width: 3rem;
}

.page-programmes-recherche.single .item .date {
    margin-bottom: 0.825rem;
}

.page-programmes-recherche.single .item h3 {
    font-size: 1.25rem;
}

.page-programmes-recherche .modal {
    display: none;
    opacity: 0;
}

.page-programmes-recherche .show.modal {
    display: block;
    opacity: 1;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 999;
    padding-right: 1rem;
    transition: all 0.3s ease;
}

.page-programmes-recherche .modal-dialog {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    height: 100%;
}

.page-programmes-recherche .modal .module-form {
    padding: 0;
}

.page-programmes-recherche .modal .modal-dialog .modal-content {
    position: relative;
    width: 1200px;
    height: 80vh;
    overflow-y: scroll;
    background: var(--color-background);
    padding: 3rem;
}

.page-programmes-recherche .modal .modal-dialog .close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    border: unset;
    display: inline-block;
    transition: transform 0.6s ease;
}

.page-programmes-recherche .modal .modal-dialog .close:hover {
    transform: rotate(90deg);
}

.page-programmes-recherche .modal .modal-dialog .close svg {
    fill: var(--color-secondary);
}

.page-programmes-recherche .item svg>* {
    fill: var(--color-background);
}

.styled-table {
    border-collapse: collapse;
    margin: 1.625rem 0;
    font-size: 1rem;
    font-family: sans-serif;
    width: 100%;
    min-width: 400px;
}

.styled-table thead tr {
    background-color: var(--color-primary);
    color: var(--color-background);
    text-align: left;
}

.styled-table thead th {
    width: 33%;
    font-size: 1.2rem;
}

.styled-table th,
.styled-table td {
    padding: .75rem 1rem;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--color-background);
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--color-primary);
}

.styled-table .btn {
    display: flex;
    column-gap: 1rem;
    font-size: 1rem;
    width: fit-content;
}

.border-rounded .styled-table thead th:first-child {
    border-top-left-radius: .75rem;
}

.border-rounded .styled-table thead th:last-child {
    border-top-right-radius: .75rem;
}

.border-rounded .styled-table tr:last-of-type td:first-child {
    border-bottom-left-radius: .75rem;
}

.border-rounded .styled-table tr:last-of-type td:last-child {
    border-bottom-right-radius: .75rem;
}

.page-programmes-recherche.single iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
/** Filtres archive (Axes / Section / Projets) **/
.page-programmes-recherche .programmes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.page-programmes-recherche .filter-dropdown {
    position: relative;
}

.page-programmes-recherche .filter-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-tertiary, #d6d6d6);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--color-default, #224f5a);
    font-size: 1rem;
    cursor: pointer;
}

.page-programmes-recherche .filter-dropdown.has-selection .filter-dropdown-toggle {
    border-color: var(--color-primary, #3ee98d);
}

.page-programmes-recherche .filter-dropdown-count:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.25rem;
    border-radius: 50%;
    background: var(--color-primary, #3ee98d);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.page-programmes-recherche .filter-dropdown-toggle .icon svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: var(--color-default, #224f5a);
    transition: transform 0.2s ease;
}

.page-programmes-recherche .filter-dropdown.open .filter-dropdown-toggle .icon svg {
    transform: rotate(180deg);
}

.page-programmes-recherche .filter-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    z-index: 20;
    min-width: 100%;
    max-height: 18rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    border: 1px solid var(--color-tertiary, #d6d6d6);
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-programmes-recherche .filter-dropdown.open .filter-dropdown-panel {
    display: block;
}

.page-programmes-recherche .filter-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--color-default, #224f5a);
    white-space: nowrap;
    cursor: pointer;
}

.page-programmes-recherche .filter-dropdown-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.page-programmes-recherche .filter-dropdown-option input[type="checkbox"] {
    accent-color: var(--color-primary, #3ee98d);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/** Grille des programmes **/
.page-programmes-recherche .programmes-grid .programme-card {
    flex-basis: calc(20% - 1.3rem);
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
}

.border-rounded .page-programmes-recherche .programmes-grid .programme-card {
    border-radius: 0.75rem;
}

.page-programmes-recherche .programme-card .link {
    flex-direction: column;
    padding: 0;
    row-gap: 1rem;
}

.page-programmes-recherche .programme-card .visual {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.page-programmes-recherche .programme-card .visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-programmes-recherche .programme-card:hover .visual img {
    transform: scale(1.05);
}

.page-programmes-recherche .programme-card .visual .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.page-programmes-recherche .programme-card .desc {
    padding: 0 1rem 1.5rem;
}

.page-programmes-recherche .programme-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.page-programmes-recherche .programme-card .acronyme {
    font-weight: 400;
}

.page-programmes-recherche .programmes-grid .no-result {
    background: none;
    color: var(--color-default, #224f5a);
    flex-basis: 100%;
}

@media (max-width: 1023px) {
    .page-programmes-recherche .programmes-grid .programme-card {
        flex-basis: calc(33.33333% - 1.08333rem);
    }
}

@media (max-width: 767px) {
    .page-programmes-recherche .programmes-filters {
        width: 100%;
    }

    .page-programmes-recherche .filter-dropdown {
        flex: 1 1 auto;
    }

    .page-programmes-recherche .filter-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .page-programmes-recherche .programmes-grid .programme-card {
        flex-basis: calc(50% - 0.8125rem);
    }
}

/** Pagination numérotée **/
.page-programmes-recherche .programmes-pagination {
    margin-top: 2.5rem;
}

.page-programmes-recherche .pagination-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-programmes-recherche .pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--color-tertiary, #d6d6d6);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--color-default, #224f5a);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-programmes-recherche .pagination-page:hover {
    border-color: var(--color-primary, #3ee98d);
}

.page-programmes-recherche .pagination-page.current {
    background: var(--color-primary, #3ee98d);
    border-color: var(--color-primary, #3ee98d);
    color: #fff;
    cursor: default;
}

/** Single programme **/
.page-programmes-recherche.single .programme-metas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.page-programmes-recherche.single .programme-metas .meta-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-programmes-recherche.single .programme-metas .meta-projet .meta-label {
    color: var(--color-primary, #224f5a);
}

.page-programmes-recherche.single .programme-header .title .acronyme {
    font-weight: 400;
}

.page-programmes-recherche.single .programme-header .intro {
    margin-top: 1.5rem;
}

.page-programmes-recherche.single .programme-slider {
    position: relative;
    margin: 2.5rem 0;
}

.page-programmes-recherche.single .programme-slider .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.page-programmes-recherche.single .programme-slider .legend {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.page-programmes-recherche.single .programme-bloc {
    margin-top: 2.5rem;
}

.page-programmes-recherche.single .programme-bloc > .title-section-2 {
    margin-bottom: 1rem;
}

.page-programmes-recherche.single .fouilles-grid .programme-card .desc {
    padding-top: 1.5rem;
}

.page-programmes-recherche.single .fouilles-grid .programme-card h3 {
    margin-bottom: 0;
}

.page-programmes-recherche.single .chercheurs-list,
.page-programmes-recherche.single .events-list,
.page-programmes-recherche.single .contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-programmes-recherche.single .events-list li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--color-tertiary, #d6d6d6);
}

.page-programmes-recherche.single .programme-calendrier .annee {
    margin-top: 1.5rem;
    color: var(--color-primary, #224f5a);
}

.page-programmes-recherche.single .programme-equipe .title-section-3,
.page-programmes-recherche.single .programme-calendrier .annee {
    text-align: left;
}

/* Équipe : pas de bordures sous les noms */
.page-programmes-recherche.single .programme-equipe .styled-table tbody tr,
.page-programmes-recherche.single .programme-equipe .styled-table tbody tr:last-of-type {
    border-bottom: none;
}

.page-programmes-recherche.single .programme-equipe .styled-table th,
.page-programmes-recherche.single .programme-equipe .styled-table td {
    padding: 0.375rem 0;
}

/* Accordéons : CSS repris du module accordion du thème */
.page-programmes-recherche.single .programme-accordions .accordion {
    position: relative;
    padding-bottom: 2px;
}

.page-programmes-recherche.single .programme-accordions .accordion::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-tertiary, #d6d6d6);
    opacity: .4;
    content: '';
}

.page-programmes-recherche.single .programme-accordions .accordion .title {
    position: relative;
    display: block;
    width: 100%;
    padding: 1.6875rem 5.0625rem 1.6875rem 1.6875rem;
    border: 0;
    background: transparent;
    color: var(--color-default, #224f5a);
    font-family: var(--font-title), arial, sans-serif;
    font-size: 1.625rem;
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.page-programmes-recherche.single .programme-accordions .accordion .title::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-tertiary, #d6d6d6);
    opacity: .4;
    content: '';
}

.page-programmes-recherche.single .programme-accordions .accordion .title::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    background-color: var(--color-secondary, #02bd9c);
    content: '';
}

.page-programmes-recherche.single .programme-accordions .accordion .title:not(:active) {
    transition: color .3s ease;
}

.page-programmes-recherche.single .programme-accordions .accordion .title:hover {
    color: var(--color-secondary, #02bd9c);
}

.page-programmes-recherche.single .programme-accordions .accordion .title.active::before {
    opacity: 0;
}

.page-programmes-recherche.single .programme-accordions .accordion .title.active::after {
    opacity: .15;
}

.page-programmes-recherche.single .programme-accordions .accordion .title .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2.125rem;
}

.page-programmes-recherche.single .programme-accordions .accordion .title .icon svg {
    width: 1.5rem;
    fill: var(--color-default, #224f5a);
    transform: rotate(180deg);
    transition: all .3s ease;
}

.page-programmes-recherche.single .programme-accordions .accordion .title.active .icon svg {
    fill: var(--color-primary, #3ee98d);
    transform: rotate(0deg);
}

.page-programmes-recherche.single .programme-accordions .accordion .txt {
    display: none;
    padding: 2.1875rem 3.125rem 1.875rem 1.6875rem;
}

@media only screen and (max-width: 960px) {
    .page-programmes-recherche.single .programme-accordions .accordion .title {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 600px) {
    .page-programmes-recherche.single .programme-accordions .accordion .title {
        padding-left: 1.25rem;
        font-size: 1.375rem;
    }

    .page-programmes-recherche.single .programme-accordions .accordion .txt {
        padding-right: 1.42rem;
        padding-left: 1.25rem;
    }
}

.page-programmes-recherche.single .programme-accordions .accordion video {
    width: 100%;
    margin-top: 1rem;
}

/* Slides = .item du thème : pas de fond couleur */
.page-programmes-recherche.single .programme-partenaires .swiper-slide.item,
.page-programmes-recherche.single .programme-partenaires .swiper-slide.item:hover,
.page-programmes-recherche.single .programme-slider .swiper-slide.item,
.page-programmes-recherche.single .programme-slider .swiper-slide.item:hover {
    background-color: transparent;
}

.page-programmes-recherche.single .programme-partenaires .swiper-slide img {
    width: 100%;
    height: 6rem;
    object-fit: contain;
}

/** Module programmes de recherche : liste de titres courts **/
.module-programmes-recherche .programmes-short-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.module-programmes-recherche .programmes-short-list .item,
.module-programmes-recherche .programmes-short-list .item:hover {
    background: none;
}

/* Couleur : même logique que les modules nickl — hérite du module,
   blanc via .has-background-primary/secondary géré par _modules.scss */
.module-programmes-recherche .programmes-short-list .link {
    color: inherit;
    font-weight: 600;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.module-programmes-recherche .programmes-short-list .link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.module-programmes-recherche .btn-more-wrapper {
    margin-top: 2rem;
}

/* ===========================
   Page archives (par année)
   =========================== */
.page-programmes-recherche .archives-link {
    margin-top: 2rem;
}

.page-programmes-recherche .archives-link a,
.archives-annees .back-link a {
    font-weight: 600;
    text-decoration: underline;
}

.archives-annees .archive-year {
    margin-top: 3rem;
}

.archives-annees .archive-year .title-section-2 {
    margin-bottom: 1.5rem;
}
