/*
 * Bibliothèques libre-service — « Carnet de quartier » (Version vive)
 *
 * Hard rules: no gradients, no blurred shadows, no glass. 2.5px ink outlines,
 * hard offset ink shadows, flat saturated fills, text on colour is always ink.
 * Tilts are removed under prefers-reduced-motion.
 */

/* ==========================================================================
   Fonts (self-hosted, OFL — see assets/fonts/LICENSE.md)
   ========================================================================== */

@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/gabarito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/gabarito-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--ink: #1C1A2E;
	--paper: #FFFAF0;
	--white: #FFFFFF;
	--raspberry: #FF5FA2;
	--sunflower: #FFD23F;
	--mint: #3DDC97;
	--blueberry: #5B8CFF;
	--tangerine: #FF8A4C;
	--violet: #B388FF;
	--stamp: #C8104A;
	--muted: #47435C;
	--tint-raspberry: #FFE6F1;
	--tint-blueberry: #E6EDFF;
	--tint-mint: #B6F0D3;
	--tint-sunflower: #FFF3D6;

	--line-w: 2.5px;
	--line: var(--line-w) solid var(--ink);
	--shadow-xs: 3px 3px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--shadow: 7px 7px 0 var(--ink);
	--shadow-card: 8px 8px 0 var(--ink);
	--shadow-lg: 10px 10px 0 var(--ink);

	--r-pill: 999px;
	--r-sm: 12px;
	--r-card: 20px;
	--r-panel: 32px;

	--font-display: "Gabarito", "Arial Black", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-type: "Courier Prime", "Courier New", ui-monospace, monospace;

	--gutter: 16px;
	--max: 1240px;
	--ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ==========================================================================
   Minimal reset (replaces Kadence's global.min.css, which is not loaded)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-top: 0; }
img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
#wrapper, #inner-wrap { display: block; overflow: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Screen-reader text and Kadence's skip link */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus,
.screen-reader-text:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 100000;
	width: auto; height: auto; clip: auto; padding: 12px 20px; margin: 0;
	background: var(--sunflower); color: var(--ink); border: var(--line); border-radius: var(--r-pill);
	font: 800 17px var(--font-display); text-decoration: none; white-space: normal;
}

/* ==========================================================================
   Base — overrides Kadence's global palette where it leaks through
   ========================================================================== */

body.bls {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body.bls { font-size: 18px; } }

.bls #wrapper,
.bls #inner-wrap { background: transparent; }

.bls a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
.bls a:hover { color: inherit; }

.bls h1, .bls h2, .bls h3, .bls h4 { color: var(--ink); font-family: var(--font-display); }

.bls img { max-width: 100%; height: auto; }
.bls [hidden] { display: none !important; }

.bls :focus-visible {
	outline: 3px solid var(--sunflower);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--ink);
}

.bls .screen-reader-text:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.bls-container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.bls-section { padding-block: clamp(56px, 8vw, 104px); }
.bls-section--tint { background: var(--tint-raspberry); border-block: var(--line); }
.bls-section--sun { background: var(--tint-sunflower); border-block: var(--line); }
.bls-section--ink { background: var(--ink); color: var(--paper); }

.bls-kicker {
	font-family: var(--font-type);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--muted);
	margin: 0 0 14px;
}
.bls-section--ink .bls-kicker { color: var(--sunflower); }

.bls .bls-h1 {
	font-weight: 900;
	font-size: clamp(52px, 7vw, 100px);
	line-height: .95;
	letter-spacing: -.035em;
	margin: 0 0 24px;
}
.bls .bls-h1--sm { font-size: clamp(40px, 5.4vw, 76px); }

.bls .bls-h2 {
	font-weight: 900;
	font-size: clamp(40px, 4.6vw, 64px);
	line-height: .98;
	letter-spacing: -.03em;
	margin: 0 0 18px;
}
.bls-section--ink .bls-h2 { color: var(--paper); }

.bls-lead { font-size: 1.15em; max-width: 34em; margin: 0 0 28px; }
.bls-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.bls-section-head > div { max-width: 40em; }
.bls-section-head p:last-child { margin-bottom: 0; }

.bls-notice { background: var(--sunflower); border: var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin: 16px var(--gutter); }

/* ==========================================================================
   Buttons, chips, pills, stamps
   ========================================================================== */

.bls .bls-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 24px;
	border: var(--line); border-radius: var(--r-pill);
	background: var(--white); color: var(--ink);
	font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.1;
	text-decoration: none; text-transform: none; letter-spacing: 0;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: transform .1s ease, box-shadow .1s ease;
}
.bls .bls-btn:hover { background: var(--white); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.bls .bls-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bls .bls-btn--sunflower, .bls .bls-btn--sunflower:hover { background: var(--sunflower); }
.bls .bls-btn--mint, .bls .bls-btn--mint:hover { background: var(--mint); }
.bls .bls-btn--raspberry, .bls .bls-btn--raspberry:hover { background: var(--raspberry); }
.bls .bls-btn--ink, .bls .bls-btn--ink:hover { background: var(--ink); color: var(--sunflower); }
.bls .bls-btn--ink:hover { box-shadow: 5px 5px 0 var(--sunflower), 5px 5px 0 2px var(--ink); }
.bls .bls-btn--lg { min-height: 56px; padding-inline: 30px; font-size: 19px; }
.bls .bls-btn .bls-icon { width: 20px; height: 20px; }

.bls-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bls .bls-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
	background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--r-pill);
	font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none;
	box-shadow: var(--shadow-xs); cursor: pointer;
	transition: transform .1s, box-shadow .1s;
}
.bls .bls-chip:hover { background: var(--white); color: var(--ink); transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); }
.bls .bls-chip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.bls .bls-chip[aria-current="true"] { background: var(--sunflower); }
.bls-chip__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 8px; background: var(--c, var(--mint)); }

