.vf-home {
    --vf-paper: #f7f6f0;
    --vf-surface: #fff;
    --vf-ink: #192820;
    --vf-muted: #505e55;
    --vf-line: #dbe2d9;
    --vf-soft: #edf0e8;
    --vf-pine: #172e24;
    --vf-green: #3a6b51;
    --vf-amber: #ffc881;
    background: var(--vf-paper);
    color: var(--vf-ink);
    font: 500 16px/1.55 'DM Sans', system-ui, sans-serif;
}

.vf-home .vf-container {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
}

.vf-home main :is(h1, h2, h3, ul, p, dl, dd) { margin: 0; }
.vf-home main a { color: inherit; text-decoration: none; }
.vf-home main a:hover { text-decoration: underline; text-underline-offset: .2em; }
.vf-home main :focus-visible {
    outline: 3px solid var(--vf-green);
    outline-offset: 3px;
}

.vf-home main :is(h1, h2, h3) {
    color: inherit;
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 800;
}

.vf-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--vf-pine);
    color: #fcf9ef;
}
.vf-hero-photo {
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    width: 68%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
}
.vf-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, #172e24 0 32%, #172e24ed 39%, #172e2450 66%, #172e2412);
}
.vf-hero-inner { padding: 52px 0 74px; position: relative; }
.vf-hero-kicker {
    color: var(--vf-amber);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.vf-home .vf-hero h1 {
    margin-block: 9px 16px;
    font-size: clamp(44px, 6.6vw, 88px);
    line-height: .98;
    letter-spacing: -.075em;
    text-wrap: balance;
}
.vf-hero-title-location { font-size: .85em; }
@media (min-width: 992px) {
    .vf-home .vf-hero h1 {
        text-shadow: 0 2px 10px #172e24b3;
    }
}
.vf-hero-definition {
    max-width: 42ch;
    margin: 0 0 16px;
    padding-inline-start: 12px;
    border-inline-start: 2px solid var(--vf-amber);
    color: #f0f3e9;
    font-size: 14px;
    line-height: 1.5;
}
.vf-hero-definition blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
}
.vf-hero-definition figcaption {
    margin-top: 5px;
    color: var(--vf-amber);
    font-size: 12px;
}
.vf-hero .vf-intro { max-width: 33ch; color: #f0f3e9; font-size: clamp(16px, 2vw, 19px); }
.vf-hero .vf-button { margin-top: 22px; }
.vf-home .vf-hero .vf-hero-caption {
    position: absolute;
    right: 0;
    bottom: 38px;
    border-radius: 6px;
    padding: 4px 10px;
    background: #172e24dc;
    font-size: 11px;
    font-weight: 700;
}
.vf-home .vf-hero :focus-visible { outline-color: #fff; }

.vf-home main .vf-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--vf-amber);
    color: var(--vf-ink);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.vf-home main .vf-button:hover { background: #ffd69f; text-decoration: none; }
.vf-main { position: relative; margin-top: -26px; padding-bottom: 52px; }
.vf-search, .vf-home .vf-stats {
    padding: 15px;
    border: 1px solid var(--vf-line);
    border-radius: 14px;
    background: var(--vf-surface);
    box-shadow: 0 8px 25px #1928200d;
}
.vf-search {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 12px;
}
.vf-search h2 {
    grid-column: 1 / -1;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.2;
}
.vf-search label { display: grid; min-width: 0; gap: 5px; margin: 0; font-size: 13px; }
.vf-search :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 11px;
    border: 1px solid var(--vf-line);
    border-radius: 8px;
    background: var(--vf-soft);
    color: var(--vf-ink);
    font: 500 16px/1.2 'DM Sans', system-ui, sans-serif;
}
.vf-search input::placeholder { color: var(--vf-muted); opacity: 1; }
.vf-search-advanced, .vf-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}
.vf-search-advanced { align-self: end; padding-inline: 4px; line-height: 1.25; }

