/*
Theme Name: Halles de Narbonne
Description: Thème enfant de Twenty Twenty-Five pour le site des Halles de Narbonne.
Template: twentytwentyfive
Version: 1.5.59
Text Domain: halles-de-narbonne
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

.page-id-546 .entry-content .wp-block-post-template > .wp-block-post {
    min-width: 0;
    overflow-wrap: anywhere;
}


/* Use the available viewport width while keeping the theme’s responsive gutters. */
.wp-site-blocks > main,
.wp-site-blocks > main > .wp-block-group,
.wp-site-blocks > main .entry-content,
.wp-site-blocks > main h1.wp-block-post-title,
.wp-site-blocks > main .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright)),
.wp-site-blocks > main > .wp-block-query {
    max-width: none;
}

.page-id-1814 .entry-content .hc-intro { padding-inline: clamp(1rem, 3vw, 3rem); }

.wp-site-blocks > main .entry-content {
    overflow-wrap: anywhere;
}

.wp-site-blocks > main .entry-content :where(img, video, iframe) {
    max-width: 100%;
}


/* Home news and opening times. */
.halles-home-news, .halles-hours, .halles-contact {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(1rem, 3vw, 3rem);
}
.halles-home-news .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
    max-width: none;
    padding: 0;
    list-style: none;
}
.halles-home-news .wp-block-post {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 1rem;
    background: #fff;
    border: 1px solid #d9e3db;
    border-radius: .55rem;
    box-shadow: 0 4px 14px rgb(32 60 48 / .09);
    transition: box-shadow .22s, border-color .22s, transform .22s;
}
.halles-home-news .wp-block-post-featured-image { margin: -1rem -1rem .2rem; overflow: hidden; border-radius: .5rem .5rem 0 0; }
.halles-home-news .wp-block-post-title { font-size: clamp(1.12rem, 1.5vw, 1.4rem); margin: 0; line-height: 1.25; }
.halles-home-news .wp-block-post-date { margin: 0; color: #405b4b; font-size: .95rem; }
.halles-home-news .wp-block-post-excerpt { display:flex; flex:1; flex-direction:column; gap:.55rem; margin:0; font-size:.95rem; line-height:1.45; }
.halles-home-news .wp-block-post-excerpt > p { margin:0; }
.halles-home-news .wp-block-post-excerpt .wp-block-post-excerpt__more-text { margin-top:auto; }
.halles-home-news .wp-block-post-excerpt__more-link { color: #294b38; font-weight: 700; }
.halles-hours { background: #eff5ef; color: #223d30; text-align: center; }
.halles-hours .halles-hour-grid, .halles-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
    margin: 0 auto;
    max-width: 75rem;
}
.halles-hours .halles-hour-card, .halles-contact-card {
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: .65rem;
    border: 1px solid #c9d9ce;
    background: #fff;
}
.halles-hours .halles-hour-card:first-child { border-top: .45rem solid #b47736; }
.halles-hours .halles-hour-card:last-child { border-top: .45rem solid #365647; }
.halles-hours .halles-hour-card h3 { color: #223d30; margin: 0 0 .6rem; font-size: 1.3rem; }
.halles-hours .halles-hour-time { color: #223d30; font-size: clamp(1.85rem, 4vw, 3.4rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; margin: 0; }
.halles-hours .halles-hour-card p:last-child { margin-bottom: 0; }
.halles-hours .halles-hours-note { margin: 1rem auto 0; }
.halles-contact { padding-top: 0; }
.halles-contact-grid { max-width: none; }
.halles-contact-card { background: #f2f6f2; }
.halles-contact-card h3 { font-size: 1.25rem; }
.halles-contact .halles-contact-form { max-width: 52rem; margin: 2rem auto 0; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #c9d9ce; border-radius: .65rem; }


/* Les Halles en images */
.halles-vitrines {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(.75rem, 1.5vw, 1.4rem);
    padding: clamp(1rem, 3vw, 3rem);
    background: #eef3ed;
    box-sizing: border-box;
}
.halles-vitrine {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #294538;
    border: 1px solid #896936;
    border-radius: .65rem;
    box-shadow: 0 6px 16px rgb(26 54 39 / .13);
}
.halles-vitrine .wp-block-image { margin: 0; }
.halles-vitrine .wp-block-image img {
    display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
}
.halles-vitrine h3 {
    margin: auto 0 0;
    padding: .8rem .65rem;
    border-top: 2px solid #d8ab64;
    text-align: center;
    font-family: Georgia, serif;
    font-size: clamp(1.05rem, 1.65vw, 1.65rem);
    line-height: 1.25;
}
.halles-vitrine h3 a { color: #fff7e9; text-decoration: none; }
.halles-vitrine h3 a::after { content: ""; position: absolute; inset: 0; }
.halles-vitrine:is(:hover,:focus-within) h3 a { text-decoration: underline; }
.halles-vitrine:focus-within { outline: 3px solid #294538; outline-offset: 3px; }
.halles-album { padding-inline: clamp(1rem, 3vw, 3rem); }
.halles-album .wp-block-gallery { gap: clamp(.65rem, 1.5vw, 1.5rem); }
.halles-album .wp-block-gallery .wp-block-image { border-radius: .5rem; overflow: hidden; }
@media (max-width: 1050px) { .halles-vitrines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .halles-vitrines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Compare the three album layouts. */
.halles-gallery-label {
    margin: 0;
    padding: 1rem clamp(1rem, 3vw, 3rem) .5rem;
    color: #294538;
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
}
.halles-vitrines { align-items: stretch; grid-auto-rows: 1fr; }
.halles-vitrine h3 { min-height: 2.5em; box-sizing: border-box; display: grid; place-items: center; }
.halles-vitrines--mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(8rem, 18vw, 16rem);
    background: #294538;
}
.halles-vitrines--mosaic .halles-vitrine { border-color: #dfbe88; }
.halles-vitrines--mosaic .halles-vitrine:first-child { grid-area: span 2 / span 2; }
.halles-vitrines--mosaic .wp-block-image { flex: 1; min-height: 0; }
.halles-vitrines--mosaic .wp-block-image img { height: 100%; aspect-ratio: auto; }
.halles-vitrines--mosaic .halles-vitrine h3 { min-height: 0; }
.halles-vitrines--postcards { background: #f3eadd; }
.halles-vitrines--postcards .halles-vitrine {
    background: #fffaf0;
    padding: .55rem;
    border-color: #b99869;
    border-radius: .2rem;
}
.halles-vitrines--postcards .halles-vitrine h3 {
    background: transparent;
    border-top: 0;
    border-bottom: 1px solid #b99869;
}
.halles-vitrines--postcards .halles-vitrine h3 a { color: #3e3021; }
.halles-vitrines--postcards .halles-vitrine:last-child img { filter: sepia(.3); }

.halles-hours .halles-hour-grid { grid-auto-rows: 1fr; align-items: stretch; }
.halles-hours .halles-hour-card { box-sizing: border-box; height: 100%; margin: 0; }

body .elementor-79 .elementor-element-598479d,
body .elementor-79 .elementor-element-25ad8fc {
    --gap: clamp(.65rem, 2vw, 1.25rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}
@media (min-width: 768px) {
    body .elementor-79 .elementor-element-598479d.elementor-element { display: grid !important; }
}
@media (max-width: 767px) {
    body .elementor-79 .elementor-element-25ad8fc.elementor-element {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .halles-vitrines--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .halles-vitrines--mosaic .halles-vitrine:first-child { grid-area: span 2 / span 2; }
}
body .elementor-79 :is(.elementor-element-598479d,.elementor-element-25ad8fc) > .e-con {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    transform: none;
}
body .elementor-79 :is(.elementor-element-598479d,.elementor-element-25ad8fc) .elementor-widget-image {
    width: 100%;
    margin: 0;
    transform: none;
}
body .elementor-79 :is(.elementor-element-598479d,.elementor-element-25ad8fc) .elementor-widget-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 455 / 607;
    object-fit: contain;
}
body .elementor-79 .elementor-element-25ad8fc .elementor-widget-image img { aspect-ratio: 1024 / 787; }

body.home #page { overflow-x: clip; }


/* Grid gaps handle spacing between album cards, including the first card. */
.halles-vitrines.is-layout-flow > .halles-vitrine {
    margin-block: 0;
}
.halles-vitrine > figure.wp-block-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin: 0;
    overflow: hidden;
}
.halles-vitrine > figure.wp-block-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.halles-vitrines--mosaic .halles-vitrine > figure.wp-block-image {
    aspect-ratio: auto;
}

/* Restore the space in which Elementor paints the original column hover. */
@media (min-width: 768px) {
    body .elementor-79 .elementor-element-598479d > .e-con {
        min-height: var(--min-height, 0px);
        justify-content: center;
        padding-block: 0;
        padding: var(--padding-top, 0px) var(--padding-right, 0px) var(--padding-bottom, 0px) var(--padding-left, 0px);
    }
}
.elementor-79 .elementor-element-598479d > .elementor-element-595f0bb:focus-within { background-color: #e05050; }
.elementor-79 .elementor-element-598479d > .elementor-element-c3d8895:focus-within { background-color: #ddd05d; }
.elementor-79 .elementor-element-598479d > .elementor-element-d147eec:focus-within { background-color: #008800; }
.elementor-79 .elementor-element-598479d > .elementor-element-d93d3fc:focus-within { background-color: #dd5e28; }


body .elementor-79 .elementor-element-598479d .elementor-widget-image { line-height: 0; }


.elementor-79 :is(.elementor-element-598479d, .elementor-element-25ad8fc) .elementor-widget-image > a[aria-label] {
    display: block;
    position: relative;
}
.elementor-79 a[aria-label="Vos courses aux Halles"] { --guide-tint: #e05050; }
.elementor-79 a[aria-label="Manger aux Halles"] { --guide-tint: #ddd05d; }
.elementor-79 a[aria-label="Animations aux Halles"] { --guide-tint: #008800; }
.elementor-79 a[aria-label="Tout savoir des Halles"] { --guide-tint: #dd5e28; }

.elementor-79 :is(.elementor-element-598479d, .elementor-element-25ad8fc) .elementor-widget-image > a[aria-label]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--guide-tint);
    opacity: 0;
    pointer-events: none;
}
.elementor-79 :is(.elementor-element-598479d, .elementor-element-25ad8fc) .elementor-widget-image > a[aria-label]:focus-visible::after {
    opacity: .16;
}
@media (hover: hover) {
    .elementor-79 :is(.elementor-element-598479d, .elementor-element-25ad8fc) > .e-con:hover .elementor-widget-image > a[aria-label]::after {
        opacity: .16;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .elementor-79 :is(.elementor-element-598479d, .elementor-element-25ad8fc) .elementor-widget-image > a[aria-label]::after {
        transition: opacity .2s ease;
    }
}


/* Shared fixed navigation, transparent only over the home video. */
body { --halles-nav-height: 76px; --halles-nav-green: #223e32; }
body.home #page > #masthead,
body.halles-shared-chrome #masthead {
    position: fixed;
    inset: var(--halles-admin-offset, 0px) 0 auto;
    z-index: 1000;
    margin: 0;
    height: var(--halles-nav-height);
    background: var(--halles-nav-green);
    box-shadow: 0 2px 12px rgb(16 38 26 / .13);
}
body.admin-bar { --halles-admin-offset: 32px; }
body.home #page > #masthead.halles-nav-over-video:not(:has(.main-header-menu-toggle[aria-expanded="true"])) {
    background: transparent;
    box-shadow: none;
}
body.halles-shared-chrome .wp-site-blocks { padding-block-start: var(--halles-nav-height); }
body.halles-shared-chrome .wp-site-blocks > main:has(.entry-content .halles-visit-hero) {
    margin-block-start: .5rem !important;
}
body.halles-shared-chrome .wp-site-blocks > main > .wp-block-group:has(> .entry-content .halles-visit-hero) {
    padding-block-start: 0 !important;
}
body.halles-shared-chrome .wp-site-blocks > main .entry-content:has(.halles-visit-hero) {
    margin-block-start: 0;
}
html { scroll-padding-top: 88px; }
body #masthead :is(.ast-above-header-bar,.ast-primary-header-bar,.main-header-bar-wrap,.ast-above-header-wrap),
body #masthead :is(#ast-hf-menu-1,#ast-hf-mobile-menu) {
    background: transparent;
    border: 0;
    box-shadow: none;
}
body #masthead :is(.ast-above-header-bar,.ast-primary-header-bar) .ast-builder-grid-row {
    min-height: var(--halles-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(.75rem, 2vw, 2.5rem);
}
body #masthead :is(.site-primary-header-wrap,.site-above-header-wrap) {
    max-width: 92rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3.25rem);
}
body #masthead :is(.site-branding,.ast-builder-menu-1,.ast-builder-layout-element) { padding: 0; }
body #masthead .site-logo-img > a.sticky-custom-logo { display: none !important; }
body #masthead .site-logo-img > a.custom-logo-link { display: inline-flex !important; }
body #masthead .site-logo-img > a.custom-logo-link img {
    width: auto;
    height: calc(var(--halles-nav-height) - 14px);
    max-width: 100%;
    object-fit: contain;
}
body #masthead .main-header-menu > li > a.menu-link {
    color: #fff;
    font-family: inherit;
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.25;
    padding: .65rem clamp(.65rem, 1.2vw, 1.4rem);
    background: transparent;
}
body #masthead .main-header-menu > li > a.menu-link:is(:hover,:focus-visible) {
    color: #ffe1a9;
    text-decoration: underline;
    text-underline-offset: .25em;
}
body.home #masthead.halles-nav-over-video .main-header-menu > li > a.menu-link {
    text-shadow: 0 1px 5px rgb(0 0 0 / .85);
}
body #masthead .main-header-menu .sub-menu {
    background: #294538;
    box-shadow: 0 5px 14px rgb(0 0 0 / .17);
}
body #masthead .main-header-menu .sub-menu a { color: #fff; background: transparent; }
body #masthead .main-header-menu .sub-menu a:is(:hover,:focus-visible) { color: #ffe1a9; }
@media (max-width: 921px) {
    body { --halles-nav-height: 66px; }
    body #masthead .main-header-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: .55rem;
        color: #fff;
        background: #294538;
        border: 1px solid rgb(255 255 255 / .55);
    }
    body #masthead .main-header-menu-toggle svg { fill: currentColor; }
    body #masthead .ast-mobile-header-content {
        position: absolute;
        inset: var(--halles-nav-height) 0 auto;
        max-height: calc(100dvh - var(--halles-nav-height) - var(--halles-admin-offset, 0px));
        overflow-y: auto;
        background: var(--halles-nav-green);
    }
    body #masthead .main-header-menu > li > a.menu-link {
        padding: .85rem 1.15rem;
    }
    body #masthead .ast-menu-toggle { color: #fff; }
}
@media (max-width: 782px) {
    body.admin-bar { --halles-admin-offset: 46px; }
}
@media (prefers-reduced-motion: no-preference) {
    body #masthead { transition: background-color .2s ease, box-shadow .2s ease; }
}


@media (max-width: 921px) {
    body #masthead #ast-mobile-header .ast-builder-grid-row {
        height: var(--halles-nav-height);
        min-height: var(--halles-nav-height);
        padding-block: 0;
    }
    body #masthead #ast-mobile-header .site-header-section { align-items: center; }
    body #masthead #ast-mobile-header .main-header-menu-toggle {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        width: 44px;
        padding: 0;
    }
    body #masthead #ast-mobile-header .main-header-menu-toggle svg { width: 22px; height: 22px; }
    body #masthead #ast-mobile-header:has(.main-header-menu-toggle[aria-expanded="true"]) :is(.ast-mobile-header-content, .main-navigation) {
        display: block;
    }
}


@media (max-width: 921px) {
    body #masthead #ast-mobile-header .ast-primary-header-bar {
        display: flex;
        align-items: center;
        height: var(--halles-nav-height);
    }
    body #masthead #ast-mobile-header .site-primary-header-wrap { width: 100%; }
    body #masthead #ast-mobile-header .ast-button-wrap { display: flex; align-items: center; }
}


@media (max-width: 921px) {
    body #masthead #ast-mobile-header .main-header-menu-toggle {
        position: absolute;
        inset: calc((var(--halles-nav-height) - 44px) / 2) clamp(1rem, 4vw, 3.25rem) auto auto;
        margin: 0;
    }
    body #masthead #ast-hf-mobile-menu { display: block; }
}


body #masthead :is(#ast-hf-menu-1, #ast-hf-mobile-menu) .sub-menu {
    box-sizing: border-box;
    background: #fff;
    border: 0;
    border-top: 3px solid #c69b57;
    padding: .65rem 0;
    box-shadow: 0 6px 18px rgb(23 43 34 / .16);
}
body #masthead :is(#ast-hf-menu-1, #ast-hf-mobile-menu) .sub-menu > li > a.menu-link {
    color: #223e32;
    background: transparent;
    border: 0;
    padding: .5rem 1.35rem;
    line-height: 1.4;
    font-size: 1rem;
    text-shadow: none;
    white-space: normal;
}
body #masthead :is(#ast-hf-menu-1, #ast-hf-mobile-menu) .sub-menu > li > a.menu-link:is(:hover, :focus-visible) {
    color: #223e32;
    background: #f1f5ef;
    text-decoration: underline;
    text-underline-offset: .2em;
}
@media (min-width: 922px) {
    body #masthead #ast-hf-menu-1 .sub-menu { width: clamp(14rem, 20vw, 17rem); }
}