.bls-pill {
	display: inline-block; padding: 4px 12px;
	background: var(--tangerine); color: var(--ink);
	border: var(--line); border-radius: var(--r-pill);
	font-family: var(--font-type); font-weight: 700; font-size: 12px; line-height: 1.4;
	letter-spacing: .1em; text-transform: uppercase;
}
.bls-pill--white { background: var(--white); }
.bls-pill--mint { background: var(--mint); }
.bls a.bls-pill { text-decoration: none; }

.bls-stamp {
	display: inline-block; margin: 0; padding: 5px 10px 4px;
	color: var(--stamp);
	border: 2.5px solid var(--stamp); border-radius: 6px;
	outline: 1.5px solid var(--stamp); outline-offset: 2px;
	font-family: var(--font-type); font-weight: 700; font-size: 12.5px; line-height: 1.2;
	letter-spacing: .1em; text-transform: uppercase;
	transform: rotate(-5deg);
	white-space: nowrap;
}

.bls-highlight {
	display: inline-block;
	padding: 0 .16em .04em;
	background: var(--raspberry);
	border: 3px solid var(--ink);
	border-radius: .22em;
	box-shadow: 5px 5px 0 var(--ink);
	transform: rotate(-2deg);
}

/* ==========================================================================
   Announcement strip + header + nav drawer
   ========================================================================== */

.bls-strip { background: var(--ink); color: var(--sunflower); text-align: center; }
.bls-strip__inner {
	margin: 0; padding: 9px var(--gutter);
	font-family: var(--font-type); font-weight: 700; font-size: 13px; letter-spacing: .06em;
}
.bls .bls-strip a { color: var(--sunflower); }

.bls-header { position: relative; z-index: 50; background: var(--paper); border-bottom: var(--line); }
.bls-header__inner {
	max-width: var(--max); margin-inline: auto; padding: 14px var(--gutter);
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}

.bls .bls-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.bls-logo__mark { flex: none; width: 46px; height: 46px; }
.bls-logo__word { display: flex; flex-direction: column; line-height: 1; }
.bls-logo__top { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: -.035em; }
.bls-logo__bottom { font-family: var(--font-type); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; }

.bls-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-left: auto; }
.bls-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; }
.bls .bls-nav__list a {
	position: relative; display: inline-flex; align-items: center; min-height: 44px;
	font-family: var(--font-display); font-weight: 800; font-size: 17px; text-decoration: none;
}
.bls .bls-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 4px;
	background: var(--raspberry); border-radius: 2px;
	transform: scaleX(0); transform-origin: left; transition: transform .15s ease;
}
.bls .bls-nav__list a:hover::after,
.bls .bls-nav__list .current-menu-item > a::after,
.bls .bls-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.bls .bls-menu-toggle {
	display: none;
	width: 52px; height: 52px; padding: 0; margin-left: auto;
	background: var(--sunflower); border: var(--line); border-radius: 14px;
	box-shadow: var(--shadow-sm); cursor: pointer; position: relative; z-index: 70;
}
.bls .bls-menu-toggle:hover { background: var(--sunflower); }
.bls .bls-menu-toggle:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bls-menu-toggle__bars,
.bls-menu-toggle__bars::before,
.bls-menu-toggle__bars::after {
	position: absolute; left: 13px; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); content: "";
	transition: transform .18s ease, opacity .18s ease;
}
.bls-menu-toggle__bars { top: 23px; }
.bls-menu-toggle__bars::before { left: 0; top: -7px; }
.bls-menu-toggle__bars::after { left: 0; top: 7px; }
.bls-menu-open .bls-menu-toggle__bars { background: transparent; }
.bls-menu-open .bls-menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.bls-menu-open .bls-menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
	/* Without JS the nav simply wraps under the logo. */
	.bls-nav { width: 100%; margin-left: 0; }

	.bls-js .bls .bls-menu-toggle { display: block; }
	.bls-js .bls-nav {
		position: fixed; inset: 0 0 0 auto; z-index: 60;
		width: min(380px, 88vw); padding: 96px 28px 32px;
		flex-direction: column; align-items: flex-start; gap: 28px;
		background: var(--paper); border-left: var(--line);
		box-shadow: -8px 0 0 var(--ink);
		transform: translateX(110%); visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
		overflow-y: auto;
	}
	.bls-js.bls-menu-open .bls-nav { transform: none; visibility: visible; transition: transform .25s ease; }
	.bls-js .bls-nav__list { flex-direction: column; gap: 6px; }
	.bls-js .bls .bls-nav__list a { font-size: 26px; }
	.bls-js.bls-menu-open body { overflow: hidden; }
	.bls-js.bls-menu-open .bls-header::after {
		content: ""; position: fixed; inset: 0; z-index: 55; background: var(--ink); opacity: .45;
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */

.bls-hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; }
.bls-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .bls-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }

