/* Styles personnalisés du thème ISOE */

html, body {
    overflow-x: hidden;
}

#page {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Source Sans 3", "Source Sans Pro", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    color: #888888;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
}

h1, h2, h3, h4, h5, h6 {
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p,
.entry-content,
.category-description {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 67rem;
    max-width: 100%;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
    position: relative;
}

.site-branding {
    width: 20%;
}
.main-navigation {
    width: 45%;
    margin: 0.625rem;
}
.site-partner-branding {
    width: 21%;
}
.site-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 1rem;
}

.isoe-breadcrumbs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 62rem;
    max-width: 100%;
    margin: 0 auto 1rem;
    box-sizing: border-box;
}

.isoe-breadcrumbs {
    padding: 8px 15px;
    font-size: 16px;
    color: #999999;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-weight: 400;
    pointer-events: none !important;
    cursor: default !important;
    user-select: text;
}

.isoe-breadcrumbs *,
.isoe-breadcrumbs a,
.isoe-breadcrumbs span,
.isoe-breadcrumbs .breadcrumb-item,
.isoe-breadcrumbs .breadcrumb-item-parent,
.isoe-breadcrumbs .breadcrumb-current {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
}

.isoe-breadcrumbs a,
.isoe-breadcrumbs .breadcrumb-item {
    color: #005293 !important;
}

.isoe-breadcrumbs .breadcrumb-item-parent,
.isoe-breadcrumbs .breadcrumb-current {
    color: #999999 !important;
}

.isoe-breadcrumbs .breadcrumb-separator {
    margin: 0 0.2rem 4px 0.2rem;
    width: 0.6rem;
    height: auto;
    vertical-align: middle;
}

.isoe-search-form {
    display: flex;
    align-items: center;
    margin-left: auto;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 4px 4px 4px 12px;
}

.isoe-search-form .isoe-search-input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #555555;
    outline: none;
    width: 12rem;
    max-width: 100%;
}

.isoe-search-form .isoe-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #005293;
    color: #ffffff;
    border-radius: 4px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.isoe-search-form .isoe-search-submit:hover {
    background-color: #00345c;
}

.isoe-search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.site-branding img,
.site-partner-branding img {
    display: block;
    max-width: 100%;
}



.main-navigation .site-branding a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #222;
}

.main-navigation .nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    row-gap: 0.5rem;
}

.main-navigation .nav-menu li {
    position: relative;
}

.main-navigation .nav-menu li a {
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    text-decoration: none;
    color: #a8a8a8;
    padding-bottom: 5px;
    padding-right: 1.5rem;
    line-height: normal;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid #cecece;
    transition: color 0.2s ease-in-out;
}

.main-navigation .nav-menu li a:hover {
    color: #0073aa;
}

