/* Public homepage (fr + ar): contact bar, navbar, header carousel, ASC slide, figures.
   Every rule is scoped to body.anae-home so the other public pages keep style.css only. */

/*** Contact bar ***/
.anae-home .anae-contactbar__row {
    height: 36px;
    gap: 2px;
}

.anae-home .anae-contactbar small {
    font-size: 13px;
}

.anae-home .anae-contactbar .btn-sm-square {
    width: 26px;
    height: 26px;
    font-size: 12px;
}

/*** Navbar ***/
.anae-home .navbar-dark .navbar-brand {
    display: flex;
    align-items: center;
}

.anae-home .navbar-dark .anae-brand-logo {
    width: auto;
    height: 56px;
}

.anae-home .navbar-dark .navbar-nav {
    align-items: center;
}

.anae-home .navbar-dark .navbar-nav .nav-link:focus-visible,
.anae-home .navbar-dark .navbar-brand:focus-visible,
.anae-home .navbar-dark .navbar-toggler:focus-visible {
    outline: 2px solid #3DD671;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: none;
}

.anae-home .anae-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 2px solid #12887e;
    border-radius: 999px;
    background: #12887e;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(4, 40, 36, .28);
}

.anae-home .anae-account-btn:hover {
    border-color: #0e7067;
    background: #0e7067;
    color: #fff;
}

.anae-home .anae-account-btn:focus-visible {
    outline: 3px solid #8ff0d6;
    outline-offset: 2px;
    box-shadow: none;
}

.anae-home .navbar-dark .navbar-nav .nav-link.anae-lang {
    font-weight: 700;
}

@media (min-width: 992px) {
    .anae-home .navbar-dark {
        min-height: 76px;
        background: linear-gradient(180deg, rgba(3, 18, 30, .6), rgba(3, 18, 30, 0));
        border-bottom-color: rgba(255, 255, 255, .08);
    }

    .anae-home .sticky-top.navbar-dark {
        min-height: 64px;
        background: #fff;
    }

    .anae-home .sticky-top.navbar-dark .anae-brand-logo {
        height: 48px;
    }

    .anae-home .navbar-dark .navbar-nav .nav-link {
        margin-left: 22px;
        padding: 26px 0;
        font-size: 16px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
    }

    .anae-home .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 20px 0;
        text-shadow: none;
    }

    .anae-home .navbar-dark .navbar-nav .nav-link.anae-lang {
        margin-left: 20px;
        padding: 3px 12px;
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 999px;
        line-height: 1.5;
    }

    .anae-home .sticky-top.navbar-dark .navbar-nav .nav-link.anae-lang {
        padding: 3px 12px;
        border-color: rgba(11, 66, 61, .35);
    }

    .anae-home .navbar-dark .navbar-nav .nav-link.anae-lang::before {
        display: none;
    }

    .anae-home .anae-account-btn {
        margin-left: 22px;
    }
}

@media (max-width: 991.98px) {
    .anae-home .navbar-dark {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .anae-home .navbar-dark .anae-brand-logo {
        height: 48px;
    }

    .anae-home .navbar-dark .navbar-nav {
        align-items: stretch;
        padding-top: 6px;
    }

    .anae-home .anae-account-btn {
        margin: 8px 0 12px;
    }
}

@media (max-width: 575.98px) {
    .anae-home .navbar-dark {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/*** Header carousel: one controlled height for every slide ***/
.anae-home #header-carousel .carousel-item {
    height: 56.25vw; /* 16:9, the format of the existing slides */
    overflow: hidden;
}

.anae-home #header-carousel .carousel-item > img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .anae-home #header-carousel .carousel-item {
        height: max(56.25vw, 460px);
    }
}

@media (max-width: 767.98px) {
    .anae-home #header-carousel .carousel-item {
        height: 500px;
    }

    /* keep the arrows clear of the stacked slide content */
    .anae-home #header-carousel .carousel-control-prev,
    .anae-home #header-carousel .carousel-control-next {
        bottom: auto;
        width: 48px;
        height: 45%;
    }

    .anae-home #header-carousel .carousel-control-prev-icon,
    .anae-home #header-carousel .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