.bls .bls-hero__title { font-size: clamp(52px, 7vw, 100px); }
.bls-hero__art { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.bls-hero__svg { display: block; width: 100%; height: auto; }
.bls-hero__book { transform-origin: 420px 126px; animation: bls-float 6s ease-in-out infinite; }
.bls-hero__badge { position: absolute; left: -8px; bottom: 6%; width: clamp(110px, 28%, 150px); }

.bls-badge { display: block; width: 100%; height: auto; }
.bls-badge__ring { transform-origin: 80px 80px; animation: bls-spin 40s linear infinite; }

@keyframes bls-spin { to { transform: rotate(360deg); } }
@keyframes bls-float { 50% { transform: translateY(-10px) rotate(3deg); } }

/* Search card */
.bls-search {
	display: grid; gap: 14px; margin: 0 0 22px; padding: 18px;
	background: var(--white); border: var(--line); border-radius: 24px; box-shadow: var(--shadow-card);
}
@media (min-width: 640px) {
	.bls-search { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 20px 22px; }
	.bls-search > .bls-field:first-child { grid-column: 1 / -1; }
}
.bls-field { display: grid; gap: 6px; min-width: 0; }
.bls-field > label, .bls-field__label {
	font-family: var(--font-type); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.bls-field__row { display: flex; gap: 8px; align-items: center; }
.bls .bls-input,
.bls .bls-select {
	width: 100%; min-height: 50px; padding: 10px 14px;
	background: var(--tint-blueberry); color: var(--ink);
	border: var(--line); border-radius: 14px;
	font-family: var(--font-body); font-size: 17px;
	box-shadow: none;
}
.bls .bls-select {
	appearance: none; -webkit-appearance: none; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1.5 2 7 7.5 12.5 2' fill='none' stroke='%231C1A2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.bls .bls-input::placeholder { color: var(--muted); opacity: 1; }
.bls .bls-input:focus, .bls .bls-select:focus { background-color: var(--white); }

.bls .bls-round-btn {
	flex: none; width: 50px; height: 50px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--mint); border: var(--line); border-radius: 50%;
	box-shadow: var(--shadow-xs); cursor: pointer;
}
.bls .bls-round-btn:hover { background: var(--mint); }
.bls .bls-round-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ==========================================================================
   Bookshelf (borough spines)
   ========================================================================== */

.bls-shelf-wrap { position: relative; }
.bls-shelf {
	display: flex; align-items: flex-end; gap: 6px;
	list-style: none; margin: 0; padding: 30px 6px 0;
	min-height: 380px;
	overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin;
	border-bottom: 14px solid var(--ink);
}
.bls-shelf__label {
	margin: 0 0 10px; font-family: var(--font-type); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
}
.bls-shelf + .bls-shelf__label { margin-top: 48px; }

.bls-spine { flex: none; width: var(--w, 64px); height: var(--h, 280px); }
.bls .bls-spine a {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
	width: 100%; height: 100%; padding: 10px 0 14px;
	background: var(--c, var(--mint)); color: var(--ink);
	border: var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
	text-decoration: none;
	transition: transform .15s ease;
}
.bls .bls-spine a::before, .bls .bls-spine a::after {
	content: ""; position: absolute; left: 0; right: 0; height: 2.5px; background: var(--ink);
}
.bls .bls-spine a::before { top: 56px; }
.bls .bls-spine a::after { bottom: 36px; }
.bls .bls-spine a:hover { transform: translateY(-14px); }
.bls-spine__count {
	flex: none; display: grid; place-items: center; width: 38px; height: 38px;
	background: var(--white); border: var(--line); border-radius: 50%;
	font-family: var(--font-display); font-weight: 900; font-size: 17px;
}
.bls-spine__name {
	writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg);
	margin-top: 10px;
	font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1.05; letter-spacing: -.01em;
	max-height: calc(var(--h, 280px) - 110px); overflow: hidden;
}
.bls-spine__texts { display: flex; flex-direction: row-reverse; gap: 2px; margin-top: 10px; }
.bls-spine__texts .bls-spine__name { margin-top: 0; }
.bls-spine__cta {
	writing-mode: vertical-rl; transform: rotate(180deg);
	font-family: var(--font-type); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--stamp);
	max-height: calc(var(--h, 280px) - 110px); overflow: hidden;
}

.bls .bls-spine--empty a {
	background: var(--white); border-style: dashed; color: var(--ink);
}
.bls .bls-spine--empty a::before, .bls .bls-spine--empty a::after { opacity: .25; }
.bls-spine--empty .bls-spine__count { border-style: dashed; color: var(--muted); }

.bls-spine--lean { width: 92px; height: 250px; margin-left: 18px; transform: rotate(9deg); transform-origin: bottom left; }
.bls .bls-spine--lean a {
	background: var(--white); border-style: dashed; padding: 14px 8px;
	justify-content: center;
}
.bls .bls-spine--lean a::before, .bls .bls-spine--lean a::after { display: none; }
.bls-spine--lean .bls-spine__name { font-size: 17px; max-height: 210px; margin: 0; }