/* Flèche vers le bas pour les éléments du menu principal ayant un sous-menu */
.main-navigation .nav-menu > .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1em;
    height: 1em;
    transform: translateY(-60%);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 9 12 16 19 9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 9 12 16 19 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.main-navigation .nav-menu .sub-menu {
    font-family: "Source Sans 3", "Source Sans Pro", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0.5rem;
    padding-bottom: 0px;
    background-color: #005293;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.main-navigation .nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Gestion du curseur pour les éléments cliquables vs non cliquables */
.main-navigation .nav-menu li a.isoe-link-non-clickable,
.main-navigation .nav-menu li.isoe-item-non-clickable > a {
    cursor: default;
}

.main-navigation .nav-menu li a:not(.isoe-link-non-clickable) {
    cursor: pointer;
}

.main-navigation .nav-menu .sub-menu li {
    width: 100%;
    margin-bottom: 10px;
}

.main-navigation .nav-menu .sub-menu li a {
    display: block;
    border: none;
    padding: 5px;
    white-space: nowrap;
    color: #ffffff;
    text-transform: none;
    transition: all 0.5s;
}

.main-navigation .nav-menu .sub-menu li a:hover {
    background-color: #003056;
}

/* Flèche sous menu */
.main-navigation .nav-menu .sub-menu .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 1em;
    height: 1em;
    transform: translateY(-50%);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sous-sous-menus (niveau 2 et suivants) : affichage sur le côté au survol */
.main-navigation .nav-menu .sub-menu .sub-menu {
    top: 0;
    margin-left: 12px;
    left: 100%;
}

/* Pont invisible comblant l'espacement avant un sous-sous-menu pour ne pas perdre le survol */
.main-navigation .nav-menu .sub-menu .menu-item-has-children::before {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Ajustement fin pour écrans intermédiaires / ordinateurs portables */
@media (min-width: 861px) and (max-width: 1100px) {
    .site-branding {
        width: 18%;
    }
    .main-navigation {
        width: 53%;
        margin: 0.5rem 0.25rem;
    }
    .site-partner-branding {
        width: 18%;
    }
    .main-navigation .nav-menu {
        gap: 0.85rem;
    }
    .main-navigation .nav-menu li a {
        font-size: 0.82rem;
        padding-right: 1.1rem;
    }
}

/* Navigation sur tablettes et mobiles */
@media (max-width: 860px) {
    .site-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0.5rem auto 1rem;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .site-branding {
        width: auto;
        flex: 0 0 auto;
        max-width: 150px;
        order: 1;
    }

    .site-branding img {
        height: auto;
        max-height: 46px;
        width: auto;
    }

    .site-partner-branding {
        width: auto;
        flex: 0 0 auto;
        max-width: 150px;
        order: 2;
    }

    .site-partner-branding img {
        height: auto;
        max-height: 28px;
        width: auto;
    }

    .site-account {
        order: 3;
    }

    .main-navigation {
        order: 4;
        width: auto;
        margin: 0;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        background-color: #f7f9fb;
        border: 1px solid #d7dde3;
        border-radius: 4px;
        font-size: 1.4rem;
        line-height: 1;
        color: #005293;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        background-color: #005293;
        color: #ffffff;
        border-color: #005293;
    }

    .main-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-top: 2px solid #005293;
        border-bottom: 2px solid #005293;
        padding: 0.75rem 1.25rem 1.25rem;
        box-sizing: border-box;
        z-index: 999;
        flex-direction: column;
        gap: 0;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-navigation .nav-menu.is-open {
        display: flex;
    }

    .main-navigation .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .main-navigation .nav-menu > li:last-child {
        border-bottom: none;
    }

    .main-navigation .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0.25rem;
        font-size: 0.95rem;
        color: #333333;
        border-bottom: none;
        text-transform: uppercase;
        font-weight: 700;
        padding-right: 2.5rem;
    }

    .main-navigation .nav-menu li a:hover {
        color: #005293;
    }

    /* Sous-menus en accordéon intégré dans le flux */
    .main-navigation .nav-menu .sub-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border-radius: 4px;
        background-color: #005293;
        padding: 0.5rem 0.75rem;
        margin: 0 0 0.5rem 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-sizing: border-box;
    }

    .main-navigation .nav-menu li.is-submenu-open > .sub-menu {
        display: block;
    }

    .main-navigation .nav-menu .sub-menu li {
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-navigation .nav-menu .sub-menu li:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .main-navigation .nav-menu .sub-menu li a {
        color: #ffffff;
        font-size: 0.9rem;
        padding: 0.45rem 0.25rem;
        text-transform: none;
        white-space: normal;
        word-break: break-word;
    }

    .main-navigation .nav-menu .sub-menu li a:hover {
        background-color: #003660;
        border-radius: 3px;
    }

    /* Sous-sous-menus (niveau 2) */
    .main-navigation .nav-menu .sub-menu .sub-menu {
        margin-left: 0.5rem;
        background-color: #003660;
    }

    /* Flèche accordéon sur mobile */
    .main-navigation .nav-menu > .menu-item-has-children > a::after,
    .main-navigation .nav-menu .sub-menu .menu-item-has-children > a::after {
        position: static;
        transform: none;
        width: 1.1rem;
        height: 1.1rem;
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .main-navigation .nav-menu li.is-submenu-open > a::after {
        transform: rotate(180deg);
    }

    .isoe-sub-toggle {
        position: absolute;
        top: 0.5rem;
        right: 0;
        width: 2.2rem;
        height: 2.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: #555555;
    }

    .isoe-sub-toggle::after {
        content: "";
        width: 0.9rem;
        height: 0.9rem;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform 0.2s ease;
    }

    .isoe-sub-toggle.is-active::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 861px) {
    .isoe-sub-toggle {
        display: none !important;
    }
}




table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

caption {
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: left;
    color: #222;
}

thead,
thead tr {
    background-color: #005293;
}

thead th {
    background-color: #005293;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background-color: #ffffff;
}

td.cell-center,
td[align="center"],
td[style*="text-align: center"],
td[style*="text-align:center"] {
    text-align: center !important;
    text-align-last: center !important;
    vertical-align: middle;
}

td.cell-center img,
td[align="center"] img,
td[style*="text-align: center"] img,
td[style*="text-align:center"] img {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    vertical-align: middle;
}

td.cell-center a,
td[align="center"] a,
td[style*="text-align: center"] a,
td[style*="text-align:center"] a {
    display: inline-block;
    text-align: center;
    text-align-last: center;
}

tbody tr,
tbody tr:nth-child(even),
tbody tr:hover {
    background-color: #ffffff;
    border: none;
}

tfoot {
    font-weight: 700;
    background-color: #f0f0f0;
}

/* ===== Style classique pour les tableaux avec la classe table-bordered ===== */
/* Restaure l'apparence d'origine : bordures, en-tête bleu, lignes alternées   */

table.table-bordered {
    display: table !important;
    width: 100% !important;
    margin: 1.5rem 0 !important;
    border-collapse: collapse !important;
    font-size: 0.95rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

table.table-bordered caption {
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #222222 !important;
}

table.table-bordered thead {
    display: table-header-group !important;
    background-color: #005293 !important;
    border: none !important;
}

table.table-bordered thead tr {
    display: table-row !important;
    background-color: #005293 !important;
    border: none !important;
}

table.table-bordered thead th {
    display: table-cell !important;
    padding: 0.75rem 1rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background-color: #005293 !important;
    border: 1px solid #1a6baa !important;
    vertical-align: middle !important;
    text-align: left !important;
}

table.table-bordered thead th[style*="text-align: center"],
table.table-bordered thead th[style*="text-align:center"],
table.table-bordered thead th[align="center"] {
    text-align: center !important;
    text-align-last: center !important;
}

table.table-bordered tbody {
    display: table-row-group !important;
    border: none !important;
    background: transparent !important;
}

table.table-bordered tbody tr {
    display: table-row !important;
    border: none !important;
}

table.table-bordered tbody tr:nth-child(even) {
    background-color: #f7f7f7 !important;
}

table.table-bordered tbody tr:nth-child(even) td {
    background-color: #f7f7f7 !important;
}

table.table-bordered tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

table.table-bordered tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

table.table-bordered tbody tr:hover {
    background-color: #eef6fb !important;
}

table.table-bordered tbody tr:hover td {
    background-color: #eef6fb !important;
}

table.table-bordered tbody td {
    display: table-cell !important;
    padding: 0.75rem 1rem !important;
    text-align: left !important;
    border: 1px solid #e5e5e5 !important;
    vertical-align: middle !important;
    max-width: none !important;
    width: auto !important;
    flex: none !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    align-items: initial !important;
    justify-content: initial !important;
    flex-direction: initial !important;
}

table.table-bordered tbody td[align="center"],
table.table-bordered tbody td[style*="text-align: center"],
table.table-bordered tbody td[style*="text-align:center"] {
    text-align: center !important;
    text-align-last: center !important;
    vertical-align: middle !important;
}

table.table-bordered td a,
table.table-bordered th a {
    display: inline !important;
    flex-direction: initial !important;
    align-items: initial !important;
    text-decoration: none !important;
    color: #005293 !important;
    font-weight: normal !important;
}

table.table-bordered td a:hover,
table.table-bordered th a:hover {
    text-decoration: none !important;
    color: #002b4d !important;
}

table.table-bordered br {
    display: inline !important;
}

table.table-bordered tfoot {
    display: table-footer-group !important;
    font-weight: 700 !important;
    background-color: #f0f0f0 !important;
}

table.table-bordered tfoot td {
    display: table-cell !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e5e5e5 !important;
}






article {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.category-header,
.archive-section-title {
    width: 900px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.category-header {
    margin-bottom: 2rem;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 40px 0;
}

.folder-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    color: #005293;
}

.category-header .folder-icon {
    color: #888888;
}

.category-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #888888;
}

.category-description {
    margin-top: 0.75rem;
}

.category-description p {
    margin: 0 0 0.75rem;
}

/* Couverture du programme (1re page du PDF) à gauche de la description */
.category-description.has-program-cover {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.category-description .isoe-program-cover {
    flex: 0 0 200px;
    display: block;
    width: 200px;
    max-width: 100%;
    line-height: 0;
    border: 1px solid #d7dde3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
}

.category-description .isoe-program-cover img,
.category-description .isoe-program-cover canvas {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
}

/* Masqué tant que la 1re page du PDF n'est pas rendue (supprimé en cas d'échec) */
.category-description .isoe-program-cover.is-loading {
    display: none;
}

.category-description .category-description-text {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .category-description.has-program-cover {
        gap: 1rem;
    }

    .category-description .isoe-program-cover {
        flex-basis: 140px;
        width: 140px;
    }
}

@media (max-width: 480px) {
    .category-description.has-program-cover {
        flex-direction: column;
        align-items: center;
    }

    .category-description .isoe-program-cover {
        flex-basis: auto;
        width: 200px;
    }

    .category-description .category-description-text {
        width: 100%;
    }
}

.archive-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #888888;
    font-size: 1.5rem;
}

.subcategories-list {
    margin-bottom: 2.5rem;
}

.subcategory-item {
    margin-bottom: 1.25rem;
}

.subcategory-item .entry-title {
    margin: 0.75rem 0 0.35rem 0;
}

.subcategory-item .entry-title a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.subcategory-description {
    margin: 0.35rem 0 0.75rem 2.1rem;
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.55;
}

.subcategory-description p {
    margin: 0 0 0.5rem;
}

.subcategory-description p:last-child {
    margin-bottom: 0;
}

.subcategory-description img {
    max-width: 100%;
    height: auto;
}

.subcategory-description table {
    max-width: 100%;
}

@media (max-width: 600px) {
    .subcategory-description {
        margin-left: 0;
    }
}

.entry-title,
.entry-title a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #005293;
}

.entry-header:has(.entry-meta) .entry-title {
    margin-bottom: 0.2rem;
}

.entry-header .entry-meta {
    margin: 0 0 0.65rem 0;
    font-size: 0.9rem;
    color: #646970;
    line-height: 1.4;
}

a {
    color: #005293;
    text-decoration: none;
    transition: all 0.2s;
}
a:hover {
    color: #888;
}

.entry-title h1 {
    font-weight: 700;
    font-size: 1.9rem;
    margin: 0.75rem 0 1.5rem 0;
}

.site-footer {
    width: 75rem;
    max-width: 100%;
    margin: 0 auto;
    border-top: 5px solid #005293;
    box-sizing: border-box;
}

.footer-group {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    text-align: center;
    box-sizing: border-box;
}

.footer-element {
    margin: 0.625rem;
    padding: 0.938rem;
}

.footer-logo img {
    height: 56px;
    width: auto;
}

.footer-back-to-top,
.footer-rss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    transition: color 0.2s ease-in-out;
}

.footer-back-to-top:hover,
.footer-rss:hover {
    color: #0073aa;
}






/* wordpress class */
.wp-block-heading {
    font-size: 2.5rem;
    line-height: 1.2;
    font-family: "Source Sans 3", "Source Sans Pro", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    font-weight: 300;
    letter-spacing: -1px;
    margin: 0.75rem 0 1.5rem 0;
    color: rgb(33, 33, 33);
}

/* Navigation des articles (pagination) */
.posts-navigation,
.post-navigation {
    width: 900px;
    max-width: 100%;
    margin: 2rem auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.posts-navigation .nav-previous,
.posts-navigation .nav-next,
.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 auto;
}

.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: right;
}

