/* Héros vidéo de la page des lampes montagne (brouillon) : « la nuit tombe, la montagne
   s'allume ». Film 16:9 ; la lampe et le sommet sont vers 66-68 % de la largeur, la
   colonne de texte occupe la gauche (oreiller / ciel), voilée d'un dégradé sombre.
   Téléphone : la vidéo en bandeau au-dessus, le texte en dessous sur fond nuit. */

.lh-hero {
    position: relative;
    overflow: hidden;
    background: #120d09;
    color: #fff;
    min-height: 520px;
    height: min(82vh, 860px);
    height: min(82svh, 860px);
    display: flex;
    align-items: center;
}

.lh-hero__media {
    position: absolute;
    inset: 0;
}
.lh-hero__still,
.lh-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 50%;
    display: block;
}
.lh-hero__video { z-index: 1; background: transparent; }

/* Voile : lisibilité du texte à gauche, et de la légende en bas. */
.lh-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(14, 10, 6, .72) 0%, rgba(14, 10, 6, .5) 30%, rgba(14, 10, 6, .12) 52%, rgba(14, 10, 6, 0) 64%),
        linear-gradient(0deg, rgba(14, 10, 6, .55) 0%, rgba(14, 10, 6, 0) 22%);
}

.lh-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    pointer-events: none;          /* les clics hors du texte vont à l'image (→ fiche de la lampe) */
}
.lh-hero__body { max-width: 520px; pointer-events: auto; }

