/* Patient app links, added in 2026 (header button, footer entries, home page
   section). Colours are the tokens of styles/sass/styles.scss: blue #2630C3,
   green #8CC537, light blue #DCDDF5, dark blue #2F3477. */

/* Header: "Espace patient" pill at the end of the main menu. Selectors are
   deliberately more specific than the theme's nav rules, which otherwise
   recolour links on the transparent (header-t) and scrolled headers. */
.main_menu nav.menu ul li.nav-item-apps {
    margin-top: 0;
    align-self: center;
    margin-inline-start: 12px;
}
.main_menu nav.menu ul li.nav-item-apps:after {
    display: none;
}
.main_menu nav.menu ul li.nav-item-apps a.apps-nav-btn,
.main_menu nav.menu ul li.nav-item-apps:hover a.apps-nav-btn {
    color: #FFFFFE;
    background-color: #2630C3;
    height: 40px;
    line-height: 40px;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 6px 12px 0 rgba(38, 48, 195, 0.25);
    white-space: nowrap;
}
.main_menu nav.menu ul li.nav-item-apps a.apps-nav-btn:hover {
    background-color: #8CC537;
}

/* Home page section. The theme's footer is position: fixed behind the page
   (z-index -2), so every section needs an opaque background or the footer
   shows through. */
.apps {
    padding: 60px 0 30px;
    background-color: #FFFFFE;
}
.apps-head {
    max-width: 760px;
}
.apps-eyebrow {
    color: #8CC537;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.apps .title {
    padding: 8px 0 16px;
}
.apps-lede {
    line-height: 1.7;
}

/* Showcase: phone mock-up beside the app identity, features and store badges */
.apps-showcase {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
    padding: 50px;
    background-color: #F6F7FE;
    border: 1px solid #E4E6F8;
    border-radius: 28px;
}
.apps-phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}
.apps-phone-stage:before {
    content: "";
    position: absolute;
    inset: -6% -14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(38, 48, 195, 0.16), rgba(38, 48, 195, 0) 100%);
    pointer-events: none;
}
/* The theme has no global box-sizing reset; the mock-up's paddings are sized
   border-box so the screen content never exceeds the screen. */
.apps-phone,
.apps-phone *,
.apps-phone *:before,
.apps-phone *:after {
    box-sizing: border-box;
}
.apps-phone {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19;
    padding: 9px;
    border-radius: 40px;
    background-color: #12143A;
    box-shadow: 0 30px 60px -20px rgba(18, 20, 58, 0.45);
}
.apps-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 22px;
    border-radius: 100px;
    background-color: #12143A;
    z-index: 5;
}
.apps-phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background-color: #F3F4FC;
}
/* The screen is a fixed-size illustration: its type does not follow the page
   scale, so it never overflows the device. */
.apps-ui {
    height: 100%;
    padding: 30px 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    line-height: 1.4;
    color: #2F3477;
}
.apps-ui-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    font-size: 9px;
    color: #6A6EA8;
}
.apps-ui-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}
.apps-ui-dots i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #B9BCE6;
}
.apps-ui-label {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6A6EA8;
}
.apps-ui-greet strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
    color: #2630C3;
}
.apps-ui-next {
    padding: 12px;
    border-radius: 12px;
    background-color: #2630C3;
    color: #FFFFFE;
}
.apps-ui-next .apps-ui-label {
    color: #FFFFFE;
    opacity: 0.75;
}
.apps-ui-next strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    line-height: 1.2;
}
.apps-ui-next-sub {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    opacity: 0.88;
}
.apps-ui-card {
    padding: 10px 11px;
    border: 1px solid #E4E6F8;
    border-radius: 12px;
    background-color: #FFFFFE;
}
.apps-ui-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.apps-ui-num {
    font-size: 10.5px;
    font-weight: 600;
}
.apps-ui-bar {
    height: 5px;
    margin-top: 8px;
    border-radius: 99px;
    background-color: #DCDDF5;
    overflow: hidden;
}
.apps-ui-bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background-color: #2630C3;
}
.apps-ui-sub {
    display: block;
    margin-top: 6px;
    font-size: 8.5px;
    color: #6A6EA8;
}
.apps-ui-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.apps-ui-tile {
    padding: 9px;
}
.apps-ui-tile-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
    border-radius: 6px;
    background-color: #DCDDF5;
    color: #2630C3;
}
.apps-ui-tile-ico svg {
    width: 13px;
    height: 13px;
}
.apps-ui-tile > span:last-child {
    display: block;
    font-size: 9.5px;
    line-height: 1.25;
}
.apps-ui-upcoming .apps-ui-row {
    padding-top: 7px;
    margin-top: 7px;
    font-size: 10.5px;
}
.apps-ui-upcoming .apps-ui-row + .apps-ui-row {
    border-top: 1px solid #E4E6F8;
}
.apps-ui-upcoming em {
    font-style: normal;
    font-size: 8.5px;
    padding: 2px 7px;
    border-radius: 99px;
    background-color: #DCDDF5;
    color: #2630C3;
}
.apps-ui-spacer {
    flex: 1;
}
.apps-ui-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 8px 2px;
    border-top: 1px solid #E4E6F8;
    color: #B9BCE6;
}
.apps-ui-tabs span {
    display: inline-flex;
}
.apps-ui-tabs svg {
    width: 15px;
    height: 15px;
}
.apps-ui-tabs span.on {
    color: #2630C3;
}

