/**
 * Hero banner intro — plein écran, texte centré.
 */

.intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(3rem, 10vh, 7rem) 2rem;
    background-color: var(--color-primary);
    overflow: hidden;
}

.intro__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.intro--parallax .intro__media {
    top: -12%;
    height: 124%;
    --intro-parallax-y: 0px;
    transform: translate3d(0, var(--intro-parallax-y), 0);
    will-change: transform;
}

.intro__poster,
.intro__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.intro__video {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.intro--video-playing .intro__video {
    opacity: 1;
}

.intro__logo {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Verre dépoli : le masque reprend la forme du logo, le flou s’applique à la photo derrière */
.intro__logo-glass {
    width: min(88vw, 540px);
    aspect-ratio: 541.482 / 345.503;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-mask-image: var(--intro-logo-url);
    mask-image: var(--intro-logo-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.intro--has-bg::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: min(45%, 420px);
    background: linear-gradient(180deg, rgb(0 0 0 / 0.42) 0%, rgb(0 0 0 / 0) 100%);
    pointer-events: none;
}

.intro__breadcrumb {
    position: absolute;
    top: calc(var(--header-height) + 1.25rem);
    left: 0;
    right: 0;
    z-index: 4;
    width: 100%;
    max-width: calc(1250px + 4rem);
    margin-inline: auto;
    padding-inline: 2rem;
    box-sizing: border-box;
    text-align: left;
}

.intro__breadcrumb .breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-base);
    font-size: calc(var(--base) - 2px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-light);
}

.intro__breadcrumb .breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.intro__breadcrumb .breadcrumb__item:not(:last-child)::after {
    content: ">";
    margin: 0 .2rem;
    color: var(--color-light);
    font-weight: 400;
    opacity: 0.85;
}

.intro__breadcrumb .breadcrumb__link,
.intro__breadcrumb .breadcrumb__text {
    color: var(--color-light);
    text-decoration: none;
    text-shadow: 0 1px 6px rgb(0 0 0 / 0.35);
}

.intro__breadcrumb .breadcrumb__link:hover,
.intro__breadcrumb .breadcrumb__link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.intro__breadcrumb .breadcrumb__item--current .breadcrumb__text {
    font-weight: 500;
    opacity: 0.92;
}

.intro__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: calc(900px + 4rem);
    margin: 0 auto;
    text-align: center;
}

.intro__entrance {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.85s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.85s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: var(--intro-entrance-delay, 0ms);
}

.intro__logo-glass.intro__entrance {
    transform: scale(0.96);
}

.intro.intro--entered .intro__entrance {
    opacity: 1;
    transform: translateY(0);
}

.intro.intro--entered .intro__logo-glass.intro__entrance {
    transform: scale(1);
}

.intro__heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.intro__title {
    display: block;
    margin: 0 0 5px;
    font-size: var(--title-xl);
    font-weight: 300;
    line-height: 1.15;
    color: var(--intro-content-color, var(--color-light));
}

.intro__subtitle {
    display: block;
    margin: 0;
    font-size: var(--subtitle-xl);
    line-height: 1.4;
    color: var(--intro-content-color, var(--color-light));
    font-style: italic;
    font-family: var(--font-main);
}

.intro--has-shadow .intro__title,
.intro--has-shadow .intro__subtitle {
    text-shadow: 3px 3px 2px #000;
}

.intro:not(.intro--has-bg) .intro__title,
.intro:not(.intro--has-bg) .intro__subtitle {
    color: var(--intro-content-color, var(--color-light));
}

.intro img {
    height: 100%;
    object-fit: cover;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .intro__logo-glass {
        background-color: rgba(255, 255, 255, 0.18);
    }
}

@media screen and (max-width: 767px) {
    .intro {
        min-height: 85vh;
        min-height: 85svh;
        padding: 4rem 1.25rem;
    }

    .intro__breadcrumb {
        top: calc(var(--header-height) + 0.75rem);
    }

    .intro__logo-glass {
        width: min(92vw, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro__entrance {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .intro--parallax .intro__media {
        top: 0;
        height: 100%;
        transform: none;
        will-change: auto;
    }
}