/* Page Réglementation — hero carte + thématiques pleine largeur conteneur */

body.lelac-reg-page,
body.lelac-reg-page .wp-site-blocks {
	background: var(--lelac-nv-fond, #f8fafc);
}

body.lelac-reg-page .lelac-page > .wp-block-post-content {
	max-width: none;
	padding-bottom: 0;
}

body.lelac-reg-page .lelac-page-hero .lelac-page-hero__title {
	display: none !important;
}

.lelac-reg {
	padding: 0 0 3.5rem;
	background: transparent !important;
}

.lelac-reg__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Intro */
.lelac-reg__intro {
	margin: 0 0 1.35rem;
}

body.lelac-reg-page .lelac-reg__intro h1.lelac-section__titre.lelac-section__titre,
body.lelac-reg-page .lelac-reg__carte h2.lelac-section__titre.lelac-section__titre {
	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-reg-page .lelac-reg__intro h1.lelac-section__titre.lelac-section__titre {
	font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
	letter-spacing: -0.02em !important;
}

body.lelac-reg-page .lelac-reg__carte h2.lelac-section__titre.lelac-section__titre {
	margin: 0.55rem 0 1rem;
	font-size: 1.35rem !important;
	letter-spacing: 0 !important;
}

body.lelac-reg-page .lelac-reg__intro h1.lelac-section__titre.lelac-section__titre::after,
body.lelac-reg-page .lelac-reg__carte h2.lelac-section__titre.lelac-section__titre::after {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 0.7rem;
	border-radius: 2px;
	background-color: var(--lelac-nv-accent, #009247);
}

.lelac-reg__chapo {
	margin: 0.85rem 0 0;
	max-width: 40rem;
	color: #475569;
	font-size: 1.05rem;
	line-height: 1.55;
}

/* Hero carte — pleine largeur du conteneur */
.lelac-reg__hero-carte {
	margin: 0 0 1.5rem;
}

.lelac-reg__hero-frame {
	position: relative;
	width: 100%;
	height: 360px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #e8eef6;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
}

.lelac-reg__hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.lelac-reg__hero-carte--peche {
	margin: 1.15rem 0 1.25rem;
}

.lelac-reg__hero-frame--embed {
	background: #dbe4ef;
}

.lelac-reg__hero-embed {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.lelac-reg__hero-overlay {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	max-width: min(22rem, calc(100% - 2rem));
	padding: 1rem 1.1rem 1.1rem;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.lelac-reg__hero-overlay .lelac-reg__badge {
	margin: 0 0 0.55rem;
}

.lelac-reg__hero-titre {
	margin: 0 0 0.45rem !important;
	color: #0f172a !important;
	font-family: Verdana, Geneva, sans-serif !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}

.lelac-reg__hero-titre::after {
	content: none !important;
}

.lelac-reg__hero-texte {
	margin: 0 0 0.85rem !important;
	color: #475569 !important;
	font-size: 0.9rem !important;
	line-height: 1.45 !important;
}

.lelac-reg__hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

button.lelac-reg__hero-btn,
a.lelac-reg__hero-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.7rem 0.95rem;
	border: 1px solid #009247;
	border-radius: 12px;
	background: #009247;
	color: #fff !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 146, 71, 0.28);
	transition: background 0.18s ease, border-color 0.18s ease;
}

button.lelac-reg__hero-btn:hover,
button.lelac-reg__hero-btn:focus-visible,
a.lelac-reg__hero-btn:hover,
a.lelac-reg__hero-btn:focus-visible {
	background: #007a3a;
	border-color: #007a3a;
	color: #fff !important;
	outline: none;
}

.lelac-reg__hero-btn-icon {
	display: inline-flex;
	width: 1.05rem;
	height: 1.05rem;
}

.lelac-reg__hero-btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.lelac-reg__hero-link {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 0.85rem;
	border: 1.5px solid #009247;
	border-radius: 12px;
	background: #fff;
	color: #009247 !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
}

.lelac-reg__hero-link:hover {
	background: #f3faf6;
	color: #007a3a !important;
}

/* Liste thématiques — 1 colonne pleine largeur */
.lelac-reg__liste {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.lelac-reg__carte {
	margin: 0;
	padding: 1.5rem 1.45rem 1.4rem;
	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-reg__carte:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
}

body.lelac-nav-nouvelle .lelac-reg__badge,
.lelac-reg__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	background: #009247;
	color: #fff !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.72rem;
	font-weight: 700 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.2;
}

.lelac-reg__carte p {
	margin: 0 0 1rem;
	color: #475569;
	font-size: 1.02rem;
	line-height: 1.55;
}

.lelac-reg__carte strong {
	color: #1e293b;
}

body.lelac-reg-page .lelac-reg__carte a:not(.lelac-reg__hero-btn):not(.lelac-reg__hero-link),
body.lelac-reg-page .lelac-reg__callout a {
	color: #009247 !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

body.lelac-reg-page a.lelac-reg__hero-btn {
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

body.lelac-reg-page a.lelac-reg__hero-btn:hover,
body.lelac-reg-page a.lelac-reg__hero-btn:focus-visible {
	color: #fff !important;
}

/* Actions */
.lelac-reg__actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.35rem;
}

.lelac-reg__actions--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lelac-reg__actions--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

a.lelac-reg__action {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 3.35rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	color: #0f172a !important;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.lelac-reg__action:hover {
	transform: translateY(-1px);
	border-color: #009247;
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
	color: #0f172a !important;
}

.lelac-reg__action-icon,
.lelac-reg__action-fleche {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: #009247;
}

.lelac-reg__action-icon {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 9px;
	background: #f3faf6;
}

.lelac-reg__action-icon svg,
.lelac-reg__action-fleche svg,
.lelac-reg__protection-icon svg,
.lelac-reg__callout-icon svg {
	width: 1.05rem;
	height: 1.05rem;
	display: block;
}

.lelac-reg__action-label {
	flex: 1 1 auto;
	min-width: 0;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
}

.lelac-reg__action-fleche {
	opacity: 0.85;
}

/* KPIs baignade */
.lelac-reg__kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.15rem;
	padding: 0;
	list-style: none;
}

.lelac-reg__kpis li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 0.75rem;
	border: 1px solid #e8eef6;
	border-radius: 12px;
	background: #f8fafc;
	text-align: center;
}

.lelac-reg__kpis strong {
	color: #0f172a;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.15;
}

.lelac-reg__kpis span {
	color: #64748b;
	font-size: 0.8rem;
	line-height: 1.3;
}

/* Protections */
.lelac-reg__protections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.lelac-reg__protection {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.75rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	color: #334155;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
}

.lelac-reg__protection-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 9px;
	background: #f3faf6;
	color: #009247;
}

/* Callout SAGE */
.lelac-reg__callout {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin: 0.35rem 0 0;
	padding: 1.05rem 1.1rem;
	border: 1px solid #c7e6d4;
	border-left: 4px solid #009247;
	border-radius: 14px;
	background: #f3faf6;
}

.lelac-reg__callout-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 10px;
	background: #fff;
	color: #009247;
}

.lelac-reg__callout-titre {
	margin: 0 0 0.3rem;
	color: #0f172a;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
}

.lelac-reg__callout-texte {
	margin: 0 !important;
	color: #334155 !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
}

/* Lightbox */
html.lelac-reg-lightbox-open,
html.lelac-reg-lightbox-open body {
	overflow: hidden;
}

.lelac-reg-lightbox[hidden] {
	display: none !important;
}

.lelac-reg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.lelac-reg-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	border: 0;
	cursor: zoom-out;
}