@media (max-width: 921px) {
    body #masthead #ast-hf-mobile-menu > .menu-item-has-children { display: flex; flex-wrap: wrap; position: relative; }
    body #masthead #ast-hf-mobile-menu > .menu-item-has-children > a { flex: 1; }
    body #masthead #ast-hf-mobile-menu .ast-menu-toggle {
        display: grid;
        place-items: center;
        position: static;
        width: 48px;
        min-height: 44px;
        background: transparent;
        border: 0;
        color: #fff;
    }
    body #masthead #ast-hf-mobile-menu .ast-menu-toggle svg { fill: currentColor; }
    body #masthead #ast-hf-mobile-menu > .menu-item-has-children > .sub-menu {
        flex: 0 0 100%;
        position: static;
        display: none;
    }
    body #masthead #ast-hf-mobile-menu > .menu-item-has-children:has(> .ast-menu-toggle[aria-expanded="true"]) > .sub-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }
}


@media (min-width: 922px) {
    body #masthead #ast-hf-menu-1 > .menu-item-has-children { position: relative; }
    body #masthead #ast-hf-menu-1 > .menu-item-has-children:is(:hover,:focus-within) > .sub-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        inset: 100% auto auto 0;
        transform: none;
    }
}


#colophon.halles-footer {
    --footer-paper: #f7f0e2;
    --footer-green: #203b30;
    --footer-gold: #e3bf83;
    width: 100%;
    margin: 0;
    background: var(--footer-green);
    color: var(--footer-paper);
    font-size: 1rem;
    line-height: 1.55;
}
#colophon.halles-footer a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
#colophon.halles-footer a:is(:hover,:focus-visible) { color: var(--footer-gold); }
#colophon .halles-footer-hours {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1rem;
    row-gap: .25rem;
    padding: .85rem clamp(1rem, 4vw, 3rem);
    background: var(--footer-paper);
    color: var(--footer-green);
    text-align: center;
    border-top: 3px solid #c69b57;
}
#colophon .halles-footer-grid {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(0,.95fr) minmax(0,1.4fr) minmax(7rem,.6fr);
    align-items: start;
    column-gap: clamp(1.3rem,3vw,3rem);
    row-gap: 2rem;
    max-width: 92rem;
    margin-inline: auto;
    padding: clamp(1.75rem,4vw,3.75rem) clamp(1rem,4vw,3rem);
}
#colophon.halles-footer h2 {
    margin: 0 0 .85rem;
    color: var(--footer-gold);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}
