/* =========================================
   ADAPTACCESSOIRES — HERO
   ========================================= */

.aa-hero {
    position: relative;

    width: 100%;
    min-height: min(760px, calc(100vh - 80px));

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    isolation: isolate;
}


/* =========================================
   IMAGE
   ========================================= */

.aa-hero__media {
    position: absolute;
    inset: 0;

    z-index: -3;
}


.aa-hero__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.01);
}


/* =========================================
   OVERLAY
   ========================================= */

.aa-hero__overlay {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(49, 20, 40, 0.70) 0%,
            rgba(37, 35, 50, 0.46) 42%,
            rgba(16, 47, 58, 0.18) 100%
        );
}


/* =========================================
   CONTENT
   ========================================= */

.aa-hero__content {
    position: relative;

    z-index: 2;

    width: min(
        calc(100% - 40px),
        920px
    );

    margin-inline: auto;

    padding-block: 80px;

    text-align: center;

    color: var(--aa-white);

    animation: aaHeroReveal 0.9s ease both;
}


/* =========================================
   TITLE
   ========================================= */

.aa-hero__title {
    max-width: 850px;

    margin: 0 auto var(--aa-space-6);

    color: var(--aa-white);

    font-family: var(--aa-font-heading);

    font-size: clamp(
        44px,
        6vw,
        78px
    );

    font-weight: 700;

    line-height: 1.04;

    letter-spacing: -0.028em;

    text-shadow:
        0 4px 25px rgba(0, 0, 0, 0.25);
}


/*
 * Permet d'utiliser le violet prune
 * comme accent dans le titre.
 */

.aa-hero__title span {
    color: var(--aa-accent);
}


/* =========================================
   DESCRIPTION
   ========================================= */

.aa-hero__description {
    max-width: 720px;

    margin: 0 auto var(--aa-space-8);

    color: rgba(255, 255, 255, 0.95);

    font-size: clamp(
        16px,
        1.8vw,
        19px
    );

    line-height: 1.75;

    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.28);
}


/* =========================================
   HERO BUTTON
   ========================================= */

.aa-button--hero {
    min-width: 220px;

    padding: 15px 26px;

    background: var(--aa-secondary);

    border-color: var(--aa-secondary);

    box-shadow:
        0 12px 32px rgba(107, 33, 79, 0.28);

    transition:
        background var(--aa-transition),
        color var(--aa-transition),
        border-color var(--aa-transition),
        transform var(--aa-transition),
        box-shadow var(--aa-transition);
}


.aa-button--hero:hover,
.aa-button--hero:focus-visible {
    background: var(--aa-accent);

    border-color: var(--aa-accent);

    color: var(--aa-white);

    transform: translateY(-3px);

    box-shadow:
        0 16px 38px rgba(107, 33, 79, 0.34);
}


.aa-button__arrow {
    font-size: 20px;

    line-height: 1;

    transition:
        transform var(--aa-transition);
}


.aa-button--hero:hover .aa-button__arrow,
.aa-button--hero:focus-visible .aa-button__arrow {
    transform: translateX(5px);
}


/* =========================================
   SCROLL INDICATOR
   ========================================= */

.aa-hero__scroll {
    position: absolute;

    bottom: 28px;
    left: 50%;

    z-index: 3;

    width: 24px;
    height: 38px;

    transform: translateX(-50%);

    border: 1px solid rgba(37, 150, 190, 0.75);

    border-radius: var(--aa-radius-pill);
}


.aa-hero__scroll span {
    position: absolute;

    top: 7px;
    left: 50%;

    width: 4px;
    height: 7px;

    transform: translateX(-50%);

    border-radius: var(--aa-radius-pill);

    background: var(--aa-secondary);

    animation: aaHeroScroll 1.8s ease-in-out infinite;
}


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes aaHeroReveal {

    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes aaHeroScroll {

    0%,
    100% {
        opacity: 0;

        transform:
            translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 1;

        transform:
            translate(-50%, 12px);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .aa-hero {
        min-height: 680px;
    }


    .aa-hero__image {
        object-position: center center;
    }


    .aa-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(49, 20, 40, 0.28) 0%,
                rgba(16, 47, 58, 0.72) 100%
            );
    }


    .aa-hero__content {
        width: calc(100% - 30px);

        padding-block: 60px;
    }


    .aa-hero__title {
        font-size: clamp(
            38px,
            11vw,
            54px
        );

        line-height: 1.06;
    }


    .aa-hero__description {
        font-size: 15px;

        line-height: 1.65;
    }


    .aa-button--hero {
        width: 100%;
        max-width: 260px;
    }


    .aa-hero__scroll {
        bottom: 18px;
    }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .aa-hero__content,
    .aa-hero__scroll span {
        animation: none;
    }

}
