/* Page Bateaux-navettes — styles Gutenberg (contenu éditable en BO) */

body.lelac-bn-page,
body.lelac-bn-page .wp-site-blocks {
	background: var(--lelac-nv-fond, #f8fafc);
}

body.lelac-bn-page .lelac-page > .wp-block-post-content {
	max-width: none;
	padding-bottom: 0;
}

body.lelac-bn-page .lelac-page-hero .lelac-page-hero__title {
	display: none !important;
}

.lelac-bn {
	padding: 0 0 3.5rem;
	background: transparent !important;
}

.lelac-bn > .wp-block-group__inner-container,
.lelac-bn.wp-block-group {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* Titres + barre verte */
body.lelac-bn-page .lelac-bn__titre.wp-block-heading,
body.lelac-bn-page .lelac-bn__h2.wp-block-heading {
	margin: 0 0 0.95rem;
	color: #0f172a !important;
	font-family: Verdana, Geneva, sans-serif !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

body.lelac-bn-page .lelac-bn__titre.wp-block-heading {
	font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
	letter-spacing: -0.02em !important;
}

body.lelac-bn-page .lelac-bn__h2.wp-block-heading {
	margin: 0.55rem 0 1rem;
	font-size: 1.3rem !important;
	letter-spacing: 0 !important;
}

body.lelac-bn-page .lelac-bn__titre.wp-block-heading::after,
body.lelac-bn-page .lelac-bn__h2.wp-block-heading::after {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 0.7rem;
	border-radius: 2px;
	background-color: var(--lelac-nv-accent, #009247);
}

body.lelac-bn-page .lelac-bn h3.wp-block-heading {
	margin: 1.1rem 0 0.55rem;
	color: #0f172a !important;
	font-family: Verdana, Geneva, sans-serif !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
}

.lelac-bn__chapo {
	margin: 0.85rem 0 1.5rem !important;
	max-width: 42rem;
	color: #475569;
	font-size: 1.05rem;
	line-height: 1.55;
}

/* Bannière chiffres */
.lelac-bn__chiffres {
	margin: 0 0 1.5rem !important;
}

.lelac-bn__chiffres-grille {
	gap: 1rem !important;
}

.lelac-bn__chiffre {
	margin: 0 !important;
	padding: 1.15rem 1rem !important;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.lelac-bn__chiffre:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
}

.lelac-bn__chiffre-val {
	margin: 0 !important;
	color: #009247 !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

.lelac-bn__chiffre-label {
	margin: 0.35rem 0 0 !important;
	color: #64748b !important;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Plan interactif — même largeur que le conteneur .lelac-bn (1120px) */
.lelac-bn__plan {
	margin: 0 0 1.5rem;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	max-width: 100%;
}

.lelac-bn__plan-frame {
	position: relative;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
}

.lelac-bn__plan-overlay {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 500;
	max-width: min(20rem, calc(100% - 5.5rem));
	padding: 0.85rem 1.05rem 0.95rem;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	pointer-events: none;
}

.lelac-bn__plan-kicker {
	margin: 0 0 0.25rem !important;
	color: #64748b !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.lelac-bn__plan-titre {
	margin: 0 !important;
	color: #0f172a !important;
	font-family: Verdana, Geneva, sans-serif !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
}

.lelac-bn__plan-titre::after {
	content: none !important;
}

.lelac-bn-map {
	width: 100%;
	height: clamp(320px, 48vh, 480px);
	min-height: 320px;
	border: 0;
	border-radius: 0;
	background: #e8eef6;
	z-index: 0;
}

.lelac-bn-map .leaflet-control-zoom {
	border: none !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
	border-radius: 10px !important;
	overflow: hidden;
}

.lelac-bn-map .leaflet-bar a {
	width: 34px !important;
	height: 34px !important;
	line-height: 34px !important;
	color: #0f172a !important;
}

.lelac-bn-map__pin {
	background: transparent !important;
	border: none !important;
}

.lelac-bn-map__pin-dot {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.lelac-bn-map__popup strong {
	display: block;
	margin-bottom: 0.35rem;
	color: #0f172a;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.92rem;
	line-height: 1.3;
}

.lelac-bn-map__popup p {
	margin: 0;
	color: #475569;
	font-size: 0.86rem;
	line-height: 1.4;
}

/* Onglets pill sous la carte */
.lelac-bn__plan-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.55rem;
	margin: 0.9rem 0 0;
	padding: 0.15rem 0.1rem 0.35rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.lelac-bn__plan-tab {
	flex: 0 0 auto;
	appearance: none;
	margin: 0;
	padding: 0.62rem 1.05rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lelac-bn__plan-tab:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}

.lelac-bn__plan-tab:focus-visible {
	outline: 2px solid #009247;
	outline-offset: 2px;
}

.lelac-bn__plan-tab.is-active,
.lelac-bn__plan-tab[aria-selected="true"] {
	border-color: #009247;
	background: #009247;
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 146, 71, 0.28);
}

.lelac-bn__plan-source {
	margin: 0.65rem 0 0 !important;
	font-size: 0.82rem;
	line-height: 1.4;
}

.lelac-bn__plan-source a {
	color: #009247;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lelac-bn__plan-source a:hover {
	color: #007a3a;
}

@media (max-width: 560px) {
	.lelac-bn__plan-overlay {
		top: 0.7rem;
		left: 0.7rem;
		max-width: calc(100% - 4.5rem);
		padding: 0.7rem 0.85rem 0.75rem;
	}

	.lelac-bn__plan-titre {
		font-size: 0.95rem !important;
	}

	.lelac-bn-map {
		height: 380px;
	}
}

/* Grille 2/3 – 1/3 */
.lelac-bn__grille {
	gap: 1.5rem !important;
	align-items: start !important;
}

.lelac-bn__carte {
	margin: 0 0 1.25rem !important;
	padding: 1.5rem 1.4rem 1.45rem !important;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lelac-bn__carte:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
}

.lelac-bn__carte--action {
	background: linear-gradient(180deg, #f3faf6 0%, #ffffff 55%);
	border-color: #c7e6d4;
	position: sticky;
	top: 5.5rem;
}

.lelac-bn__badge {
	display: inline-flex !important;
	align-items: center;
	width: fit-content;
	margin: 0 0 0.35rem !important;
	padding: 0.28rem 0.75rem !important;
	border-radius: 999px;
	background: #009247;
	color: #fff !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.2;
}

.lelac-bn__carte p:not(.lelac-bn__badge) {
	color: #475569;
	font-size: 1.02rem;
	line-height: 1.55;
}

.lelac-bn__carte p strong {
	color: #1e293b;
}

.lelac-bn__liaisons,
.lelac-bn__infos {
	margin: 0.5rem 0 1rem !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.lelac-bn__liaisons li,
.lelac-bn__infos li {
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	color: #475569;
	font-size: 0.98rem;
	line-height: 1.45;
}

.lelac-bn__liaisons li strong,
.lelac-bn__infos li strong {
	color: #0f172a;
}

/* Photos */
.lelac-bn__photo {
	margin: 0 0 1.25rem !important;
	overflow: hidden;
	border-radius: 16px;
}

.lelac-bn__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* Boutons sidebar */
.lelac-bn__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 1rem;
}

.lelac-bn__actions .wp-block-button {
	width: 100%;
}

.lelac-bn__actions .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.95rem 1.1rem;
	border-radius: 14px;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
}

body.lelac-bn-page .lelac-bn__btn-primaire .wp-block-button__link {
	border: 1px solid #009247;
	background: #009247 !important;
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(0, 146, 71, 0.28);
}

body.lelac-bn-page .lelac-bn__btn-primaire .wp-block-button__link:hover {
	background: #007a3a !important;
	border-color: #007a3a;
	color: #fff !important;
}

body.lelac-bn-page .lelac-bn__btn-outline .wp-block-button__link,
body.lelac-bn-page .lelac-bn__btn-outline.is-style-outline .wp-block-button__link {
	border: 1.5px solid #009247 !important;
	background: #fff !important;
	color: #009247 !important;
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
}

body.lelac-bn-page .lelac-bn__btn-outline .wp-block-button__link:hover {
	background: #f3faf6 !important;
	color: #007a3a !important;
}

@media (max-width: 900px) {
	.lelac-bn__grille {
		flex-direction: column !important;
	}

	.lelac-bn__main,
	.lelac-bn__side {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	.lelac-bn__carte--action {
		position: static;
	}

	.lelac-bn__chiffres-grille {
		flex-wrap: wrap !important;
	}
}

@media (max-width: 560px) {
	.lelac-bn.wp-block-group {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}
