/* Accueil : les photographies du village occupent tout le héros. */
.village-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Une largeur explicite empêche le ratio + min-height d'élargir le bloc. */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    min-height: 380px;
    margin-bottom: 2.75rem;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-brand);
    color: var(--c-on-brand);
    box-shadow: var(--shadow-card);
}
.index2-page .village-hero-poster,
.village-hero-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.village-hero-video { opacity: 0; }
.village-hero.has-video .village-hero-video { opacity: 1; }
.village-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(13 24 20 / 0.72), transparent 45%),
                linear-gradient(0deg, rgb(13 24 20 / 0.88), rgb(13 24 20 / 0.42) 35%, transparent 68%);
}
.village-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.village-hero-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgb(0 0 0 / 0.8);
}
.village-hero-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 96px;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: var(--radius-pill);
    background: rgb(13 24 20 / 0.72);
    color: #fff;
    font: 600 0.78rem var(--font-body);
    cursor: pointer;
}
.village-hero-toggle:hover { background: var(--c-brand); }
.village-hero-toggle[hidden],
.village-hero-pause,
.village-hero.is-playing .village-hero-play { display: none; }
.village-hero.is-playing .village-hero-pause { display: block; }
.village-hero-content { padding-top: 4rem; }
.village-hero-content h2 {
    margin: 0 0 1.4rem;
    color: #fff;
    font: 500 clamp(2.3rem, 4vw, 3.8rem) / 1.06 var(--font-display);
    font-variation-settings: 'opsz' 96;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 18px rgb(0 0 0 / 0.2);
}
.village-hero-content h2 span {
    display: block;
    margin-top: 0.3em;
    font-size: 0.57em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.015em;
}
.village-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 44px;
    border-bottom: 1px solid rgb(255 255 255 / 0.6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.village-hero-link:hover { color: var(--c-sun); border-color: var(--c-sun); }
.index2-page .village-hero :focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.a11y-contrast-high .village-hero { border: 2px solid #000; }
.a11y-contrast-high .village-hero-content { background: #000; padding: 1rem; margin: 3rem -0.5rem -0.5rem; }
@media (max-width: 768px) {
    .village-hero { border-radius: var(--radius-md); }
}
@media (max-width: 480px) {
    .village-hero { aspect-ratio: 4 / 5; min-height: 360px; padding: 1.35rem; }
    .village-hero-content h2 { font-size: clamp(2rem, 9vw, 2.7rem); }
}
@media print {
    .village-hero { min-height: 0; aspect-ratio: auto; padding: 1.5rem; border: 1px solid #ccc; background: #fff; box-shadow: none; }
    .village-hero-poster, .village-hero-video, .village-hero-toggle, .village-hero::before { display: none; }
    .village-hero-content { padding-top: 1rem; }
    .village-hero-kicker, .village-hero-content h2, .village-hero-link { color: #000; text-shadow: none; }
}