/* ==========================================================================
   Map teaser (static until phase 4 replaces it with Leaflet)
   ========================================================================== */

.bls-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .bls-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }

.bls-mapframe {
	position: relative; overflow: hidden;
	background: var(--tint-blueberry);
	border: var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
	aspect-ratio: 4 / 3;
}
.bls-mapframe svg { display: block; width: 100%; height: 100%; }
.bls-mapframe__cta { position: absolute; right: 18px; bottom: 38px; z-index: 1100; }

/* ==========================================================================
   Leaflet maps (Leaflet itself is loaded lazily by map.js)
   ========================================================================== */

.bls-map { position: relative; overflow: hidden; background: var(--tint-blueberry); z-index: 0; }
.bls-map > svg { display: block; width: 100%; height: 100%; }
.bls-map.is-live > svg, .bls-map.is-live > .bls-map__fallback { display: none; }
.bls-map__fallback {
	display: grid; place-items: center; height: 100%; margin: 0; min-height: 200px;
	font-family: var(--font-type); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.bls-map.has-error::after {
	content: attr(data-error); position: absolute; left: 16px; bottom: 16px; z-index: 500;
	padding: 6px 12px; background: var(--white); border: var(--line); border-radius: var(--r-pill);
	font-family: var(--font-type); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}

.bls .leaflet-container { font-family: var(--font-body); background: var(--tint-blueberry); color: var(--ink); }
/* Light tiles nudged toward mint (flat filter, no blur). */
.bls-tiles { filter: sepia(.35) hue-rotate(95deg) saturate(1.35) brightness(1.04); }
/* Standard OSM tiles are busy: wash them out toward the same light mint. */
.bls-tiles--osm { filter: grayscale(.85) sepia(.3) hue-rotate(95deg) saturate(1.6) brightness(1.12) contrast(.82); }

/* Framed variants */
.bls-mapframe > .bls-map { position: absolute; inset: 0; }
.bls-map--single,
.bls-map--borough,
.bls-map--panel {
	border: var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
}
.bls-map--single { margin: 48px 10px 0; aspect-ratio: 4 / 3; }
.bls-map--borough { height: clamp(320px, 46vw, 460px); margin-bottom: 48px; }
.bls-map--full { height: calc(100svh - 220px); min-height: 460px; border-bottom: var(--line); }

/* House pins */
.bls .bls-pin-icon { background: none; border: 0; }
.bls-pin-icon__inner { display: block; width: 40px; height: 48px; transform-origin: 50% 100%; animation: bls-pin-pop .45s var(--ease-pop) both; transition: transform .15s ease; }
.bls-pin-icon__inner svg { display: block; }
.bls-pin-icon:hover .bls-pin-icon__inner,
.bls-pin-icon:focus-visible .bls-pin-icon__inner,
.bls-pin-icon.is-active .bls-pin-icon__inner { transform: scale(1.25) translateY(-3px); }
@keyframes bls-pin-pop { from { transform: scale(0); } }

/* Clusters: ink circle, sunflower number, dashed ink ring */
.bls .bls-cluster {
	display: grid; place-items: center;
	background: var(--ink); color: var(--sunflower); border-radius: 50%;
	box-shadow: 0 0 0 3px var(--paper);
	outline: 2.5px dashed var(--ink); outline-offset: 5px;
	font-family: var(--font-display); font-weight: 900; font-size: 18px;
	transition: transform .15s ease;
}
.bls .bls-cluster:hover, .bls .bls-cluster.is-active { transform: scale(1.12); background: var(--raspberry); color: var(--ink); }

/* « Vous êtes ici » */
.bls .bls-me { background: none; border: 0; }
.bls-me span { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--blueberry); border: 3px solid var(--ink); box-shadow: 0 0 0 5px var(--sunflower), 0 0 0 7.5px var(--ink); }

/* Controls: 44px squares, ink borders */
.bls .leaflet-bar { border: var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); overflow: hidden; }
.bls .leaflet-bar a,
.bls .leaflet-bar a:hover {
	width: 44px; height: 44px; line-height: 42px;
	background: var(--white); color: var(--ink);
	font-family: var(--font-display); font-weight: 900; font-size: 24px; text-decoration: none;
	border-bottom: var(--line);
}
.bls .leaflet-bar a:last-child { border-bottom: 0; }
.bls .leaflet-bar a:hover { background: var(--tint-mint); }
.bls .bls-map-locate {
	display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
	background: var(--mint); border: var(--line); border-radius: 14px; box-shadow: var(--shadow-xs);
	cursor: pointer;
}
.bls .bls-map-locate:hover { background: var(--mint); }
.bls .bls-map-locate:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.bls-locating .bls-map-locate svg { animation: bls-spin 1.2s linear infinite; }
.bls .leaflet-control-attribution { background: var(--paper); font-size: 11px; padding: 2px 8px; border-top-left-radius: 8px; }
.bls .leaflet-control-attribution a { color: var(--ink); }

