/* hero */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 900px;
    padding: 95px 20px 80px;
    background: linear-gradient(120deg, #f4dcb6 0%, #eccfa4 20%, #d9d2c8 42%, #c3cdd2 62%, #9aa7b1 82%, #7c8994 100%);
    background-size: cover;
    background-position: center;
}

.hero:not(.has-background) {
    background: none;
}

.hero .hero-content {
    position: relative;
    min-height: calc(900px - 175px);
}

.hero-content .inner-content {
    max-width: 630px;
}

.hero-amount {
    border: 2px solid #0f0f0f;
    border-radius: 9px;
    max-width: 300px;
    padding: 0 40px;
    min-height: 98px;
    padding-left: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-amount .hero-amount-top {
    display: flex;
    align-items: end;
}

.hero-amount .hero-amount-top .hero-amount-value {
    font-size: 54px;
    line-height: 1;
    width: 240px;
    background: transparent;
    border: none;
    outline: none;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    height: 51px;
    text-align: right;
}

.hero-amount .hero-amount-top .hero-amount-currency {
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    position: relative;
    top: -3px;
}

.hero-amount-slider,
.hero-amount-range {
    display: none !important;
}

.hero .btn {
    margin-top: 0;
}

.hero-quote {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 545px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 20px;
    padding: 28px 35px;
    color: #fff;
}

.hero-quote h3 {
    margin: 0;
}

/* page title bar + simple hero layout */

.page-title-bar {
    background: #fff;
    padding: 40px 20px 110px;
}

.page-title-bar.has-hero {
    padding: 40px 20px 70px;
}

.page-title-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-title-bar-heading {
    font-size: 54px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 12px;
    position: relative;
}

.page-title-bar-heading:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -25px;
    background-color: #0e0b0b;
    height: 3px;
    width: 77px;
}

.page-title-bar-list {
    display: flex;
    flex-direction: column;
}

.page-title-bar-intro {
    max-width: 420px;
    text-align: right;
}

.page-title-bar-intro p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #726d6a;
    margin-bottom: 10px;
}

.page-title-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.page-title-bar-link svg {
    width: 12px;
    height: 12px;
    transition: transform .2s ease;
}

.page-title-bar-link:hover svg {
    transform: translateX(3px);
}

.hero-simple {
    min-height: 700px;
    padding: 90px 0 195px;
    display: flex;
    align-items: flex-end;
}

.hero-simple .hero-content {
    min-height: 0;
    width: 100%;
}

.hero-simple .inner-content {
    max-width: 900px;
}

.hero-simple p {
    font-weight: 300;
}

.hero-simple .btn {
    margin-top: 55px;
}

/* Titre et intro de page repris dans le hero en mobile uniquement. */
.hero-mobile-only {
    display: none !important;
}

.hero:not(#mod-hero126) .hero-simple .btn svg {
    transform: rotate(-90deg);
}
.hero:not(#mod-hero126) .hero-simple .btn:hover svg {
    transform: rotate(-90deg) translateY(3px);
}


@media screen and (max-width: 767px) {
    .page-title-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .page-title-bar-list {
        text-align: left;
    }

    .page-title-bar-intro {
        max-width: none;
        text-align: left;
    }

    .hero-simple {
        min-height: 0;
        padding: 40px 20px 35px;
    }

    .hero-simple h2 {
        font-size: 32px;
    }

    .page-title-bar.has-hero {
        display: none;
    }

    .hero-simple.has-background {
        min-height: 597px;
        padding: 50px 20px 180px;
        align-items: flex-start;
    }

    .hero-simple .eyebrow.hero-mobile-only {
        display: inline-flex !important;
        margin-bottom: 25px;
    }

    .hero-simple .hero-mobile-intro {
        display: block !important;
        font-size: 14px;
        line-height: 18px;
    }

    .hero-simple h1 {
        margin-bottom: 12px;
    }

    .hero-mobile-intro .page-title-bar-intro,
    .hero-mobile-intro .page-title-bar-list {
        max-width: none;
        text-align: left;
    }

    .hero-mobile-intro .page-title-bar-list {
        padding-left: 18px;
    }

    /* Sur la photo, le gris de la barre de titre n'est pas lisible. */
    .hero-mobile-intro .page-title-bar-intro p,
    .hero-simple .inner-content > p:not(.eyebrow) {
        color: var(--akelo-black);
        font-size: 14px;
        line-height: 18px;
    }

    .hero-mobile-intro .page-title-bar-link {
        margin-top: 12px;
        font-weight: 400;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .hero-mobile-intro .page-title-bar-link[href^="#"] svg {
        transform: rotate(90deg);
    }

    .hero-simple .btn {
        margin-top: 35px;
    }
}

@media screen and (max-width: 767px) {
    .hero {
        min-height: 0;
        padding: 40px 20px 35px;
    }

    .hero .hero-content {
        min-height: 0;
    }

    .hero-amount {
        margin-bottom: 14px;
        padding: 0 20px;
        padding-left: 0;
        max-width: 216px;
        min-height: 57px;
        border-width: 1px;
        border-radius: 7px;
    }

    .hero-amount .hero-amount-top .hero-amount-value {
        font-size: 40px;
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .hero-amount .hero-amount-top .hero-amount-currency {
        font-size: 18px;
        top: -13px;
    }

    .hero-simple .btn {
        min-width: 216px;
    }

    /* Même largeur que le champ montant (216px), comme sur la maquette. */
    .hero:not(.hero-simple) .btn {
        width: 216px;
        min-width: 216px;
        padding-inline: 18px;
    }

    .hero-quote {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 12px 20px 20px;
        margin-top: 115px;
        border-width: 1px;
        border-radius: 15px;
    }

    .hero-quote p,
    .hero-quote h3 {
        font-size: 19px;
        line-height: 25px;
    }
}