.posts-navigation .nav-links a,
.post-navigation .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #005293;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.posts-navigation .nav-links a:hover,
.post-navigation .nav-links a:hover {
    color: #888888;
}

.posts-navigation .nav-previous a::before {
    content: "\2190";
}

.posts-navigation .nav-next a::after {
    content: "\2192";
}

/* Pagination personnalisée des archives : Start Prev 1 2 3 Next End + Page X of Y */
.isoe-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: 900px;
    max-width: 100%;
    margin: 2rem auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.isoe-pagination-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.isoe-pagination-links a,
.isoe-pagination-links span.page-numbers,
.isoe-pagination-links .isoe-pagination-edge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #005293;
    text-decoration: none;
    border: 1px solid #dddddd;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.isoe-pagination-links a:hover {
    background-color: #f5f5f5;
    color: #00345c;
}

.isoe-pagination-links .isoe-pagination-edge,
.isoe-pagination-links .prev,
.isoe-pagination-links .next {
    text-transform: uppercase;
}

.isoe-pagination-links span.page-numbers.current {
    background-color: #005293;
    border-color: #005293;
    color: #ffffff;
}

.isoe-pagination-links .dots {
    color: #999999;
    border-color: transparent;
}

.isoe-pagination-links .isoe-pagination-edge.is-disabled {
    color: #cccccc;
    border-color: #eeeeee;
    cursor: default;
    pointer-events: none;
}