/* Popups: mini card */
.bls .bls-popup .leaflet-popup-content-wrapper {
	padding: 0; overflow: hidden; background: var(--white);
	border: var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.bls .bls-popup .leaflet-popup-content { margin: 0; width: 240px !important; line-height: 1.4; font-size: 15px; }
.bls .bls-popup .leaflet-popup-tip { background: var(--white); border: var(--line); box-shadow: none; }
.bls .bls-popup .leaflet-popup-tip-container { margin-top: -2px; }
.bls .bls-popup a.leaflet-popup-close-button {
	top: 8px; right: 8px; width: 30px; height: 30px; z-index: 2;
	display: grid; place-items: center;
	background: var(--white); color: var(--ink); border: var(--line); border-radius: 50%;
	font: 900 18px/1 var(--font-display); text-decoration: none;
}
.bls-popup__media { display: block; border-bottom: var(--line); }
.bls-popup__media img { display: block; width: 100%; height: 120px; object-fit: cover; }
.bls-popup__art { display: grid; place-items: center; height: 120px; }
.bls-popup__body { display: grid; gap: 6px; padding: 12px 14px 14px; justify-items: start; }
.bls-popup__body .bls-pill { font-size: 10.5px; padding: 2px 9px; }
.bls .bls-popup__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.1; color: var(--ink); text-decoration: none; }
.bls .bls-popup__title:hover { text-decoration: underline; }
.bls-popup__meta { margin: 0; color: var(--muted); font-size: 14px; }

/* Full-screen map page */
.bls-fullmap__bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
	padding: 16px var(--gutter); background: var(--paper); border-bottom: var(--line);
}
.bls-fullmap__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.bls .bls-fullmap__title { margin: 0; font-weight: 900; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.03em; }
.bls-fullmap__list { margin-left: auto; }
.bls .bls-chip[aria-pressed="true"] { background: var(--sunflower); }

/* Archive: list + sticky map */
.bls-browse { display: grid; gap: 32px; }
.bls-browse__map { min-width: 0; }
.bls-map--panel { height: calc(100svh - 200px); min-height: 420px; }
@media (min-width: 1024px) {
	.bls-browse { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 40px; }
	.bls-browse__list .bls-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
	.bls-browse__sticky { position: sticky; top: 24px; }
	.admin-bar .bls-browse__sticky { top: 56px; }
	.bls-map--panel { height: calc(100vh - 64px); max-height: 780px; }
}
@media (max-width: 1023px) {
	.bls-browse[data-bls-view="list"] .bls-browse__map { display: none; }
	.bls-browse[data-bls-view="map"] .bls-browse__list { display: none; }
	.bls-browse[data-bls-view="map"] { padding-bottom: 110px; }
	.bls-page--archive .bls-results { padding-bottom: 120px; }
}

/* Floating pill: Liste | Carte | + (mobile) */
.bls-floatbar {
	position: fixed; left: 50%; bottom: 18px; z-index: 90; transform: translateX(-50%);
	display: flex; align-items: center; gap: 4px; padding: 6px;
	background: var(--ink); border: 2.5px solid var(--ink); border-radius: var(--r-pill);
	box-shadow: 5px 5px 0 var(--sunflower);
}
.bls .bls-floatbar button {
	min-width: 84px; min-height: 46px; padding: 0 16px;
	background: transparent; color: var(--paper); border: 0; border-radius: var(--r-pill); box-shadow: none;
	font-family: var(--font-display); font-weight: 800; font-size: 16px; cursor: pointer;
}
.bls .bls-floatbar button:hover { background: transparent; color: var(--sunflower); }
.bls .bls-floatbar button[aria-pressed="true"] { background: var(--sunflower); color: var(--ink); }
.bls .bls-floatbar__add {
	display: grid; place-items: center; width: 48px; height: 48px; margin-left: 4px;
	background: var(--raspberry); border: 2.5px solid var(--paper); border-radius: 50%;
}
@media (min-width: 1024px) { .bls .bls-floatbar { display: none; } }