/* Toute l'image du héros mène à la fiche de la lampe du film en cours. */
.lh-hero__media-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.lh-hero__breadcrumb {
    font-size: .85rem;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 18px;
}
.lh-hero__breadcrumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.lh-hero__breadcrumb a:hover { color: #fff; text-decoration: underline; }

.lh-hero__eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #F2C98A;
    margin-bottom: 14px;
}
.lh-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.lh-hero__title em { font-style: italic; color: #F6D7A6; }
.lh-hero__sub {
    font-size: 1.08rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 26px;
    max-width: 470px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.lh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lh-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    background: rgba(255, 255, 255, .06);
    transition: border-color .25s, background .25s, transform .25s;
}
.lh-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* Légende : la lampe du film, lien vers sa fiche, crédit des données. */
.lh-hero__caption {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 18px;
    pointer-events: none;
}
.lh-hero__caption .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.lh-hero__lamp {
    pointer-events: auto;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .86);
    opacity: .75;
    transition: opacity .6s;
}
.lh-hero.is-ended .lh-hero__lamp { opacity: 1; }
.lh-hero__lamp strong { color: #fff; font-weight: 700; }
.lh-hero__lamp a {
    color: #F6D7A6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(246, 215, 166, .45);
}
.lh-hero__lamp a:hover { color: #fff; border-bottom-color: #fff; }
.lh-hero__credit {
    display: block;
    width: 100%;
    font-size: .72rem;
    color: rgba(255, 255, 255, .6);
}

.lh-hero__toggle {
    pointer-events: auto;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(14, 10, 6, .45);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .25s, border-color .25s;
}
.lh-hero__toggle:hover { background: rgba(14, 10, 6, .7); border-color: #fff; }

/* Sélecteur discret des autres sommets (vignettes, construit par lampes-hero.js). */
.lh-hero__picker {
    pointer-events: auto;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    opacity: .72;
    transition: opacity .3s;
}
.lh-hero__picker:hover,
.lh-hero__picker:focus-within { opacity: 1; }
.lh-hero__pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .72);
    font: inherit;
    cursor: pointer;
}
.lh-hero__pick img {
    display: block;
    width: 72px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    opacity: .7;
    transition: opacity .25s, border-color .25s, transform .25s;
}
.lh-hero__pick:hover img { opacity: 1; transform: translateY(-2px); }
.lh-hero__pick.is-active img { opacity: 1; border-color: #F6D7A6; box-shadow: 0 0 0 1px #F6D7A6; }
.lh-hero__pick-name {
    max-width: 84px;
    font-size: .68rem;
    line-height: 1.15;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lh-hero__pick.is-active .lh-hero__pick-name { color: #F6D7A6; }
.lh-hero__pick:focus-visible { outline: 2px solid #F6D7A6; outline-offset: 3px; border-radius: 6px; }
.lh-hero__toggle:focus-visible,
.lh-hero__lamp a:focus-visible,
.lh-btn-ghost:focus-visible { outline: 2px solid #F6D7A6; outline-offset: 3px; }

/* Tablette : texte un peu plus étroit, voile plus large. */
@media (max-width: 1024px) {
    .lh-hero__body { max-width: 440px; }
    .lh-hero__still, .lh-hero__video { object-position: 70% 50%; }
}

/* Téléphone : vidéo en bandeau (lampe entière visible), texte dessous sur fond nuit. */
@media (max-width: 760px) {
    .lh-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 0;
    }
    .lh-hero__media { order: 1; }
    .lh-hero__caption { order: 2; }
    .lh-hero__inner { order: 3; }
    .lh-hero__media {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .lh-hero__still, .lh-hero__video { object-position: 76% 50%; }
    .lh-hero__media::after {
        background: linear-gradient(0deg, #120d09 0%, rgba(18, 13, 9, 0) 26%);
    }
    .lh-hero__inner { padding-top: 4px; padding-bottom: 28px; }
    .lh-hero__body { max-width: none; }
    .lh-hero__breadcrumb { margin-bottom: 12px; }
    .lh-hero__title { font-size: 2rem; }
    .lh-hero__sub { font-size: 1rem; margin-bottom: 20px; }
    .lh-hero__actions .btn, .lh-hero__actions .lh-btn-ghost { flex: 1 1 auto; justify-content: center; }
    /* La légende passe sous la vidéo (en surimpression elle cachait le socle de la lampe). */
    .lh-hero__caption {
        position: static;
        padding: 6px 0 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        margin-bottom: 18px;
    }
    .lh-hero__caption .container { width: 100%; align-items: center; flex-wrap: wrap; }
    .lh-hero__lamp { font-size: .88rem; opacity: 1; flex: 1 1 0; min-width: 0; }
    .lh-hero__toggle { width: 38px; height: 38px; }
    /* les vignettes passent sous la légende, en bande qui défile */
    .lh-hero__picker {
        order: 3;
        width: 100%;
        margin-left: 0;
        gap: 10px;
        padding: 12px 0 2px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
    }
    .lh-hero__picker::-webkit-scrollbar { display: none; }
    .lh-hero__pick img { width: 84px; height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
    .lh-btn-ghost, .lh-hero__lamp { transition: none; }
}

/* ===== Sous-titres sur le film, téléphone seulement (07/11/2026, js : SUB_PLAN) ===== */
.lh-hero__subs, .lh-hero__credit-more { display: none; }
@media (max-width: 760px) {
    .lh-hero__subs {
        display: block;
        position: absolute;
        z-index: 3;
        left: 0;
        right: 0;
        top: 0;
        height: 46%;
        pointer-events: none;
        text-align: center;
        background: linear-gradient(180deg, rgba(10, 7, 4, .55) 0%, rgba(10, 7, 4, .28) 55%, rgba(10, 7, 4, 0) 100%);
    }
    .lh-sub {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 16px;
        margin: 0;
        opacity: 0;
        font-family: Georgia, 'Playfair Display', 'Times New Roman', serif;
        line-height: 1.25;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 18px rgba(0, 0, 0, .45);
        will-change: opacity, transform;
    }
    .lh-sub--a { font-style: italic; font-size: 1.32rem; color: #fff; }
    .lh-sub--b { font-style: italic; font-size: 1.32rem; color: #F6E3C2; }
    .lh-sub--c b { display: block; font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: .2px; }
    .lh-sub--c i { display: block; margin-top: 4px; font-size: 1.02rem; color: #F6E3C2; }
    /* Crédit des données : petit, deux lignes, « Sources » pour tout lire */
    .lh-hero__credit {
        font-size: 11px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .lh-hero__credit.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
    .lh-hero__credit-more[hidden] { display: none; }
    .lh-hero__credit-more {
        display: inline-block;
        padding: 0;
        border: 0;
        background: none;
        color: rgba(246, 215, 166, .85);
        font: inherit;
        font-size: 11px;
        text-decoration: underline;
        cursor: pointer;
        pointer-events: auto;
    }
}