.anae-home #header-carousel .carousel-control-prev:focus-visible,
.anae-home #header-carousel .carousel-control-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
}

/*** ASC slide ***/
.asc-slide {
    position: relative;
    background: #0a2a4a;
    color: #fff;
}

.asc-slide__bg,
.asc-slide__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.asc-slide__bg img {
    object-fit: cover;
    object-position: 82% center;
}

.asc-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    /* light directional scrim only behind the text column; the photo keeps its own colors */
    background: linear-gradient(90deg, rgba(4, 24, 52, .6) 0%, rgba(4, 24, 52, .42) 34%, rgba(4, 24, 52, .12) 56%, rgba(4, 24, 52, 0) 72%);
}

.asc-slide__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 96px 7vw 100px;
}

.asc-slide[dir="rtl"] .asc-slide__inner {
    justify-content: flex-end; /* content stays over the darker left side, the stage on the right */
}

.asc-slide__content {
    width: 100%;
    max-width: 560px;
    text-align: start;
}

.asc-slide__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.asc-slide__logo {
    display: block;
    width: 200px;
    height: auto;
}

.asc-slide__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 13px;
    border: 1px solid rgba(61, 214, 113, .55);
    border-radius: 999px;
    background: rgba(61, 214, 113, .1);
    color: #c8f5d6;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.asc-slide__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3DD671;
}

.asc-slide__badge sup {
    top: -.4em;
    font-size: 70%;
}

.asc-slide__title {
    margin: 0 0 16px;
    color: #fff;
    font-family: 'Rubik', 'Nunito', sans-serif;
    font-size: clamp(30px, 3.4vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

.asc-slide[dir="rtl"] .asc-slide__title {
    text-align: right;
}

.asc-slide__year {
    color: #63d3ea;
}

.asc-slide__text {
    max-width: 480px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.6;
}

.asc-slide[dir="rtl"] .asc-slide__text,
.asc-slide[dir="rtl"] .asc-slide__badge,
.asc-slide[dir="rtl"] .asc-slide__cta {
    font-family: 'Cairo', sans-serif;
}

.asc-slide__form {
    margin: 0;
}

.asc-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: 0;
    border-radius: 8px;
    background: #4fd1e3;
    color: #052238;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: background-color .15s ease;
}

.asc-slide__cta:hover {
    background: #7ddfec;
    color: #052238;
}

.asc-slide__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.asc-slide__cta-icon {
    flex: none;
    width: 15px;
    height: 15px;
}

@media (max-width: 991.98px) {
    .asc-slide__inner {
        padding: 32px 6vw;
    }

    .asc-slide__logo {
        width: 170px;
    }
}

@media (max-width: 767.98px) {
    .asc-slide::after {
        background: linear-gradient(180deg, rgba(4, 24, 52, 0) 0%, rgba(4, 24, 52, .2) 34%, rgba(4, 24, 52, .72) 66%, rgba(4, 24, 52, .84) 100%);
    }

    .asc-slide__bg img {
        object-position: 60% top;
    }

    .asc-slide__inner,
    .asc-slide[dir="rtl"] .asc-slide__inner {
        align-items: flex-end;
        justify-content: center;
        padding: 20px 20px 28px;
    }

    .asc-slide__brand {
        gap: 12px;
        margin-bottom: 16px;
    }

    .asc-slide__logo {
        width: 132px;
    }

    .asc-slide__badge {
        font-size: 12.5px;
        padding: 3px 10px;
    }

    .asc-slide__title {
        margin-bottom: 10px;
        font-size: 27px;
    }

    .asc-slide__text {
        margin-bottom: 20px;
        font-size: 15.5px;
    }

    .asc-slide__cta {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anae-home #header-carousel .carousel-item,
    .asc-slide__cta {
        transition: none;
    }
}

/*** Partner logos: the page runs Owl Carousel 1.3 (owl.carousel.js); its clipping rule keeps
   the logo strip from widening the page on phones when the 2.x stylesheet is the one loaded ***/
.anae-home .owl-carousel .owl-wrapper-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/*** Figures ***/
.anae-home .anae-fact-value {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1.2;
}