/* App identity, features, badges */
.apps-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.apps-app-icon {
    display: block;
    flex: none;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid #E4E6F8;
    border-radius: 18px;
    background-color: #FFFFFE;
    box-shadow: 0 10px 20px -10px rgba(38, 48, 195, 0.35);
}
.apps-app-icon img {
    display: block;
    width: 100%;
    height: 100%;
}
.apps-main h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #2630C3;
}
.apps-platforms {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6A6EA8;
}
.apps-feats {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}
.apps-feats li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.apps-feats svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 3px;
    color: #8CC537;
}
.apps-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.apps-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 9px 18px 9px 14px;
    border-radius: 12px;
    background-color: #12143A;
    color: #FFFFFE;
    line-height: 1.15;
    transition: background-color 0.3s;
}
.apps-store:hover {
    background-color: #2630C3;
}
.apps-store svg {
    width: 26px;
    height: 26px;
    flex: none;
}
.apps-store-txt {
    display: flex;
    flex-direction: column;
}
.apps-store-s {
    font-size: 0.68rem;
    opacity: 0.85;
}
.apps-store-b {
    font-size: 1.05rem;
    font-weight: 600;
}
.apps-store.is-soon,
.apps-store.is-soon:hover {
    background-color: transparent;
    color: #2F3477;
    border: 1px dashed #B9BCE6;
    opacity: 0.75;
    cursor: default;
}
.apps-soon {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #6A6EA8;
}

/* Patient web portal strip */
.apps-web {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 24px;
    padding: 30px 40px;
    border-radius: 24px;
    background-color: #2630C3;
    color: #FFFFFE;
}
.apps-web-text {
    display: flex;
    align-items: center;
    gap: 18px;
}
.apps-web h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: #FFFFFE;
    margin-bottom: 4px;
}
.apps-web p {
    opacity: 0.9;
}
.apps-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFE;
}
.apps-icon svg {
    width: 26px;
    height: 26px;
}
.apps-web-cta {
    flex: none;
    text-align: end;
}
.apps-web .apps-cta {
    padding: 0 20px 0 30px;
}
.apps-web .apps-cta:hover {
    background-color: #8CC537;
    color: #FFFFFE;
}
.apps-cta svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-inline-start: 6px;
    position: relative;
    top: -1px;
}
.apps-host {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
    letter-spacing: 0.02em;
    direction: ltr;
}
[dir="rtl"] .apps-store {
    padding: 9px 14px 9px 18px;
}
[dir="rtl"] .apps-web .apps-cta {
    padding: 0 30px 0 20px;
}

@media only screen and (max-width: 1220px) {
    .apps-showcase {
        grid-template-columns: 280px 1fr;
        gap: 40px;
        padding: 36px;
    }
}
@media only screen and (max-width: 770px) {
    .main_menu nav.menu ul li.nav-item-apps {
        margin: 0.3rem 0 1rem;
        align-self: stretch;
    }
    .main_menu nav.menu ul li.nav-item-apps a.apps-nav-btn {
        display: block;
        width: 80%;
        margin: 0 auto;
    }
    .apps {
        padding: 40px 0 20px;
    }
    .apps-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 26px;
    }
    .apps-phone {
        max-width: 250px;
    }
    .apps-phone-stage:before {
        display: none;
    }
    .apps-web {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }
    .apps-web-cta {
        text-align: start;
    }
}
