/* ==========================================================================
   Accueil Bergues (lot 2) — reproduction de la maquette « Ville de Bergues – Accueil ».
   Repères : 1440 (bureau), < 1200 (tablette : en-tête compact, carrousels pleine largeur), ≤ 760 (mobile).
   ========================================================================== */

.bgh, .bg-foot {
	--bg-ink: #2A2522;
	--bg-cream: #F6F2EC;
	--bg-sand: #EDE5DB;
	--bg-brown: #8C7062;
	--bg-brown-d: #6E5548;
	--bg-rust: #B5643F;
	--bg-peach: #F3DCC8;
	--bg-txt: #4A403B;
	--bg-muted: #5A4E48;
	--bg-pad: clamp(16px, 4vw, 56px);
	--bg-disp: "Familjen Grotesk", "Mulish", system-ui, sans-serif;
	--bg-script: "Caveat", cursive;
	font-family: "Mulish", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--bg-ink);
}
.ssm.ssm-is-home, .ssm.ssm-is-home .site, .ssm.ssm-is-home .content-bg { background: #F6F2EC; }
.bgh { background: var(--bg-cream); overflow-x: clip; }
.bgh *, .bg-foot * { box-sizing: border-box; }
.bgh :is(h1, h2, h3, p, ul, ol, dl, dd, figure), .bg-foot :is(h2, p, ul, dl, dd) { margin: 0; padding: 0; }
.bgh :is(ul, ol), .bg-foot ul { list-style: none; }
.bgh a, .bg-foot a { text-decoration: none; color: inherit; }
.bgh button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; margin: 0; padding: 0; text-transform: none; letter-spacing: normal; min-height: 0; line-height: inherit; box-shadow: none; }
.bgh img, .bg-foot img { max-width: none; }
.bg-i { display: block; flex: none; }
.bg-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.bg-wrap--wide { max-width: 1352px; padding: 0 var(--bg-pad); }
.bgh :is(a, button):focus-visible, .bg-foot a:focus-visible { outline: 3px solid var(--bg-rust); outline-offset: 3px; }

.ssm .bgh h2.bg-h2, .bg-h2 { margin: 0; text-transform: none; font-family: var(--bg-script); font-weight: 700; font-size: clamp(52px, 5.6vw, 84px); line-height: .9; letter-spacing: 0; color: var(--bg-ink); }
.ssm .bgh h2.bg-h2--sm, .bg-h2--sm { font-size: clamp(46px, 4.4vw, 68px); }
.bg-eyebrow { display: block; font-size: 13px; line-height: 1.6; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bg-rust); margin-bottom: 6px; }