/* « Près de moi » block inside the filters */
.bls-near { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bls-near .bls-select { min-width: 0; }

/* ==========================================================================
   Card « fiche »
   ========================================================================== */

.bls-grid { display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.bls-grid > li { display: flex; }

.bls-card {
	position: relative; display: flex; flex-direction: column; width: 100%;
	background: var(--white);
	border: var(--line); border-radius: var(--r-card);
	box-shadow: var(--shadow);
	transform: rotate(var(--tilt, 0deg));
	transition: transform .18s ease, box-shadow .18s ease;
}
.bls-card:hover, .bls-card:focus-within { transform: translateY(-2px) rotate(0deg); box-shadow: 9px 9px 0 var(--ink); }

.bls-card__media {
	position: relative; height: 200px; overflow: hidden;
	background: var(--bg, var(--mint));
	border-bottom: var(--line); border-radius: calc(var(--r-card) - 3px) calc(var(--r-card) - 3px) 0 0;
	display: grid; place-items: center;
}
.bls-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bls-boxmini { width: 150px; height: 150px; margin-top: 12px; }
.bls-card__hole {
	position: absolute; top: 14px; left: 14px; width: 16px; height: 16px;
	background: var(--paper); border: var(--line); border-radius: 50%;
}
.bls-card__media .bls-pill { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bls-card__media .bls-card__distance { left: auto; bottom: auto; right: 12px; top: 12px; }

.bls-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.bls .bls-card__title { margin: 0 0 12px; font-weight: 800; font-size: 23px; line-height: 1.1; letter-spacing: -.015em; }
.bls .bls-card__link { text-decoration: none; }
.bls .bls-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.bls .bls-card__link:focus-visible { outline: none; box-shadow: none; }
.bls .bls-card__link:focus-visible::after { outline: 3px solid var(--sunflower); outline-offset: 4px; box-shadow: 0 0 0 7px var(--ink); }

.bls-meta { display: grid; gap: 8px; margin: 0 0 18px; }
.bls-meta div { display: grid; gap: 1px; }
.bls-meta dt { font-family: var(--font-type); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bls-meta dd { margin: 0; font-size: 16px; line-height: 1.35; }

.bls-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }

.bls .bls-fav {
	position: relative; z-index: 2; flex: none;
	width: 44px; height: 44px; padding: 0;
	display: inline-grid; place-items: center;
	background: var(--white); border: var(--line); border-radius: 50%;
	box-shadow: var(--shadow-xs); cursor: pointer;
}
.bls .bls-fav:hover { background: var(--tint-raspberry); }
.bls .bls-fav:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.bls-fav .bls-icon--heart path { fill: transparent; transition: fill .15s; }
.bls-fav[aria-pressed="true"] { background: var(--tint-raspberry); }
.bls-fav[aria-pressed="true"] .bls-icon--heart path { fill: var(--raspberry); }
.bls-fav[aria-pressed="true"] .bls-icon--heart { animation: bls-pop .35s var(--ease-pop); }
@keyframes bls-pop { 40% { transform: scale(1.3); } }

/* ==========================================================================
   « Simple comme bonjour » + CTA
   ========================================================================== */

.bls-steps { display: grid; gap: 40px 28px; list-style: none; margin: 56px 0 0; padding: 0; }
@media (min-width: 860px) { .bls-steps { grid-template-columns: repeat(3, 1fr); } }
.bls-step {
	position: relative; padding: 44px 28px 30px;
	background: var(--c); color: var(--ink);
	border: var(--line); border-radius: 26px;
	box-shadow: 8px 8px 0 var(--paper);
}
.bls-step:nth-child(2) { transform: rotate(.8deg); }
.bls-step:nth-child(3) { transform: rotate(-.6deg); }
.bls .bls-step h3 { margin: 0 0 8px; font-weight: 900; font-size: 34px; letter-spacing: -.02em; }
.bls-step p { margin: 0; }
.bls-step__num {
	position: absolute; top: -26px; left: 22px;
	display: grid; place-items: center; width: 58px; height: 58px;
	background: var(--white); border: var(--line); border-radius: 50%;
	box-shadow: var(--shadow-xs);
	font-family: var(--font-display); font-weight: 900; font-size: 28px;
	transform: rotate(-9deg);
}
.bls-step:nth-child(2) .bls-step__num { transform: rotate(7deg); }

.bls-cta {
	display: grid; gap: 28px; align-items: center;
	padding: clamp(32px, 5vw, 64px);
	background: var(--blueberry); color: var(--ink);
	border: var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) { .bls-cta { grid-template-columns: 1fr auto; } }
.bls .bls-cta .bls-h2 { margin: 0 0 10px; }
.bls-cta p { margin: 0; font-size: 1.1em; max-width: 34em; }

/* ==========================================================================
   Archive: filters, count, pagination
   ========================================================================== */

.bls-page-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.bls-count {
	display: inline-block; margin: 0;
	font-family: var(--font-type); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .1em;
}

.bls-filters {
	display: grid; gap: 14px; margin: 24px 0 40px; padding: 18px;
	background: var(--white); border: var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .bls-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bls-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; } }
.bls-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bls .bls-reset { font-family: var(--font-type); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }

.bls-results { padding-bottom: clamp(56px, 8vw, 104px); }
.bls-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }

.bls-empty {
	padding: 40px 28px; text-align: center;
	background: var(--tint-sunflower); border: var(--line); border-radius: var(--r-card);
}
.bls-empty .bls-boxmini { margin: 0 auto 8px; }

.bls .navigation.pagination { margin-top: 56px; }
.bls .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bls .nav-links .page-numbers {
	display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 14px;
	background: var(--white); color: var(--ink);
	border: var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-xs);
	font-family: var(--font-display); font-weight: 800; text-decoration: none;
}
.bls .nav-links .page-numbers.current { background: var(--sunflower); }
.bls .nav-links .page-numbers.dots { border: 0; box-shadow: none; background: none; }

/* ==========================================================================
   Single box
   ========================================================================== */

.bls-breadcrumb { margin: 0 0 28px; font-family: var(--font-type); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.bls-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.bls-breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 .6em; color: var(--muted); }
.bls .bls-breadcrumb a { color: var(--muted); }
.bls .bls-breadcrumb [aria-current] { color: var(--ink); }

.bls-fiche { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .bls-fiche { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; } }