.isoe-pagination-summary {
    font-size: 0.9rem;
    color: #888888;
    white-space: nowrap;
}

/* ==========================================================================
   Mosaïques et tableaux présentés sous forme de cases (mosaic / mosaic-table)
   ========================================================================== */

/* 1. Les balises <br> ne fonctionnent pas dans les mosaïques et tableaux de cases */
.mosaic br,
.mosaic-item br,
table.mosaic-table br,
.category-description table:not(.table-bordered) br,
.category-description table:not(.table-bordered) td br,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) br {
    display: none !important;
}

/* 2. Affichage avec le bloc global centré, et retour à la ligne des cases recommençant depuis la gauche */
.mosaic,
table.mosaic-table,
.category-description table:not(.table-bordered),
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 10rem)) !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 1.5rem 0.75rem !important;
    width: 100% !important;
    max-width: 75rem !important;
    margin: 1.5rem auto !important;
    padding: 0 !important;
    border: none !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

table.mosaic-table tbody,
.category-description table:not(.table-bordered) tbody,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) tbody,
table.mosaic-table tr,
.category-description table:not(.table-bordered) tr,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) tr {
    display: contents !important;
    border: none !important;
    background: transparent !important;
}

/* 3. Style des cases (mosaic-item et td) */
.mosaic-item,
table.mosaic-table td,
.category-description table:not(.table-bordered) td,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    text-align-last: center !important;
    width: 100% !important;
    max-width: 10rem !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
    border: none !important;
    background: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

