.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* justify-content is dynamic */
    /* min-height is dynamic */
    background-size: cover;
    background-position: var(--hero-bg-x, 50%) var(--hero-bg-y, 50%);
}

.hero-section.has-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content-cont {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* align-items dynamic */
}

.hero-content-wrapper {
    width: 100%;
    z-index: 3;
    /* max-width and text-align dynamic */
}

/* Les titres de hero doivent rester éditoriaux, jamais monumentaux. Cette
   borne protège tous les thèmes JSONPress, même lorsqu'un thème historique
   définit une échelle beaucoup plus agressive. */
.pb-type-hero .hero-content-wrapper > h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
}

.pb-type-hero .hero-content-wrapper > h1.hero-title--compact {
    font-size: clamp(1.65rem, 2.5vw, 2.1rem) !important;
}

.pb-type-hero .hero-content-wrapper > h1.hero-title--large {
    font-size: clamp(2.15rem, 4vw, 3rem) !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* justify-content dynamic */
}

/* Breadcrumb specifics if needed */
.hero-breadcrumb {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
    color: inherit;
}

@media (max-width: 768px) {
    .pb-type-hero .hero-section {
        background-position:
            var(--hero-bg-x-mobile, var(--hero-bg-x, 50%))
            var(--hero-bg-y-mobile, var(--hero-bg-y, 50%));
    }

    .pb-type-hero .hero-content-wrapper > h1 {
        font-size: clamp(1.7rem, 6.5vw, 2rem) !important;
        line-height: 1.14 !important;
    }

    .pb-type-hero .hero-content-wrapper > h1.hero-title--compact {
        font-size: clamp(1.55rem, 6vw, 1.8rem) !important;
    }

    .pb-type-hero .hero-content-wrapper > h1.hero-title--large {
        font-size: clamp(1.9rem, 7vw, 2rem) !important;
    }
}
