@import url("poppins.css");
@import url("nerko.css");
@import url("tokens.css");

:root {
	--trait: #DCE8EA;
	--mauve: #D500F9;
	--accent-fonce: color-mix(in srgb, var(--accent) 40%, var(--action));
	--action-fonce: color-mix(in srgb, var(--action) 85%, #000);

	--sur-accent: #0F2229;
	--sur-action: #ffffff;

	--accent-encre: #5A2793;

	--espace-1: 4px;
	--espace-2: 8px;
	--espace-3: 12px;
	--espace-4: 16px;
	--espace-5: 24px;
	--espace-6: 32px;

	--cible-tactile: 44px;

	--police-titre: var(--police);

	--focus: #1B7F91;
	--action-vif: var(--focus);
	--menthe: #1DE9B6;
	--marine: #08323C;
	--t-libelle: 11.5px;
	--degrade: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent), var(--mauve));
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	font-family: var(--police);
	background: var(--fond);
	color: var(--texte);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

b { font-weight: var(--g-fort); }

body.direct { background: var(--marine); }

#app {
	display: flex;
	flex-direction: column;
	height: 100svh;
	overflow: hidden;
}

#app > .topbar,
#app > .statsbar,
#app > .ticker { flex: 0 0 auto; }

#app > .grid { flex: 1 1 auto; min-height: 0; }

.boot {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	background: var(--fond);
	z-index: 9999;
}

.boot-spin {
	width: 38px;
	height: 38px;
	border: 3px solid var(--trait);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}

.boot-msg { color: var(--doux); font-size: var(--t-texte); }

.boot-retry {
	appearance: none;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--rayon-pilule, 999px);
	background: var(--accent);
	color: var(--sur-accent, #fff);
	font: inherit;
	font-weight: var(--g-fort);
	cursor: pointer;
}

.boot-retry:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.boot-titre {
	color: var(--texte);
	font-size: var(--t-titre);
	font-weight: var(--g-fort);
	text-align: center;
	max-width: 28rem;
	padding: 0 16px;
}

.boot .boot-msg {
	text-align: center;
	max-width: 28rem;
	padding: 0 16px;
	line-height: 1.5;
}

@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 60px;
	padding: 0 20px;
	background: var(--carte);
	border-bottom: 1px solid var(--trait);
}

.tb-left { display: flex; align-items: center; gap: var(--espace-4); min-width: 0; flex: 1 1 auto; }
.topbar .tb-title { font-size: 28px; margin-left: var(--espace-4); }
.tb-colleta-logo { height: 26px; width: auto; display: block; flex: none; color: var(--action); }
.tb-colleta-lien { display: flex; flex: none; border-radius: 6px; }
.tb-sep { width: 1px; height: 28px; background: var(--trait); flex: none; }
.tb-logo { height: 34px; width: auto; display: block; }
.tb-org { font-weight: var(--g-fort); color: var(--action); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tb-partners { display: inline-flex; align-items: center; gap: var(--espace-4); margin-left: var(--espace-2); }
.tb-partner { display: block; height: 20px; width: auto; max-width: 96px; object-fit: contain; }

@media (max-width: 720px) {
	.tb-partners { gap: 8px; margin-left: 4px; }
	.tb-partner { height: 18px; max-width: 80px; }
}

.tb-right { display: flex; align-items: center; gap: 10px; flex: none; }

.met, .updated {
	font-variant-numeric: tabular-nums;
	font-size: var(--t-mini);
	color: var(--doux);
	white-space: nowrap;
}
.met { font-family: var(--police-chiffre); font-size: 20px; color: var(--action); }

.updated.flash { animation: flashUp .5s ease; }
@keyframes flashUp { 0% { color: var(--accent); } 100% { color: var(--doux); } }

.tb-btn {
	appearance: none;
	position: relative;
	border: 1px solid var(--bord-controle, #6F8891);
	background: var(--carte);
	color: var(--texte);
	width: 34px;
	height: 34px;
	border-radius: var(--rayon-petit);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.tb-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--cible-tactile, 44px);
	height: var(--cible-tactile, 44px);
	transform: translate(-50%, -50%);
}

.tb-btn:hover { border-color: var(--accent); color: var(--action); }
.tb-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.tb-btn.spinning { animation: refreshSpin .7s ease; }
@keyframes refreshSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: var(--rayon-pilule);
	background: var(--action);
	color: var(--sur-action, #fff);
	font-size: var(--t-mini);
	font-weight: var(--g-fort);
	letter-spacing: .04em;
	white-space: nowrap;
}

.live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sur-action, #fff);
	animation: pulse 1.6s ease-in-out infinite;
}