.mosaic-item > *,
table.mosaic-table td > *,
.category-description table:not(.table-bordered) td > *,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mosaic-item a,
.mosaic-item span,
table.mosaic-table td a,
table.mosaic-table td span,
.category-description table:not(.table-bordered) td a,
.category-description table:not(.table-bordered) td span,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td a,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-align-last: center !important;
    text-decoration: none !important;
    color: #005293 !important;
    font-weight: 500 !important;
}

.mosaic-item a:hover,
table.mosaic-table td a:hover,
.category-description table:not(.table-bordered) td a:hover,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td a:hover {
    color: #002b4d !important;
    text-decoration: underline !important;
}

.mosaic-item img,
table.mosaic-table td img,
.category-description table:not(.table-bordered) td img,
table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    margin: 0 auto 0.4rem auto !important;
    flex-shrink: 0 !important;
}

/* Images générales dans les descriptions de catégories (hors mosaïque) */
.category-description img:not(.mosaic-item img):not(table td img) {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Image directement affichée (lien converti depuis une URL d'image) */
.isoe-direct-image-link {
    display: inline-block !important;
    text-decoration: none !important;
    margin: 1rem auto !important;
    line-height: 0 !important;
}

.isoe-direct-image {
    display: block !important;
    max-width: min(100%, 700px) !important;
    max-height: 450px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 1rem auto !important;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Images affichées dans les documents (articles / fiches documentaires)
   Limite la largeur et la hauteur maximales pour une intégration harmonieuse
   (Sauf si la classe CSS additionnelle "no-size-limit" est appliquée)
   ========================================================================== */
article.post .entry-content img:not(.no-size-limit):not(.no-size-limit *),
article .entry-content img:not(.no-size-limit):not(.no-size-limit *) {
    max-width: min(100%, 700px) !important;
    max-height: 450px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Classe spéciale "no-size-limit" (à mettre dans "Classes CSS additionnelles")
   pour afficher une image en pleine largeur sans limite de taille */
.no-size-limit:has(> figure),
.no-size-limit:has(figure),
.no-size-limit > figure,
.no-size-limit figure,
figure.wp-block-image.no-size-limit,
figure.no-size-limit {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

img.no-size-limit,
.no-size-limit img,
article.post .entry-content img.no-size-limit,
article .entry-content img.no-size-limit,
.entry-content img.no-size-limit,
article.post .entry-content .no-size-limit img,
article .entry-content .no-size-limit img,
.entry-content .no-size-limit img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
}

/* Centrage des images ayant la classe Joomla pull-center ou WordPress aligncenter */
.entry-content img.pull-center,
.entry-content img.aligncenter,
.pull-center img,
.aligncenter img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


.mosaic-item p,
.mosaic-item div,
.mosaic-item h1,
.mosaic-item h2,
.mosaic-item h3,
.mosaic-item h4,
.mosaic-item h5,
.mosaic-item h6,
table.mosaic-table td p,
table.mosaic-table td div {
    text-align: center !important;
    text-align-last: center !important;
    margin: 0 !important;
}



/* ==========================================================================
   Boutons de document (View / Download) : uniquement dans les textes des documents
   lorsque l'option est activée dans Apparence > Menus (classe .isoe-doc-button-active).
   Par défaut ou si décoché, les liens restent sous leur forme de base (liens textuels).
   ========================================================================== */
article.post.isoe-doc-button-active {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eef2f5;
}

article.post.isoe-doc-button-active:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

article.post.isoe-doc-button-active .entry-content::after,
article.post.isoe-doc-button-active::after {
    content: "";
    display: table;
    clear: both;
}

article.post.isoe-doc-button-active .entry-content {
    position: relative;
}

/* Base commune du bouton de document dans le corps de texte du document */
article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i],
    [href$=".txt" i]
) {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 11rem;
    min-height: 4.2rem;
    padding: 0.75rem 1.5rem !important;
    border: 1px solid #d7dde3;
    border-radius: 8px;
    background-color: #f7f9fb;
    color: #222222;
    font-size: 0; /* Masque le libellé texte brut initial */
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.15s ease-in-out;
}

/* Cas 1 : L'article contient du texte descriptif ET un vrai bouton View/Download :
   On ajoute de la marge à droite du contenu uniquement si un bouton est réellement affiché */
article.post.isoe-doc-button-active:is(.isoe-doc-has-desc, :has(.entry-content p:nth-child(2))) .entry-content:has(
    a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
    a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
        [href$=".pdf" i],
        [href$=".doc" i],
        [href$=".docx" i],
        [href$=".odt" i],
        [href$=".rtf" i],
        [href$=".xls" i],
        [href$=".xlsx" i],
        [href$=".ods" i],
        [href$=".csv" i],
        [href$=".ppt" i],
        [href$=".pptx" i],
        [href$=".odp" i],
        [href$=".zip" i],
        [href$=".rar" i],
        [href$=".7z" i],
        [href$=".tar" i],
        [href$=".gz" i],
        [href$=".txt" i]
    )
) {
    padding-right: 14.5rem;
    min-height: 5.5rem;
}

article.post.isoe-doc-button-active.isoe-doc-has-desc .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
article.post.isoe-doc-button-active.isoe-doc-has-desc .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i],
    [href$=".txt" i]
),
article.post.isoe-doc-button-active:has(.entry-content p:nth-child(2)) .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
article.post.isoe-doc-button-active:has(.entry-content p:nth-child(2)) .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i],
    [href$=".txt" i]
) {
    position: absolute;
    top: 0;
    right: 0;
    float: none;
    margin: 0;
    width: 12rem;
    box-sizing: border-box;
}