/* Boutons */
.bg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
:is(.bgh, .bg-foot) .bg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 14px; line-height: 1.6; font-weight: 800; transition: background .3s, color .3s, box-shadow .3s; }
:is(.bgh, .bg-foot) .bg-btn--white { background: #fff; color: var(--bg-ink); }
:is(.bgh, .bg-foot) .bg-btn--white:hover { background: var(--bg-ink); color: #fff; }
:is(.bgh, .bg-foot) .bg-btn--line { padding: 10.5px 18.5px; border: 1.5px solid #fff; color: #fff; }
:is(.bgh, .bg-foot) .bg-btn--line:hover { background: #fff; color: var(--bg-ink); }
:is(.bgh, .bg-foot) .bg-btn--ink { background: var(--bg-ink); color: #fff; padding: 13px 22px; }
:is(.bgh, .bg-foot) .bg-btn--ink:hover { background: var(--bg-rust); color: #fff; }
:is(.bgh, .bg-foot) .bg-btn--fb { padding: 11px 18px; }
:is(.bgh, .bg-foot) .bg-btn--fb:hover { background: var(--bg-brown-d); }
:is(.bgh, .bg-foot) .bg-btn--inkline { padding: 13px 20px; box-shadow: inset 0 0 0 1.5px var(--bg-ink); color: var(--bg-ink); }
:is(.bgh, .bg-foot) .bg-btn--inkline:hover { background: var(--bg-ink); color: #fff; }
:is(.bgh, .bg-foot) .bg-btn--lg { font-size: 16px; }
.bg-arrows { display: flex; gap: 10px; }
.bg-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #fff !important; display: grid !important; place-items: center; color: #fff !important; transition: background .3s, color .3s; }
.bg-arrow:hover { background: #fff !important; color: var(--bg-ink) !important; }
.bg-arrow--ink { border-color: var(--bg-ink) !important; color: var(--bg-ink) !important; }
.bg-arrow--ink:hover { background: var(--bg-ink) !important; color: #fff !important; }
.bg-arrow--48 { width: 48px; height: 48px; }
.bg-arrow[disabled] { opacity: .35; cursor: default; }
.bg-dots { display: none; width: 100%; justify-content: center; flex-wrap: wrap; gap: 2px; }
.bg-dots button { padding: 10px 3px !important; display: grid; place-items: center; }
.bg-dots button span { display: block; width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.bg-dots button[aria-current="true"] span { width: 22px; background: #fff; }
.bg-dots--dark button span { background: rgba(42, 37, 34, .25); }
.bg-dots--dark button[aria-current="true"] span { background: var(--bg-ink); }

/* ---------- Bandeau ---------- */
.bg-hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #3A2D28; color: #fff; }
.bg-hero__poster, .bg-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.bg-hero__video { opacity: 0; transition: opacity .8s; }
.bg-hero__video.is-on { opacity: 1; }
.bg-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32, 26, 22, .6), rgba(32, 26, 22, .05) 65%); }
.bg-hero__top { position: absolute; left: 0; right: 0; top: 0; height: 260px; background: linear-gradient(180deg, rgba(24, 19, 16, .6), rgba(24, 19, 16, .25) 55%, rgba(24, 19, 16, 0)); pointer-events: none; }
.bg-hero__txt { position: absolute; left: clamp(24px, 8.5vw, 140px); right: 24px; bottom: clamp(48px, 10vh, 120px); display: flex; flex-direction: column; }
.bg-hero__kick { font-family: var(--bg-script); font-weight: 700; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; color: var(--bg-peach); transform: rotate(-3deg); transform-origin: left; margin: 0 0 -.12em 4px; position: relative; z-index: 1; }
.bgh .bg-hero__title { margin: 0; font-family: var(--bg-disp); font-weight: 600; letter-spacing: -.035em; font-size: clamp(56px, 9vw, 148px); line-height: 1.05; padding-bottom: .04em; color: #fff; text-shadow: none; }
.bg-hero__sub { margin-top: 10px !important; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; font-weight: 700; max-width: 460px; }
.bg-hero__play { position: absolute; right: clamp(20px, 3vw, 48px); bottom: 36px; width: 48px; height: 48px; border-radius: 50% !important; background: #fff !important; display: grid !important; place-items: center; color: var(--bg-ink) !important; transition: background .3s, color .3s, transform .3s; }
.bg-hero__play:hover { background: var(--bg-ink) !important; color: #fff !important; transform: scale(1.06); }
.bg-hero__play .bg-i { grid-area: 1 / 1; }
.bg-hero__play[aria-pressed="false"] .bg-i:last-child, .bg-hero__play[aria-pressed="true"] .bg-i:first-child { visibility: hidden; }

/* ---------- Actualités et agenda ---------- */
.bg-info { position: relative; padding: clamp(64px, 8vw, 112px) 0 clamp(40px, 4vw, 56px); }
.bg-info__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; background: linear-gradient(180deg, rgba(140, 112, 98, 0) 0%, rgba(140, 112, 98, .35) 22%, #8C7062 52%); }
.bg-info__deco { position: absolute; right: 5%; top: 36px; width: min(15vw, 190px); aspect-ratio: 453 / 770; background: #A48374; opacity: .7; -webkit-mask: url("../img/bergues/tour-trait.svg") center / contain no-repeat; mask: url("../img/bergues/tour-trait.svg") center / contain no-repeat; pointer-events: none; }
.bgh .bg-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 0 !important; }
.bg-tabs__l { font-size: 13px; line-height: 1.6; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bgh .bg-tab { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; line-height: 1.6; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--bg-ink); color: var(--bg-ink); transition: background .3s, color .3s; }
.bgh .bg-tab[aria-pressed="true"], .bgh .bg-tab:hover { background: var(--bg-ink); color: #fff; }
.bg-track { position: relative; display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -26px 0 -56px !important; padding: 70px max(16px, calc((100% - 1240px) / 2)) 100px !important; scroll-padding-left: max(16px, calc((100% - 1240px) / 2)); }
.bg-track::-webkit-scrollbar { display: none; }
.bg-card { flex: 0 0 260px; scroll-snap-align: start; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.bg-card[hidden] { display: none; }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+2) { transform: translateY(27px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+3) { transform: translateY(22px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+4) { transform: translateY(-9px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+5) { transform: translateY(-30px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+6) { transform: translateY(-15px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+7) { transform: translateY(17px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+8) { transform: translateY(29px); }
.bg-track:not(.is-wave) .bg-card:nth-child(9n+9) { transform: translateY(7px); }
.bg-card__a { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: 14px; overflow: hidden; color: #fff !important; background: var(--bg-brown-d); box-shadow: 0 10px 24px rgba(42, 37, 34, .12); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.bg-card__a:hover, .bg-card__a:focus-visible { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 26px 40px rgba(42, 37, 34, .25); }
.bg-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 26, 22, .1), rgba(32, 26, 22, 0) 30%, rgba(32, 26, 22, .82)); }
.bg-card__kind { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; line-height: 1.6; font-weight: 800; background: var(--bg-rust); color: #fff; }
.bg-card__kind--actu { background: #fff; color: var(--bg-ink); }
.bg-card__txt { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.bg-card__when { font-size: 12.5px; line-height: 1.6; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bg-peach); }
.bg-card__title { font-family: var(--bg-disp); font-weight: 600; letter-spacing: -.035em; font-size: 21px; line-height: 1.12; text-wrap: pretty; }
.bg-info__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: #fff; }

/* ---------- Bergues pas à pas ---------- */
.bg-dec { position: relative; z-index: 2; padding: 0 var(--bg-pad) clamp(64px, 8vw, 112px); }
.bg-dec__bg { position: absolute; left: 0; right: 0; top: 0; bottom: clamp(200px, 22vw, 300px); background: var(--bg-brown); border-radius: 0 0 30px 30px; }
.bg-dec__deco { position: absolute; right: 3%; top: 8px; width: min(24vw, 300px); aspect-ratio: 587 / 612; background: #fff; opacity: .15; -webkit-mask: url("../img/bergues/beffroi-trait.svg") center / contain no-repeat; mask: url("../img/bergues/beffroi-trait.svg") center / contain no-repeat; pointer-events: none; }
.bg-dec__sep { display: flex; align-items: center; gap: 18px; padding: clamp(36px, 4vw, 56px) 0; color: var(--bg-peach); }
.bg-dec__sep span { flex: 1; height: 1px; background: rgba(255, 255, 255, .35); }
.bg-dec__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; color: #fff; margin-bottom: clamp(32px, 4vw, 48px); }
.bg-dec__head .bg-h2 { color: #fff; }
.bg-dec__intro { display: flex; flex-direction: column; gap: 16px; }
.bg-dec__intro p { max-width: 520px; color: #fff; }
.bg-lieux { display: flex; align-items: flex-start; gap: 16px; }
.bg-lieu { position: relative; flex: 1 1 0; min-width: 0; height: 440px; border-radius: 16px; overflow: hidden; color: #fff; background: #3A2D28; box-shadow: 0 24px 50px rgba(42, 37, 34, .22); scroll-snap-align: start; }
.bg-lieu:nth-child(4n+1) { flex-grow: 406; }
.bg-lieu:nth-child(4n+2) { flex-grow: 254; }
.bg-lieu:nth-child(4n+3) { flex-grow: 317; }
.bg-lieu:nth-child(4n+4) { flex-grow: 216; }
.bg-lieu__img, .bg-lieu__alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.bg-lieu__alt { opacity: 0; transform: scale(1.08); }
.bg-lieu__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 26, 22, 0) 35%, rgba(32, 26, 22, .85)); }
.bg-lieu__txt { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.bgh .bg-lieu__name { font-family: var(--bg-disp); font-weight: 600; letter-spacing: -.035em; font-size: 24px; line-height: 1; color: #fff; }
.bg-lieu__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.bg-lieu__more > div { overflow: hidden; min-height: 0; }
.bg-lieu__more p { margin: 0 0 12px !important; font-size: 14px; line-height: 1.4; opacity: 0; transition: opacity .4s; }
.bg-lieu__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.bg-sbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6.5px 11.5px; border-radius: 999px; border: 1.5px solid #fff; color: #fff !important; font-size: 13px; line-height: 1.6; font-weight: 800; transition: background .3s, color .3s; }
.bg-sbtn:hover { background: #fff; color: var(--bg-ink) !important; }
.bg-sbtn--white { background: #fff; color: var(--bg-ink) !important; }
.bg-sbtn--white:hover { background: var(--bg-rust); border-color: var(--bg-rust); color: #fff !important; }
.bg-lieu:is(:hover, :focus-within, .is-open) .bg-lieu__more { grid-template-rows: 1fr; }
.bg-lieu:is(:hover, :focus-within, .is-open) .bg-lieu__more p, .bg-lieu:is(:hover, :focus-within, .is-open) .bg-lieu__alt { opacity: 1; }
.bg-lieu:is(:hover, :focus-within, .is-open) .bg-lieu__alt { transform: scale(1); }

/* ---------- Kiosque + appli ---------- */
.bg-kio { position: relative; padding: 0 var(--bg-pad) clamp(16px, 2vw, 24px); margin-top: calc(-1 * clamp(16px, 2vw, 32px)); overflow-x: clip; z-index: 2; }
.bg-kio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.bg-panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.8vw, 40px); min-width: 0; border-radius: 30px; background: var(--bg-sand); }
.bg-panel__p { max-width: 480px; color: var(--bg-txt); }
.bg-kio__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bg-kio__tag { padding: 6px 12px; border-radius: 999px; background: var(--bg-ink); color: #fff; font-size: 13px; line-height: 1.6; font-weight: 800; }
.bg-kio__label { font-weight: 800; }
.bg-kio__pages { color: var(--bg-muted); font-size: 15px; }
.bg-kio__pages:empty { display: none; }
.bg-kio__stage { position: relative; flex: 1; min-height: clamp(250px, 22vw, 300px); perspective: 1500px; }
.bgh .bg-cover { --w: clamp(160px, 14vw, 200px); position: absolute; left: 50%; top: 50%; width: var(--w); margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) * -.707); aspect-ratio: 210 / 297; background: #fff; color: var(--bg-ink); border-radius: 12px; box-shadow: 0 14px 28px rgba(42, 37, 34, .16); display: flex; flex-direction: column; overflow: hidden; text-align: left; opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .45s, box-shadow .3s; }
.bgh .bg-cover.is-cur { box-shadow: 0 36px 60px rgba(42, 37, 34, .32); }
.bgh .bg-cover.is-cur:hover { box-shadow: 0 40px 70px rgba(42, 37, 34, .38); }
.bg-cover__top { padding: 14px 16px 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bg-cover__name { font-family: var(--bg-disp); font-weight: 600; letter-spacing: -.035em; font-size: 16px; line-height: 1; }
.bg-cover__top img { height: 26px; width: auto; }
.bg-cover__img { width: 100%; flex: 1; min-height: 0; object-fit: cover; display: block; }
.bg-cover__img--empty { background: var(--bg-sand); }
.bg-cover__foot { padding: 9px 16px; font-size: 12px; line-height: 1.6; font-weight: 800; display: flex; justify-content: space-between; }
.bg-cover__dim { position: absolute; inset: 0; background: var(--bg-cream); opacity: 0; pointer-events: none; transition: opacity .45s; }
.bg-kio__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.bg-kio__sp { flex: 1; }
.bg-kio__count { font-family: var(--bg-disp); font-weight: 600; font-size: 15px; line-height: 1.6; min-width: 56px; text-align: center; }
.bg-app { position: relative; flex: 1; min-height: clamp(250px, 22vw, 300px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px clamp(20px, 3vw, 44px); }
.bg-app__phone { flex: none; height: clamp(250px, 22vw, 300px); width: auto; display: block; transform: rotate(-4deg); filter: drop-shadow(0 18px 26px rgba(42, 37, 34, .28)); }
.bg-app__list { display: flex; flex-direction: column; gap: 16px; flex: 0 1 250px; min-width: 0; }
.bg-app__list li { display: flex; align-items: flex-start; gap: 12px; }
.bg-app__ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--bg-rust); }
.bg-app__t { display: flex; flex-direction: column; line-height: 1.3; }
.bg-app__t strong { font-weight: 800; font-size: 16px; }
.bg-app__t span { font-size: 14.5px; color: var(--bg-muted); }
.bg-store { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 16px 16px 20px; border-radius: 16px; background: #fff; flex-wrap: wrap; margin-top: auto; }
.bg-store__t { display: flex; flex-direction: column; flex: 1 1 150px; min-width: 0; }
.bg-store__t strong { font-weight: 800; font-size: 18px; line-height: 1.6; }
.bg-store__t span { font-size: 14.5px; line-height: 1.6; color: var(--bg-muted); }
.bg-store__b { display: flex; gap: 6px; flex: none; }
.bg-store__a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--bg-ink); color: #fff !important; font-size: 13px; line-height: 1.6; font-weight: 800; transition: background .3s; }
.bg-store__a:hover { background: var(--bg-brown-d); }

/* ---------- Facebook ---------- */
.bg-fb { position: relative; padding: clamp(56px, 6.5vw, 88px) 0 clamp(130px, 16vw, 230px); overflow: hidden; }
.bg-fb__head { margin: 0 auto 28px; padding: 0 var(--bg-pad); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bg-fb__col { display: flex; flex-direction: column; gap: 14px; }
.bg-fb__page { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bg-fb__id { display: flex; align-items: center; gap: 10px; }
.bg-fb__av { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.bg-fb__av img { height: 30px; width: auto; }
.bg-fb__nm { display: flex; flex-direction: column; line-height: 1.25; }
.bg-fb__nm strong { font-weight: 800; }
.bg-fb__nm span { font-size: 13.5px; color: var(--bg-muted); }
.bg-fb__track { position: relative; display: flex; align-items: flex-start; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -34px 0 -40px !important; padding: 40px var(--bg-pad) 64px max(var(--bg-pad), calc((100% - 1240px) / 2 + var(--bg-pad))) !important; scroll-padding-left: max(var(--bg-pad), calc((100% - 1240px) / 2 + var(--bg-pad))); }
.bg-fb__track::-webkit-scrollbar { display: none; }
.bg-post { flex: 0 0 min(310px, 80vw); scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.bg-post__when { position: relative; display: flex; align-items: center; gap: 10px; height: 28px; font-size: 12.5px; line-height: 1.6; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bg-brown-d); }
.bg-post__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-rust); box-shadow: 0 0 0 5px var(--bg-cream); }
.bg-post__line { width: 1.5px; height: 18px; margin-left: 6px; background: #C9B6A6; }
.bg-post__line--long { height: 74px; }
.bg-post__card { width: 100%; display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(42, 37, 34, .08); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.bg-post__card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(42, 37, 34, .16); }
.bg-post__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.bg-post__av { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-cream); display: grid; place-items: center; flex: none; }
.bg-post__av img { height: 24px; width: auto; }
.bg-post__nm { display: flex; flex-direction: column; line-height: 1.25; }
.bg-post__nm strong { font-weight: 800; font-size: 14.5px; }
.bg-post__nm span { font-size: 12.5px; color: var(--bg-muted); }
.bg-post__fb { margin-left: auto; color: var(--bg-brown); }
.bg-post__txt { padding: 0 16px 12px !important; font-size: 15px; line-height: 1.45; }
.bg-post__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bg-post__ph { aspect-ratio: 4 / 3; width: 100%; display: grid; place-items: center; background: var(--bg-sand); color: var(--bg-brown); }
.bg-post__foot { display: flex; gap: 16px; padding: 12px 16px; min-height: 46px; font-size: 13.5px; line-height: 1.6; font-weight: 700; color: var(--bg-muted); }
.bg-post__n { display: flex; align-items: center; gap: 5px; }
.bg-post__foot a { color: var(--bg-muted); }
.bg-post__foot a:hover { color: var(--bg-rust); text-decoration: underline; }

/* ---------- Pied de page ---------- */
.bg-foot { position: relative; background: var(--bg-sand); padding: 72px var(--bg-pad) 24px; margin-top: 0; }
.bg-foot__sky { position: absolute; left: 0; right: 0; bottom: 100%; height: 150px; pointer-events: none; }
.bg-foot__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg-brown); }
.bg-foot__draw { position: absolute; right: clamp(0px, 4vw, 72px); bottom: 0; height: 100%; aspect-ratio: 480 / 109; max-width: 100%; background: var(--bg-brown); -webkit-mask: url("../img/bergues/skyline.svg") center bottom / contain no-repeat; mask: url("../img/bergues/skyline.svg") center bottom / contain no-repeat; }
.bg-foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.bg-foot__c1 { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bg-foot__logo { height: 64px; width: auto; display: block; }
.bg-foot__adr { font-size: 15px; line-height: 1.6; color: var(--bg-txt); }
.bg-foot__adr strong { color: var(--bg-ink); font-weight: 700; }
.bg-foot__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; line-height: 1.7; }
.bg-foot__h { font-family: inherit; font-size: 13px; line-height: 1.6; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bg-ink); margin-bottom: 10px !important; }
.bg-foot__hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14.5px; line-height: 1.6; color: var(--bg-txt); }
.bg-foot__hours dt { font-weight: 800; color: var(--bg-ink); }
.bg-foot__soc { display: flex; gap: 6px; margin-top: 20px !important; }
.bg-foot__soc a { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: background .3s, color .3s; }
.bg-foot__soc a:hover { background: var(--bg-ink); color: #fff; }
.bg-foot__map { display: block; border-radius: 16px; overflow: hidden; background: #E2D6C8; }
.bg-foot__map img { display: block; width: 100%; height: auto; }
.bg-foot__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 15px; }
.bg-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(42, 37, 34, .14); font-size: 13.5px; line-height: 1.6; color: var(--bg-txt); }
.bg-foot__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bg-foot__legal a:hover { color: var(--bg-rust); text-decoration: underline; }


/* ---------- < 1200 : tablette ---------- */
@media (max-width: 1199.98px) {
	.bg-hero { height: 92vh; }
	.bg-hero__txt { left: 24px; }
	.bg-track { margin: -8px 0 -18px !important; padding: 28px 16px 36px !important; scroll-padding-left: 16px; }
	.bg-card { flex-basis: 280px; transform: none !important; }
	.bg-dots { display: flex; margin-bottom: -6px; }
	.bg-info .bg-arrows, .bg-fb .bg-arrows, .bg-kio__ctl .bg-arrow, .bg-kio__count { display: none !important; }
	.bg-lieux { flex-wrap: wrap; }
	.bg-lieu { flex: 1 1 calc(50% - 8px) !important; height: auto; aspect-ratio: 5 / 4; }
	.bg-fb__track + .bg-dots { margin: 6px 0 0; padding: 0 16px; }
	.bg-kio [data-k-dots] { margin-top: -8px; }
}

/* ---------- ≤ 760 : mobile ---------- */
@media (max-width: 760px) {
	.bg-lieux { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 36px; scroll-padding-left: 16px; }
	.bg-lieux::-webkit-scrollbar { display: none; }
	.bg-lieu { flex: 0 0 min(286px, 76vw) !important; aspect-ratio: 286 / 358; }
	.bg-lieu:nth-child(4n+3), .bg-lieu:nth-child(4n+4) { margin-top: 40px; }
	[data-bg-ldots] { display: flex; margin-top: -18px; }
	.bg-kio__grid { grid-template-columns: 1fr; }
	.bg-foot__grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1199.98px) { .bg-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
	.bgh *, .bg-foot * { transition: none !important; }
}