.bls-polaroid {
	position: relative; margin: 18px 10px 0;
	padding: 16px 16px 64px;
	background: var(--white); border: var(--line); border-radius: 6px; box-shadow: var(--shadow-lg);
	transform: rotate(-1.2deg);
}
.bls-polaroid img, .bls-polaroid__art { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: var(--line); }
.bls-polaroid__art { display: grid; place-items: center; background: var(--bg, var(--mint)); }
.bls-polaroid__art .bls-boxmini { width: 64%; height: auto; margin: 0; }
.bls-polaroid figcaption {
	position: absolute; left: 16px; right: 16px; bottom: 16px;
	font-family: var(--font-type); font-weight: 700; font-size: 14px; letter-spacing: .06em;
}
.bls-polaroid::before, .bls-polaroid::after {
	content: ""; position: absolute; top: -16px; width: 112px; height: 32px;
	border: 2px solid var(--ink);
}
.bls-polaroid::before { left: 22px; background: var(--tint-mint); transform: rotate(-7deg); }
.bls-polaroid::after { right: 22px; background: var(--tint-raspberry); transform: rotate(6deg); }

.bls-fiche__info > .bls-pill { margin-bottom: 14px; }

.bls-indexcard {
	position: relative; margin: 8px 0 52px;
	background: var(--white);
	border: var(--line); border-top: 30px solid var(--raspberry); border-radius: 16px;
	box-shadow: var(--shadow-card);
}
.bls-indexcard::before {
	content: ""; position: absolute; left: -2.5px; right: -2.5px; top: -30px; height: 30px;
	border: var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; pointer-events: none;
}
.bls-indexcard dl { margin: 0; padding: 6px 22px 12px; }
.bls-indexcard div { display: grid; gap: 2px 18px; padding: 12px 0; border-bottom: 2px solid var(--blueberry); }
@media (min-width: 560px) { .bls-indexcard div { grid-template-columns: 170px 1fr; align-items: baseline; } }
.bls-indexcard div:last-child { border-bottom: 0; }
.bls-indexcard dt { font-family: var(--font-type); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bls-indexcard dd { margin: 0; font-size: 18px; font-weight: 700; }
.bls .bls-indexcard dd a { text-decoration-color: var(--blueberry); }
.bls-indexcard .bls-stamp--big {
	position: absolute; right: -10px; bottom: -34px;
	padding: 10px 16px 9px; font-size: 16px;
	background: var(--paper);
	transform: rotate(-8deg);
}

.bls-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; }

.bls-still {
	display: grid; gap: 16px; padding: 24px;
	background: var(--mint); border: var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.bls .bls-still h2 { margin: 0 0 4px; font-weight: 900; font-size: 30px; letter-spacing: -.02em; }
.bls-still p { margin: 0; }
.bls-still__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.bls-details { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--line); border-radius: 16px; overflow: hidden; }
.bls-details th, .bls-details td { padding: 14px 18px; text-align: left; border-bottom: 2px solid var(--tint-blueberry); }
.bls-details tr:last-child th, .bls-details tr:last-child td { border-bottom: 0; }
.bls-details th { width: 42%; font-family: var(--font-type); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.bls-prose { max-width: 40em; }
.bls-prose > :first-child { margin-top: 0; }

.bls-single-sections { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 960px) { .bls-single-sections { grid-template-columns: 1fr 1fr; gap: 56px; } }
.bls .bls-h3 { margin: 0 0 16px; font-weight: 900; font-size: 30px; letter-spacing: -.02em; }

/* ==========================================================================
   Borough page
   ========================================================================== */

.bls-term-head { display: grid; gap: 8px; }
.bls-term-head .bls-lead { margin-bottom: 8px; }

/* ==========================================================================
   Forms: Rajouter, Contactez-nous, votes
   ========================================================================== */

.bls-formpage__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .bls-formpage__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } .bls-formpage__intro { position: sticky; top: 32px; } }
.bls-formpage__art { width: 180px; height: auto; margin-top: 8px; }
.bls-mini-steps { margin: 0; padding-left: 1.3em; font-weight: 700; display: grid; gap: 6px; }

