* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #efefef;
    font-family: Arial, sans-serif;
    color: #111111;
}

@media (max-width: 600px) {
    body:has(> .unes-scroll-layout) {
        background: #ffffff;
    }
}

.unes-app {
    max-width: 390px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
}

.unes-header {
    background: #ffffff;
    padding: 0 6px;
    border-bottom: 1px solid #ececec;
}

.unes-header-top {
    display: grid;
    grid-template-columns: 24px 172px minmax(0, 1fr);
    align-items: center;
    gap: 2px;
    padding: 4px 0 2px;
}

.unes-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: normal;
    position: relative;
    z-index: 2;
}

.unes-logo-wrap {
    display: inline-block;
    text-decoration: none;
    width: auto;
    pointer-events: auto;
}

.unes-logo-image {
    pointer-events: none;
    width: 100%;
    max-width: 172px;
    height: auto;
    display: block;
    margin: 0 auto;
    vertical-align: top;
}


.unes-header-tools {
    min-width: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.unes-header-edition {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

.unes-header-edition-label {
    margin-bottom: 2px;
    font-size: 8px;
    font-weight: 700;
    color: #4a4a4a;
}

.unes-header-edition-day {
    font-size: 10px;
    line-height: 1.05;
    font-weight: 700;
}

.unes-header-edition-time {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}

.unes-header-capsule {
    min-width: 0;
    padding-left: 5px;
    border-left: 1px solid #dddddd;
}

.unes-header-capsule .unes-daily-capsule-text {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 3px;
    color: #666666;
    font-family: Georgia, serif;
    font-size: 9px;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}

.unes-header-capsule .unes-daily-capsule-icon {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

.unes-header-capsule .unes-daily-capsule-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.unes-header-capsule .unes-daily-capsule-content-wrap {
    min-width: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.unes-header-capsule .unes-daily-capsule-suite {
    display: none;
}

.unes-header-capsule .unes-daily-capsule-text::after {
    content: '›';
    flex-shrink: 0;
    margin-left: 1px;
    color: #8a8a8a;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
}

.unes-capsule-popover {
    margin: 4px 8px 6px;
    padding: 10px 34px 10px 12px;
    position: relative;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.unes-capsule-popover[hidden] {
    display: none;
}

.unes-capsule-popover-content {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.unes-capsule-popover-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
    color: #666666;
}

.unes-capsule-popover-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.unes-capsule-popover-text {
    font-family: Georgia, serif;
    font-size: 11px;
    line-height: 1.35;
    color: #555555;
}

.unes-capsule-popover-close {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
}

.unes-newness-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 12px 3px;
    padding: 3px 7px;
    border-radius: 10px;
    background: #f7f7f7;
    white-space: nowrap;
}

.unes-newness-label {
    flex: 0 0 auto;
    margin-right: 3px;
    padding-right: 8px;
    border-right: 1px solid #d8d8d8;
    font-size: 9.5px;
    line-height: 1.15;
    font-weight: 400;
    color: #333333;
    text-align: right;
    white-space: normal;
}

.unes-newness-select {
    flex: 0 0 auto;
    width: 70px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid #f28c00;
    border-radius: 999px;
    background: #ffffff;
    color: #082b72;
    font-family: Arial, sans-serif;
    font-size: 10px !important;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}


.unes-meta {
    font-size: 10px;
    font-weight: 700;
    color: #082b72;
    line-height: 1;
    margin-top: 6px;
}

.unes-icon-button {
    border: none;
    background: none;
    font-size: 22px;
    color: #111111;
    padding: 0;
}

.unes-edition-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 12px;
    border-bottom: 1px solid #ececec;
}

.unes-edition-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unes-edition-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #082b72;
    font-size: 0;
}

.unes-edition-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.unes-edition-label {
    display: none;
}

.unes-edition-date {
    margin-top: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.unes-edition-chevron {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -1px;
}

.unes-edition-link {
    font-size: 10px;
    color: #222222;
    text-align: right;
    line-height: 1.15;
}

.unes-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px 1px;
    border-bottom: 1px solid #ececec;
}

.unes-tabs > :nth-child(1) {
    grid-column: 1;
}

.unes-tabs > :nth-child(2) {
    grid-column: 3;
}

.unes-tabs > :nth-child(3) {
    grid-column: 5;
}

.unes-tabs > :nth-child(4) {
    grid-column: 9;
    justify-self: end;
}

.unes-tabs-separator {
    grid-column: 7;
    width: 1px;
    height: 9px;
    background: #111111;
    justify-self: center;
    position: relative;
    top: -1px;
}

.unes-subjects-link {
    grid-column: 9;
    justify-self: end;
}

.unes-tab-button {
cursor: pointer;
    border: none;
    background: none;
    padding: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: #0d2c56;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Catégorie sans nouveau titre : état atténué */
.unes-tab-button.no-new {
    color: #8a8a8a;
}

/* La catégorie active reste le repère de navigation principal */
.unes-tab-button.active {
    color: #0b45ff;
    border-bottom: none;
}

/* Navigation et durée sur une seule ligne */
.unes-tabs.unes-tabs--compact {
    justify-content: space-between;
    gap: 5px;
    padding: 3px 8px;
    min-width: 0;
}

.unes-tabs--compact > .unes-tab-button {
    display: none;
}

.unes-tabs--compact .unes-category-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.unes-tabs--compact .unes-category-picker label {
    color: #333333;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}

.unes-tabs--compact .unes-category-select {
    flex: 0 1 126px;
    width: 126px;
    min-width: 0;
    height: 20px;
    padding: 0 2px;
    border: 1px solid #082b72;
    border-radius: 999px;
    background: #ffffff;
    color: #082b72;
    font-family: Arial, sans-serif;
    font-size: 10px !important;
    font-weight: 700;
    text-align: center;
    text-align-last: center;
}

.unes-tabs--compact .unes-newness-bar {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
    margin: 0 8px 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.unes-tabs--compact .unes-newness-label {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    font-size: 10px;
    line-height: 1.15;
}

.unes-tabs--compact .unes-newness-select {
    width: 48px;
    height: 20px;
    padding: 0 1px;
    font-size: 9px !important;
    text-align: center;
    text-align-last: center;
}

/* Chevrons uniformes, avec marge droite de 7 px */
.unes-tabs--compact .unes-category-select,
.unes-tabs--compact .unes-newness-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23082b72' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    background-size: 7px 5px;
    padding-left: 13px;
    padding-right: 13px;
    text-align: center;
    text-align-last: center;
}

/* Préserver les quatre catégories durant l'onboarding */
.unes-tabs.unes-tabs--compact.unes-discovery-categories-target {
    padding: 4px 12px 1px;
}

.unes-tabs--compact.unes-discovery-categories-target > .unes-tab-button {
    display: block;
}

.unes-tabs--compact.unes-discovery-categories-target > .unes-category-picker,
.unes-tabs--compact.unes-discovery-categories-target > .unes-newness-bar {
    display: none;
}

@media (max-width: 360px) {
        .unes-tabs--compact .unes-category-select {
        width: 114px;
        flex-basis: 114px;
        font-size: 9px !important;
    }

    .unes-tabs--compact .unes-newness-select {
        width: 44px;
    }

    .unes-tabs--compact .unes-category-picker label,
    .unes-tabs--compact .unes-newness-label {
        font-size: 8px;
    }
}

.unes-others-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px 2px;
    border-bottom: 1px solid #ececec;
}

.unes-others-filters[hidden] {
    display: none;
}

.unes-others-filter {
    border: none;
    background: transparent;
    padding: 0 10px 4px;
    font-size: 9px;
    font-weight: 700;
    color: #555555;
    white-space: nowrap;
    cursor: pointer;
}

.unes-others-filter + .unes-others-filter {
    border-left: 1px solid #b8b8b8;
}

.unes-others-filter.active {
    color: #0b45ff;
}

.unes-media-strip {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 2px 12px 2px;
    font-size: 9px;
    font-weight: 700;
    color: #222222;
}

.unes-media-strip span {
cursor: pointer;
    position: relative;
    white-space: nowrap;
    padding-bottom: 4px;
}

.unes-media-strip span::after {
    display: none;
}



.unes-media-strip span.active {
    color: #0b45ff;
    animation: unes-media-zoom 500ms ease-out;
}

@keyframes unes-media-zoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.unes-media-strip span.active::before {
    display: none;
}

/* Nouveaux articles : signal discret au niveau du média */
.unes-media-strip span.has-new::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #f28c00;
    vertical-align: 1px;
}

.unes-swipe-hint {
    position: relative;
    padding: 3px 12px 6px;
    font-size: 10px;
    color: #5f5f5f;
}

.unes-card {
    margin: 0 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 24px;
    padding: 4px 12px 8px;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.unes-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
}
.unes-media-panel .unes-card-header {
    margin-bottom: 1px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    flex: 0 0 24px;
}

.unes-card-media {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #082b72;
    line-height: 1;
    text-align: center;
}

/* Le nom seul reste centré ; le point et l’étoile n’entrent pas
   dans le calcul de son centrage. */
.unes-card-media-name {
    grid-column: 2;
    position: relative;
    white-space: nowrap;
}

.unes-card-media.has-new .unes-card-media-name::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #f28c00;
    transform: translateY(-50%);
}

.unes-favorite-button {
    grid-column: 3;
    justify-self: start;
    border: none;
    background: none;
    padding: 0;
    margin-left: 6px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #c7c7c7;
    vertical-align: middle;
}

.unes-favorite-button.active {
    color: #f0b400;
}

.unes-title-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 5px 0;
    border-bottom: 1px solid #ededed;
    flex: 1;
    transition:
        background-color 0.18s ease;
}