/* Évite l'espace vide en bas généré par le paragraphe d'origine du bouton */
article.post.isoe-doc-button-active.isoe-doc-has-desc .entry-content p:has(> a:is([href$=".pdf" i], [href$=".doc" i], [href$=".docx" i], [href$=".xls" i], [href$=".xlsx" i], [href$=".ppt" i], [href$=".pptx" i], [href$=".zip" i], [href$=".rar" i], [href$=".txt" i])):last-child,
article.post.isoe-doc-button-active:has(.entry-content p:nth-child(2)) .entry-content p:has(> a:is([href$=".pdf" i], [href$=".doc" i], [href$=".docx" i], [href$=".xls" i], [href$=".xlsx" i], [href$=".ppt" i], [href$=".pptx" i], [href$=".zip" i], [href$=".rar" i], [href$=".txt" i])):last-child {
    margin: 0;
    height: 0;
}

/* Cas 2 : Le seul contenu de l'article est le bouton :
   Affichage du bouton à gauche normalement sous le titre */
article.post.isoe-doc-button-active.isoe-doc-button-only .entry-content,
article.post.isoe-doc-button-active:not(:has(.entry-content p:nth-child(2))):not(.isoe-doc-has-desc) .entry-content {
    padding-right: 0;
    min-height: 0;
}

article.post.isoe-doc-button-active.isoe-doc-button-only .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
article.post.isoe-doc-button-active.isoe-doc-button-only .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i],
    [href$=".txt" i]
),
article.post.isoe-doc-button-active:not(:has(.entry-content p:nth-child(2))):not(.isoe-doc-has-desc) .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
article.post.isoe-doc-button-active:not(:has(.entry-content p:nth-child(2))):not(.isoe-doc-has-desc) .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i],
    [href$=".txt" i]
) {
    position: static;
    float: none;
    display: inline-flex;
    margin: 0.5rem 0 1rem 0;
    width: auto;
    min-width: 11rem;
}

/* Libellé principal "View" pour les documents consultables directement dans le navigateur (PDF, TXT) */
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".txt" i]
)::before {
    content: "View";
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222222;
}

/* Libellé principal "Download" pour les documents téléchargés (Word, Excel, PowerPoint, archives...) */
article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)::before,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i]
)::before {
    content: "Download";
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222222;
}

/* Sous-libellé du type de fichier affiché sous "View" ou "Download" */
article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
    [href$=".pdf" i],
    [href$=".doc" i],
    [href$=".docx" i],
    [href$=".odt" i],
    [href$=".rtf" i],
    [href$=".xls" i],
    [href$=".xlsx" i],
    [href$=".ods" i],
    [href$=".csv" i],
    [href$=".ppt" i],
    [href$=".pptx" i],
    [href$=".odp" i],
    [href$=".zip" i],
    [href$=".rar" i],
    [href$=".7z" i],
    [href$=".tar" i],
    [href$=".gz" i],
    [href$=".txt" i]
)::after {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #005293;
}

article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".pdf" i]::after { content: "(pdf)"; }
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".doc" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".docx" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".odt" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".rtf" i]::after { content: "(word)"; }
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".xls" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".xlsx" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".ods" i]::after { content: "(excel)"; }
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".csv" i]::after { content: "(csv)"; }
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".ppt" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".pptx" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".odp" i]::after { content: "(powerpoint)"; }
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".zip" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".rar" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".7z" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".tar" i]::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".gz" i]::after { content: "(archive)"; }
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a)[href$=".txt" i]::after { content: "(txt)"; }

/* Effet au survol du bouton */
article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):hover,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):hover {
    background-color: #005293;
    border-color: #005293;
    box-shadow: 0 3px 8px rgba(0, 82, 147, 0.25);
    transform: translateY(-1px);
    text-decoration: none !important;
}

article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):hover::before,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):hover::before {
    color: #ffffff;
}

article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):hover::after,
article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):hover::after {
    color: #eef6fb;
}