.live.is-stale { background: var(--mauve); color: #fff; }
.live.is-done { background: var(--doux); }
.live.is-stale .live-dot, .live.is-done .live-dot { animation: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.toasts {
	position: fixed;
	top: calc(60px + var(--espace-3));
	left: 50%;
	transform: translateX(-50%);
	z-index: 9800;
	width: calc(100% - 32px);
	max-width: 380px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--espace-2);
	pointer-events: none;
}
.toast {
	pointer-events: auto;
	cursor: pointer;
	padding: 8px 14px;
	background: var(--carte);
	color: var(--action);
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	box-shadow: var(--ombre-forte);
	font-size: var(--t-petit);
	font-weight: var(--g-fort);
	line-height: 1.35;
	text-align: center;
	animation: toast-in .3s ease;
}
.toast.is-sortant { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-16px); } }

.statsbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 11px 16px;
	font-size: var(--t-petit);
}

.spill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding: 8px 18px;
	font-weight: var(--g-fort);
	background: var(--carte);
	border: 1px solid var(--trait);
	border-radius: var(--rayon-pilule);
}

.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.spill b { color: var(--action-fonce); font-family: var(--police-chiffre); font-weight: 400; font-size: 20px; line-height: 17px; letter-spacing: .5px; }
.spill-hot { background: var(--menthe); border-color: var(--menthe); color: var(--marine); box-shadow: 0 3px 12px color-mix(in srgb, var(--menthe) 35%, transparent); }
.spill-hot b { color: var(--marine); }
.spill-hot .sp-dot { background: var(--marine); }
.spill > span:not(.sp-dot) { font-size: var(--t-libelle); }

.recover-link {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	background: transparent;
	border: 1px dashed rgba(255, 255, 255, .55);
	border-radius: var(--rayon-pilule);
	padding: 7px 16px;
	color: var(--sur-action);
	font-family: inherit;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}
.recover-link:hover { background: rgba(255, 255, 255, .95); border-color: #fff; color: var(--accent-fonce); }
.recover-link:active { transform: scale(.98); }
.recover-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.grid {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(0, 2.6fr) minmax(300px, 1fr);
	gap: 14px;
	padding: 3px 14px 14px;
	min-height: 0;
}

body.sans-carte .grid { grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); }

.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; }

.panel {
	background: var(--carte);
	border: 1px solid var(--trait);
	border-radius: 20px;
	box-shadow: var(--ombre);
	padding: 18px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.p-title {
	font-weight: var(--g-fort);
	font-size: var(--t-petit);
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--doux);
	margin-bottom: 12px;
}

.p-label {
	font-size: var(--t-petit);
	color: var(--doux);
	font-weight: var(--g-fort);
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: center;
}

.panel-counter { text-align: center; align-items: center; container-type: inline-size; flex: 0 0 auto; padding: 22px 18px; overflow: hidden; }
.panel-families { flex: 1 1 auto; overflow: hidden; }
.panel-board    { flex: 1.4 1 0;  overflow: hidden; }
.panel-regions  { flex: 1 1 0;    overflow: hidden; }

.fam-list, .reg-list {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	padding-right: 2px;
}
.fam-list { gap: 14px; justify-content: space-between; }
.reg-list { gap: 11px; }

.p-title { flex: 0 0 auto; }