.unes-title-article-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.unes-title-article-link .unes-title-arrow {
    align-self: flex-start;
}

.unes-title-article-link:visited,
.unes-title-article-link:hover,
.unes-title-article-link:active {
    color: inherit;
}

.unes-title-bullet {
    width: 8px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    color: #082b72;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -3px;
}

.unes-title-content {
    flex: 1;
    min-width: 0;
}

.unes-title-text {
    font-size: 14px;
    line-height: 1.22;
    font-family: Georgia, serif;
}

@media (max-width: 600px) {
    .unes-title-text {
        font-size: 15px;
    }
}

.unes-title-meta-row {
    position: relative;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
    margin-top: 3px;
    margin-left: 20px;
}

.unes-title-time {
    margin-top: 0;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 400;
    color: #666666;
    white-space: nowrap;
}

.unes-title-time-empty {
    min-width: 1px;
}

.unes-title-compare-link {
    margin-left: auto;
    color: #6C5688;
    text-decoration: none;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 400;
    white-space: nowrap;
    text-align: right;
    touch-action: manipulation;
}

.unes-title-compare-link:visited,
.unes-title-compare-link:hover,
.unes-title-compare-link:active {
    color: #6C5688;
    text-decoration: none;
}


.unes-title-meta-row .unes-title-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
    color: #082b72;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 400;
    white-space: nowrap;
    touch-action: manipulation;
}

.unes-title-meta-row .unes-title-view-link:visited,
.unes-title-meta-row .unes-title-view-link:hover,
.unes-title-meta-row .unes-title-view-link:active {
    color: #082b72;
    text-decoration: none;
}

.unes-title-view-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.unes-title-compare-row {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.unes-title-compare-row .unes-title-compare-link {
    margin-left: 0;
    text-align: center;
}


.unes-title-arrow {
    width: 16px;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 1px;
}

.unes-title-row.no-border {
    border-bottom: none;
}

.unes-more-button {
    width: 100%;
    margin-top: auto;
    border: 1px solid #9f9f9f;
    background: #ffffff;
    color: #4a4a4a;
    border-radius: 7px;
    height: 28px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.unes-more-chevron {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -2px;
    color: #4a4a4a;
}

.unes-bottom-nav {
    margin-top: 6px;
    display: flex;
    justify-content: space-around;
    padding: 3px 6px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
}

.unes-bottom-nav a {
    text-decoration: none;
    color: #222222;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.unes-bottom-nav a.active {
    color: #0b45ff;
}

.unes-nav-icon {
    font-size: 11px;
    line-height: 1;
}

.unes-sponsor {
    padding: 10px 14px 4px;
}

.unes-sponsor-label {
    margin-bottom: 1px;
    font-size: 8px;
    color: #8a8a8a;
}

.unes-sponsor-banner {
    height: 105px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c2a73, #123f9f);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.unes-partner-link {
    display: block;
    padding: 8px 20px 18px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
}

.unes-bottom-nav .dashicons {
    display: none;
}

.unes-partner-icon {
    filter: grayscale(100%);
    opacity: 1;
}

.unes-media-carousel {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.unes-media-carousel::-webkit-scrollbar {
    display: none;
}

.unes-media-panel {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding-bottom: 4px;
    min-height: 430px;
    border: none;
}

.unes-selection-empty {
    flex: 0 0 100%;
    min-height: 240px;
    padding: 34px 24px 18px;
    background: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unes-selection-empty-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #082b72;
}

.unes-selection-empty-text {
    margin: 0 auto 8px;
    max-width: 300px;
    font-size: 12px;
    line-height: 1.35;
    color: #555555;
}

.unes-title-row {
    text-decoration: none;
    color: inherit;
}

.unes-title-row:visited {
    color: inherit;
}

.unes-title-row:hover {
    color: inherit;
}

.unes-title-row:active {
    color: inherit;
}

.unes-extra-title {
    display: none;
}

.unes-card.expanded .unes-extra-title {
    display: flex;
}

.unes-sponsor-banner {
    overflow: hidden;
    padding: 0;
    background: #f4f4f4;
    border: 1px solid #dddddd;
}

.unes-sponsor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.unes-media-panel.is-first .unes-card-header::before {
    display: none;
}

.unes-media-panel.is-last .unes-card-header::after {
    display: none;
}

.unes-daily-capsule {
    margin: 4px 12px 4px;
    padding: 0;
}

.unes-daily-capsule-text {
    width: 100%;
    font-size: 11px;
    line-height: 1.3;
    color: #666666;
    font-family: Georgia, serif;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    cursor: pointer;
}

#unes-daily-capsule-content {
    flex: 1;
}

.unes-daily-capsule-content-wrap {
    flex: 1;
}

.unes-daily-capsule-suite {
    color: #268c57;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}

.unes-daily-capsule-icon {
    width: 11px;
    height: 11px;
    color: #666666;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.unes-daily-capsule-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.unes-refresh-button {
    border: none;
    background: none;
    padding: 0 0 6px 4px;
    margin-left: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #9a9a9a;
    cursor: pointer;
    flex-shrink: 0;
}

.unes-refresh-button.has-new {
    color: #0b45ff;
}

.unes-subjects-link {
    border: none;
    background: none;
    padding: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    white-space: nowrap;
    line-height: normal;
}

.unes-header-edition {
    text-decoration: none;
    color: inherit;
}

.unes-edition-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 12px;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
    font-size: 9px;
    font-weight: 700;
}

.unes-edition-nav-link {
    color: #082b72;
    text-decoration: none;
    white-space: nowrap;
}

.unes-edition-nav-link.disabled {
    color: #b8b8b8;
}

.unes-archives-page {
    padding: 14px 12px 80px;
}

.unes-archives-title {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.2;
}

.unes-archives-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unes-archives-item:nth-child(odd):not(:first-child) {
    margin-top: 20px;
}

.unes-archives-item {
    display: block;
    position: relative;
    padding: 10px 32px 10px 12px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.unes-archives-item::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 400;
    color: #777777;
}

.unes-archives-empty {
    font-size: 12px;
    color: #555555;
}

.unes-archives-back {
    text-decoration: none;
    line-height: 1;
}

.unes-search-count {
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    margin-top: 2px;
}

.unes-subject-actions {
    display: flex;
    gap: 8px;
    margin: 4px 0 16px 0;
}

.unes-subject-actions .unes-more-button {
    flex: 1;
    margin: 0;
}

.unes-subject-name {
    font-size: 14px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    color: #111111;
    line-height: 1.2;
}

.unes-subject-count {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #082b72;
}

.unes-subject-row {
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.unes-subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.unes-subject-name {
    font-size: 14px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    color: #111111;
}

.unes-subject-links {
    font-size: 11px;
    white-space: nowrap;
}

.unes-subject-links a {
    color: #082b72;
    text-decoration: none;
}

.unes-subject-link-button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #c00000;
    cursor: pointer;
    font-size: 11px;
}

.unes-subject-alert-channels {
    font-size: 12px;
}

.unes-subject-selected {
    background: #eef4ff;
    border-radius: 8px;
}

.unes-search-card {
    padding: 14px;
    border: none;
    background: #ffffff;
    border-radius: 22px;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.03);
}

.unes-search-empty {
    min-height: 520px;
}

.unes-search-input {
    width: 100%;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.unes-search-primary-button {
    display: block;
    width: 220px;
    margin: 0 auto;
    height: 28px;
    border: none;
    border-radius: 10px;
    background: #082b72;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.unes-search-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 8px;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 500;
}

.unes-search-separator::before,
.unes-search-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dddddd;
}

.unes-search-follow-block {
    border: none;
    border-radius: 22px;
    padding: 10px 14px 12px;
    text-align: center;
    background: #ffffff;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}

.unes-search-follow-title {
    font-size: 13px;
    font-weight: 700;
    color: #082b72;
    margin-bottom: 4px;
}

.unes-search-follow-text {
    font-size: 10px;
    line-height: 1.3;
    color: #555555;
    margin-bottom: 10px;
}

.unes-search-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 12px;
    border: 1px solid #082b72;
    border-radius: 10px;
    color: #082b72;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0;
    background: #ffffff;
    width: 220px;
    margin: 0 auto;
}

.unes-search-card .unes-card-media {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.unes-search-primary-button::after,
.unes-search-secondary-button::after {
    content: '→';
    margin-left: 6px;
    font-family: inherit;
    font-weight: inherit;
}

.unes-archives-upgrade {
    margin: 16px auto 0;
    width: 82%;
    padding: 10px 10px;
    border: none;
    border-radius: 16px;
    background: #eef3fb;
    text-align: center;
}

.unes-archives-upgrade-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b2d6b;
    margin-bottom: 10px;
}

.unes-archives-upgrade-text {
    font-size: 12px;
    line-height: 1.3;
    color: #082b72;
}

.unes-archives-upgrade-subtext {
    font-size: 12px;
    line-height: 1.3;
    color: #082b72;
}

.unes-partner-page {
    padding: 16px 16px 90px;
}

.unes-partner-hero {
    margin-bottom: 18px;
}

.unes-partner-kicker {
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.unes-partner-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.15;
    font-family: Georgia, serif;
    color: #082b72;
}

.unes-partner-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #444444;
}

