/* ============================================================
   MANUTHIL - LANDING
   ============================================================ */


/* ============================================================
   RESET
   ============================================================ */

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #07131e;

    color: #ffffff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
}


/* ============================================================
   LANDING ROOT
   ============================================================ */

.landing {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;

    overflow: hidden;

    isolation: isolate;

    background:
        url(/build/images/hero.d320bae7.png)
        center center / cover
        no-repeat;

    color: #ffffff;
}


/* ============================================================
   BACKGROUND TREATMENT
   ============================================================ */

/*
 * Voile principal.
 * La partie gauche reste sombre pour rendre le contenu lisible,
 * tandis que la droite conserve davantage l'image.
 */

.landing::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(4, 10, 17, .94) 0%,
            rgba(4, 10, 17, .87) 26%,
            rgba(4, 10, 17, .68) 48%,
            rgba(4, 10, 17, .30) 72%,
            rgba(4, 10, 17, .10) 100%
        );
}


/*
 * Léger traitement vertical pour conserver du contraste
 * en haut et en bas de l'écran.
 */

.landing::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .14) 0%,
            rgba(0, 0, 0, 0) 34%,
            rgba(0, 0, 0, 0) 66%,
            rgba(0, 0, 0, .32) 100%
        );
}


/*
 * Le div présent dans le Twig reste disponible si on souhaite
 * ajuster ensuite le rendu sans toucher aux pseudo-éléments.
 */

.landing-overlay {
    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.landing-container {
    width: 100%;

    display: flex;
    align-items: center;

    padding:
        72px
        clamp(
            32px,
            8vw,
            140px
        );
}


/* ============================================================
   CONTENT
   ============================================================ */

.landing-content {
    width: 100%;
    max-width: 620px;

    animation:
        landing-content-in
        .7s
        ease-out
        both;
}


@keyframes landing-content-in {

    from {
        opacity: 0;

        transform: translateY(12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ============================================================
   EYEBROW
   ============================================================ */

.landing-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 19px;

    color: rgba(255, 255, 255, .64);

    font-size: 12px;
    font-weight: 650;

    line-height: 1;

    letter-spacing: .16em;

    text-transform: uppercase;
}


/* ============================================================
   BRAND
   ============================================================ */

.landing-brand {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            56px,
            7vw,
            104px
        );

    font-weight: 720;

    line-height: .94;

    letter-spacing: -.055em;

    text-shadow:
        0 2px 18px rgba(0, 0, 0, .16);
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.landing-description {
    max-width: 520px;

    margin: 26px 0 0;

    color: rgba(255, 255, 255, .72);

    font-size:
        clamp(
            15px,
            1.25vw,
            18px
        );

    font-weight: 400;

    line-height: 1.72;

    text-wrap: balance;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.landing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.landing-login-button {
    position: relative;

    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 13px 19px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 10px;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .13);

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.landing-login-button span,
.landing-login-button i {
    position: relative;

    z-index: 1;
}


/*
 * Petit effet lumineux très discret.
 */

.landing-login-button::before {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            110deg,
            transparent 0%,
            rgba(255, 255, 255, .40) 50%,
            transparent 100%
        );

    transform: skewX(-20deg);

    transition: left .45s ease;
}


.landing-login-button:hover {
    transform: translateY(-2px);

    background: #f6f7f9;

    border-color: #ffffff;

    color: #111827;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, .18);
}


.landing-login-button:hover::before {
    left: 140%;
}


.landing-login-button:active {
    transform: translateY(0);
}


.landing-login-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .35);
    outline-offset: 4px;
}


.landing-login-button i {
    font-size: 11px;

    transition:
        transform .18s ease;
}


.landing-login-button:hover i {
    transform: translateX(3px);
}


/* ============================================================
   BOTTOM
   ============================================================ */

.landing-bottom {
    position: absolute;

    left:
        clamp(
            32px,
            8vw,
            140px
        );

    bottom: 26px;

    z-index: 2;

    color: rgba(255, 255, 255, .42);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: .02em;
}


/* ============================================================
   LARGE SCREENS
   ============================================================ */

@media (min-width: 1600px) {

    .landing-content {
        max-width: 680px;
    }


    .landing-description {
        max-width: 540px;
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .landing::before {
        background:
            linear-gradient(
                90deg,
                rgba(4, 10, 17, .92) 0%,
                rgba(4, 10, 17, .78) 48%,
                rgba(4, 10, 17, .38) 100%
            );
    }


    .landing-container {
        padding:
            58px
            44px;
    }


    .landing-content {
        max-width: 560px;
    }


    .landing-bottom {
        left: 44px;

        bottom: 22px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .landing {
        align-items: flex-end;

        background-position: 58% center;
    }


    /*
     * Sur mobile on sombre davantage le bas, là où le texte arrive.
     */

    .landing::before {
        background:
            linear-gradient(
                0deg,
                rgba(4, 10, 17, .97) 0%,
                rgba(4, 10, 17, .90) 31%,
                rgba(4, 10, 17, .66) 58%,
                rgba(4, 10, 17, .30) 100%
            );
    }


    .landing::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, .16) 0%,
                transparent 50%,
                rgba(0, 0, 0, .18) 100%
            );
    }


    .landing-container {
        align-items: flex-end;

        min-height: 100vh;
        min-height: 100dvh;

        padding:
            40px
            24px
            78px;
    }


    .landing-content {
        max-width: 100%;
    }


    .landing-eyebrow {
        margin-bottom: 15px;

        font-size: 10px;
    }


    .landing-brand {
        font-size:
            clamp(
                48px,
                17vw,
                72px
            );
    }


    .landing-description {
        max-width: 440px;

        margin-top: 19px;

        font-size: 14px;

        line-height: 1.65;
    }


    .landing-actions {
        margin-top: 26px;
    }


    .landing-login-button {
        min-height: 46px;

        padding: 12px 18px;

        font-size: 12px;
    }


    .landing-bottom {
        left: 24px;

        bottom: 22px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .landing {
        background-position: 61% center;
    }


    .landing-container {
        padding:
            32px
            20px
            70px;
    }


    .landing-brand {
        font-size: 50px;
    }


    .landing-description {
        max-width: 330px;

        font-size: 13px;
    }


    .landing-login-button {
        width: 100%;
        max-width: 220px;
    }


    .landing-bottom {
        left: 20px;

        bottom: 18px;

        font-size: 9px;
    }

}


/* ============================================================
   SHORT SCREENS
   ============================================================ */

@media (max-height: 620px) and (min-width: 768px) {

    .landing-container {
        padding-top: 40px;
        padding-bottom: 60px;
    }


    .landing-brand {
        font-size:
            clamp(
                48px,
                6vw,
                74px
            );
    }


    .landing-description {
        margin-top: 18px;

        font-size: 14px;
    }


    .landing-actions {
        margin-top: 24px;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

}