.bls-formcard {
	padding: clamp(20px, 4vw, 40px);
	background: var(--white); border: var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
}
.bls-form { display: grid; gap: 26px; }
.bls-form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .bls-form__row { grid-template-columns: 1fr 1fr; } }
.bls-form__note { margin: 0; color: var(--muted); font-size: 15px; }
.bls .bls-textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.bls-field__hint { margin: -2px 0 2px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.bls-field__error { margin: 0; color: var(--stamp); font-weight: 700; font-size: 15px; }
.bls .bls-input[aria-invalid="true"], .bls .bls-select[aria-invalid="true"] { border-color: var(--stamp); background-color: var(--tint-raspberry); }
.bls-req { color: var(--stamp); }
.bls-opt { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 14px; }
.bls .bls-file { font-family: var(--font-body); font-size: 16px; max-width: 100%; }
.bls .bls-file::file-selector-button {
	margin-right: 12px; padding: 10px 18px; cursor: pointer;
	background: var(--tint-sunflower); color: var(--ink); border: var(--line); border-radius: var(--r-pill);
	font-family: var(--font-display); font-weight: 800;
}

/* Emplacement as chip-radios */
.bls-choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.bls-choices legend, .bls-report legend { padding: 0; margin-bottom: 10px; font-family: var(--font-type); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bls-choices__list { display: flex; flex-wrap: wrap; gap: 10px; }
.bls-choice { position: relative; }
.bls-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bls-choice > span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; cursor: pointer;
	background: var(--white); border: var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-xs);
	font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.bls-choice input:checked + span { background: var(--sunflower); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.bls-choice input:focus-visible + span { outline: 3px solid var(--sunflower); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.bls-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.bls-field > label.bls-check { font-family: var(--font-body); font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* File input: native control hidden, French label button instead */
.bls-filepick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bls-filepick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bls-filepick__name { color: var(--muted); font-size: 15px; }
.bls-filepick input[type="file"]:focus-visible + label { outline: 3px solid var(--sunflower); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.bls-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }

/* Honeypot: off-screen, never focusable */
.bls-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bls-turnstile { min-height: 65px; }

/* Picker map */
.bls-picker { display: grid; gap: 12px; }
.bls-picker__status { margin: 0; padding: 10px 14px; background: var(--tint-blueberry); border-radius: 12px; font-size: 15px; }
.bls-map--picker { height: clamp(260px, 42vw, 360px); border: var(--line); border-radius: 20px; box-shadow: var(--shadow); cursor: crosshair; }

/* Alerts */
.bls-alert { padding: 18px 20px; border: var(--line); border-radius: 18px; }
.bls-alert > :first-child { margin-top: 0; }
.bls-alert > :last-child { margin-bottom: 0; }
.bls-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.bls-alert--error { background: var(--tint-raspberry); }
.bls-alert--ok { background: var(--tint-mint); }
.bls-alert--ok h2 { margin: 0 0 6px; font-weight: 900; font-size: 36px; letter-spacing: -.02em; }
.bls-alert--ok p:last-child { display: flex; flex-wrap: wrap; gap: 12px; }
.bls-alert--warn { background: var(--tint-sunflower); }
.bls-alert:focus { outline: 3px solid var(--sunflower); outline-offset: 3px; }

/* « Toujours là? » votes */
.bls-still__btns form { margin: 0; }
.bls-still__msg { margin: 0; padding: 10px 14px; background: var(--white); border: var(--line); border-radius: 14px; font-weight: 700; }
.bls-report > summary { list-style: none; }
.bls-report > summary::-webkit-details-marker { display: none; }
.bls-report[open] > summary { background: var(--tint-raspberry); }
.bls-report__form {
	display: grid; gap: 12px; margin-top: 14px; padding: 18px;
	background: var(--white); border: var(--line); border-radius: 18px;
}
.bls-report__form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.bls-report__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.bls-dialog {
	width: min(480px, calc(100vw - 32px)); padding: 0; color: var(--ink);
	background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.bls-dialog::backdrop { background: rgba(28, 26, 46, .55); }
.bls-dialog .bls-report__form { margin: 0; border: 0; background: transparent; padding: 24px; }

/* 404 */
.bls-404-art { display: grid; place-items: center; }
.bls-404-art__svg { width: min(360px, 70vw); height: auto; transform: rotate(-8deg); }

/* ==========================================================================
   Footer
   ========================================================================== */

.bls-footer { background: var(--violet); color: var(--ink); border-top: 3px solid var(--ink); padding-block: 64px 32px; }
.bls-footer__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.bls-footer__word {
	display: flex; flex-direction: column; margin: 0 0 40px;
	font-family: var(--font-display); font-weight: 900; font-size: clamp(52px, 11vw, 168px); line-height: .86; letter-spacing: -.045em;
}
.bls-footer__word span:last-child { padding-left: .5em; }
.bls-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bls-footer ul { list-style: none; margin: 0; padding: 0; }
.bls .bls-footer a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-decoration-color: var(--ink); }
.bls-footer .bls-kicker { color: var(--ink); }
.bls-footer__about p { margin: 0; max-width: 24em; }
.bls-footer__rule { border: 0; border-top: 2.5px dashed var(--ink); margin: 40px 0 18px; }
.bls-footer__sign { margin: 0; font-family: var(--font-type); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }

/* ==========================================================================
   Toast
   ========================================================================== */

.bls-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100; margin: 0;
	padding: 12px 22px;
	background: var(--ink); color: var(--sunflower);
	border: 2.5px solid var(--sunflower); border-radius: var(--r-pill);
	font-family: var(--font-display); font-weight: 800;
	transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
	transition: transform .2s var(--ease-pop), visibility 0s linear .2s;
	pointer-events: none;
}
.bls-toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .2s var(--ease-pop); }

/* ==========================================================================
   Reduced motion: no tilts, no animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.bls *, .bls *::before, .bls *::after { animation: none !important; transition: none !important; }
	.bls-card, .bls-card:hover, .bls-card:focus-within,
	.bls-highlight, .bls-stamp, .bls-indexcard .bls-stamp--big,
	.bls-polaroid, .bls-step, .bls-step__num, .bls-spine--lean { transform: none !important; }
	.bls-pin-icon__inner { animation: none !important; }
	.bls .bls-spine a:hover { transform: none; }
}
