/* ------------------------------- */
/*             FONTS               */
/* ------------------------------- */

@font-face {
    font-family: 'Karla';
    src: url('./medias/fonts/Karla-VariableFont_wght.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Geomanist-Regular';
    src: url('./medias/fonts/Geomanist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Geomanist-Ultra';
    src: url('./medias/fonts/Geomanist-Ultra.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Geomanist-Black';
    src: url('./medias/fonts/Geomanist-Black.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Geomanist-Bold';
    src: url('./medias/fonts/Geomanist-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ------------------------------- */
/*             Index               */
/* ------------------------------- */

.rlm-Index {
    background-color: #272727;
    color: #FEEAD6;
    position: relative;
    overflow: clip;
    margin-top: calc(var(--header-height) * -1);
    height: 100vh;
    font-family: Karla;
    font-weight: 400;
    font-size: 1rem;
    line-height: normal;

    /* Background block */
    .bg {
        background-color: #FEEAD6;
        clip-path: polygon(70% 0, 100% 0, 100% 100%, 0% 100%);
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 50%;
        z-index: 0;

        .lines {
            clip-path: polygon(70% 0, 100% 0%, 30% 100%, 0% 100%);
            background-color: #7E6292;
            height: 100%;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;

            &::before {
                clip-path: polygon(70% 0, 100% 0%, 30% 100%, 0% 100%);
                background-color: #EB5A2C;
                height: 100%;
                width: 100%;
                position: absolute;
                translate: -20%;
                bottom: 0;
                left: 0;
                content: "";
                display: block;
            }

            &::after {
                clip-path: polygon(70% 0, 100% 0%, 30% 100%, 0% 100%);
                background-color: #44BED6;
                height: 100%;
                width: 100%;
                position: absolute;
                translate: 20%;
                bottom: 0;
                left: 0;
                content: "";
                display: block;
            }
        }
    }

    /* Container */
    .rlm-Index-container {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
        align-items: center;
        height: 100%;
    }

    /* Puppet image */
    .rlm-Index-puppet {
        grid-column: 2 / 4;
        margin-inline: -2rem;
    }

    /* Form */
    .rlm-Index-content {
        grid-column: 7 / 12;
        background-color: #393939;
        padding: 2rem 4rem;
        border-radius: 1.5rem;

        .rlm-Index-heading {
            text-align: center;
            margin-bottom: 1rem;

            .rlm-Heading2 {
                font-family: Geomanist-Ultra;
                font-size: 35px;
            }

            .red {
                color: #EB5A2C;
            }
        }

        .rlm-Index-link {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: .4rem;
            align-items: center;
            font-family: "Geomanist-Regular", sans-serif;
            font-size: 14px;
            line-height: normal;
            margin-top: 1rem;

            a {
                padding-block: .75rem;
                position: relative;

                &::after {
                    content: '';
                    height: 1px;
                    width: 100%;
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    background-color: #FEEAD6;
                    transition: all .3s ease;
                }

                &:hover::after {
                    width: 0;
                }
            }
        }
    }
}

/* Container de base */
.rlm-Container {
    max-width: calc(100% - (1.25rem * 2));
    /* gutter-smaller */
    margin-inline: auto;
}

.rlm-Container .rlm-Container {
    max-width: none;
}

/* Breakpoint : sm (>= 640px) */
@media (min-width: 640px) {

    /* Valeur par défaut : container "large" */
    .rlm-Container {
        max-width: min(calc(100% - (2rem * 2)),
                /* gutter */
                1600px
                /* large */
            );
    }

    /* is-full */
    .rlm-Container.is-full {
        max-width: min(calc(100% - (2rem * 2)),
                calc(100vw + (2rem * 2)));
    }

    /* is-large */
    .rlm-Container.is-large {
        max-width: min(calc(100% - (2rem * 2)),
                calc(1600px + (2rem * 2)));
    }

    /* is-medium */
    .rlm-Container.is-medium {
        max-width: min(calc(100% - (2rem * 2)),
                calc(1440px + (2rem * 2)));
    }

    /* is-small */
    .rlm-Container.is-small {
        max-width: min(calc(100% - (2rem * 2)),
                calc(1200px + (2rem * 2)));
    }
}

@media screen and (max-width: 800px) {

    .rlm-Index {

        .rlm-Index-container {
            display: flex;
            flex-direction: column-reverse;
        }

        .rlm-Index-content {
            padding: 1rem 2rem;
        }

        svg {
            scale: .75;
        }
    }
}