.big-number {
	font-size: clamp(69px, 8.6vw, 123px);
	font-size: min(clamp(69px, 8.6vw, 123px), 42cqi);
	font-family: var(--police-chiffre);
	font-weight: var(--g-normal);
	line-height: .92;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
	color: var(--action);
	transition: transform .18s ease;
	margin: 6px 0;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
	.big-number {
		background: var(--degrade);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}

.big-number.bn-long { font-size: clamp(59px, 7.4vw, 108px); font-size: min(clamp(59px, 7.4vw, 108px), 35cqi); }
.big-number.bn-7 { font-size: min(clamp(59px, 7.4vw, 108px), 28.5cqi); }

.delta {
	min-height: 20px;
	font-size: var(--t-texte);
	font-weight: var(--g-fort);
	color: var(--action);
}
.delta:empty { min-height: 0; }

.dayspark { position: relative; width: 100%; margin: 14px 0 4px; }

.ds-svg { display: block; width: 100%; height: 96px; overflow: visible; }

.ds-line.draw {
	stroke-dasharray: var(--dsLen);
	stroke-dashoffset: var(--dsLen);
	animation: dsdraw 1.1s ease forwards;
}

@keyframes dsdraw { to { stroke-dashoffset: 0; } }

.ds-now {
	position: absolute;
	width: 9px;
	height: 9px;
	margin: -4.5px 0 0 -4.5px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.ds-legend {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--doux);
	margin-top: 2px;
}

.telemetry {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	width: 100%;
	margin-top: 12px;
}

.tm-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), color-mix(in srgb, var(--action) 4%, transparent));
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: 13px;
	padding: 9px 6px;
}

.tm-label { font-size: 11px; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; justify-content: center; }
.tm-val { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.tm-val b { font-family: var(--police-chiffre); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .5px; color: var(--action-fonce); font-variant-numeric: tabular-nums; }
.tm-unit { font-size: 11px; font-weight: 700; color: var(--doux); }
.tm-trend { font-size: 13px; font-weight: 800;margin-left: 3px; line-height: 1; }
.tm-trend.up { color: var(--action); }
.tm-trend.down { color: var(--accent-encre); }
.tm-trend.flat { color: var(--doux); }

.fam-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; }

.fam-emoji {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--action-pale);
	font-size: 24px;
	line-height: 1;
}
.fam-picto { width: 26px; height: 26px; color: var(--action); }
.fam-image { width: 32px; height: 32px; object-fit: contain; }

.fam-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }

.fam-bar { height: 9px; background: var(--action-pale); border-radius: var(--rayon-pilule); overflow: hidden; }

.fam-bar i {
	display: block;
	height: 100%;
	background: var(--degrade);
	transform-origin: left center;
	transform: scaleX(0);
	transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.fam-val { font-family: var(--police-chiffre); font-weight: var(--g-normal); font-size: 26px; color: var(--action); }

.panel-map { position: relative; z-index: 1; padding: 0; overflow: hidden; flex: 1 1 auto; isolation: isolate; }

#map {
	position: absolute;
	inset: 0;
	background: #fff;
}

.map-head {
	position: absolute;
	top: 16px;
	left: 18px;
	z-index: 400;
	pointer-events: none;
	max-width: calc(100% - 90px);
}