/* Cas 3 : Adaptation responsive du bouton sur écran étroit / mobile (<= 768px) */
@media (max-width: 768px) {
    article.post.isoe-doc-button-active .entry-content,
    article.post.isoe-doc-button-active.isoe-doc-has-desc .entry-content,
    article.post.isoe-doc-button-active:has(.entry-content p:nth-child(2)) .entry-content {
        padding-right: 0 !important;
        min-height: 0 !important;
        position: static !important;
    }

    article.post.isoe-doc-button-active .entry-content a[download]:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a),
    article.post.isoe-doc-button-active .entry-content a:not(.doclink):not(.isoe-direct-image-link):not(span > a):not(table a):is(
        [href$=".pdf" i],
        [href$=".doc" i],
        [href$=".docx" i],
        [href$=".odt" i],
        [href$=".rtf" i],
        [href$=".xls" i],
        [href$=".xlsx" i],
        [href$=".ods" i],
        [href$=".csv" i],
        [href$=".ppt" i],
        [href$=".pptx" i],
        [href$=".odp" i],
        [href$=".zip" i],
        [href$=".rar" i],
        [href$=".7z" i],
        [href$=".tar" i],
        [href$=".gz" i],
        [href$=".txt" i]
    ) {
        position: static !important;
        float: none !important;
        display: flex !important;
        width: 100% !important;
        margin: 0.75rem 0 !important;
        box-sizing: border-box !important;
    }

    article.post.isoe-doc-button-active .entry-content p:has(> a:is([href$=".pdf" i], [href$=".doc" i], [href$=".docx" i], [href$=".xls" i], [href$=".xlsx" i], [href$=".ppt" i], [href$=".pptx" i], [href$=".zip" i], [href$=".rar" i], [href$=".txt" i])):last-child {
        margin: 0.75rem 0 !important;
        height: auto !important;
        line-height: normal !important;
    }
}



/* Bandeau de connexion en haut de chaque page pour les non connectés */
.site-login-banner {
    width: 44rem;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Bloc d'information situé AU-DESSUS du login */
.site-login-banner .oecd-login-required,
.oecd-login-required {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.site-login-banner .oecd-login-required-info,
.oecd-login-required-info {
    width: 100% !important;
    flex: none !important;
}

.site-login-banner .oecd-login-bubble,
.oecd-login-bubble {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
}

/* La pointe de la bulle descend vers le formulaire situé en dessous */
.site-login-banner .oecd-login-bubble::after,
.oecd-login-bubble::after {
    top: auto !important;
    right: auto !important;
    bottom: -6px !important;
    left: 2.5rem !important;
    transform: rotate(45deg) !important;
}

.site-login-banner .oecd-login-required-form,
.oecd-login-required-form {
    width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
}

/* Centrage du bouton de connexion (texte et conteneur) */
.oecd-login-submit {
    text-align: center !important;
    text-align-last: center !important;
    margin: 0 !important;
}

.oecd-login-submit button,
.oecd-login-form .oecd-login-submit button,
.oecd-login-required-form .oecd-login-submit button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-align-last: center !important;
    width: 100% !important;
}

/* Centrage des liens Forgotten password et To request an account (popup et bandeau) */
.oecd-login-links-group {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    text-align-last: center !important;
    width: 100% !important;
}

.oecd-login-links,
p.oecd-login-links {
    text-align: center !important;
    text-align-last: center !important;
    margin: 0 !important;
}

.oecd-login-links a,
p.oecd-login-links a {
    display: inline-block !important;
    text-align: center !important;
    text-align-last: center !important;
}

/* Spécifique au popup : affichage vertical centré */
.oecd-login-popup .oecd-login-links-group {
    flex-direction: column !important;
    gap: 0.4rem !important;
    margin-top: 0.75rem !important;
}

.oecd-login-popup .oecd-login-links {
    width: 100% !important;
}

/* Spécifique au bandeau : affichage horizontal centré */
.oecd-login-required-form .oecd-login-links-group {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 2rem !important;
    margin-top: 0.6rem !important;
}

.oecd-login-required-form .oecd-login-links {
    width: auto !important;
}

/* Fil d'Ariane : élément parent non cliquable */
.isoe-breadcrumbs .breadcrumb-item-parent {
    color: #999999;
}

/* ==========================================================================
   Tableau des documents (option table_view sur les éléments de menu de catégorie)
   ========================================================================== */
.isoe-documents-table-wrapper {
    width: 900px;
    max-width: 100%;
    margin: 1.5rem auto 2.5rem auto;
    box-sizing: border-box;
    overflow-x: auto;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    border: none;
}

table.isoe-documents-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: none !important;
    font-size: 0.95rem;
}

table.isoe-documents-table td {
    padding: 0.85rem 1rem;
    border: none !important;
    border-bottom: none !important;
    vertical-align: middle;
    background-color: #ffffff !important;
    background: #ffffff !important;
}

table.isoe-documents-table td.col-title {
    text-align: left;
    font-weight: 600;
    color: #005293;
    font-size: 1rem;
    line-height: 1.4;
}

table.isoe-documents-table td.col-date {
    text-align: center;
    white-space: nowrap;
    width: 140px;
    color: #555555;
    font-size: 0.9rem;
}

