/* Ktebi Ktebek — section Impact écologique */
.kke {
	--kke-bg: #f3efe3;
	--kke-card: var(--bg);
	--kke-ink: var(--foret);
	--kke-green: var(--foret-700);
	--kke-green-2: var(--foret-700);
	--kke-leaf: #8cc79a;
	--kke-muted: var(--ink-muted);
	--kke-line: rgba(23, 58, 49, .12);
	--kke-gold: #e3b862;
	position: relative;
	background:
		radial-gradient(1200px 520px at 15% 0%, rgba(140, 199, 154, .18), transparent 60%),
		radial-gradient(900px 600px at 100% 100%, rgba(227, 184, 98, .12), transparent 60%),
		var(--kke-bg);
	color: var(--kke-ink);
	padding: clamp(56px, 8vw, 112px) 16px;
	overflow: hidden;
	isolation: isolate;
}
.kke *, .kke *::before, .kke *::after { box-sizing: border-box; }
.kke__inner {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

/* ---------- carte ---------- */
.kke__map { position: relative; display: flex; flex-direction: column; align-items: center; }
.kke__map-stage { width: 100%; max-width: 440px; aspect-ratio: 420 / 760; position: relative; }
.kke__map-stage svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kke__map-legend {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--kke-muted);
	display: flex;
	gap: 8px;
	align-items: baseline;
	max-width: 380px;
	text-align: left;
}
.kke-city-label {
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .03em;
	paint-order: stroke;
	stroke-width: 3px;
	stroke-linejoin: round;
}
.kke-city-label--sea { fill: var(--kke-ink); stroke: var(--kke-bg); }
.kke-city-label--land { fill: #f3efe3; stroke: #23594a; stroke-width: 2.5px; }

/* ---------- contenu ---------- */
.kke__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kke-green-2);
}
.kke-dot-live {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
	flex: none;
	transform: translateY(-1px);
}
.kke-dot-live::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--success);
	opacity: 0;
	animation: kke-live 2.4s ease-out infinite;
}
@keyframes kke-live { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.kke__title {
	margin: 0 0 16px;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.1;
	color: var(--kke-ink);
	text-wrap: balance;
}
.kke__lead {
	margin: 0 0 32px;
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.6;
	color: var(--kke-muted);
	max-width: 560px;
}
.kke__lead strong { color: var(--kke-ink); font-variant-numeric: tabular-nums; }

.kke__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.kke-stat {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon value" "label label" "eq eq";
	column-gap: 12px;
	row-gap: 6px;
	align-items: center;
	margin: 0;
	padding: 20px 20px 18px;
	background: var(--kke-card);
	border: 1px solid var(--kke-line);
	border-radius: 18px;
	box-shadow: 0 1px 0 rgba(23, 58, 49, .04), 0 12px 30px -18px rgba(23, 58, 49, .28);
	transition: transform .4s ease, box-shadow .4s ease;
}
.kke-stat.is-bumped { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--kke-leaf), 0 16px 34px -18px rgba(23, 58, 49, .35); }
.kke-stat__icon {
	grid-area: icon;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(47, 112, 88, .1);
	color: var(--kke-green-2);
}
.kke-stat__icon .kke-ico { width: 22px; height: 22px; }
.kke-stat__value {
	grid-area: value;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--kke-ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.kke-stat__label { grid-area: label; font-size: 15px; font-weight: 500; color: var(--kke-ink); margin-top: 6px; }
.kke-stat__eq { grid-area: eq; font-size: 13px; color: var(--kke-muted); min-height: 1.2em; }

.kke__updated { margin: 18px 0 0; font-size: 13px; color: var(--kke-muted); }

.kke__method {
	margin-top: 22px;
	border-top: 1px solid var(--kke-line);
	padding-top: 14px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--kke-muted);
}
.kke__method summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--kke-green);
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}
.kke__method summary::-webkit-details-marker { display: none; }
.kke__method summary::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s ease;
}
.kke__method[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.kke__method summary:focus-visible { outline: 2px solid var(--kke-green-2); outline-offset: 4px; border-radius: 4px; }
.kke__method-body p, .kke__method-body ol { margin: 10px 0; }
.kke__method-body ol { padding-left: 1.2em; }
.kke__method-body li { margin: 6px 0; }
.kke__method strong { color: var(--kke-ink); }
.kke__formula {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	background: rgba(47, 112, 88, .07);
	border-radius: 10px;
	padding: 10px 12px;
	color: var(--kke-ink);
	overflow-wrap: anywhere;
}

/* ---------- bandeau compact [kk_eco_bar] ---------- */
.kke-bar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.kke-bar__item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.kke-bar__item b { font-weight: inherit; }
.kke-bar__sep { opacity: .5; }
.kke-bar .kke-ico { width: 17px; height: 17px; }
.kke-bar .kke-ico--tree { color: #3f9a5a; }
.kke-bar .kke-ico--drop { color: #3a8fd6; }
.kke-bar .kke-ico--sheet { color: #8a7fc4; }
.kke-bar .kke-ico--globe { color: #2c8a7a; }
.kke-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.kke__inner { grid-template-columns: 1fr; }
	.kke__map { order: 2; }
	.kke__map-stage { max-width: 340px; }
}
@media (max-width: 520px) {
	.kke__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.kke-stat { padding: 16px 14px 14px; grid-template-columns: 1fr; grid-template-areas: "icon" "value" "label" "eq"; }
	.kke-stat__icon { width: 34px; height: 34px; border-radius: 10px; }
	.kke-stat__value { font-size: 26px; }
	.kke-stat__label { font-size: 14px; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.kke-dot-live::after { animation: none; }
	.kke-stat { transition: none; }
}
