.irimas-hal-publications .irimas-hal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Keep HAL shortcode text sizing stable (no responsive zoom scaling). */
.irimas-hal-publications,
.irimas-hal-publications-block {
    --irimas-scale: 1 !important;
    zoom: 1 !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.irimas-hal-publications .irimas-hal-item {
    padding: 0.7rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.irimas-hal-publications .irimas-hal-item:last-child {
    border-bottom: 0;
}

.irimas-hal-publications .irimas-hal-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.irimas-hal-publications .irimas-hal-title {
    font-weight: 700;
    text-decoration: none;
    color: #00368A;
    font-size: 1.06rem;
    line-height: 1.25;
}

.irimas-hal-publications .irimas-hal-title:hover {
    text-decoration: underline;
}

.irimas-hal-publications .irimas-hal-year {
    margin-left: 0.35rem;
    color: #666;
}

.irimas-hal-publications .irimas-hal-doc-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00368A;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 700;
    color: #00368A;
    background: #fff;
}

.irimas-hal-publications .irimas-hal-authors {
    margin-top: 0.35rem;
    color: #555;
    font-size: 0.95em;
}

.irimas-hal-publications .irimas-hal-journal {
    color: #777;
    font-size: 0.88em;
    font-style: italic;
    line-height: 1.35;
}

.irimas-hal-publications .irimas-hal-item-header + .irimas-hal-journal {
    margin-top: 0.35rem;
}

.irimas-hal-publications .irimas-hal-authors + .irimas-hal-journal {
    margin-top: 0.2rem;
}

.irimas-hal-bibtex-btn {
    background: transparent;
    color: #00368A;
    border: 2px solid #00368A;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.irimas-hal-bibtex-btn:hover {
    background: #00368A;
    color: #fff;
}

.irimas-hal-bibtex-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.irimas-hal-bibtex-modal.is-visible {
    display: block;
}

.irimas-hal-bibtex-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.irimas-hal-bibtex-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.irimas-hal-bibtex-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.irimas-hal-bibtex-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #00368A;
}

.irimas-hal-bibtex-modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.irimas-hal-bibtex-modal-close:hover {
    color: #000;
}