.unes-partner-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #ffffff;
}

.unes-partner-card h2 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.2;
    color: #082b72;
}

.unes-partner-card p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #444444;
}

.unes-partner-card p:last-child {
    margin-bottom: 0;
}

.unes-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.28);
}

.unes-main-menu {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1001;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    padding: 16px 18px 24px;
}

.unes-main-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.unes-main-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: #082b72;
}

.unes-main-menu-close {
    border: none;
    background: none;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: #111111;
    cursor: pointer;
}

.unes-main-menu a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #eeeeee;
    color: #082b72;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.unes-main-menu a.unes-main-menu-featured {
    font-weight: 400;
}

.unes-main-menu-separator {
    height: 12px;
}

body.unes-menu-open {
    overflow: hidden;
}

.unes-logo-light {
    display: block;
}

.unes-logo-dark {
    display: none;
}

.unes-archives-page {
    height: calc(100vh - 66px);
    overflow-y: auto;
    padding-top: 62px;
    padding-bottom: 170px;
}

.unes-archives-fixed-sponsor {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    background: #ffffff;
    border-top: 1px solid #ececec;
    z-index: 50;
}

.unes-archives-fixed-sponsor .unes-sponsor {
    padding: 6px 14px 2px;
}

.unes-archives-fixed-sponsor .unes-sponsor-banner {
    height: 105px;
}

.unes-archives-fixed-sponsor .unes-partner-link {
    padding: 6px 20px 10px;
}

.unes-archives-fixed-title {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    z-index: 60;
    background: #ffffff;
    padding: 10px 18px 12px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 -18px 0 #ffffff;
}

body.unes-is-loading::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(1px);
}

body.unes-is-loading::after {
    content: "Recherche dans les titres de presse\A des archives UNES…";
white-space: pre-line;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    font-size: 12px;
    font-weight: 700;
    color: #2DA667;
    animation: unes-loading-pulse 0.9s ease-in-out infinite;
}

/* Annulation de la recherche */

.unes-search-cancel {
    display: none;
}

body.unes-is-loading .unes-search-cancel {
    display: block;
    position: fixed;
    top: calc(50% + 55px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 7px 20px;
    border: 1px solid #082b72;
    border-radius: 10px;
    background: #ffffff;
    color: #082b72;
    font-size: 12px;
    cursor: pointer;
}

@keyframes unes-loading-pulse {
    0% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.55;
    }
}

/* =========================================================
   DÉCOUVERTE ANIMÉE UNES
   ========================================================= */

#unes-discovery-layer[hidden],
#unes-discovery-intro[hidden],
#unes-discovery-bubble[hidden],
#unes-discovery-finish[hidden] {
    display: none;
}

#unes-discovery-layer {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
}

.unes-discovery-intro,
.unes-discovery-finish {
    position: fixed;
    left: 50%;
    width: calc(100% - 36px);
    transform: translate(-50%, -50%);
    border: 1px solid #ececec;
    background: #ffffff;
    text-align: center;
    pointer-events: auto;
}

/* Invitation à découvrir UNES — piste D */
.unes-discovery-intro {
    top: 55%;
    max-width: 320px;
    padding: 16px 16px 14px;
    overflow: hidden;
    isolation: isolate;
        border: 1px solid #b8c7da;
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            #f7f8fa 0%,
            #ffffff 72%
        );
    box-shadow:
    0 0 0 100vmax rgba(8, 43, 114, 0.04),
    0 8px 24px rgba(8, 43, 114, 0.10);
    text-align: left;
}

.unes-discovery-intro > * {
    position: relative;
    z-index: 1;
}

.unes-discovery-intro::before {
    display: none;
}
.unes-discovery-intro::after {
    display: none;
}

/* Écran de fin : inchangé */
.unes-discovery-finish {
    top: 50%;
    max-width: 340px;
    padding: 18px 16px 16px;
    border-radius: 24px;
    box-shadow: none;
}

.unes-discovery-label {
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0b45ff;
}

.unes-discovery-intro .unes-discovery-label {
    max-width: 215px;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 9px;
    letter-spacing: 0.05em;
}

.unes-discovery-intro-heading {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 12px;
}

.unes-discovery-intro h2 {
    flex: 1;
    max-width: none;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #082b72;
}

.unes-discovery-stopwatch {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin-top: 1px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='22' r='12' fill='none' stroke='%23082b72' stroke-width='2.4'/%3E%3Cpath d='M20 22V15M20 22L25 25' fill='none' stroke='%23082b72' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M16 5H24M20 5V9M29 11L32 8' fill='none' stroke='%23082b72' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='22' r='2' fill='%23f28c00'/%3E%3C/svg%3E");
}

.unes-discovery-finish h2 {
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.18;
    color: #082b72;
}

.unes-discovery-intro p {
    position: relative;
    z-index: 1;
    max-width: 195px;
    margin: 0 0 18px;
    padding-left: 0;
    color: #4d5967;
    font-size: 12px;
    line-height: 1.42;
    text-align: left;
}

.unes-discovery-intro p::before {
    display: none;
}

.unes-discovery-finish p {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.4;
    color: #555555;
}

.unes-discovery-intro-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.unes-discovery-final-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.unes-discovery-primary,
.unes-discovery-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 28px;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.unes-discovery-primary {
    border: none;
    background: #082b72;
    color: #ffffff;
}

.unes-discovery-secondary {
    border: 1px solid #082b72;
    background: #ffffff;
    color: #082b72;
}

