/* assets/styles/front/16-banners-foundation.css */

.front-banners-page {
    --codex-ink: #080514;
    --codex-ink-soft: #120a26;
    --codex-panel: #17102f;
    --codex-cyan: #42f5e6;
    --codex-magenta: #f23bd2;
    --codex-gold: #f4c95d;
    --codex-paper: #f7f4ff;
    --codex-muted: #a79dbf;
    --codex-line: rgb(167 157 191 / 20%);
    --codex-font-body:
        "Space Grotesk",
        Arial,
        sans-serif;
    --codex-font-display:
        "Barlow Condensed",
        Impact,
        sans-serif;

    /*
     * Remplacer cette URL par exemple par :
     * url("/assets/img/banner/banner-page-header.webp")
     */
    --banners-hero-image:
        url(
            "https://placehold.co/1920x1080/17102f/a79dbf?text=Banners"
        );

    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 74% 4%,
            rgb(66 245 230 / 8%),
            transparent 25rem
        ),
        radial-gradient(
            circle at 14% 30%,
            rgb(242 59 210 / 8%),
            transparent 28rem
        ),
        var(--codex-ink);
    color: var(--codex-paper);
    font-family: var(--codex-font-body);
}

.front-banners-page .app-shell {
    min-height: 100svh;
}

.front-banners-page .site-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    background-image:
        linear-gradient(
            rgb(66 245 230 / 2.5%) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgb(66 245 230 / 2.5%) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
}

.banners-page {
    min-width: 0;
    flex: 1;
}

/* Page hero */

.banners-hero {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgb(242 59 210 / 30%);
    overflow: hidden;
    background: var(--codex-ink);
    isolation: isolate;
}

.banners-hero__frame {
    position: relative;
    display: flex;
    width: min(100%, 1920px);
    min-height: 21.5rem;
    margin: 0 auto;
    overflow: hidden;
    align-items: center;
    isolation: isolate;
}

.banners-hero__frame::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    background-image: var(--banners-hero-image);
    background-position: 68% center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    opacity: 0.46;
    transform: scale(1.01);
}

.banners-hero__frame::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgb(8 5 20 / 98%) 0%,
            rgb(8 5 20 / 91%) 33%,
            rgb(8 5 20 / 72%) 60%,
            rgb(8 5 20 / 48%) 100%
        ),
        linear-gradient(
            180deg,
            rgb(8 5 20 / 32%) 0%,
            rgb(8 5 20 / 5%) 48%,
            rgb(8 5 20 / 78%) 100%
        );
    content: "";
}

.banners-hero__orbit {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: -8.5rem;
    width: 21rem;
    height: 21rem;
    border: 1px solid rgb(242 59 210 / 16%);
    border-radius: 50%;
    pointer-events: none;
    transform: translateY(-50%);
    box-shadow:
        0 0 0 2.5rem
        rgb(66 245 230 / 2.5%),
        0 0 0 5.75rem
        rgb(242 59 210 / 2.5%);
}

.banners-hero__content {
    position: relative;
    z-index: 1;
    width: min(
        calc(100% - 2.25rem),
        108rem
    );
    margin: 0 auto;
    padding: 3.75rem 0;
}

.banners-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 1.1rem;
    align-items: center;
    gap: 0.55rem;
    color: var(--codex-magenta);
    font-family: var(--codex-font-display);
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.banners-hero__eyebrow::after {
    width: 2.9rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--codex-magenta),
        transparent
    );
    content: "";
}

.banners-hero__eyebrow > span:first-child {
    color: var(--codex-magenta);
    font-size: 0.95rem;
}

.banners-hero h1 {
    max-width: 46rem;
    margin: 0;
    color: var(--codex-paper);
    font-family: var(--codex-font-display);
    font-size: clamp(
        3.75rem,
        18vw,
        5.75rem
    );
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.84;
    text-shadow:
        0 0.35rem 1.8rem
        rgb(8 5 20 / 80%);
    text-transform: uppercase;
}

.banners-hero__introduction {
    max-width: 39rem;
    margin: 1.4rem 0 0;
    color: var(--codex-muted);
    font-size: 0.82rem;
    line-height: 1.75;
    text-shadow:
        0 0.2rem 1rem
        rgb(8 5 20 / 90%);
}

@media (min-width: 48rem) {
    .banners-hero__frame {
        min-height: 24rem;
    }

    .banners-hero__frame::before {
        background-position: 70% center;
        opacity: 0.54;
    }

    .banners-hero__frame::after {
        background:
            linear-gradient(
                90deg,
                rgb(8 5 20 / 98%) 0%,
                rgb(8 5 20 / 89%) 31%,
                rgb(8 5 20 / 54%) 62%,
                rgb(8 5 20 / 30%) 100%
            ),
            linear-gradient(
                180deg,
                rgb(8 5 20 / 24%) 0%,
                rgb(8 5 20 / 4%) 50%,
                rgb(8 5 20 / 72%) 100%
            );
    }

    .banners-hero__content {
        width: min(
            calc(100% - 8vw),
            108rem
        );
        padding: 5.25rem 0;
    }

    .banners-hero__eyebrow {
        font-size: 0.9rem;
    }

    .banners-hero h1 {
        font-size: clamp(
            5.5rem,
            10vw,
            7.5rem
        );
    }

    .banners-hero__introduction {
        font-size: 0.9rem;
    }
}

@media (min-width: 75rem) {
    .banners-hero__frame {
        min-height: 26.25rem;
    }

    .banners-hero__frame::before {
        background-position: 74% center;
        opacity: 0.58;
    }

    .banners-hero__content {
        padding:
            5.75rem
            0
            6.25rem;
    }

    .banners-hero h1 {
        font-size: 7.75rem;
    }

    .banners-hero__introduction {
        max-width: 44rem;
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banners-hero__frame::before {
        transform: none;
    }
}