.irimas-hal-bibtex-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.irimas-hal-bibtex-loading {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.irimas-hal-bibtex-content {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.irimas-hal-bibtex-error {
    color: #d32f2f;
    padding: 1rem;
    text-align: center;
}

.irimas-hal-bibtex-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
}

.irimas-hal-bibtex-copy-btn {
    background: #00368A;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.irimas-hal-bibtex-copy-btn:hover {
    background: #0B2E74;
}

.irimas-hal-bibtex-copy-btn.is-copied {
    background: #4caf50;
}

.irimas-hal-pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.irimas-hal-pagination .irimas-hal-page-link {
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.irimas-hal-pagination .irimas-hal-page-link:hover {
    text-decoration: underline;
}

.irimas-hal-pagination .irimas-hal-page-status {
    color: #555;
    font-size: 0.95em;
}

.irimas-hal-irimas-filters {
    margin: 0 0 1rem 0;
    background: #fff;
    border: 2px solid #0B2E74;
    border-radius: 16px;
    padding: 18px 18px;
}

.irimas-hal-irimas-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    align-items: stretch;
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.irimas-hal-irimas-layout--stacked .irimas-hal-irimas-main {
    min-width: 0;
    width: 100%;
}

.irimas-hal-irimas-list-wrap {
    min-width: 0;
}

.irimas-hal-irimas-layout .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.irimas-hal-back-to-top {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #00368A;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    z-index: 2147483647;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.irimas-hal-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

.irimas-hal-back-to-top:hover {
    background: #0B2E74;
    color: #fff;
    text-decoration: none;
}

.irimas-hal-back-to-top:focus-visible {
    outline: 3px solid rgba(0, 54, 138, 0.35);
    outline-offset: 3px;
}

.irimas-hal-irimas-filter-title {
    margin: 0 0 0.75rem 0;
}

.irimas-hal-irimas-filter-open,
.irimas-hal-irimas-filter-close,
.irimas-hal-irimas-filter-overlay {
    display: none;
}

.irimas-hal-irimas-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.irimas-hal-irimas-filter-toolbar.irimas-hal-irimas-filter-grid .irimas-hal-irimas-filter-field {
    flex: 1 1 170px;
    min-width: 170px;
    max-width: none;
}

.irimas-hal-irimas-filter-toolbar.irimas-hal-irimas-filter-grid .irimas-hal-irimas-filter-field--per-page {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 140px;
}

.irimas-hal-irimas-filter-toolbar.irimas-hal-irimas-filter-grid .irimas-hal-irimas-filter-field--actions {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
}

.irimas-hal-toolbar-select {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 0.4rem 0.55rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #1f2d3d;
    box-sizing: border-box;
}

.irimas-hal-irimas-filter-field--actions .irimas-hal-toolbar-actions-label {
    display: block;
    min-height: 1.15em;
}

.irimas-hal-irimas-filter-field--actions .irimas-hal-irimas-filter-actions {
    justify-content: flex-start;
    white-space: nowrap;
}

.irimas-hal-per-page-bar {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
}

.irimas-hal-per-page-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.irimas-hal-per-page-label {
    font-weight: 600;
    color: #1f2d3d;
    margin: 0;
}

.irimas-hal-per-page-select {
    min-height: 38px;
    padding: 0.35rem 0.55rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #1f2d3d;
}

.irimas-hal-irimas-filter-section {
    margin-bottom: 1rem;
}

.irimas-hal-irimas-filter-label {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    font-size: 1rem;
}

.irimas-hal-irimas-filter-item {
    margin: 0.25rem 0;
}

.irimas-hal-doc-type-select {
    width: 100%;
    min-height: 36px;
    padding: 0.35rem 0.55rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #1f2d3d;
}

.irimas-hal-author-search {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.irimas-hal-author-results {
    margin-top: 0.5rem;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    max-height: 260px;
    overflow: auto;
    padding: 0.25rem;
}

.irimas-hal-author-active {
    margin-top: 0.4rem;
    font-size: 0.92em;
    color: #1f2d3d;
}

.irimas-hal-author-result {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
}

.irimas-hal-author-result:hover {
    background: #f4f4f4;
}

.irimas-hal-author-result.is-selected {
    background: #eaf3ff;
    font-weight: 600;
}

.irimas-hal-author-empty {
    padding: 0.6rem;
    color: #666;
    font-size: 0.95em;
}

.irimas-hal-by-year .irimas-hal-year-group {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.irimas-hal-by-year .irimas-hal-year-summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-weight: 700;
}

.irimas-hal-by-year .irimas-hal-year-content {
    padding-bottom: 0.25rem;
}

.irimas-hal-by-year .irimas-hal-year-hint,
.irimas-hal-by-year .irimas-hal-year-loading {
    margin: 0.4rem 0 0.3rem;
    color: #666;
    font-size: 0.95em;
}

.irimas-hal-by-year .irimas-hal-publications .irimas-hal-item:first-child {
    padding-top: 0.35rem;
}

.irimas-hal-irimas-filter-form .irimas-hal-irimas-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.irimas-hal-irimas-filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.irimas-hal-irimas-filter-field select {
    min-width: 0;
}

.irimas-hal-irimas-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.irimas-hal-irimas-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #00368A;
    border: 2px solid #00368A;
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.irimas-hal-irimas-filter-reset:hover {
    background: #00368A;
    color: #fff;
    border-color: #00368A;
    text-decoration: none;
}

.irimas-hal-publications-block .irimas-home-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

.irimas-hal-publications-block .irimas-home-card-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid #00368A;
    border-radius: 999px;
    color: #00368A;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
}

.irimas-hal-publications-block .irimas-home-card-cta-link:hover {
    background: #00368A;
    color: #ffffff;
}

.irimas-hal-publications-block .irimas-home-card-cta-actualites {
    justify-content: center;
    margin-top: 12px;
}

@media (max-width: 650px) {
    .irimas-hal-irimas-layout {
        min-height: 70vh;
        min-height: 70dvh;
    }

    .irimas-hal-irimas-filter-open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        border: 2px solid #00368A;
        border-radius: 999px;
        background: #fff;
        color: #00368A;
        font-weight: 700;
        margin: 0 0 0.7rem 0;
        cursor: pointer;
    }

    .irimas-hal-irimas-filter-overlay,
    .irimas-hal-irimas-filter-close {
        display: none !important;
    }

    .irimas-hal-irimas-filter-root {
        display: none;
        position: static;
        z-index: auto;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        max-height: none;
        overflow: visible;
        margin: 0;
        padding-top: 0;
        box-shadow: none;
    }

    .irimas-hal-irimas-filters {
        padding-top: 14px;
    }

    .irimas-hal-irimas-filter-root.is-open {
        display: block;
    }

    .irimas-hal-irimas-filter-grid {
        flex-direction: column;
    }

    .irimas-hal-irimas-filter-field {
        width: 100%;
    }

    .irimas-hal-irimas-filter-toolbar.irimas-hal-irimas-filter-grid .irimas-hal-irimas-filter-field {
        flex: none;
        min-width: 100%;
    }
}