.mh-title {
	display: block;
	font-weight: var(--g-fort);
	font-size: var(--t-petit);
	color: var(--action);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
.mh-hint {
	display: inline-block;
	margin-top: 5px;
	font-size: 11px;
	line-height: 13px;
	font-weight: var(--g-fort);
	color: #fff;
	background: var(--degrade);
	padding: 4px 11px;
	border-radius: var(--rayon-pilule);
	box-shadow: var(--ombre-forte);
}

.map-legend {
	position: absolute;
	left: 18px;
	bottom: 18px;
	z-index: 400;
	background: color-mix(in srgb, var(--carte) 88%, transparent);
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	padding: 11px 13px;
	font-size: var(--t-mini);
	backdrop-filter: blur(6px);
}

.ml-title { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.ml-scale {
	display: block;
	height: 9px;
	border-radius: 6px;
	background: var(--degrade);
}
.ml-labels { display: flex; justify-content: space-between; font-size: var(--t-libelle); font-weight: 600; color: var(--doux); margin-top: 3px; }
.ml-tous { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--trait); font-size: var(--t-libelle); font-weight: 600; color: var(--texte); cursor: pointer; }
.ml-tous input { appearance: none; position: relative; flex: none; width: 28px; height: 16px; margin: 0; border-radius: var(--rayon-pilule); background: var(--trait); cursor: pointer; transition: background .15s ease; }
.ml-tous input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.ml-tous input:checked { background: var(--action); }
.ml-tous input:checked::before { transform: translateX(12px); }
.ml-tous input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.map-overlay {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 400;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: color-mix(in srgb, var(--action) 85%, #000);
	color: #fff;
	border: none;
	border-radius: var(--rayon);
	padding: 10px 16px;
	font-size: var(--t-libelle);
	font-weight: var(--g-fort);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	backdrop-filter: blur(6px);
}
.map-overlay b { color: #fff; font-family: var(--police-chiffre); font-weight: 400; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.mo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

.leaflet-gesture-handling-touch-warning::after,
.leaflet-gesture-handling-scroll-warning::after {
	background: var(--carte) !important;
	color: var(--texte) !important;
	border: 1px solid var(--trait) !important;
	border-radius: var(--rayon) !important;
	box-shadow: var(--ombre-forte) !important;
	width: 172px !important;
	max-width: calc(100% - 32px) !important;
	inset: 50% auto auto 50% !important;
	transform: translate(-50%, -50%) !important;
	text-align: center !important;
	padding: 12px 18px !important;
	font-family: var(--police) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.map-cta {
	position: absolute;
	right: 12px;
	top: 60px;
	z-index: 400;
	background: var(--accent);
	color: var(--sur-accent, #fff);
	font-weight: var(--g-fort);
	font-size: var(--t-petit);
	padding: 9px 15px;
	border-radius: var(--rayon-pilule);
	text-decoration: none;
	box-shadow: var(--ombre-forte);
}

.leaflet-touch .leaflet-bar,
.leaflet-bar {
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
	overflow: hidden;
}

.leaflet-touch .leaflet-bar a.leaflet-control-zoom-in,
.leaflet-touch .leaflet-bar a.leaflet-control-zoom-out,
.leaflet-bar a.leaflet-control-zoom-in,
.leaflet-bar a.leaflet-control-zoom-out {
	width: 40px;
	height: 40px;
	line-height: 40px;
	background: var(--carte);
	color: var(--texte);
	border-bottom: 1px solid var(--trait);
	font-family: var(--police);
	font-size: var(--t-titre);
	font-weight: var(--g-fort);
}

.leaflet-touch .leaflet-bar a.leaflet-control-zoom-out,
.leaflet-bar a.leaflet-control-zoom-out { border-bottom: 0; }

.leaflet-touch .leaflet-bar a.leaflet-control-zoom-in:hover,
.leaflet-touch .leaflet-bar a.leaflet-control-zoom-out:hover,
.leaflet-bar a.leaflet-control-zoom-in:hover,
.leaflet-bar a.leaflet-control-zoom-out:hover {
	background: var(--action-pale);
	color: var(--action);
}

.leaflet-touch .leaflet-bar a:focus-visible,
.leaflet-bar a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.leaflet-touch .leaflet-bar a.leaflet-disabled,
.leaflet-touch .leaflet-bar a.leaflet-disabled:hover,
.leaflet-bar a.leaflet-disabled,
.leaflet-bar a.leaflet-disabled:hover {
	background: var(--action-pale);
	color: var(--doux);
	cursor: default;
}

.colleta-pulse { animation: halo 2.2s ease-in-out infinite; }

.carte-fond { fill: var(--menthe); fill-opacity: .5; }
.colleta-marker { fill: color-mix(in srgb, var(--accent) 55%, #fff); fill-opacity: 1; }
.colleta-marker-attente { fill: color-mix(in srgb, var(--action) 45%, #fff); }
.colleta-marker[data-palier="2"] { fill: var(--accent); }
.colleta-marker[data-palier="3"] { fill: var(--mauve); }
@keyframes halo { 0%, 100% { opacity: .5; } 50% { opacity: .12; } }

.store-card {
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 1000;
	width: min(290px, calc(100% - 24px));
	background: var(--carte);
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	box-shadow: var(--ombre-forte);
	padding: 16px;
	animation: cardin .22s ease;
}

@keyframes cardin { from { opacity: 0; transform: translateY(-6px); } }
@keyframes cardinMobile { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }

.sc-close {
	position: absolute;
	top: 9px;
	right: 9px;
	border: 0;
	background: transparent;
	color: var(--doux);
	font-size: var(--t-texte);
	cursor: pointer;
	line-height: 1;
	padding: 4px;
}

.sc-close::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--cible-tactile, 44px);
	height: var(--cible-tactile, 44px);
	transform: translate(-50%, -50%);
}

.sc-chain { font-size: var(--t-mini); font-weight: var(--g-fort); letter-spacing: .06em; color: var(--accent-fonce); }
.sc-name { font-size: var(--t-fort); font-weight: var(--g-fort); line-height: 1.25; margin-top: 2px; }
.sc-city { font-size: var(--t-mini); color: var(--doux); }

.sc-asso { margin-top: 9px; font-size: var(--t-mini); }
.sc-asso-label { color: var(--accent-fonce); }
.sc-asso-name { font-weight: var(--g-fort); display: block; }

.sc-total-wrap { text-align: center; margin: 12px 0; padding: 10px 0; background: var(--action-pale); border-radius: var(--rayon); }
.sc-total { font-size: 52px; font-family: var(--police-chiffre); font-weight: var(--g-normal); color: var(--action); line-height: 1; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
	.sc-total {
		background: var(--degrade);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}
.sc-total-label { font-size: var(--t-mini); color: var(--action); }

.sc-fam { display: grid; grid-template-columns: 28px 1fr auto; gap: 7px; align-items: center; font-size: var(--t-mini); padding: 3px 0; }
.sc-fam.zero { opacity: .38; }
.sc-fam-emoji { font-size: 18px; display: grid; place-items: center; }
.sc-fam-emoji .fam-image, .sc-fam-emoji .fam-picto { width: 22px; height: 22px; }
.sc-fam-val { font-weight: var(--g-fort); color: var(--accent-fonce); font-variant-numeric: tabular-nums; }

.board {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	padding: 0 2px 0 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
}

.wall-li, .top-li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), color-mix(in srgb, var(--action) 4%, transparent));
	border-radius: 13px;
	cursor: pointer;
	transition: background .15s ease;
}

.wall-li:hover, .top-li:hover { background: color-mix(in srgb, var(--accent) 10%, var(--carte)); }

.wl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); flex: none; }
.wall-li.is-fresh .wl-dot { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.wall-li.is-new { animation: allume .6s ease; }

@keyframes allume { from { opacity: 0; transform: translateX(-8px); } }

.wl-body, .tl-body { min-width: 0; flex: 1; }
.wl-store, .tl-store { font-size: var(--t-petit); font-weight: var(--g-fort); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-store { display: flex; align-items: center; }
.wl-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wl-asso, .tl-city { font-size: var(--t-libelle); line-height: 1.25; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wl-flag {
	flex: none;
	display: inline-block;
	vertical-align: middle;
	margin-left: 4px;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .2px;
	color: var(--accent-encre);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	padding: 2px 7px;
	border-radius: var(--rayon-pilule);
}

.wl-total, .tl-total { font-family: var(--police-chiffre); font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent-fonce); font-variant-numeric: tabular-nums; }

.tl-rank {
	width: 22px;
	height: 22px;
	flex: none;
	border-radius: 50%;
	background: var(--action-pale);
	color: var(--action);
	font-weight: var(--g-fort);
	font-size: var(--t-mini);
	display: flex;
	align-items: center;
	justify-content: center;
}

.top-li:nth-child(1) .tl-rank { background: var(--accent); color: var(--sur-accent, #fff); }
.top-li:nth-child(2) .tl-rank, .top-li:nth-child(3) .tl-rank { background: var(--accent-clair); color: var(--sur-accent, #fff); }

.wall-empty { color: var(--doux); font-size: var(--t-petit); padding: 10px 0; list-style: none; }
.wall-foot {
	flex: 0 0 auto;
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px solid var(--trait);
	font-size: var(--t-mini);
	font-weight: var(--g-fort);
	color: var(--action);
	text-align: center;
}
.wall-foot:empty { display: none; }

.reg-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 9px; padding: 2px 0; }
.reg-name { font-size: 12px; font-weight: 700; }
.reg-total { font-family: var(--police-chiffre); font-weight: 400; font-size: 20px; line-height: 1; color: var(--action); font-variant-numeric: tabular-nums; }
.reg-bar { grid-column: 1 / -1; height: 8px; background: var(--action-pale); border-radius: var(--rayon-pilule); overflow: hidden; }

.reg-bar i {
	display: block;
	height: 100%;
	background: var(--action);
	transform-origin: left center;
	transform: scaleX(0);
	transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reg-vide { color: var(--doux); font-size: var(--t-petit); }

.ticker {
	position: sticky;
	bottom: 0;
	z-index: 600;
	background: var(--texte);
	color: var(--fond);
	overflow: hidden;
	white-space: nowrap;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	font-size: var(--t-petit);
}

.ticker-track { display: inline-block; animation: defile 90s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tk-item { padding: 0 14px; font-weight: var(--g-fort); }
.tk-sep { opacity: .35; }
.tk-cta { color: var(--action-clair); font-weight: var(--g-fort); text-decoration: underline; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 900; overflow: hidden; }

.confetti i {
	position: absolute;
	top: -12px;
	width: 8px;
	height: 13px;
	border-radius: 2px;
	animation: tombe 2.8s cubic-bezier(.3, .7, .5, 1) forwards;
}

@keyframes tombe {
	to { transform: translateY(102vh) rotate(560deg); opacity: 0; }
}

@media (max-width: 1080px) {
	.big-number, .big-number.bn-long, .big-number.bn-7 { font-size: clamp(68px, 21.2vw, 106px); }

	#app { height: auto; overflow: visible; }

	.topbar {
		position: sticky;
		top: 0;
		z-index: 100;
		height: auto;
		min-height: 60px;
		padding: var(--espace-2) 20px;
	}
	.tb-left { flex-wrap: wrap; row-gap: var(--espace-1); }
	.tb-title { font-size: var(--t-titre); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
	.updated { display: none; }

	.panel-counter, .panel-families, .panel-board, .panel-regions { flex: 0 0 auto; }
	.fam-list, .reg-list { flex: 0 0 auto; overflow: visible; }

	.board { flex: 0 0 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }

	.statsbar { padding: 10px 14px; }
	.grid, body.sans-carte .grid { grid-template-columns: 1fr; }
	.col-map { order: -1; }
	.panel-map { flex: 0 0 auto; min-height: 52vh; }
	.board { max-height: 60vh; }
}

@media (max-width: 620px) {
	.panel-map { min-height: 66vh; }

	.topbar { flex-wrap: wrap; justify-content: flex-start; padding: var(--espace-2) var(--espace-3); gap: var(--espace-1) var(--espace-2); }
	.tb-left, .tb-right { display: contents; }
	.topbar::after { content: ""; order: 1; flex-basis: 100%; }
	.topbar .tb-title { order: 2; flex: 1 1 0; max-width: none; margin-left: 0; font-size: var(--t-titre); }
	.topbar .tb-title.is-deux-lignes { white-space: normal; }
	.met { order: 3; }
	#refreshBtn { order: 4; }
	#livePill { order: 5; padding: 4px 8px; gap: 5px; font-size: 10px; letter-spacing: .03em; }
	.tb-logo { height: 40px; }
	.tb-partners { flex: 1 1 0; min-width: 0; justify-content: flex-end; margin-left: var(--espace-2); }
	.tb-partner { min-width: 0; }
	.tb-btn::before { width: 48px; height: 48px; }
	.tb-org { flex: 1 1 0; }
	#fsBtn { display: none; }

	.toasts { top: calc(88px + var(--espace-3)); }
	.ticker { position: static; z-index: auto; }
	.panel { padding: 16px; }
	.panel-map { padding: 0; }
	.statsbar { font-size: var(--t-mini); }
	.recover-link { font-size: 12px; padding: 6px 12px; }
	.store-card {
		position: fixed;
		left: 50%;
		right: auto;
		top: auto;
		bottom: 12px;
		transform: translateX(-50%);
		width: calc(100% - 24px);
		max-width: 380px;
		max-height: 70vh;
		overflow-y: auto;
		animation: cardinMobile .3s cubic-bezier(.34, 1.56, .64, 1);
	}
	.map-cta { top: auto; bottom: 56px; right: 12px; }

	.statsbar { column-gap: 8px; }
	.statsbar .spill { padding: 8px 12px; gap: 6px; }
	.map-legend { left: 12px; bottom: 12px; padding: 9px 11px; }
	.ml-title { font-size: 10px; }
	.map-overlay { right: 12px; bottom: 12px; padding: 8px 13px; }
}

@media (max-width: 379px) {
	.map-legend { bottom: 56px; }
	.map-overlay { left: 12px; right: auto; }
}

@media (max-width: 560px) {
	.map-head { left: 14px; top: 13px; max-width: calc(100% - 76px); }
	.mh-hint { padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.ticker-track { animation: none; }
	.confetti { display: none; }
}

.rec-pop {
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: none;
	border-radius: 14px;
	background: var(--carte);
	color: var(--texte);
	font: inherit;
	box-shadow: 0 18px 50px rgba(8, 50, 60, .28);
}
.rec-pop::backdrop { background: rgba(8, 50, 60, .48); }

.rec-pop-tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid var(--trait);
	background: var(--action-pale);
}
.rec-pop-titre {
	margin: 0;
	font-size: var(--t-fort, 16px);
	font-weight: 700;
	line-height: 1.3;
}

.rec-pop-fermer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--cible-tactile, 44px);
	height: var(--cible-tactile, 44px);
	flex: 0 0 auto;
	border: none;
	border-radius: 8px;
	background: none;
	color: var(--doux);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.rec-pop-fermer:hover { background: var(--action-clair); color: var(--action); }

.rec-pop-corps { padding: 16px; overflow-y: auto; }

.rec-intro { margin: 0 0 16px; line-height: 1.5; }
.rec-field { margin-bottom: 14px; }
.rec-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: var(--t-petit);
}
.rec-champ {
	width: 100%;
	min-height: var(--cible-tactile, 44px);
	padding: 10px 12px;
	border: 1px solid var(--bord-controle, #6F8891);
	border-radius: 8px;
	background: var(--carte);
	color: var(--texte);
	font: inherit;
	font-size: 16px;
}
.rec-champ:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.rec-aide { margin: 6px 0 0; color: var(--doux); font-size: var(--t-mini); }

.rec-actions { margin-top: 16px; }
.rec-actions--envoi { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-actions--envoi .rec-btn { flex: 1 1 11rem; }

.rec-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--cible-tactile, 44px);
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.rec-btn--primaire { background: var(--action); color: var(--sur-action); }
.rec-btn--secondaire { background: var(--carte); color: var(--action); border-color: var(--action); }
.rec-btn[disabled] { opacity: .55; cursor: default; }

#rec-etape2 { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--trait); }

.rec-message:empty { display: none; }
.rec-message { margin-top: 16px; }

.rec-message .ui-alerte {
	display: block;
	padding: 10px 12px;
	border-left: 3px solid var(--action);
	border-radius: 6px;
	background: var(--action-pale);
	color: var(--texte);
	font-size: var(--t-petit);
	line-height: 1.45;
}
.rec-message .ui-alerte--succes { border-left-color: #18794E; background: #E6F6EE; }
.rec-message .ui-alerte--avertissement { border-left-color: #A15C00; background: #FDF0DC; }
.rec-message .ui-alerte--erreur { border-left-color: #B42318; background: #FDEAE8; }

button.recover-link {
	background: none;
	font-family: inherit;
	cursor: pointer;
}

@media (max-width: 560px) {
	.rec-pop {
		width: 100vw;
		max-width: 100vw;
		max-height: 90vh;
		margin: auto auto 0;
		border-radius: 14px 14px 0 0;
	}
}

body.orgl-page {
	background: radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--accent) 18%, var(--fond)) 0%, var(--fond) 70%) no-repeat, var(--fond);
}
.orgl {
	max-width: 40rem;
	min-height: 100vh;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	padding: clamp(40px, 12vh, 112px) 16px 48px;
}
.orgl-entete { text-align: center; margin-bottom: var(--espace-6); }
.orgl-marques { display: flex; align-items: center; justify-content: center; gap: var(--espace-5); margin-bottom: var(--espace-6); }
.orgl-sep { width: 1px; height: 44px; background: var(--trait); }
.orgl-logo { display: block; height: 56px; width: auto; max-width: 200px; object-fit: contain; }
.orgl-titre { margin: 0 0 var(--espace-2); font-family: var(--police-chiffre); font-weight: 400; font-size: 44px; line-height: 1.05; color: var(--action); }
.orgl-intro { margin: 0; font-size: var(--t-fort); color: var(--doux); }

.orgl-une {
	display: grid;
	gap: var(--espace-3);
	justify-items: start;
	margin-bottom: var(--espace-4);
	padding: var(--espace-5);
	background: var(--carte);
	border: 1px solid var(--trait);
	border-radius: var(--rayon-grand);
	box-shadow: var(--ombre-forte);
	color: var(--texte);
	text-decoration: none;
	transition: transform .15s ease, border-color .15s ease;
}
.orgl-une:hover { transform: translateY(-2px); border-color: var(--accent); }
.orgl-une:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.orgl-direct {
	display: inline-flex;
	align-items: center;
	gap: var(--espace-2);
	padding: 4px 12px;
	border-radius: var(--rayon-pilule);
	background: var(--accent);
	color: var(--sur-accent);
	font-size: var(--t-mini);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.orgl-direct-point { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.orgl-une-nom { font-family: var(--police-chiffre); font-size: 32px; line-height: 1.1; color: var(--action); }
.orgl-une-action {
	display: inline-flex;
	align-items: center;
	gap: var(--espace-2);
	min-height: 48px;
	margin-top: var(--espace-1);
	padding: 0 var(--espace-5);
	border-radius: var(--rayon-pilule);
	background: var(--action);
	color: var(--sur-action);
	font-weight: var(--g-fort);
}

.orgl-une-tete { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: var(--espace-3) var(--espace-4); flex-wrap: wrap; }
.orgl-partenaires { display: inline-flex; align-items: center; gap: var(--espace-4); }
.orgl-partenaire { display: block; height: 20px; width: auto; max-width: 96px; object-fit: contain; }
.orgl-meta .orgl-partenaire { height: 16px; max-width: 72px; }

.orgl-autres { margin-top: var(--espace-5); }
.orgl-sous-titre { margin: 0 0 var(--espace-3); font-size: var(--t-petit); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }

.orgl-logo-colleta { display: block; height: 36px; width: auto; }
.orgl-lien-colleta { display: flex; flex: none; border-radius: 6px; }

@media (max-width: 480px) {
	.orgl-titre { font-size: 36px; }
	.orgl-une-nom { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.orgl-direct-point { animation: none; }
	.orgl-une { transition: none; }
}

.orgl-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.orgl-lien {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	min-height: var(--cible-tactile, 44px);
	padding: 16px 18px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
	background: var(--carte);
	color: var(--texte);
	text-decoration: none;
}
.orgl-lien:hover { border-color: var(--action); background: var(--action-pale); }
.orgl-lien:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.orgl-nom { font-weight: 700; font-size: 17px; }
.orgl-meta { display: flex; align-items: center; gap: 10px; }
.orgl-date { color: var(--doux); font-size: var(--t-petit); }

.orgl-etat {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--action-clair);
	color: var(--action);
	font-size: var(--t-mini);
	font-weight: 700;
}
.orgl-etat--ouverte { background: var(--accent); color: var(--sur-accent); }

.mh-title, .p-title, .sc-name, .boot-titre {
	font-family: var(--police-chiffre);
	font-weight: 400 !important;
	letter-spacing: .01em;
	line-height: 1.3;
	text-transform: none;
}
.mh-title { font-size: 33px; text-transform: uppercase; line-height: 1.1; }
.p-title {
	font-size: 21.5px;
	color: var(--action);
	text-transform: uppercase;
	line-height: 1.05;
	padding-bottom: 11px;
	border-bottom: 1px solid var(--trait);
}
.sc-name { font-size: 22px; }
.boot-titre { font-size: 28px; }
@media (max-width: 620px) { .mh-title { font-size: 28px; } }