.vf-section { margin-top: clamp(34px, 5vw, 62px); scroll-margin-top: 18px; }
.vf-search + .vf-section { margin-top: clamp(16px, 2vw, 24px); }
.vf-section-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0 20px; margin-bottom: 14px; }
.vf-section h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.14; letter-spacing: -.055em; }
.vf-section-header p { color: var(--vf-muted); font-size: 14px; }
.vf-home main .vf-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding: 0;
    list-style: none;
}
.vf-route {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--vf-line);
    border-radius: 13px;
    background: var(--vf-surface);
}
.vf-home main a.vf-route:hover { text-decoration: none; }
.vf-route:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.vf-route-media {
    position: relative;
    aspect-ratio: 2.15;
    background: #dfe9df;
}
.vf-route-media img, .vf-route-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf-route-media img { object-fit: cover; object-position: center 54%; }
.vf-route-media [hidden] { display: none; }
.vf-route-fallback {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 12px;
    background:
        radial-gradient(ellipse at 15% 120%, #9eb8a9 0 38%, transparent 38.5%),
        radial-gradient(ellipse at 82% 140%, #b7cbbd 0 55%, transparent 55.5%),
        #dfe9df;
    color: #273f32;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.vf-route-fallback .fa { font-size: 22px; }
.vf-route-content { position: relative; padding: 12px 46px 15px 14px; }
.vf-route-content p { color: var(--vf-muted); font-size: 13px; }
.vf-home main .vf-route-content h3 { margin-top: 3px; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.vf-route-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--vf-soft);
    transform: translateY(-50%);
}
.vf-empty, .vf-pages { padding: 15px 0 0; }
.vf-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.vf-pages span { color: var(--vf-muted); font-size: 14px; }

.vf-map-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    padding: clamp(18px, 4vw, 42px);
    border: 1px solid var(--vf-line);
    border-radius: 15px;
    background: var(--vf-soft);
}
.vf-home .vf-map-copy p { margin-block: 12px; color: var(--vf-muted); }
.vf-home .vf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: clamp(24px, 4vw, 36px);
}
.vf-stats > div {
    display: flex;
    flex-direction: column-reverse;
    padding: 8px clamp(2px, 1vw, 10px);
    border: 1px solid var(--vf-line);
    border-radius: 8px;
    background: var(--vf-soft);
    text-align: center;
}
.vf-stats dt { color: var(--vf-muted); font-size: clamp(11px, 2.8vw, 13px); overflow-wrap: anywhere; }
.vf-stats dd { font: 800 25px/1.2 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.vf-map-panel { min-width: 0; }
.vf-map-directory {
    margin-bottom: 10px;
    border: 1px solid var(--vf-line);
    border-radius: 9px;
    background: var(--vf-surface);
}
.vf-map-directory summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}
.vf-map-directory summary::-webkit-details-marker { display: none; }
.vf-map-directory[open] summary i { transform: rotate(180deg); }
.vf-home .vf-map-directory ul {
    max-height: min(300px, 45vh);
    margin: 0;
    padding: 0 8px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    list-style: none;
}
.vf-map-directory li { border-top: 1px solid var(--vf-line); }
.vf-map-directory a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 8px 4px;
    overflow-wrap: anywhere;
    font-weight: 700;
}
.vf-map-directory a span { flex: none; color: var(--vf-muted); font-size: 13px; }
.vf-map-directory a:focus-visible { outline-offset: -2px; }
.vf-map-panel #france-map { width: 100%; height: clamp(255px, 38vw, 420px); }
.vf-map-panel .jvectormap-container { border-radius: 9px; }
.vf-map-panel .jvectormap-region:focus-visible {
    outline: none;
    stroke: var(--vf-pine);
    stroke-width: 2px;
}
.vf-home .jvectormap-tip, .vf-home .jvectormap-zoomin, .vf-home .jvectormap-zoomout {
    background: var(--vf-pine);
    color: #fff;
}
.vf-home .jvectormap-tip { padding: 4px 8px; font-size: 12px; }
.vf-map-legend { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--vf-muted); font-size: 12px; }
.vf-map-legend span { width: 11px; height: 11px; border-radius: 50%; background: var(--vf-green); }

.vf-about-copy {
    margin-top: 15px;
    padding: clamp(18px, 4vw, 42px);
    border: 1px solid var(--vf-line);
    border-radius: 15px;
    background: var(--vf-surface);
}
.vf-home main .vf-about p {
    max-width: 76ch;
    color: var(--vf-muted);
}
.vf-home main .vf-about p + p { margin-top: 14px; }
.vf-home main .vf-about a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.vf-home main .vf-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}
.vf-guide-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    height: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--vf-line);
    border-radius: 8px;
    background: var(--vf-surface);
    font-size: 14px;
    font-weight: 700;
}
@media (max-width: 850px) {
    .vf-search { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
    .vf-search-advanced { grid-column: 1 / -1; min-height: 38px; }
    .vf-home main .vf-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .vf-home .vf-container { width: calc(100% - 32px); }
    .vf-hero-photo { width: 100%; }
    .vf-hero::before { background: linear-gradient(90deg, #172e24f5, #172e24c9 56%, #172e2455); }
    .vf-hero-inner { padding-block: 38px 76px; }
    .vf-home .vf-hero .vf-hero-caption { bottom: 33px; }
    .vf-search, .vf-home .vf-stats { padding: 12px; }
    .vf-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vf-home .vf-stats { grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr) max-content; }
    .vf-search .vf-button { grid-column: 1 / -1; }
    .vf-search-advanced { min-height: 44px; }
    .vf-search + .vf-section .vf-section-header { align-items: start; }
    .vf-home main .vf-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vf-map-section { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-inline: 10px; }
}

@media (max-width: 720px), (pointer: coarse), (max-height: 500px) and (orientation: landscape) {
    .vf-home .vf-map-panel :is(.jvectormap-zoomin, .jvectormap-zoomout) {
        display: grid;
        place-items: center;
        box-sizing: border-box;
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    .vf-home .vf-map-panel .jvectormap-zoomout { top: 60px; }
}

@media (max-width: 430px) {
    .vf-hero-inner { padding-block-start: 8px; }
    .vf-home .vf-hero h1 { font-size: clamp(36px, 11vw, 48px); }
    .vf-search, .vf-home main .vf-route-grid { grid-template-columns: minmax(0, 1fr); }
    .vf-route { flex-direction: row; }
    .vf-route-media { flex: 0 0 92px; min-height: 88px; aspect-ratio: auto; }
    .vf-route-fallback { gap: 4px; padding: 5px; font-size: 11px; line-height: 1.2; }
    .vf-route-content { flex: 1; min-width: 0; padding-inline: 10px 40px; }
    .vf-home main .vf-route-content h3 { font-size: 16px; }
    .vf-route-arrow { right: 8px; }
}
