/* =========================================
   HERO — FULL SCREEN (topbar → bas écran)
========================================= */

.hero {
    position: relative;
    width: 100%;

    /* FULLSCREEN RÉEL : hauteur visible - topbar */
    height: calc(100svh - var(--topbar-height));
    max-height: calc(100svh - var(--topbar-height));

    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   VIDÉO — FULL SCREEN FLUSH, ZERO FUITE
========================================= */

.hero__video {
    position: absolute;
    top: -1px;
    left: -1px;

    width: calc(100% + 2px);
    height: calc(100% + 2px);

    object-fit: cover;
    object-position: center;

    filter: blur(2px) brightness(0.75);
    z-index: 0;
}


/* =========================================
   OVERLAY
========================================= */

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.35) 40%,
        rgba(0,0,0,0.65) 100%
    );
}


/* =========================================
   CONTENEUR LOGO + TITRE
========================================= */

.hero__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    text-align: center;
}


/* =========================================
   LOGO
========================================= */

.hero__logo {
    width: auto;
    height: auto;

    max-width: 70vw;
    max-height: 45vh;
    opacity: .92;
    pointer-events: none;
}


/* =========================================
   TITRE
========================================= */

.hero__title {
    margin-top: -20px; /* espace stable sous le logo */
    white-space: nowrap;
    display: inline-block;
    text-align: center;

    font-family: "HeroTitle", sans-serif;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
}


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

@media (max-width: 699px) and (orientation: portrait) {

    .hero {
        height: calc(100svh - var(--topbar-height)) !important;
        max-height: calc(100svh - var(--topbar-height)) !important;
        overflow: hidden !important;
    }

    .hero__logo {
        max-width: 80vw;
        max-height: 38vh;
    }

    .hero__title {
       margin-top: 0px;
    }
}


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

@media (max-width: 899px) and (orientation: landscape) {

    .hero {
        height: calc(100svh - var(--topbar-height));
        max-height: calc(100svh - var(--topbar-height));
    }

    .hero__logo {
        max-width: 55vw;
        max-height: 180px;
    }

    .hero__title {
        display: none; /* trop petit écran horizontal */
    }
}


/* =========================================
   TABLETTE (700–1023px)
========================================= */

@media (min-width: 700px) and (max-width: 1023px) {

    .hero__logo {
        max-width: 45vw;
        max-height: 45vh;
    }

    .hero__title {
        
    }
}


/* =========================================
   DESKTOP (≥1024px)
========================================= */

@media (min-width: 1024px) {

    .hero__logo {
        max-width: 40vw;
        max-height: 45vh;
    }

    .hero__title {
        
    }
}