/* Boutons spécifiques à l’invitation */
.unes-discovery-intro .unes-discovery-primary,
.unes-discovery-intro .unes-discovery-secondary {
    width: 100%;
    height: 34px;
    margin: 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.unes-discovery-intro .unes-discovery-primary {
    border: none;
    background: #082b72;
    color: #ffffff;
    box-shadow: none;
}

.unes-discovery-intro .unes-discovery-primary::after {
    display: none;
}

.unes-discovery-intro .unes-discovery-secondary {
    border: none;
    background: transparent;
    color: #6b7280;
}


/* =========================================================
   DÉCOUVERTE — ÉCRAN FINAL
   ========================================================= */

.unes-discovery-finish {
    top: 50%;
    max-width: 342px;
    padding: 20px 18px 16px;

    overflow: hidden;
    isolation: isolate;

        border: 2px solid #91a6c6;
    border-radius: 24px;

       background: #ffffff; 

    box-shadow:
        0 18px 46px rgba(8, 43, 114, 0.18);

    text-align: left;
}

.unes-discovery-finish > * {
    position: relative;
    z-index: 1;
}

.unes-discovery-finish::before {
    content: '';

    position: absolute;
    top: 11px;
    right: 13px;

    z-index: 0;

    width: 72px;
    height: 72px;

    background-color: transparent;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='37' cy='41' r='25' fill='%23eef9f5' stroke='%230b45ff' stroke-width='2.4'/%3E%3Cpath d='M24 41l9 9 18-22' fill='none' stroke='%230b45ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M58 17l4-7M66 25l8-3M60 33l7 2' fill='none' stroke='%23f0a52a' stroke-width='3.2' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='22' r='3' fill='%23d95ca6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    animation:
        unes-discovery-finish-check-pop
        0.55s
        cubic-bezier(0.2, 0.9, 0.25, 1.2)
        both;
}

.unes-discovery-finish::after {
    display: none;
}

@keyframes unes-discovery-finish-check-pop {
    0% {
        opacity: 0;
        transform: scale(0.72) rotate(-7deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.07) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.unes-discovery-finish .unes-discovery-label {
    max-width: 215px;

    margin-bottom: 7px;

    color: #0b45ff;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.unes-discovery-finish h2 {
    max-width: 225px;

    margin: 0 0 9px;

    color: #082b72;

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.08;
}

.unes-discovery-finish p {
    margin: 0 0 14px;

    color: #4d5967;

    font-size: 12px;
    line-height: 1.4;

    text-align: left;
}

.unes-discovery-final-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    gap: 8px;

    margin-top: 4px;
}

.unes-discovery-finish .unes-discovery-primary,
.unes-discovery-finish .unes-discovery-secondary {
    width: 100%;
    height: 38px;

    margin: 0;

    border-radius: 12px;

    font-size: 12px;
    font-weight: 700;
}

.unes-discovery-finish .unes-discovery-primary {
    border: 1px solid #0b55dd;

    background:
        linear-gradient(
            135deg,
            #0b45ff,
            #176ddf
        );

    color: #ffffff;

    box-shadow:
        0 7px 18px rgba(11, 69, 255, 0.20);
}

.unes-discovery-finish .unes-discovery-secondary {
    border: 1px solid #bec9d3;

    background:
        rgba(255, 255, 255, 0.82);

    color: #5f6d7c;
}


.unes-discovery-bubble {
    position: fixed;
    width: min(286px, calc(100vw - 28px));
    padding: 15px 16px 12px;
    overflow: visible;

    border: 2px solid #91a6c6;
    border-radius: 22px;

        background:
        linear-gradient(
            180deg,
            #f7f8fa 0%,
            #ffffff 72%
        );

    box-shadow:
        0 13px 32px rgba(8, 43, 114, 0.17);

    pointer-events: auto;

    transition:
        left 0.25s ease,
        top 0.25s ease;
}


.unes-discovery-bubble::before,
.unes-discovery-bubble::after {
    content: '';
    position: absolute;
    left: var(--unes-discovery-arrow-left, 50%);
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
}

.unes-discovery-bubble-below::before {
    top: -12px;
    border-bottom: 12px solid #91a6c6;
}

.unes-discovery-bubble-below::after {
    top: -8px;
    border-bottom: 9px solid #f8fcff;
}

.unes-discovery-bubble-above::before {
    bottom: -12px;
    border-top: 12px solid #91a6c6;
}

.unes-discovery-bubble-above::after {
    bottom: -8px;
    border-top: 9px solid #ffffff;
}

.unes-discovery-bubble-center::before,
.unes-discovery-bubble-center::after {
    display: none;
}


.unes-discovery-progress {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef3ff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #0b45ff;
}

.unes-discovery-verb {
    margin-bottom: 7px;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    color: #082b72;
}

.unes-discovery-text {
    font-size: 13px;
    line-height: 1.48;
    color: #3f4650;
}

.unes-discovery-note {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #edf0f5;
    color: #6f8fa8;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
}

.unes-discovery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.unes-discovery-skip,
.unes-discovery-next {
    min-height: 30px;
    border-radius: 9px;
    font-size: 11px;
    cursor: pointer;
}

.unes-discovery-skip {
    border: none;
    background: transparent;
    padding: 5px 4px;
    color: #777777;
}

.unes-discovery-next {
    min-width: 78px;
    border: none;
    background: #082b72;
    padding: 5px 13px;
    color: #ffffff;
    font-weight: 700;
}

.unes-discovery-skip:disabled,
.unes-discovery-next:disabled {
    cursor: default;
    opacity: 0.45;
}


/* =========================================================
   DÉCOUVERTE — ÉTAPE 1 : CATÉGORIES
   ========================================================= */

.unes-tabs.unes-discovery-categories-target {
    position: relative !important;
    z-index: 12001 !important;
}

.unes-tabs.unes-discovery-categories-target::after {
    content: '';
    position: absolute;

    left: var(
        --unes-discovery-categories-left
    );

    top: var(
        --unes-discovery-categories-top
    );

    width: var(
        --unes-discovery-categories-width
    );

    height: var(
        --unes-discovery-categories-height
    );

    box-sizing: border-box;

    border: 2px solid #d95ca6;
    border-radius: 999px;

    box-shadow:
        0 0 0 3px rgba(217, 92, 166, 0.18);

    pointer-events: none;
}


.unes-discovery-action-icon {
    position: absolute;
    top: 13px;
    right: 14px;
    z-index: 2;

    display: none;

    width: 31px;
    height: 31px;

    border-radius: 50%;

    background-color:
        rgba(218, 238, 255, 0.92);

    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px 23px;
}

.unes-discovery-bubble[data-discovery-icon]
.unes-discovery-action-icon {
    display: block;
}


/* 1 / 10 — toucher une catégorie */

.unes-discovery-bubble[data-discovery-icon="tap"]
.unes-discovery-action-icon {
    background-color:
        rgba(247, 216, 234, 0.82);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='27' cy='10' r='5' fill='none' stroke='%23d95ca6' stroke-width='2'/%3E%3Ccircle cx='27' cy='10' r='2' fill='%23d95ca6'/%3E%3Cpath d='M18 10v13l-3-3c-1.7-1.7-4.5.7-2.9 2.6l5.9 6.6c1 1.2 2.6 1.8 4.4 1.8h2.1c3.7 0 6.5-2.7 6.5-6.2V18' fill='%23ffffff' stroke='%23082b72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 2 / 10 — favoris */

.unes-discovery-bubble[data-discovery-icon="favorite"]
.unes-discovery-action-icon {
    background-color:
        rgba(255, 243, 200, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 6.5l4 8.1 9 1.3-6.5 6.3 1.5 8.9-8-4.2-8 4.2 1.5-8.9L7 15.9l9-1.3z' fill='%23f0b400' stroke='%23082b72' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 3 / 10 — EN BREF */

.unes-discovery-bubble[data-discovery-icon="highlighted"]
.unes-discovery-action-icon {
    background-color:
        rgba(235, 226, 245, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='7' y='8' width='26' height='24' rx='4' fill='%23ffffff' stroke='%23082b72' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='14' r='2' fill='%23d95ca6'/%3E%3Cpath d='M17 14h11M11 20h17M11 26h13' stroke='%230b45ff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* 4 / 10 — choisir un média */

.unes-discovery-bubble[data-discovery-icon="media"]
.unes-discovery-action-icon {
    background-color:
        rgba(218, 238, 255, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='5' y='11' width='8' height='18' rx='2' fill='%23dceeff' stroke='%23082b72' stroke-width='1.5'/%3E%3Crect x='16' y='8' width='9' height='24' rx='2' fill='%23ffffff' stroke='%230b45ff' stroke-width='1.8'/%3E%3Crect x='28' y='11' width='7' height='18' rx='2' fill='%23d9f3e8' stroke='%23082b72' stroke-width='1.5'/%3E%3C/svg%3E");
}


/* 5 / 10 — autres médias */

.unes-discovery-bubble[data-discovery-icon="compare"]
.unes-discovery-action-icon {
    background-color:
        rgba(247, 216, 234, 0.78);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='5' y='8' width='12' height='19' rx='2' fill='%23ffffff' stroke='%23082b72' stroke-width='1.6'/%3E%3Crect x='23' y='13' width='12' height='19' rx='2' fill='%23dceeff' stroke='%23082b72' stroke-width='1.6'/%3E%3Cpath d='M14 30h12M23 27l3 3-3 3M17 10h9M20 7l-3 3 3 3' fill='none' stroke='%23d95ca6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 6 / 10 — swipe */

.unes-discovery-bubble[data-discovery-icon="swipe"]
.unes-discovery-action-icon {
    background-color:
        rgba(218, 238, 255, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M7 20h26M12 15l-5 5 5 5M28 15l5 5-5 5' fill='none' stroke='%23082b72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 7 / 10 — éditions récentes */

.unes-discovery-bubble[data-discovery-icon="archives"]
.unes-discovery-action-icon {
    background-color:
        rgba(211, 245, 232, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='7' y='9' width='26' height='24' rx='4' fill='%23ffffff' stroke='%23082b72' stroke-width='1.8'/%3E%3Cpath d='M7 15h26M13 6v6M27 6v6' stroke='%230b45ff' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='21' r='2' fill='%23f0a52a'/%3E%3Cpath d='M20 21h7M13 27h14' stroke='%23607aa0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* 8 / 10 — davantage de titres */

.unes-discovery-bubble[data-discovery-icon="more"]
.unes-discovery-action-icon {
    background-color:
        rgba(255, 243, 200, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='7' y='8' width='26' height='22' rx='4' fill='%23ffffff' stroke='%23082b72' stroke-width='1.7'/%3E%3Cpath d='M12 14h16M12 19h16M12 24h10' stroke='%230b45ff' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M24 26l4 4 4-4' fill='none' stroke='%23f0a52a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 9 / 10 — recherche */

.unes-discovery-bubble[data-discovery-icon="search"]
.unes-discovery-action-icon {
    background-color:
        rgba(218, 238, 255, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='17' cy='17' r='9' fill='%23ffffff' stroke='%23082b72' stroke-width='2'/%3E%3Cpath d='M24 24l8 8' stroke='%23082b72' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='17' cy='17' r='2.2' fill='%23f0a52a'/%3E%3C/svg%3E");
}


/* 10 / 10 — MES SUJETS */

.unes-discovery-bubble[data-discovery-icon="subjects"]
.unes-discovery-action-icon {
    background-color:
        rgba(211, 245, 232, 0.92);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M11 26h18l-2.5-3.5V17c0-4-2.5-7-6.5-7s-6.5 3-6.5 7v5.5z' fill='%23ffffff' stroke='%23082b72' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M17 29c.5 2 1.6 3 3 3s2.5-1 3-3' fill='none' stroke='%23082b72' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='27' cy='11' r='4' fill='%23f0a52a'/%3E%3C/svg%3E");
}


.unes-discovery-target,
.unes-discovery-secondary-target,
.unes-discovery-archive-target {
    position: relative !important;
    z-index: 12001 !important;
    outline: 2px solid #d95ca6;
    outline-offset: 2px;
    border-radius: 999px;
    box-shadow:
        0 0 0 3px rgba(217, 92, 166, 0.18)
        !important;
    animation: none;
}
.unes-header-edition.unes-discovery-archive-target {
    outline: none !important;
    box-shadow: none !important;
}

.unes-header-edition.unes-discovery-archive-target::after {
    content: '';
    position: absolute;
    left: -9px;
    right: -3px;
    top: -4px;
    bottom: -4px;
    border: 2px solid #d95ca6;
    border-radius: 16px;
    box-shadow: 0 0 0 3px rgba(217, 92, 166, 0.18);
    pointer-events: none;
}
.unes-favorite-button.unes-discovery-target {

    outline: none;
    box-shadow: none !important;
}

#unes-discovery-archive-arrows {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 12002;
    overflow: hidden;
    pointer-events: none;
}

.unes-discovery-archive-arrow {
    position: absolute;
    height: 1px;
    background: #082b72;
    opacity: 0.78;
    transform-origin: 0 50%;
    pointer-events: none;
}

.unes-discovery-archive-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1px solid #082b72;
    border-right: 1px solid #082b72;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
}

body.unes-discovery-running {
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .unes-discovery-bubble {
        transition: none;
    }
    .unes-media-strip span.active {
        animation: none;
    }
}

.unes-discovery-note[hidden] {
    display: none;
}

.unes-reconstructed-empty {
 padding: 28px 22px;
 font-size: 14px;
 line-height: 1.55;
 color: #7d8490;
 text-align: center;
}

/* =========================================================
   AUTRES MÉDIAS — rapprochement lexical V1
   ========================================================= */

.unes-compare-page {
    padding: 8px 10px 80px;
}

.unes-compare-source-card {
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.unes-compare-source-link,
.unes-compare-result-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.unes-compare-source-link:visited,
.unes-compare-source-link:hover,
.unes-compare-result-link:visited,
.unes-compare-result-link:hover {
    color: inherit;
    text-decoration: none;
}

.unes-compare-source-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 3px;
}

.unes-compare-source-media {
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #082b72;
    text-transform: uppercase;
}

.unes-compare-source-title {
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.28;
    color: #111111;
}

.unes-compare-note {
    margin: 8px 14px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
    color: #555b65;
    text-align: center;
}

.unes-compare-warning {
    margin: 2px 8px 10px;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 600;
    color: #8a6a2f;
    text-align: center;
}

.unes-compare-results-card {
    padding-top: 8px;
}

.unes-compare-result-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #ededed;
    color: inherit;
    text-decoration: none;
}

.unes-compare-result-row[hidden] {
    display: none;
}

.unes-compare-result-content {
    flex: 1;
    min-width: 0;
}

.unes-compare-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 2px;
}

.unes-compare-result-actions {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.unes-compare-result-arrow {
    text-decoration: none;
    align-self: stretch;
}

.unes-compare-result-arrow:visited,
.unes-compare-result-arrow:hover {
    color: #111111;
}

.unes-compare-result-media {
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 700;
    color: #082b72;
    text-transform: uppercase;
}

.unes-compare-empty {
    padding: 18px 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    text-align: center;
}

.unes-compare-more-button {
    margin-top: 8px;
}



/* =========================================================
   AUTRES MÉDIAS — retours visuels V2
   ========================================================= */

.unes-title-compare-link.is-loading {
    pointer-events: none;
    animation: unes-compare-click-pulse 0.65s ease-in-out infinite;
}

.unes-title-compare-link.is-loading::before,
.unes-compare-back-link.is-loading::before,
.unes-highlighted-back-link.is-loading::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border: 1px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;	
    vertical-align: -1px;
    animation: unes-compare-click-spin 0.55s linear infinite;
}

@keyframes unes-compare-click-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes unes-compare-click-pulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================================
   NAVIGATION INTERNE — retour visuel immédiat
   ========================================================= */

#unes-navigation-feedback {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

#unes-navigation-feedback[hidden] {
    display: none;
}

.unes-navigation-feedback-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    color: #082b72;
    font-size: 11px;
    font-weight: 700;
}

.unes-navigation-feedback-spinner {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation:
        unes-navigation-feedback-spin
        0.55s linear infinite;
}

.unes-navigation-feedback-text {
    animation:
        unes-navigation-feedback-pulse
        0.8s ease-in-out infinite;
}

@keyframes unes-navigation-feedback-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes unes-navigation-feedback-pulse {
    0%, 100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
    }
}

body.unes-compare-body .unes-header .unes-archives-back {
    visibility: hidden;
}

.unes-compare-back-row {
    margin: 0 2px 8px;
    padding: 2px 0 4px;
}

.unes-compare-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    color: #4b5563;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    touch-action: manipulation;
}

.unes-compare-back-link:visited,
.unes-compare-back-link:hover,
.unes-compare-back-link:active {
    color: #4b5563;
    text-decoration: none;
}

.unes-compare-back-link.is-loading,
.unes-highlighted-back-link.is-loading {
    pointer-events: none;
    animation: unes-compare-click-pulse 0.65s ease-in-out infinite;
}

.unes-compare-broad-separator {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 11px 0 9px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #8a6a2f;
    text-align: center;
    white-space: nowrap;
}

.unes-compare-broad-separator::before,
.unes-compare-broad-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d8c7a5;
}

/* =========================================================
   SUJETS MIS EN AVANT PAR LES MÉDIAS
   ========================================================= */

/* EN BREF et Installer UNES : deux espaces visuellement indépendants. */
.unes-top-promos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    min-width: 0;
}

.unes-top-promos .unes-swipe-hint {
    flex: 0 1 260px;
    min-width: 0;
    max-width: 260px;
    margin: 2px 0 5px;
    padding: 0;
}

.unes-install-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 96px;
    width: 96px;
    min-height: 28px;
    align-self: center;
    margin: 2px 0 5px auto;
    padding: 2px 5px;
    border: 0;
    border-radius: 7px;
    background: #12366d;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.unes-install-shortcut svg {
    flex: 0 0 20px;
    width: 20px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.unes-install-shortcut[hidden] {
    display: none !important;
}

.unes-installed-mode .unes-top-promos .unes-swipe-hint {
    flex: 0 1 330px;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

@media (display-mode: standalone) {
    .unes-top-promos {
        min-height: 41px;
    }

    .unes-top-promos:has(.unes-swipe-hint[hidden]) {
        display: none;
    }

    .unes-install-shortcut {
        display: none !important;
    }

    .unes-top-promos .unes-swipe-hint {
        flex: 0 1 330px;
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 601px) {
    .unes-install-shortcut {
        display: none !important;
    }
    .unes-top-promos .unes-swipe-hint {
        flex: 1 1 auto;
        max-width: none;
    }
}

.unes-highlighted-entry {
    display: inline-block;
    color: #5f5f5f;
    text-decoration: none;
    cursor: default;
}

.unes-highlighted-entry[aria-disabled="true"] {
    display: block;
    width: 100%;
    text-align: center;
}

.unes-highlighted-entry.is-ready {
    width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #6C5688;
    border: 1px solid #6C5688;
    color: #ffffff;
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
}

.unes-highlighted-entry.is-ready::before {
    content: none;
}

.unes-highlighted-entry.is-ready::after {
    content: none;
}

.unes-highlighted-rays {
    flex: 0 0 16px;
    width: 16px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3.1;
    stroke-linecap: square;
}

.unes-highlighted-entry.is-ready:visited,
.unes-highlighted-entry.is-ready:hover,
.unes-highlighted-entry.is-ready:active {
    color: #ffffff;
    text-decoration: none;
}

.unes-highlighted-entry-title {
    flex-shrink: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.unes-highlighted-entry-copy {
    color: #ffffff;
    font-weight: 500;
}

.unes-highlighted-entry-click {
    flex: 1;
    min-width: 0;
    padding-left: 6px;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 300;
    font-style: italic;
    white-space: normal;
}

/* Page dédiée */

.unes-highlighted-page {
    min-height: 520px;
    padding: 8px 0 12px;
}

.unes-highlighted-back-row {
    margin: 0 12px 7px;
}

.unes-highlighted-back-link {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    color: #606770;
    text-decoration: none;
}

.unes-highlighted-back-link:visited,
.unes-highlighted-back-link:hover,
.unes-highlighted-back-link:active {
    color: #606770;
    text-decoration: none;
}

.unes-highlighted-page-title {
    margin: 0 18px 8px;
    text-align: center;
}

.unes-highlighted-page-kicker {
    font-size: 13px;
    line-height: 1.15;
    font-weight: 700;
    color: #6C5688;
}

.unes-highlighted-page-subtitle {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
    font-style: italic;
    color: #776A8D;
}

.unes-highlighted-card {
    padding-top: 3px;
    padding-bottom: 3px;
    position: relative;
    top: 6px;
}

.unes-highlighted-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ededed;
    color: inherit;
    text-decoration: none;
}

.unes-highlighted-row.no-border {
    border-bottom: none;
}

.unes-highlighted-row:visited,
.unes-highlighted-row:hover,
.unes-highlighted-row:active {
    color: inherit;
    text-decoration: none;
}

.unes-highlighted-content {
    flex: 1;
    min-width: 0;
}

.unes-highlighted-media {
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 700;
    color: #082b72;
    text-transform: uppercase;
}

.unes-highlighted-title {
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.22;
    color: #111111;
}

.unes-highlighted-action {
    margin-top: 4px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 400;
    color: #6f8fa8;
    text-align: right;
}

.unes-highlighted-empty {
    padding: 18px 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    text-align: center;
}
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

.unes-subject-alert-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 7px;
    row-gap: 4px;
    margin-top: 6px;
}

.unes-subject-alert-row > label {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    white-space: nowrap;
}

.unes-subject-alert-mode {
    font-size: 16px !important;
    zoom: 0.75;
}

.unes-subject-alert-channels {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    white-space: nowrap;
}

.unes-subject-alert-channels label {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.unes-subject-alert-times {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 7px;
}

.unes-subject-alert-times select {
    font-size: 16px !important;
    zoom: 0.75;
}

.unes-subject-alert-help {
    flex: 0 0 100%;
}

.unes-ios-push-help {
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.unes-ios-push-help[hidden] {
    display: none;
}

.unes-ios-push-help-box {
    width: 100%;
    max-width: 340px;
    padding: 18px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.unes-ios-push-help-title {
    margin-bottom: 14px;
    color: #082b72;
    font-size: 15px;
    font-weight: 700;
}

.unes-ios-push-help-text {
    color: #444444;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.unes-ios-push-help-note {
    margin-top: 14px;
    color: #6f8fa8;
    font-size: 11px;
    line-height: 1.35;
}

.unes-ios-push-help-close {
    width: 160px;
    height: 30px;
    margin-top: 16px;
    border: none;
    border-radius: 10px;
    background: #082b72;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.unes-subject-expressions {
    white-space: normal;
    overflow-wrap: break-word;
}

.unes-subject-result-row {
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

/* =========================================================
   WEB PUSH — activation visible dans la PWA
   ========================================================= */

.unes-ios-push-activation-banner {
    position: fixed;
    left: 50%;
    top: 42%;
    z-index: 16000;
    transform: translate(-50%, -50%);
    width: calc(100% - 36px);
    max-width: 340px;
    padding: 20px 18px 18px;
    border: 2px solid #082b72;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.unes-ios-push-activation-text {
    color: #082b72;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}

.unes-ios-push-activation-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.unes-ios-push-activation-button {
    min-width: 110px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #082b72;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.unes-ios-push-activation-later {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    color: #666666;
    font-weight: 400;
}

.unes-ios-push-activation-later-wrap {
    position: relative;
}

.unes-ios-push-delay-options {
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    z-index: 16001;
    width: 155px;
    padding: 5px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.unes-ios-push-delay-options[hidden] {
    display: none;
}

.unes-ios-push-delay-option {
    display: block;
    width: 100%;
    padding: 8px 9px;
    border: none;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    color: #444444;
    font-size: 11px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.unes-ios-push-delay-option:last-child {
    border-bottom: none;
}

.unes-ios-push-delay-option:active {
    background: #f3f6fb;
}


/* Navigation média : flèches fixes, indépendantes du déplacement des cartes */
.unes-carousel-shell {
    position: relative;
}

/* Première visite : découverte du balayage entre médias. */

.unes-swipe-instruction {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 7;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: transparent;
    pointer-events: none;
}

@media (pointer: coarse) {
    .unes-first-swipe-prompt > .unes-swipe-instruction {
        display: flex;
    }
}

.unes-swipe-instruction-card {
    width: 100%;
    max-width: 350px;
    padding: 25px 16px 22px;
    border: 1px solid #dedede;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.90);
    text-align: center;
}

.unes-swipe-instruction-gesture {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
    color: #606060;
}

.unes-swipe-instruction-gesture span {
    font-size: 30px;
    line-height: 1;
    color: #909090;
}

.unes-swipe-instruction-gesture svg {
    width: 40px;
    height: 45px;
    flex-shrink: 0;
}

.unes-swipe-instruction-title {
    color: #5d5d5d;
    font-size: clamp(17px, 4.5vw, 20px);
    font-weight: 700;
    line-height: 1.3;
}

.unes-swipe-instruction-subtitle {
    margin-top: 17px;
    color: #8a8a8a;
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.35;
}

.unes-media-nav-arrows {
    --unes-media-progress: 0;
    position: absolute;
    z-index: 8;
    top: 1px;
    left: 0;
    right: 0;
    height: 24px;
    pointer-events: none;
}

.unes-media-nav-arrows.is-hidden {
    display: none;
}

.unes-media-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #082b72;
    font: inherit;
    font-size: 25px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0.72;
    -webkit-tap-highlight-color: transparent;
}

.unes-media-nav-arrow:active {
    opacity: 1;
}

.unes-media-nav-arrow[hidden] {
    display: none;
}

.unes-media-nav-prev {
    left: calc(34px - (12px * var(--unes-media-progress)));
}

.unes-media-nav-next {
    right: calc(34px - (12px * (1 - var(--unes-media-progress))));
}


/* Navigation média : gris sans nouveauté, bleu renforcé si nouveauté */
.unes-media-nav-arrow {
    color: #8a8f98;
    opacity: 0.72;
    font-weight: 400;
}

.unes-media-nav-arrow.has-new {
    color: #082b72;
    opacity: 1;
    font-weight: 800;
}


/* Fin de parcours d'une catégorie */
.unes-category-completion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 13px 5px;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(8, 43, 114, 0.045);
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.unes-category-completion[hidden] {
    display: none;
}

.unes-category-completion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.unes-category-completion-check {
    flex: 0 0 auto;
    color: #082b72;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.unes-category-completion-copy {
    min-width: 0;
    line-height: 1.2;
}

.unes-category-completion-title {
    color: #082b72;
    font-size: 10px;
    font-weight: 650;
}

.unes-category-completion-meta {
    margin-top: 2px;
    color: #777d86;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}

.unes-category-completion-new-count {
    color: #555b64;
    font-size: 9px;
    font-weight: 500;
}

.unes-category-completion-separator {
    color: #777d86;
}

.unes-category-completion-countdown {
    color: #777d86;
    font-size: 9px;
    font-weight: 500;
}

.unes-category-completion-countdown strong {
    font-weight: 800;
}

/* =========================================================
   PAGES SECONDAIRES — logo et titres centrés
   ========================================================= */

.unes-header-top:has(.unes-archives-back) {
    grid-template-columns:
        72px
        minmax(0, 1fr)
        72px;
    gap: 0;
}

.unes-header-top:has(.unes-archives-back) .unes-brand {
    width: 100%;
    align-items: center;
    justify-self: center;
}

.unes-header-top:has(.unes-archives-back) .unes-logo-wrap {
    width: 100%;
}

.unes-archives-title,
.unes-partner-title,
.unes-highlighted-page-title {
    text-align: center;
}



/* Actions des titres — UNES */

.unes-title-meta-row .unes-title-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    padding: 1px 3px;
    margin-left: auto;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #666666;
    font-size: 9px;
    line-height: 1;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
}

.unes-title-meta-row .unes-title-view-link:visited,
.unes-title-meta-row .unes-title-view-link:hover,
.unes-title-meta-row .unes-title-view-link:active {
    color: #666666;
    text-decoration: none;
}

.unes-title-meta-row .unes-title-view-link:visited,
.unes-title-meta-row .unes-title-view-link:hover,
.unes-title-meta-row .unes-title-view-link:active {
    color: #082b72;
    text-decoration: none;
}

.unes-title-compare-row {
    margin-top: 0;
}

.unes-title-compare-row .unes-title-compare-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: 15px;
    padding: 1px 3px;
    margin-left: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #666666;
    font-size: 9px;
    line-height: 1;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
}

.unes-title-compare-row .unes-title-compare-link:visited,
.unes-title-compare-row .unes-title-compare-link:hover,
.unes-title-compare-row .unes-title-compare-link:active {
    color: #666666;
    text-decoration: none;
}

/* À lire plus tard et partage — boutons compacts et espacés. */
.unes-title-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    width: 100%;
    flex-shrink: 0;
}

.unes-title-meta-row .unes-title-action-buttons .unes-title-view-link {
    margin-left: 0;
}

.unes-article-save-button,
.unes-article-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 32px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #082b72;
    cursor: pointer;
    touch-action: manipulation;
}
.unes-title-action-buttons .unes-article-save-button {
    margin-left: auto;
}
.unes-article-save-button svg,
.unes-article-share-button svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.unes-article-save-button.is-saved svg {
    fill: #082b72;
}

.unes-article-save-button:disabled,
.unes-article-share-button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Date et quatre fonctions sur une seule ligne. */
.unes-title-meta-row {
    flex-direction: row;
    align-items: center;
    gap: 7px;
}

.unes-title-time {
    flex-shrink: 0;
    font-size: 10px;
}

.unes-title-action-buttons {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin-left: auto;
    gap: clamp(4px, calc(20vw - 70px), 8px);
}

.unes-title-action-buttons > .unes-title-compare-row {
    margin-left: clamp(0px, calc(43.3333vw - 156px), 13px);
}

.unes-title-meta-row .unes-title-action-buttons .unes-article-save-button {
    margin-left: clamp(0px, calc(21.6667vw - 78px), 6.5px);
}

/* Espacement horizontal uniquement :
   hauteur des deux liens inchangée. */
.unes-title-meta-row .unes-title-view-link,
.unes-title-compare-row .unes-title-compare-link {
    padding: 1px 1px;
}

/* Largeur des zones d'icônes :
   hauteur et dimensions des SVG inchangées. */
.unes-title-meta-row .unes-article-save-button,
.unes-title-meta-row .unes-article-share-button {
    width: 28px;
    color: #666666;
}

.unes-title-meta-row .unes-article-save-button.is-saved svg {
    fill: #666666;
}

/* Essai : quatre fonctions en violet grisé. */
.unes-title-meta-row .unes-title-view-link,
.unes-title-meta-row .unes-title-view-link:visited,
.unes-title-meta-row .unes-title-view-link:hover,
.unes-title-meta-row .unes-title-view-link:active,
.unes-title-compare-row .unes-title-compare-link,
.unes-title-compare-row .unes-title-compare-link:visited,
.unes-title-compare-row .unes-title-compare-link:hover,
.unes-title-compare-row .unes-title-compare-link:active,
.unes-title-meta-row .unes-article-save-button,
.unes-title-meta-row .unes-article-share-button {
    color: #5A718A;
}

.unes-title-compare-row .unes-title-compare-link,
.unes-title-compare-row .unes-title-compare-link:visited,
.unes-title-compare-row .unes-title-compare-link:hover,
.unes-title-compare-row .unes-title-compare-link:active {
    color: #315B8F;
}

.unes-title-meta-row .unes-article-save-button.is-saved svg {
    fill: #5A718A;
}

/* Repli pour les écrans de moins de 360px.
   Conserve les cinq éléments sur une ligne. */
@media (min-width: 360px) and (max-width: 379px) {
    .unes-title-meta-row {
        gap: 4px;
    }

    .unes-title-action-buttons {
        gap: 4px;
    }
}

@media (max-width: 359px) {
    .unes-title-meta-row {
        margin-left: 0;
        gap: 2px;
    }

    .unes-title-action-buttons {
        gap: 2px;
    }

        .unes-title-action-buttons > .unes-title-compare-row {
        margin-left: 0;
    }

    .unes-title-meta-row .unes-title-view-link,
    .unes-title-compare-row .unes-title-compare-link {
        padding: 1px 1px;
    }

    .unes-title-meta-row .unes-article-save-button,
    .unes-title-meta-row .unes-article-share-button {
        width: 24px;
    }
}

.unes-search-results .unes-search-article-actions {
    align-self: flex-end;
    margin: 1px 5px 0 0;
}

.unes-article-toast {
    position: fixed;
    z-index: 3200;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(90vw, 370px);
    padding: 9px 6px;
    border-radius: 8px;
    background: #082b72;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

/* Page personnelle des articles et page de partage publique. */
.unes-reading-page {
    margin-top: 12px;
    padding: 20px 16px;
}

.unes-reading-heading {
    margin: 0 0 8px;
    color: #082b72;
    font-size: 16px;
    text-align: center;
}

.unes-reading-help,
.unes-reading-tagline {
    margin: 0 0 15px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.unes-reading-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.unes-reading-tab {
    flex: 1;
    min-height: 33px;
    border: 1px solid #cdd5e4;
    border-radius: 6px;
    background: #fff;
    color: #082b72;
    font-size: 11px;
    cursor: pointer;
}

.unes-reading-tab.active {
    background: #082b72;
    color: #fff;
}

.unes-reading-items {
    min-height: 75px;
    color: #555;
    font-size: 12px;
    line-height: 1.45;
}

.unes-reading-item {
    padding: 13px 0;
    border-bottom: 1px solid #e5e5e5;
}

.unes-reading-source {
    margin-bottom: 6px;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.unes-reading-item-title,
.unes-reading-shared-title {
    margin: 0 0 10px;
    color: #222;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.unes-reading-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 13px;
}

.unes-reading-item-actions a,
.unes-reading-item-actions button,
.unes-reading-back,
.unes-reading-discover {
    border: 0;
    background: none;
    padding: 0;
    color: #082b72;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.unes-reading-back {
    display: block;
    margin-top: 18px;
    text-align: center;
}

.unes-reading-brand {
    margin-bottom: 3px;
    text-align: center;
}

.unes-reading-brand a {
    color: #082b72;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.unes-reading-shared-title {
    margin: 14px 0 20px;
    font-size: 20px;
}

.unes-reading-primary-link {
    display: block;
    padding: 12px;
    border-radius: 7px;
    background: #082b72;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.unes-reading-introduction {
    margin: 22px 0 12px;
    color: #555;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.unes-reading-discover {
    display: block;
    text-align: center;
}

/* Accueil : seuls les titres défilent ; en-tête et pied restent visibles. */

.unes-app.unes-scroll-layout {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.unes-scroll-layout .unes-header-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 43%) minmax(0, 1fr);
}

.unes-scroll-layout .unes-header-edition {
    padding-left: 24px;
}

.unes-scroll-layout .unes-brand {
    align-items: center;
    justify-self: center;
    width: 100%;
}

.unes-scroll-layout .unes-logo-wrap {
    width: 100%;
}

.unes-scroll-layout .unes-header-tools {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 1px;
}

.unes-scroll-layout .unes-header-capsule {
    padding-left: 0;
    border-left: 0;
}

.unes-scroll-layout .unes-header-capsule .unes-daily-capsule-text::after {
    transform: translateX(-12px);
}

.unes-scroll-layout #unes-menu-button {
cursor: pointer;
    width: 32px;
    height: 32px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unes-scroll-layout > .unes-header,
.unes-scroll-layout > .unes-capsule-popover,
.unes-scroll-layout > .unes-edition-navigation,
.unes-scroll-layout > .unes-top-promos,
.unes-scroll-layout > .unes-swipe-hint,
.unes-scroll-layout > .unes-category-completion,
.unes-scroll-layout > .unes-tabs,
.unes-scroll-layout > .unes-media-strip,
.unes-scroll-layout > .unes-newness-bar,
.unes-scroll-layout > .unes-reading-footer {
    flex: 0 0 auto;
}

.unes-scroll-layout > .unes-carousel-shell,
.unes-scroll-layout > .unes-media-carousel {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
}

.unes-scroll-layout .unes-carousel-shell > .unes-media-carousel {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.unes-scroll-layout > .unes-media-carousel {
    overflow-x: auto;
    overflow-y: hidden;
}

.unes-scroll-layout .unes-media-panel {
    height: 100%;
    min-height: 0;
    padding-top: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.unes-scroll-layout .unes-title-row {
    flex: 0 0 auto;
}

.unes-scroll-layout .unes-extra-title {
    display: flex;
}

.unes-scroll-layout .unes-reading-footer {
    background: #ffffff;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.unes-scroll-layout .unes-reading-footer .unes-bottom-nav {
    margin-top: 0;
    padding-top: 5px;
    padding-bottom: 4px;
    background: #f5f6f8;
    border-top: 1px solid #d5d9df;
}

.unes-scroll-layout .unes-reading-footer .unes-bottom-nav a {
    font-size: 10,5px;
    color: #082b72;
}

@media (display-mode: browser) {
   
    .unes-scroll-layout .unes-reading-footer {
        padding-bottom: 0;
    }
}

.unes-scroll-layout .unes-reading-footer .unes-sponsor {
    padding: 3px 14px 0;
}

.unes-scroll-layout .unes-reading-footer .unes-sponsor-label {
    font-size: 9.5px;
    color: #333333;
}

.unes-scroll-layout .unes-reading-footer .unes-partner-link {
    padding: 2px 0;
}

.unes-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 12px;
}

.unes-footer-links .unes-partner-link {
    white-space: nowrap;
    text-align: left;
}

.unes-footer-legal-trigger {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #8a8f9c;
    font: inherit;
    font-size: 10px;
    white-space: nowrap;
    cursor: pointer;
}




/* UNES — Carte d'installation */

.unes-main-menu {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.unes-main-menu[hidden],
.unes-install-promo[hidden],
.unes-install-steps[hidden],
#unes-install-choices[hidden] {
    display: none !important;
}

.unes-main-menu > a,
.unes-main-menu > .unes-main-menu-header,
.unes-main-menu > .unes-main-menu-separator {
    flex-shrink: 0;
}

.unes-install-promo {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: min(220px, 100%);
    margin: 11px auto 13px;
    padding: 12px 10px 10px;
    border: 1px solid #e5d9c7;
    border-radius: 12px;
    background: linear-gradient(
        130deg,
        #faf8f4,
        #f3eee6
    );
    color: #19385f;
    text-align: center;
}

.unes-install-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 8px;
}

.unes-install-emblem > span {
    width: 23px;
    height: 1px;
    background: #c7a673;
}

.unes-install-phone {
    display: block;
    width: 18px;
    height: 23px;
}

.unes-install-promo h2 {
    margin: 0 0 10px;
    color: #19385f;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.unes-install-promo h2 span {
    display: block;
}

#unes-install-open {
    display: block;
    width: 150px;
    min-height: 32px;
    margin: 0 auto;
    padding: 6px 9px;
    border: 0;
    border-radius: 7px;
    background: #193d72;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

#unes-install-open:hover {
    background: #082b72;
}

.unes-install-free {
    margin-top: 8px;
    color: #647084;
    font-size: 10px;
    line-height: 1.2;
}

/* Avantages dans la fenêtre d'installation */

.unes-install-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 8px;
    margin: 0 0 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e6e1d8;
    list-style: none;
}

.unes-install-benefits li {
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
    color: #1f7a4d;
    font-size: 12px;
    line-height: 1.3;
}

.unes-install-benefits svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.unes-install-dialog {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid #d7dfeb;
    border-radius: 14px;
    background: white;
    color: #112b52;
    font-family: inherit;
    line-height: 1.5;
}

.unes-install-dialog::backdrop {
    background: rgba(8, 28, 61, .57);
}

.unes-install-dialog h2 {
    margin: 0 28px 14px 0;
    font-size: 21px;
}

.unes-install-dialog h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.unes-install-dialog p {
    margin: 0 0 16px;
    font-size: 14px;
}

.unes-install-dialog ol {
    margin: 0 0 18px;
    padding-left: 20px;
    font-size: 14px;
}

.unes-install-dialog li {
    margin-bottom: 9px;
}

.unes-install-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    color: #12366d;
    font-size: 29px;
    cursor: pointer;
}

.unes-install-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.unes-install-options button {
    padding: 14px 10px;
    border: 1px solid #143770;
    border-radius: 10px;
    background: #143770;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.unes-install-back {
    border: 0;
    background: transparent;
    padding: 5px 0;
    color: #12366d;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.unes-install-dialog p.unes-install-disclaimer {
    margin: 18px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e3e8f0;
    color: #596474;
    font-size: 12px;
}

@media (display-mode: standalone) {
    .unes-install-promo {
        display: none;
    }
}



/* Assistance à l'installation iPhone */

.unes-install-iphone-guide {
    position: fixed;
    z-index: 1100;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: min(350px, calc(100vw - 24px));
    padding: 10px 12px;
    border: 1px solid #d2b17e;
    border-radius: 12px;
    background: #12366d;
    box-shadow: 0 6px 20px rgba(8, 43, 114, 0.20);
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.unes-install-iphone-guide[hidden] {
    display: none !important;
}

.unes-install-iphone-guide strong {
    display: block;
    margin-bottom: 6px;
    padding-right: 25px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.25;
}

.unes-install-iphone-guide p {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.4;
    white-space: nowrap;
}

.unes-install-iphone-guide p:last-child {
    margin-bottom: 0;
}

.unes-install-iphone-guide b,
.unes-install-guide-action {
    color: #ffd66d;
    font-weight: 700;
}

.unes-install-guide-action {
    display: inline;
    white-space: nowrap;
}

.unes-install-guide-action svg {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.unes-install-iphone-guide-close {
    position: absolute;
    top: 5px;
    right: 7px;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 27px;
    cursor: pointer;
}


/* Safari iPhone : lecture fixe, pied de page indépendant */

body.unes-safari-browser-footer {
    background: #ffffff;
}

body.unes-safari-browser-footer > .unes-app.unes-scroll-layout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--unes-safari-footer-height, 155px) + 12px);
    min-height: 0;
    overflow: hidden;
}

body.unes-safari-browser-footer > .unes-reading-footer {
    position: absolute;
    top: calc(100dvh - var(--unes-safari-footer-height, 155px) + 12px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding-bottom: 0;
    background: #ffffff;
}

body.unes-safari-browser-footer > .unes-reading-footer .unes-bottom-nav {
    margin-top: 0;
    padding-top: 5px;
    padding-bottom: 4px;
    background: #f5f6f8;
    border-top: 1px solid #d5d9df;
}

body.unes-safari-browser-footer > .unes-reading-footer .unes-bottom-nav a {
    font-size: 10,5px;
    color: #082b72;
}

body.unes-safari-browser-footer > .unes-reading-footer .unes-sponsor {
    padding: 3px 14px 0;
}

body.unes-safari-browser-footer > .unes-reading-footer .unes-sponsor-label {
    font-size: 9.5px;
    color: #333333;
}

body.unes-safari-browser-footer > .unes-footer-links {
    position: absolute;
    top: calc(100lvh + 8px);
    left: 0;
    right: 0;
    max-width: 390px;
    margin: 0 auto;
    padding: 2px 12px;
    background: transparent;
}

body.unes-safari-browser-footer > .unes-footer-links .unes-partner-link {
    padding: 2px 0;
}

/* Accueil : distinguer l'environnement UNES des cartes médias */
.unes-app.unes-scroll-layout,
.unes-app.unes-scroll-layout > .unes-header,
.unes-app.unes-scroll-layout > .unes-edition-navigation {
    background: #EDF1F6;
}

/* Premier clic « Voir l’article » : bulle d'information aux couleurs d’UNES. */
.unes-outbound-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 43, 114, 0.15);
}

.unes-outbound-notice-card {
    width: min(100%, 350px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 18px 18px 16px;
    border: 1px solid #b8c7da;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 72%);
    box-shadow: 0 12px 32px rgba(8, 43, 114, 0.15);
    color: #3f4650;
    font-family: Arial, sans-serif;
    text-align: left;
    -webkit-overflow-scrolling: touch;
}

.unes-outbound-notice-brand {
    margin-bottom: 10px;
    color: #082b72;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
}

.unes-outbound-notice-intro {
    margin: 0 0 14px;
    color: #596778;
    font-size: 13px;
    line-height: 1.45;
}

.unes-outbound-notice-title {
    margin: 0 0 14px;
    color: #082b72;
    font-size: 16px;
    line-height: 1.4;
}

.unes-outbound-notice-text {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
}

.unes-outbound-notice-text--return {
    font-size: 14px;
}

.unes-outbound-notice-next {
    display: block;
    margin-top: 3px;
}

.unes-outbound-notice-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.unes-outbound-notice-cancel,
.unes-outbound-notice-continue {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.unes-outbound-notice-cancel {
    border: 1px solid #b8c7da;
    background: #ffffff;
    color: #596778;
}

.unes-outbound-notice-continue,
.unes-outbound-notice-continue:visited {
    border: 1px solid #082b72;
    background: #082b72;
    color: #ffffff;
}

/* Ne pas afficher le consentement pendant la bulle « Voir l’article ». */
body:has(> .unes-outbound-notice-overlay) > #unes-consent-panel {
    display: none !important;
}