.lelac-reg-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	max-height: min(92vh, 900px);
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
}

.lelac-reg-lightbox__barre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e2e8f0;
}

.lelac-reg-lightbox__titre {
	margin: 0;
	color: #0f172a;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
}

.lelac-reg-lightbox__close {
	appearance: none;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.lelac-reg-lightbox__close:hover,
.lelac-reg-lightbox__close:focus-visible {
	border-color: #009247;
	color: #009247;
}

.lelac-reg-lightbox__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(92vh - 4rem);
	object-fit: contain;
	background: #f8fafc;
}

@media (max-width: 900px) {
	.lelac-reg__hero-frame {
		height: 320px;
	}

	.lelac-reg__actions--3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.lelac-reg__inner {
		padding: 0 1rem;
	}

	.lelac-reg__hero-frame {
		height: 300px;
	}

	.lelac-reg__hero-overlay {
		top: 0.7rem;
		left: 0.7rem;
		right: 0.7rem;
		max-width: none;
		padding: 0.85rem 0.9rem 0.95rem;
	}

	.lelac-reg__hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.lelac-reg__hero-btn,
	.lelac-reg__hero-link {
		justify-content: center;
		width: 100%;
	}

	.lelac-reg__actions--2,
	.lelac-reg__protections,
	.lelac-reg__kpis {
		grid-template-columns: 1fr;
	}
}