table.isoe-documents-table td.col-file {
    text-align: center;
    white-space: nowrap;
    width: 175px;
}

table.isoe-documents-table tbody tr,
table.isoe-documents-table tbody tr:nth-child(even),
table.isoe-documents-table tbody tr:hover {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: none !important;
}

.isoe-table-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.isoe-table-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background-color: #f7f9fb;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    color: #222222 !important;
    font-size: 0.95rem;
    line-height: 1.25;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.isoe-table-view-btn .view-label {
    font-weight: 700;
    color: inherit;
    font-size: 0.95rem;
}

.isoe-table-view-btn .file-type {
    font-weight: 500;
    color: #005293;
    font-size: 0.85rem;
}

.isoe-table-view-btn:hover {
    background-color: #005293;
    border-color: #005293;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 82, 147, 0.2);
}

.isoe-table-view-btn:hover .file-type {
    color: #eef6fb;
}

.isoe-no-doc {
    color: #999999;
    font-style: italic;
}

/* ==========================================================================
   Adaptations responsives globales (sans altération du design desktop)
   ========================================================================== */

/* 1. Conteneurs médias et tableaux dans le contenu */
.entry-content img:not(.no-size-limit):not(.no-size-limit *) {
    max-width: min(100%, 700px) !important;
    max-height: 450px !important;
    height: auto !important;
    object-fit: contain !important;
    box-sizing: border-box;
}

.entry-content iframe,
.entry-content video,
.entry-content object {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.entry-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 2. Adaptation des largeurs et espacements des conteneurs de contenu (<= 940px) */
@media (max-width: 940px) {
    article,
    .category-header,
    .archive-section-title,
    .isoe-documents-table-wrapper,
    .posts-navigation,
    .post-navigation,
    .isoe-pagination {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #primary.site-main {
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .category-heading {
        margin: 20px 0;
    }
}

/* 3. Adaptation du fil d'Ariane, de la recherche et du bandeau (<= 768px) */
@media (max-width: 768px) {
    .isoe-breadcrumbs-bar {
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .site-login-banner {
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .site-footer {
        padding: 0 1rem;
        box-sizing: border-box;
    }
}

/* 4. Adaptation poussée pour mobile (<= 640px) */
@media (max-width: 640px) {
    .isoe-breadcrumbs-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .isoe-breadcrumbs {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .isoe-search-form {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }

    .isoe-search-form .isoe-search-input {
        width: 100%;
        flex: 1 1 auto;
    }

    .footer-group {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .footer-element {
        margin: 0;
        padding: 0.25rem 0;
    }

    .wp-block-heading {
        font-size: 1.8rem;
    }

    .entry-title h1 {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.35rem;
    }

    .isoe-pagination {
        justify-content: center;
        text-align: center;
    }

    .isoe-pagination-links {
        justify-content: center;
    }

    .isoe-pagination-summary {
        width: 100%;
        text-align: center;
    }
}

/* 5. Adaptation du tableau des documents sur mobile (<= 560px) */
@media (max-width: 560px) {
    .isoe-documents-table-wrapper {
        margin: 1rem auto 1.5rem auto;
    }

    table.isoe-documents-table td {
        padding: 0.6rem 0.5rem;
    }

    table.isoe-documents-table td.col-title {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    table.isoe-documents-table td.col-date {
        font-size: 0.78rem;
        width: auto;
        white-space: normal;
        min-width: 72px;
        padding: 0.6rem 0.35rem;
    }

    table.isoe-documents-table td.col-file {
        width: auto;
        padding: 0.6rem 0.35rem;
    }

    .isoe-table-view-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .isoe-table-view-btn .file-type {
        font-size: 0.72rem;
    }
}

/* 6. Formulaires et mosaïque sur petits mobiles (<= 480px) */
@media (max-width: 480px) {
    .site-header {
        padding: 0.5rem 0.75rem;
        gap: 0.35rem;
    }

    .site-branding {
        max-width: 110px;
    }

    .site-branding img {
        max-height: 38px;
    }

    .site-partner-branding {
        max-width: 115px;
    }

    .site-partner-branding img {
        max-height: 22px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }

    .mosaic,
    table.mosaic-table,
    .category-description table:not(.table-bordered),
    table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) {
        grid-template-columns: repeat(auto-fill, minmax(6.5rem, 8rem)) !important;
        gap: 1rem 0.5rem !important;
    }

    .mosaic-item,
    table.mosaic-table td,
    .category-description table:not(.table-bordered) td,
    table:not(.isoe-documents-table):not(.table-bordered):not(:has(th)) td {
        max-width: 8rem !important;
        padding: 0.25rem !important;
        font-size: 0.85rem !important;
    }

    .oecd-login-required-form .oecd-login-form {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .oecd-login-required-form .oecd-login-links-group {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }
}