/* Compact archive headings and one shared catalogue toolbar. */
.section_template > .grid_template {
    width: 100% !important;
    max-width: 1280px !important;
    box-sizing: border-box;
    margin: 0 auto !important;
    padding: 0 24px !important;
    gap: 20px !important;
    align-items: stretch;
}
.section_template > .grid_template > * { min-width: 0; }
.lp_pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    margin: 32px 24px 48px;
    padding-top: 24px;
    border-top: 1px solid #30333c;
    font: 500 13px/1.4 var(--font-body, Inter, sans-serif);
}
.lp_pagination_status { color: #aeb2bf; white-space: nowrap; }
.lp_pagination_controls, .lp_pagination_pages { display: flex; align-items: center; gap: 6px; }
.lp_pagination_controls { gap: 12px; }
.lp_pagination a, .lp_pagination [aria-current] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #d9dce4;
    text-decoration: none;
    transition: background-color 150ms, border-color 150ms;
}
.lp_pagination a:hover { background: #272a33; border-color: #424754; color: #fff; }
.lp_pagination a:focus-visible { outline: 2px solid #f35b65; outline-offset: 3px; }
.lp_pagination [aria-current] { background: #d62b38; color: #fff; font-weight: 700; }
.lp_pagination .lp_pagination_step { gap: 8px; border-color: #393d47; }
.lp_pagination_gap { padding: 0 3px; color: #9297a5; }
@media (max-width: 640px) {
    .section_template > .grid_template { padding: 0 16px !important; gap: 16px !important; }
    .lp_pagination { margin: 24px 16px 32px; padding-top: 20px; flex-direction: column; gap: 12px; }
    .lp_pagination_controls { gap: 6px; }
    .lp_pagination_pages { gap: 3px; }
    .lp_pagination a, .lp_pagination [aria-current] { min-width: 36px; height: 42px; padding: 0 8px; }
    .lp_pagination .lp_pagination_step { min-width: 42px; }
    .lp_pagination_step > span:not([aria-hidden]) { display: none; }
    .lp_pagination .lp_pagination_neighbor { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp_pagination a { transition: none; } }
.section_template > .archive_hero {
    --lp-header-art: url('../img/catalogue/parks.webp');
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 160px;
    box-sizing: border-box;
    padding: 44px 24px 32px;
    text-align: left;
    background-color: #13151a;
    background-image: none !important;
}
.section_template > .archive_hero::before,
.section_template > .archive_hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.section_template > .archive_hero::before {
    left: auto;
    width: min(100%, clamp(630px, 66vw, 840px));
    background-image: var(--lp-header-art);
    background-repeat: no-repeat;
    background-size: auto clamp(210px, 22vw, 280px);
    background-position: right 46%;
    mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.section_template > .archive_hero::after {
    background: linear-gradient(90deg, #13151a 0%, rgb(19 21 26 / 94%) 24%, rgb(19 21 26 / 35%) 58%, rgb(19 21 26 / 4%) 100%), linear-gradient(0deg, #13151a 0%, rgb(19 21 26 / 0%) 38%);
}
.section_template > .archive_hero_attractions_single { --lp-header-art: url('../img/catalogue/rides.webp'); }
.section_template > .archive_hero_actualites { --lp-header-art: url('../img/catalogue/news.webp'); }
.section_template > .archive_hero_aquatiques { --lp-header-art: url('../img/catalogue/water.webp'); }
.section_template > .archive_hero_evenement { --lp-header-art: url('../img/catalogue/events.webp'); }
.section_template > .archive_hero_constructeurs,
.section_template > .archive_hero_projet { --lp-header-art: url('../img/catalogue/engineering.webp'); }
.section_template > .archive_hero .archive_hero_content {
    position: relative;
    max-width: none;
    align-items: flex-start;
    gap: 8px;
}
.section_template > .archive_hero .archive_hero_title {
    font-size: clamp(28px, 3vw, 40px) !important;
    padding-bottom: 0;
}
.section_template > .archive_hero .archive_hero_subtitle {
    color: #b5b7c0;
    padding-bottom: 0;
    font-size: 14px;
}
.section_template > .archive_hero .archive_search {
    max-width: 600px;
    border-radius: 10px;
}
.lp_catalogue_filters {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #f5f5f7;
}
.lp_catalogue_filters [hidden] { display: none !important; }
.lp_catalogue_search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 320px;
    max-width: 600px;
    min-width: 0;
    height: 48px;
    padding-left: 16px;
    background: #1c1e26;
    border: 1px solid #3b3e49;
    border-radius: 10px;
}
.lp_catalogue_search > svg { flex: none; color: #adb0bc; }
.lp_catalogue_search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    color: inherit;
}
.lp_catalogue_search input::placeholder,
.lp_country_search input::placeholder { color: #adb0bc; opacity: 1; }
.lp_catalogue_search button {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.lp_country_filter { position: relative; flex: 0 1 224px; min-width: 180px; }
.lp_country_filter summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #3b3e49;
    border-radius: 10px;
    background: #1c1e26;
    cursor: pointer;
    list-style: none;
}
.lp_country_filter summary::-webkit-details-marker { display: none; }
.lp_country_filter summary > svg { flex: none; }
.lp_country_filter summary > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp_country_chevron { color: #adb0bc; }
.lp_country_filter[open] .lp_country_chevron { transform: rotate(180deg); }
.lp_country_filter[open] summary { border-color: #b5b7c0; }
.lp_country_panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    width: 336px;
    max-width: calc(100vw - 48px);
    overflow: hidden;
    border: 1px solid #454853;
    border-radius: 12px;
    background: #1c1e26;
    box-shadow: 0 12px 36px rgb(0 0 0 / 24%);
}
.lp_country_search { padding: 12px; }
.lp_country_search input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #454853;
    border-radius: 6px;
    background: #13151a;
    color: #f5f5f7;
    font: inherit;
}
.lp_country_options {
    min-width: 0;
    max-height: min(300px, 40vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    scrollbar-width: thin;
    scrollbar-color: #626571 #1c1e26;
}
.lp_country_option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}
.lp_country_option:hover, .lp_country_option:focus-within { background: #2b2e38; }
.lp_country_option input[type="checkbox"] { appearance: auto; flex: none; width: 16px; height: 16px; margin: 0; accent-color: #e12523; }
.lp_country_option img { flex: none; width: 18px !important; height: 18px !important; margin: 0 !important; border-radius: 50% !important; }
.lp_country_option span { flex: 1; }
.lp_country_option small { color: #adb0bc; font-size: 12px; font-variant-numeric: tabular-nums; }
.lp_country_no_match { padding: 16px 8px !important; color: #b5b7c0; }
.lp_country_actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-top: 1px solid #3b3e49; }
.lp_country_actions button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
.lp_country_clear { color: #f5f5f7; background: transparent; }
.lp_country_clear:disabled { opacity: .45; cursor: default; }
.lp_country_apply { margin-left: auto; background: #c52120; color: #f5f5f7; font-weight: 600 !important; }
.lp_country_apply:hover { background: #aa1c1b; }
.lp_catalogue_reset { display: inline-flex; align-items: center; min-height: 44px; color: #b5b7c0; text-decoration: underline; text-underline-offset: 4px; }
.lp_catalogue_reset:hover { color: #f5f5f7; }
.lp_catalogue_search:focus-within { border-color: #c8cad2; }
.lp_catalogue_filters :is(button, summary, a, input):focus-visible { outline: 2px solid #f5f5f7; outline-offset: 3px; }
.lp_catalogue_search input:focus-visible { outline: 0; }
.lp_catalogue_sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lp_catalogue_empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; }
.lp_catalogue_empty h2 { font-size: 24px; color: #f5f5f7; }
.lp_catalogue_empty p { color: #b5b7c0; }
.lp_catalogue_empty a { color: #f5f5f7; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
    .section_template > .archive_hero { min-height: 144px; padding: 28px 16px 24px; }
    .section_template > .archive_hero::before { background-size: auto 180px; background-position: right center; }
    .section_template > .archive_hero::after { background: linear-gradient(90deg, rgb(19 21 26 / 92%), rgb(19 21 26 / 40%)), linear-gradient(0deg, #13151a, rgb(19 21 26 / 0%) 65%); }
    .lp_catalogue_filters { flex-wrap: wrap; gap: 8px 12px; padding: 0 16px; margin-bottom: 20px; }
    .lp_catalogue_search { flex-basis: 100%; max-width: none; }
    .lp_catalogue_search input[type="search"], .lp_country_search input[type="search"] { font-size: 16px; }
    .lp_country_filter { flex: 1 1 180px; }
    .lp_country_panel { left: 0; right: auto; width: min(336px, calc(100vw - 64px)); max-width: calc(100vw - 64px); }
    .lp_catalogue_reset { padding: 0 4px; }
}