#colophon.halles-footer address { display: grid; gap: .65rem; font-style: normal; margin: 0; }
#colophon .halles-footer-links,
#colophon .halles-footer-submenu { list-style: none; padding: 0; margin: 0; }
#colophon .halles-footer-links > li { margin-block: .25rem; }
#colophon .halles-footer-submenu { padding-inline-start: .85rem; font-size: .93rem; border-inline-start: 1px solid #789282; margin-block: .35rem; }
#colophon .halles-footer-partners { display: block; width: 100%; height: auto; background: #fff; border-radius: .25rem; }
#colophon .halles-footer-award { justify-self: center; align-self: start; width: min(100%, 10.5rem); }
#colophon .halles-footer-award img { display: block; width: 100%; height: auto; }
#colophon .halles-footer-credit {
    padding: .85rem 1rem;
    border-top: 1px solid #527065;
    text-align: center;
    font-size: .88rem;
}
@media (max-width: 920px) {
    #colophon .halles-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #colophon .halles-footer-award { width: min(100%, 9rem); }
}
@media (max-width: 450px) {
    #colophon .halles-footer-grid { grid-template-columns: minmax(0,1fr); }
}

/* Cartes de la page Actualités. */
.page-id-546 .wp-block-query .wp-block-post-template {
    gap: clamp(1rem, 2.2vw, 1.75rem);
}
.page-id-546 .wp-block-query .wp-block-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .5rem;
    padding: 0 0 .9rem;
    border: 1px solid #d7e2da;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 4px 14px rgb(32 60 48 / .09);
    transition: box-shadow .22s, border-color .22s, transform .22s;
}
:is(.page-id-546 .wp-block-query,.halles-home-news) .wp-block-post:is(:hover,:focus-within) {
    transform: translateY(-4px);
    border-color: #a58b5c;
    box-shadow: 0 12px 24px rgb(32 60 48 / .16);
}
:is(.page-id-546,.halles-home-news) .wp-block-post-featured-image {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 12rem;
}
.page-id-546 .wp-block-post .wp-block-post-featured-image {
    margin: 0 0 .2rem;
    overflow: hidden;
    border-radius: .6rem .6rem 0 0;
    background: #edf4ee;
}
:is(.page-id-546,.halles-home-news) .wp-block-post-featured-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
:is(.page-id-546,.halles-home-news) .wp-block-post:is(:hover,:focus-within) .wp-block-post-featured-image img {
    transform: scale(1.045);
}
.page-id-546 .wp-block-post > :is(.wp-block-post-title,.wp-block-post-date,.wp-block-post-excerpt) {
    margin: 0;
    padding-inline: clamp(.95rem, 1.5vw, 1.3rem);
}
.page-id-546 .wp-block-post > .wp-block-post-title {
    color: #203c30;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem) !important;
    line-height: 1.2;
}
.page-id-546 .wp-block-post > .wp-block-post-title:first-child { padding-top: .9rem; }
.page-id-546 .wp-block-post > .wp-block-post-date { color: #496659; }
.page-id-546 .wp-block-post > .wp-block-post-excerpt { display: flex; flex: 1; flex-direction: column; gap: .55rem; color: #40544a; font-size: .95rem; line-height: 1.45; }
.page-id-546 .wp-block-post-excerpt > p { margin: 0; }
:is(.page-id-546,.halles-home-news) .wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.page-id-546 .wp-block-post-excerpt .wp-block-post-excerpt__more-text { margin-top: auto; }
.page-id-546 .wp-block-post .wp-block-post-excerpt__more-link {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: .65em 1em;
    border: 1px solid #365647;
    border-radius: .35rem;
    background: #365647;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.page-id-546 .wp-block-post .wp-block-post-excerpt__more-link:is(:hover,:focus-visible) {
    background: #243c30;
    color: #fff;
    text-decoration: underline;
}
.page-id-546 .wp-block-post-excerpt__more-link::after { content: " →"; }
:is(.page-id-546,.halles-home-news) .wp-block-post a:focus-visible { outline: 2px solid #805b27; outline-offset: 3px; }
@media (max-width: 900px) {
    .page-id-546 .wp-block-query .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
    .page-id-546 .wp-block-query .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    :is(.page-id-546 .wp-block-query,.halles-home-news) .wp-block-post,
    :is(.page-id-546,.halles-home-news) .wp-block-post-featured-image img { transition: none; }
    :is(.page-id-546 .wp-block-query,.halles-home-news) .wp-block-post:is(:hover,:focus-within),
    :is(.page-id-546,.halles-home-news) .wp-block-post:is(:hover,:focus-within) .wp-block-post-featured-image img { transform: none; }
}

/* Venir aux Halles. */
.halles-visit { --visit-ink:#203c30; --visit-paper:#f5f2e8; --visit-gold:#c79b57; color:var(--visit-ink); }
main:has(.halles-visit) .wp-block-post-title:not(.wp-block-post *) { display:none; }
.halles-visit-hero { position:relative; isolation:isolate; display:grid; align-items:end; min-height:clamp(23rem,45vw,39rem); overflow:hidden; background:#203c30; color:#fff; }
.halles-visit-hero > .wp-block-image { position:absolute; inset:0; z-index:-2; margin:0; }
.halles-visit-hero > .wp-block-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 55%; }
.halles-visit-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgb(14 35 26 / .89),rgb(14 35 26 / .22)),linear-gradient(0deg,rgb(14 35 26 / .45),transparent 65%); }
.halles-visit-hero-copy { box-sizing:border-box; width:min(100%,80rem); margin-inline:auto; padding:clamp(1.25rem,5vw,5rem); }
.halles-visit :is(h1,h2,h3) { font-family:"Playfair Display",Georgia,serif; font-weight:600; line-height:1.15; margin:0; }
.halles-visit h1 { color:white; font-size:clamp(2.65rem,7vw,5.6rem); }
.halles-visit h2 { font-size:clamp(1.6rem,3.1vw,2.65rem); }
.halles-visit h3 { font-size:clamp(1.25rem,2vw,1.65rem); }
.halles-visit-hero-copy p { font-size:1.12rem; margin:1rem 0; }
.halles-visit :is(.wp-block-buttons,.wp-block-button) { gap:.55rem; }
.halles-visit .wp-block-button__link { padding:.55rem .95rem; border-radius:.3rem; background:#294d3c; color:white; font-weight:650; font-size:.92rem; box-shadow:0 3px 8px #14342222; }
.halles-visit .wp-block-button__link:is(:hover,:focus-visible) { background:#426b56; color:#fff; }
.halles-visit-hero .wp-block-button__link { background:var(--visit-paper); color:var(--visit-ink); }
.halles-visit-nav { text-align:center; background:var(--visit-paper); border-top:3px solid var(--visit-gold); padding:clamp(1rem,3vw,2rem); }
.halles-visit-nav .wp-block-buttons { justify-content:center; margin-top:1rem; }
.halles-visit-content { box-sizing:border-box; width:100%; margin-inline:auto; padding:clamp(1rem,3vw,3rem); display:grid; gap:1.25rem; }
.halles-visit-card { min-width:0; scroll-margin-top:8rem; padding:clamp(1.1rem,3vw,2rem); background:#fff; border:1px solid #d7e2da; border-top:3px solid var(--visit-gold); border-radius:.65rem; box-shadow:0 5px 22px rgb(32 60 48 / .09); }
.halles-visit-split { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:center; gap:clamp(1rem,3vw,2.5rem); }
.halles-visit-copy,.halles-visit-note { min-width:0; }
.halles-visit-card p { margin:.8rem 0; }
.halles-visit-card p:last-child { margin-bottom:0; }
.halles-visit-card p a { color:#315443; text-underline-offset:.2em; font-weight:650; }
.halles-visit-card figure { margin:0; overflow:hidden; border-radius:.4rem; background:#f0f4ef; }
.halles-visit-card img { display:block; width:100%; height:auto; max-height:17rem; object-fit:contain; }
.halles-visit-split figure img { aspect-ratio:16/10; object-fit:cover; }
#en-bateau figure img { object-fit:contain; }
.halles-visit-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.2rem 0; }
.halles-visit-note { padding:1rem; border-radius:.45rem; background:#edf3ee; }
.halles-visit a:focus-visible { outline:2px solid #805b27; outline-offset:3px; }
@media(max-width:700px) {
    .halles-visit-split,.halles-visit-pair { grid-template-columns:minmax(0,1fr); }
    .halles-visit-hero::after { background:linear-gradient(0deg,rgb(14 35 26 / .92),rgb(14 35 26 / .2) 95%); }
}

/* Visuels de service et boutiques. */
.halles-services .halles-visit-hero > .wp-block-image img { object-position:center 50%; }
.halles-services :is(#wifi,#titres-restaurant,#newsletter) > figure img { padding:.85rem; box-sizing:border-box; object-fit:contain; }
.halles-service-shops { grid-template-columns:repeat(3,minmax(0,1fr)); }
.halles-service-merchant figure { margin-bottom:.75rem; background:white; }
.halles-service-merchant img { height:6rem; padding:.55rem; box-sizing:border-box; }
@media(max-width:860px) { .halles-service-shops { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .halles-service-shops { grid-template-columns:minmax(0,1fr); } }

.halles-association #missions > figure img { aspect-ratio:auto; object-fit:contain; padding:.75rem; box-sizing:border-box; }

/* Chronologie et photographies de l’histoire des Halles. */
.halles-history-timeline { display:grid; gap:0; border-inline-start:2px solid #c79b57; margin:1.5rem 0; }
.halles-history-step { position:relative; padding:.2rem 0 1.3rem clamp(.95rem,2.5vw,1.65rem); }
.halles-history-step::before { content:""; position:absolute; inset-inline-start:-.45rem; top:.53rem; width:.75rem; height:.75rem; border-radius:50%; background:#c79b57; box-shadow:0 0 0 3px #fff; }
.halles-history-step > p:first-child { color:#375746; margin:0 0 .3rem; }
.halles-history-step > p:last-child { margin-bottom:0; }
.halles-history-gallery {
    --history-gallery-gap:.75rem;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:var(--history-gallery-gap);
    max-width:54rem;
    margin:1.25rem auto;
}
.halles-history .halles-history-gallery > figure {
    flex:0 0 calc((100% - 3 * var(--history-gallery-gap)) / 4);
    min-width:0;
    aspect-ratio:4 / 3;
    position:relative;
    margin:0;
}
.halles-history .halles-history-gallery > figure > img {
    width:100%;
    height:100%;
    max-height:none;
    object-fit:contain;
}
@media(max-width:620px) {
    .halles-history .halles-history-gallery > figure {
        flex-basis:calc((100% - var(--history-gallery-gap)) / 2);
    }
}

/* Page Contact et formulaire de l’association. */
.halles-contact-page .halles-visit-hero-copy p { max-width:38rem; }
.halles-contact-main { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:1.25rem; align-items:stretch; }
.halles-contact-details { background:var(--visit-paper); }
.halles-contact-details p a[href^="tel"] { display:inline-block; margin-top:.15rem; font-size:1.15rem; }
.halles-contact-details .wp-block-buttons { margin-top:1.25rem; }
.halles-contact-routes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:1fr; align-items:stretch; gap:.85rem; margin-top:1.15rem; }
.halles-contact-route { display:flex; flex-direction:column; min-width:0; }
.halles-contact-route > p:last-child { margin-top:auto; padding-top:.25rem; }
.halles-contact-route h3 { font-size:clamp(1.15rem,1.8vw,1.4rem); }
.halles-contact-message .forminator-ui { margin-block:1.3rem 0; }
.halles-contact-message .forminator-ui.forminator-design--default .forminator-button-submit { background:#294d3c; color:#fff; border-radius:.3rem; }
.halles-contact-message .forminator-ui.forminator-design--default .forminator-button-submit:is(:hover,:focus-visible) { background:#426b56; }
@media(max-width:940px) { .halles-contact-routes { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .halles-contact-main { grid-template-columns:minmax(0,1fr); } }
@media(max-width:520px) { .halles-contact-routes { grid-template-columns:minmax(0,1fr); } }

.halles-contact-page .halles-contact-main > .halles-visit-card,
.halles-contact-page .halles-contact-routes > .halles-contact-route { margin-block:0; }

/* Pavés des navettes Citadine. */
.halles-visit-bus .halles-visit-pair { grid-auto-rows:1fr; align-items:stretch; }
.halles-visit-bus .halles-visit-pair > .halles-visit-note { display:flex; flex-direction:column; margin-block:0; }
.halles-visit-bus .halles-visit-note > figure { position:relative; aspect-ratio:2 / 1; margin: auto 0 0; background:#fff; }
.halles-visit-bus .halles-visit-note > figure a { position:absolute; inset:0; display:block; }
.halles-visit-bus .halles-visit-note > figure img { width:100%; height:100%; max-height:none; object-fit:contain; }

/* Réseaux sociaux sous la flèche des actualités. */
body.home .elementor-79 .halles-news-social.wp-block-social-links {
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    align-self:start;
    gap:.45rem;
    margin:.3rem 0 0;
    padding:0;
}
body.home .halles-news-social .wp-social-link { flex:none; }
body.home .halles-news-social .wp-block-social-link-anchor { display:grid; place-items:center; min-width:2.55rem; min-height:2.55rem; box-sizing:border-box; }
body.home .halles-news-social a:focus-visible { outline:2px solid #805b27; outline-offset:2px; }

/* Réseaux sociaux du menu principal. */
#masthead .halles-menu-social { display:flex; flex:none; gap:.35rem; align-items:center; }
#masthead #ast-desktop-header .halles-menu-social { margin-inline-start:clamp(.15rem,1vw,.85rem); }
#masthead .halles-menu-social a { display:grid; place-items:center; width:2.1rem; height:2.1rem; flex:none; border-radius:50%; background:#fff; color:#203c30; }
#masthead .halles-menu-social a:is(:hover,:focus-visible) { background:#ffe1a9; color:#203c30; }
#masthead .halles-menu-social a:focus-visible { outline:2px solid white; outline-offset:2px; }
#masthead .halles-menu-social svg { width:1.15rem; height:1.15rem; }
#masthead .halles-menu-social svg path { fill:currentColor; }
@media(max-width:921px) {
    #masthead #ast-mobile-header .halles-menu-social { position:absolute; inset-inline-end:calc(clamp(1rem,4vw,3.25rem) + 3.35rem); top:50%; transform:translateY(-50%); }
    #masthead #ast-mobile-header .halles-menu-social a { width:2.35rem; height:2.35rem; }
}

@media (min-width:922px) {
    body #masthead #ast-desktop-header .ast-above-header-bar .ast-builder-grid-row {
        display:grid;
        grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
        column-gap:clamp(.35rem,1.3vw,1.15rem);
    }
    #masthead #ast-desktop-header .site-header-above-section-right { display:contents; }
    #masthead #ast-desktop-header .ast-builder-menu-1 { justify-self:center; }
    #masthead #ast-desktop-header .halles-menu-social { justify-self:end; margin-inline-start:0; }
}

@media (width:922px) { body #masthead #ast-desktop-header { display:block; } }

/* Bouton de retour en haut. */
#ast-scroll-top { display:none !important; }
.halles-back-top[hidden] { display:none; }
.halles-back-top {
    position:fixed;
    inset-inline-end:max(1rem,env(safe-area-inset-right));
    bottom:max(1rem,env(safe-area-inset-bottom));
    z-index:900;
    display:grid;
    place-items:center;
    box-sizing:border-box;
    width:3rem;
    height:3rem;
    padding:0;
    border:1px solid #fff;
    border-radius:50%;
    background:#203c30;
    color:#fff;
    box-shadow:0 4px 16px rgb(32 60 48 / .25);
    cursor:pointer;
}
.halles-back-top:is(:hover,:focus-visible) { background:#f3d49a; color:#203c30; }
.halles-back-top:focus-visible { outline:2px solid #203c30; outline-offset:2px; }

/* Commande du sous-menu Halles pratiques. */
body #masthead .halles-pratiques-toggle {
    display:inline-flex;
    align-items:center;
    gap:.5em;
    padding:.65rem clamp(.65rem,1.2vw,1.4rem);
    border:0;
    background:transparent;
    color:#fff;
    font:inherit;
    font-size:clamp(1rem,1.4vw,1.22rem);
    line-height:1.25;
    cursor:pointer;
}
body.home #masthead.halles-nav-over-video .halles-pratiques-toggle { text-shadow:0 1px 5px rgb(0 0 0 / .85); }
body #masthead .halles-pratiques-toggle:is(:hover,:focus-visible) { color:#ffe1a9; text-decoration:underline; text-underline-offset:.25em; }
body #masthead .halles-pratiques-toggle:focus-visible { outline:2px solid #ffe1a9; outline-offset:-2px; }
body #masthead .halles-pratiques-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
body #masthead .halles-pratiques-toggle + .sub-menu[hidden] { display:none!important; }
body #masthead .halles-pratiques-toggle[aria-expanded="true"] + .sub-menu {
    display:block;
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    inset:100% auto auto 0;
    transform:none;
}
@media(max-width:921px) {
    body #masthead #ast-hf-mobile-menu .halles-pratiques-toggle { width:100%; justify-content:space-between; padding:.85rem 1.15rem; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-toggle[aria-expanded="true"] + .sub-menu { display:block; }
}

/* Apparition des blocs de l’accueil au premier passage. */
@media (prefers-reduced-motion: no-preference) {
    body.home .halles-reveal { transition:opacity .58s ease-out; }
    body.home .halles-reveal-pending:not(:focus-within) { opacity:.18; }
}

/* Accueil et navigation sur petit écran. */
.halles-news-controls { display:none; }
@media (max-width:921px) {
    body #masthead #ast-mobile-header .site-header-primary-section-right { display:flex; gap:.55rem; flex:none; }
    body #masthead #ast-mobile-header .halles-menu-social,
    body #masthead #ast-mobile-header .main-header-menu-toggle {
        position:static;
        inset:auto;
        transform:none;
        margin:0;
    }
    body #masthead #ast-mobile-header .site-primary-header-wrap { box-sizing:border-box; max-width:100%; }
}
@media (max-width:767px) {
    body.home .elementor-79 :is(.elementor-element-d55f6f3,.elementor-element-c6859ed,.elementor-element-faf1f59,.elementor-element-cc11d2a,.elementor-element-f7bc840) .elementor-heading-title,
    body.home .halles-map > h2 { font-size:clamp(1.3rem,5vw,1.55rem) !important; line-height:1.15; }
    body.home .elementor-79 :is(.elementor-element-eb821ff,.elementor-element-6208c48,.elementor-element-d46d015,.elementor-element-7fd9d40,.elementor-element-570e821) .elementor-heading-title { font-size:clamp(1.05rem,4.2vw,1.3rem) !important; line-height:1.2; }
    body.home .elementor-79 :is(.elementor-element-c6859ed,.elementor-element-6208c48,.elementor-element-faf1f59,.elementor-element-d46d015,.elementor-element-cc11d2a,.elementor-element-7fd9d40,.elementor-element-f7bc840,.elementor-element-570e821) {
        --e-transform-translateY:0px;
        --e-transform-translateX:0px;
        transform:none !important;
    }
    body.home .elementor-79 .elementor-element-8b4c120 {
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        align-items:center;
        gap:.55rem;
        padding-inline:clamp(.55rem,3vw,1rem);
    }
    body.home .elementor-79 .elementor-element-8b4c120 > :is(.elementor-element-308c453,.elementor-element-2aa65a2),
    body.home .elementor-79 .elementor-element-08928db { display:none; }
    body.home .elementor-79 .elementor-element-8b4c120 > :is(.elementor-element-b1755b0,.elementor-element-e11431a) { width:100%; min-width:0; margin:0; }
    body.home .elementor-79 .elementor-element-e11431a { --min-height:0px; align-items:center; justify-content:center; }
    body.home .elementor-79 .halles-news-social.wp-block-social-links { flex-direction:column; align-items:center; gap:.4rem; align-self:center; margin:0; }
    body.home .halles-news-social .wp-block-social-link-anchor { min-width:1.9rem; min-height:1.9rem; padding:.3rem; }
    body.home .halles-news-social svg { width:1rem; height:1rem; }

    body.home .elementor-79 .halles-home-news { padding-inline:clamp(.55rem,3vw,1rem); min-width:0; }
    body.home .halles-home-news .wp-block-post-template {
        --halles-news-gap:.65rem;
        display:grid;
        grid-template-columns:none;
        grid-auto-flow:column;
        grid-auto-columns:calc((100% - var(--halles-news-gap)) / 2);
        gap:var(--halles-news-gap);
        margin:0;
        padding:.35rem 0 .7rem;
        overflow-x:auto;
        overscroll-behavior-inline:contain;
        scroll-snap-type:x mandatory;
        align-items:stretch;
    }
    body.home .halles-home-news .wp-block-post { margin:0; padding:.65rem; scroll-snap-align:start; }
    body.home .halles-home-news .wp-block-post-featured-image { margin:-.65rem -.65rem .55rem; }
    body.home .halles-home-news .wp-block-post-title { font-size:clamp(.87rem,3.7vw,1rem); line-height:1.3; }
    body.home .halles-home-news .wp-block-post-date { font-size:.75rem; }
    body.home .halles-home-news .wp-block-post-excerpt { display:none; }
    body.home .halles-news-controls { display:flex; justify-content:flex-end; gap:.45rem; margin-top:.45rem; }
    body.home .halles-news-controls button { display:grid; place-items:center; min-width:44px; min-height:44px; padding:0; border:1px solid #547465; border-radius:50%; background:#223e32; color:white; cursor:pointer; }
    body.home .halles-news-controls button:disabled { opacity:.45; cursor:default; }
}

@media (max-width:921px) {
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details { width:100%; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details > summary { display:flex; list-style:none; box-sizing:border-box; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details > summary::-webkit-details-marker { display:none; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details > .halles-pratiques-mobile-links { width:100%; margin:0; padding:.3rem 0; list-style:none; background:#fff; border-top:3px solid #c69b57; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details:not([open]) > .halles-pratiques-mobile-links { display:none; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details[open] > .halles-pratiques-mobile-links { display:block; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-links .menu-link { display:block; padding:.65rem 1.35rem; color:#223e32; background:#fff; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-links .menu-link:is(:hover,:focus-visible) { color:#223e32; background:#edf4ee; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-links .ast-icon { display:none; }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-mobile-details[open] > summary svg { transform:rotate(180deg); }
}

body.home .elementor-79 .elementor-element-71bd113 h1.elementor-heading-title { color:#fff; }



/* Plaques rivetées des titres de l’accueil. */
body.home .elementor-79 .elementor-element:is(.elementor-element-7a29f19,.elementor-element-6f630cc,.elementor-element-b1755b0,.elementor-element-22da1db,.elementor-element-7adbc42),
body.home #content .halles-map > h2 {
    position:relative;
    padding:clamp(1.6rem,3.4vw,2.6rem) clamp(.7rem,2.4vw,1.85rem);
    border-block:2px solid #353733;
    background:
        linear-gradient(90deg,#1113,transparent 14%,transparent 86%,#1113),
        url("/wp-content/uploads/2026/11/Fond-metal-gris-NetB-Halles-Narbonne.jpg") center / 100% 100% no-repeat;
    box-shadow:inset 0 2px 0 #ffffff40,inset 0 -2px 0 #0007,0 3px 8px #24282229;
}
body.home .elementor-79 .elementor-element:is(.elementor-element-7a29f19,.elementor-element-6f630cc,.elementor-element-b1755b0,.elementor-element-22da1db,.elementor-element-7adbc42) {
    display:flex;
    flex-direction:column;
    gap:.32rem;
}
body.home .elementor-79 :is(.elementor-element-7a29f19,.elementor-element-6f630cc,.elementor-element-b1755b0,.elementor-element-22da1db,.elementor-element-7adbc42) > :is(:is(.elementor-element-d55f6f3,.elementor-element-c6859ed,.elementor-element-faf1f59,.elementor-element-cc11d2a,.elementor-element-f7bc840),:is(.elementor-element-eb821ff,.elementor-element-6208c48,.elementor-element-d46d015,.elementor-element-7fd9d40,.elementor-element-570e821)) {
    transform:none;
    --e-transform-translateY:0px;
    margin:0;
}
body.home .elementor-79 .elementor-element:is(.elementor-element-d55f6f3,.elementor-element-c6859ed,.elementor-element-faf1f59,.elementor-element-cc11d2a,.elementor-element-f7bc840) .elementor-heading-title,
body.home #content .halles-map > h2 {
    color:#fff9eb;
    font-family:Manrope,system-ui,sans-serif;
    font-size:clamp(1.45rem,3.3vw,2.65rem);
    font-weight:800;
    line-height:1.12;
    letter-spacing:.035em;
    text-transform:uppercase;
    text-wrap:balance;
    text-shadow:0 1px 3px #191a18;
}
body.home .elementor-79 .elementor-element:is(.elementor-element-d55f6f3,.elementor-element-c6859ed,.elementor-element-faf1f59,.elementor-element-cc11d2a,.elementor-element-f7bc840) .elementor-heading-title { margin:0; }
body.home .elementor-79 .elementor-element:is(.elementor-element-eb821ff,.elementor-element-6208c48,.elementor-element-d46d015,.elementor-element-7fd9d40,.elementor-element-570e821) .elementor-heading-title {
    color:#fbd58c;
    font-family:"Playfair Display",Georgia,serif;
    font-style:italic;
    font-size:clamp(1.05rem,2.4vw,1.8rem);
    line-height:1.18;
    text-wrap:balance;
    margin:0;
    text-shadow:0 1px 3px #191a18;
}

/* Étendre la texture, en conservant les dimensions du titre. */
body.home #content .elementor-79 .halles-plate-wide {
    isolation:isolate;
    background:none;
    border-color:transparent;
    box-shadow:none;
}
body.home #content .elementor-79 .halles-plate-wide::after {
    content:"";
    position:absolute;
    z-index:-1;
    pointer-events:none;
    inset:auto;
    top:-2px;
    bottom:-2px;
    left:var(--halles-plate-left);
    width:var(--halles-plate-width);
    border-block:2px solid #353733;
    background:
        linear-gradient(90deg,#1113,transparent 14%,transparent 86%,#1113),
        url("/wp-content/uploads/2026/11/Fond-metal-gris-NetB-Halles-Narbonne.jpg") center / auto 100% repeat-x;
    box-shadow:inset 0 2px 0 #ffffff40,inset 0 -2px 0 #0007,0 3px 8px #24282229;
}
body.home .elementor-79 .elementor-element-e11431a { position:relative; z-index:1; }

/* Fonds continus et séparations des sections de l’accueil. */
body.home #content .elementor-79 {
    --halles-section-news:#f1e8d7;
    --halles-section-gallery:#dce8dc;
    --halles-section-hours:#f4eddc;
    --halles-section-map:#dfece5;
    --halles-section-edge:#9d7b49;
    background:#dfece5;
}
body.home #content .elementor-79 > :is(.elementor-element-68dbf6b,.elementor-element-598479d,.elementor-element-25ad8fc,.elementor-element-b335dad,.halles-map) { margin-block:0; }
body.home #content .elementor-element-68dbf6b > .elementor-element-d288bf3 {
    margin-block-start:0;
    border-block-start:2px solid var(--halles-section-edge);
    background-color:rgb(219 228 217 / .22);
}
body.home #content .elementor-79 > .elementor-element-b335dad {
    --gap:0px;
    --row-gap:0px;
    gap:0;
    padding:0;
    background:var(--halles-section-news);
}
body.home #content .elementor-element-b335dad > :is(.elementor-element-e97bba8,.halles-home-news,.elementor-element-911a8b1,.halles-gallery-label,.halles-vitrines,.elementor-element-2896f37,.halles-hours) {
    box-sizing:border-box;
    width:100%;
    max-width:none;
    margin-block:0;
}
body.home #content .elementor-element-b335dad > :is(.elementor-element-e97bba8,.halles-home-news) { background-color:var(--halles-section-news); }
body.home #content .elementor-element-b335dad > :is(.elementor-element-911a8b1,.halles-gallery-label,.halles-vitrines) { background-color:var(--halles-section-gallery); }

body.home #content .elementor-element-b335dad > .halles-vitrines--postcards { background-color:#dfd6c3; }
body.home #content .elementor-element-b335dad > :is(.elementor-element-2896f37,.halles-hours) { background-color:var(--halles-section-hours); }
body.home #content .elementor-79 > .halles-map { background-color:var(--halles-section-map); }
body.home #content .elementor-79 :is(.elementor-element-e97bba8,.elementor-element-911a8b1,.elementor-element-2896f37,.halles-map) {
    border-block-start:2px solid var(--halles-section-edge);
}

@media (max-width:767px) {
    body.home #content .elementor-79 > .elementor-element-25ad8fc {
        background:#d7e4e0 url("/wp-content/uploads/2026/11/panel.jpg") center / cover no-repeat;
    }
}

/* Un même fond ouvre et traverse le Mode d’emploi. */
body.home #content .elementor-79 :is(.elementor-element-d288bf3,.elementor-element-598479d,.elementor-element-25ad8fc) {
    background-color:#526865;
    background-image:url("/wp-content/uploads/2026/11/panel.jpg");
    background-repeat:no-repeat;
    background-position:center;
    background-size:cover;
}
body.home #content .elementor-79 .elementor-element-d288bf3 { background-origin:border-box; }
@media (min-width:768px) {
    body.home #content .elementor-79 :is(.elementor-element-d288bf3,.elementor-element-598479d) { background-attachment:fixed; }
}
@media (max-width:767px) {
    body.home #content .elementor-79 :is(.elementor-element-d288bf3,.elementor-element-25ad8fc) {
        background-size:var(--halles-mode-width,cover);
        background-position-x:center !important;
        background-position-y:var(--halles-mode-offset,50%) !important;
    }
}

/* Contraste du liseré du Mode d’emploi, au-dessus de la plaque. */
body.home #content .elementor-79 .elementor-element-d288bf3 > .elementor-element-b1780d3 {
    background-color:rgb(246 243 233 / 50%);
    padding-block:.35rem;
}
@media (min-width:768px) {
    body.home .elementor-79 .elementor-element-e11431a {
        --gap:0px;
        align-items:center;
        justify-content:center;
    }
    body.home .elementor-79 .elementor-element-e11431a .elementor-element-08928db {
        width:clamp(3.25rem,7vw,5.2rem);
        align-self:center;
        margin-bottom:-.1rem;
        transform:translateX(-42%) rotate(12deg);
        pointer-events:none;
    }
    body.home .elementor-79 .elementor-element-08928db img {
        width:100%;
        filter:brightness(0) invert(1) drop-shadow(0 1px 2px #182b24);
    }
    body.home .elementor-79 .halles-news-social.wp-block-social-links {
        gap:1.15rem;
        align-self:center;
        margin:0;
    }
}

/* Les trois commandes du plan partagent la même ligne de base. */
.halles-map .halles-map-filters { align-items:start; }
.halles-map .halles-map-filters > :is(label,.halles-category-filter),
.halles-map .halles-category-filter > label { display:block; margin:0; line-height:1.4; }
.halles-map .halles-map-filters :is(input,select,.halles-category-picker summary) { height:2.75rem; box-sizing:border-box; }
.halles-map .halles-category-picker { margin-top:.25rem; }

@media (max-width: 767px) {
    body.home #content .elementor-79 .elementor-element-25ad8fc .elementor-widget-image > a[aria-label] {
        border: 2px solid var(--guide-tint, #315443);
        border-radius: 12px;
        overflow: hidden;
    }
}

.halles-archive { box-sizing:border-box; padding:clamp(1rem,3vw,3rem); color:#203c30; }
.halles-archive :is(h2,h3) { font-family:"Playfair Display",Georgia,serif; }
.halles-archive-nav { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.8rem; margin-block-end:2rem; }
.halles-archive-nav a { display:grid; place-items:center; padding:1rem; border-top:3px solid #c39453; border-radius:.55rem; background:#edf3ed; color:#203c30; text-align:center; font-weight:700; text-decoration:none; }
.halles-archive-nav a:is(:hover,[aria-current]) { background:#365647; color:#fff; }
.halles-archive-grid,.halles-archive .halles-archive-photos { display:grid; gap:clamp(.8rem,2vw,1.5rem); grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr)); }
.halles-archive-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #d7e2da; border-radius:.65rem; background:#fff; box-shadow:0 4px 14px rgb(32 60 48 / .09); }
.halles-archive-card:hover { box-shadow:0 12px 24px rgb(32 60 48 / .16); }
.halles-archive-cover img,.halles-archive-photos img { display:block; width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; }
.halles-archive-card-body { display:flex; flex:1; flex-direction:column; align-items:start; gap:.65rem; padding:1rem; }
.halles-archive-card-body :is(h3,p) { margin:0; }
.halles-archive-card-body h3 { font-size:1.2rem; }
.halles-archive-card-body time { font-size:.88rem; color:#496659; }
.halles-archive-button { display:inline-block; margin-top:auto; padding:.65em 1em; border:1px solid #365647; border-radius:.35rem; background:#365647; color:#fff; text-decoration:none; font:inherit; cursor:pointer; }
.halles-archive-button:hover { background:#243c30; color:#fff; text-decoration:underline; }
.halles-archive-years { display:flex; flex-wrap:wrap; align-items:end; gap:.8rem; margin-block:1rem; }
.halles-archive-years select { display:block; min-width:8rem; min-height:2.75rem; }
.halles-archive-pagination { display:flex; flex-wrap:wrap; gap:.75rem; justify-content:center; margin-block:1.5rem; }
.halles-archive .halles-archive-photos { list-style:none; padding:0; margin-block:1.25rem; grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr)); }
.halles-archive-photos p { font-size:.85rem; margin:.35rem 0; }
.halles-archive-back { display:inline-block; margin-block:.35rem; }

.halles-archive-nav--covers { gap:clamp(1rem,2vw,1.75rem); }
.halles-archive-nav--covers a {
    display:grid;
    grid-template-rows:auto 1fr;
    place-items:stretch;
    padding:0;
    overflow:hidden;
    text-align:start;
    background:white;
    border:1px solid #d7e2da;
    border-block-start:3px solid #c39453;
    box-shadow:0 4px 14px rgb(32 60 48 / .09);
}
.halles-archive-nav--covers a:is(:hover,:focus-visible) { background:#edf3ed; color:#203c30; box-shadow:0 12px 24px rgb(32 60 48 / .16); }
.halles-archive-nav--covers img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#edf3ed; }
.halles-archive-nav-copy { display:flex; flex-direction:column; align-items:start; gap:.9rem; padding:clamp(1rem,2vw,1.5rem); }
.halles-archive-nav-copy strong { font:600 clamp(1.25rem,2vw,1.7rem)/1.2 "Playfair Display",Georgia,serif; }

.halles-pratiques-grid { grid-auto-rows:1fr; align-items:stretch; }
.entry-content .halles-pratiques-grid > .halles-visit-card { display:flex; flex-direction:column; margin-block:0; }
.halles-pratiques-grid > .halles-visit-card > .wp-block-buttons { margin-block-start:auto; }

.halles-history .halles-history-gallery > figure > a {
    display:block;
    height:100%;
}
.halles-history .halles-history-gallery > figure > a > img {
    height:100%;
    max-height:none;
    object-fit:contain;
}
.halles-history .halles-history-gallery > figure > a:focus-visible {
    outline:2px solid #375746;
    outline-offset:-2px;
}

body #masthead .halles-pratiques-menu {
    position:relative;
}
body #masthead .halles-pratiques-menu > .halles-pratiques-link {
    padding-inline-end:.55rem;
}
body #masthead .halles-pratiques-menu > button.halles-pratiques-toggle {
    padding-inline:.35rem .65rem;
}
@media(max-width:921px) {
    body #masthead #ast-hf-mobile-menu .halles-pratiques-menu > .halles-pratiques-link {
        padding-inline-end:3.75rem;
    }
    body #masthead #ast-hf-mobile-menu .halles-pratiques-menu summary.halles-pratiques-toggle {
        position:absolute;
        inset:0 0 auto auto;
        width:3.25rem;
        min-height:2.75rem;
        justify-content:center;
        padding:.65rem;
    }
}

@media(min-width:922px) {
    body #masthead #ast-hf-menu-1 > .halles-pratiques-menu {
        display:flex;
        flex-flow:row nowrap;
        align-items:center;
    }
    body #masthead #ast-hf-menu-1 > .halles-pratiques-menu > .halles-pratiques-link {
        white-space:nowrap;
    }
}
