h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif !important;
    letter-spacing: -0.7px;
}

h1 {
    font-size: 22px;
    line-height: 28px;
}

h2 {
    font-size: 19px;
    line-height: 23px;
}

h3 {
    font-size: 16px;
    line-height: 18px;
}

h4 {
    font-size: 16px;
    line-height: 21px;
}

h5 {
    font-size: 14px;
    line-height: 20px;
}

.theme-light .header .header-logo {
    background-image: url(../images/okey/power.png);
    background-size: 50px 50px;
    width: 50px;
}

.splide__pagination {
    display: none;
}

.preload-img2 {
    width: 100%;
    overflow: auto;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.theme-dark .walkthrough-card {
    background-color: #000 !important;
}

.card-overlay-infinite {
    background-size: 50em auto;
    background-position: left center;
    background-repeat: repeat-x;

}

#dataCA {
    font-family: "Roboto", sans-serif !important;
    font-weight: 500;
}

#dataCA sup {
    top: -0.5em;
    font-size: 0.6em;
}

#dataCA h5 {
    font-size: 20px;
    font-weight: 900;
    color: rgb(180, 180, 180);
    transform: scaleY(1.6);
    line-height: 17px;
    margin: 15px 10px 10px 10px;
    display: inline-block;
    white-space: nowrap;
}

#dataCA h4 {
    font-size: 16px;
    font-weight: 700;
}

#dataCA h3 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

#dataCA h2 {
    font-size: 45px;
    font-weight: 800;
    color: #8bc34a;
    transform: scaleY(1.6);
}

.dataCA-popover {
    --bs-popover-border-color: rgb(139 195 74 / 66%);
    --bs-popover-border-color: rgb(139 195 74 / 100%);
    --bs-popover-border-width: 1px;
    border-radius: 15px;
}

.dataCA-popover .popover-header {
    display: none;
}

.dataCA-popover .popover-body {
    font-weight: bold;
    font-size: 12px;
}

.fa-eye {
    float: right;
    position: absolute;
    top: 50%;
    width: 10px;
    text-align: center;
    margin-top: -8px;
    right: -10px;
}

.user-name {
    font-family: "Roboto", sans-serif !important;
    font-weight: 900;
}

#select_mois {
    font-family: "Roboto", sans-serif !important;
    font-size: 20px;
    font-weight: 900;
    background-color: #FFF;
    height: 35px;
}

.alert h4,
.alert strong {
    padding-left: 0px;
}

.parcours h3 {
    font-size: 10px;
    font-family: "Roboto", sans-serif !important;
    font-weight: 700;
    line-height: 12px;
    white-space: nowrap;
}

.progress_perso h5 {
    text-wrap: nowrap;
}

/* === Design system partagé (app pages) === */
:root { --card-bg: #fff; }
.theme-dark { --card-bg: #2c2f35; }

.section-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: #A12C29; padding: 10px 16px 5px;
}
.section-label::after {
    content: ''; flex: 1; height: 1px; background: rgba(161,44,41,.2);
}
.h-card {
    background: var(--card-bg, #fff); border-radius: 18px;
    margin: 0 12px 12px; padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.theme-dark .h-card { box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.theme-dark .section-label { color: #c0504d; }
.theme-dark .section-label::after { background: rgba(161,44,41,.35); }

/* Pill tabs */
.pill-tabs { display: flex; gap: 6px; margin: 0 12px 12px; }
.pill-tab {
    flex: 1; text-align: center; padding: 8px 4px; border-radius: 11px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    background: rgba(0,0,0,.05); color: #999; border: none;
}
.pill-tab.active { background: #A12C29; color: #fff; }

/* Year pills */
.year-pills { display: flex; gap: 8px; margin-bottom: 4px; }
.year-pill {
    flex: 1; text-align: center; border-radius: 12px; padding: 8px 4px;
    background: rgba(var(--pill-rgb),.09);
    border: 1.5px solid rgba(var(--pill-rgb),.25);
}
.year-pill .yp-year {
    font-size: 10px; font-weight: 700; opacity: .7;
    text-transform: uppercase; letter-spacing: .5px; color: rgb(var(--pill-rgb));
}
.year-pill .yp-val {
    font-size: 13px; font-weight: 800; color: rgb(var(--pill-rgb));
    margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Page transitions (slide horizontal géré par le router JS) ── */
#page {
    position: relative;
    overflow-x: hidden;
    transition: transform 0.3s ease-in-out;
}

/* Custom left-to-right transition for Swup */
.swup-leave {
    transform: translateX(-100%); /* Slide out to the left */
}

.swup-enter {
    transform: translateX(100%); /* Start from the right */
}

.theme-dark .year-pill { background: rgba(var(--pill-rgb),.15); border-color: rgba(var(--pill-rgb),.3); }