/* ===================================================================
   JS – Zones d'Intervention — v2.0.0 (modèle tdv-zones)
   JS Élagage · verts #3e6d2c/#4a7326 · or #9fd36d · nuit #000101
   Apparition au scroll en AMÉLIORATION PROGRESSIVE : les colonnes ne
   sont cachées QUE sous .js-z--js (classe posée par le JS). Sans JS,
   tout est visible (leçon eep-zones — le CSS tdv cachait par défaut).
   =================================================================== */

@font-face {
	font-family: 'Dancing Script JS';
	src: url('../fonts/dancing-script-js-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.js-z {
	--js-z-primary: #3e6d2c;
	--js-z-primary2: #4a7326;
	--js-z-accent: #9fd36d;
	--js-z-light: #eaf2df;
	--js-z-ink: #000101;
	--js-z-muted: #5b6a56;
	--js-z-border: rgba(0,1,1, .10);
	--js-z-radius: 20px;
	--js-pad-x: 0px;

	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	overflow-x: clip;
	padding: 10px var(--js-pad-x);
	font-family: 'Noto Sans', sans-serif;
	color: var(--js-z-muted);
}
.js-z, .js-z *, .js-z *::before, .js-z *::after { box-sizing: border-box; }
.js-z :where(h1, h2, h3, h4, h5, h6, p, ul, li) {
	margin: 0; padding: 0; letter-spacing: normal; text-transform: none; list-style: none;
}
.js-z :where(*) { min-width: 0; }
.js-z :where(p, span, li, a) { overflow-wrap: anywhere; }

/* ---------- En-tête ---------- */
.js-z__header { text-align: center; margin-bottom: 42px; }
.js-z .js-z__eyebrow--filets {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--js-z-primary);
	margin-bottom: 14px;
	position: relative;
	padding: 0 18px;
}
.js-z .js-z__eyebrow--filets::before, .js-z .js-z__eyebrow--filets::after {
	content: ""; position: absolute; top: 50%; width: 26px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--js-z-accent));
}
.js-z .js-z__eyebrow--filets::before { right: 100%; transform: scaleX(-1); }
.js-z .js-z__eyebrow--filets::after  { left: 100%; }
.js-z .js-z__eyebrow--manuscrit {
	display: inline-block;
	font-family: 'Dancing Script JS', cursive;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.2;
	color: var(--js-z-primary2);
	margin-bottom: 8px;
}
.js-z .js-z__heading {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	line-height: 1.14;
	color: var(--js-z-ink);
	margin: 0 0 16px;
	font-weight: 700;
}
.js-z .js-z__sub {
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--js-z-muted);
	max-width: 700px;
	margin: 0 auto;
}

/* ---------- Compteurs ---------- */
.js-z__counters {
	display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 14px 16px; margin-top: 22px;
	padding: 12px 24px; border-radius: 999px;
	background: linear-gradient(135deg, #f1f5ec, #eaf2df);
	border: 1px solid var(--js-z-border);
	max-width: 100%;
}
.js-z__counter { font-size: .95rem; color: var(--js-z-ink); font-weight: 600; }
.js-z__counter strong { color: var(--js-z-primary); font-weight: 800; font-size: 1.05rem; }
.js-z__counter-sep { width: 6px; height: 6px; border-radius: 50%; background: var(--js-z-accent); flex: 0 0 auto; }

/* ---------- Carte ---------- */
.js-z__map {
	border-radius: var(--js-z-radius);
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 24px 60px -28px rgba(0,1,1, .45);
	border: 1px solid var(--js-z-border);
	line-height: 0;
}
.js-z__map iframe { width: 100% !important; min-height: 380px; border: 0; display: block; }
.js-z__map-placeholder {
	position: relative;
	min-height: 280px;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 14px;
	background:
		radial-gradient(circle at 20% 30%, rgba(74,115,38, .12), transparent 45%),
		radial-gradient(circle at 80% 70%, rgba(159,211,109, .12), transparent 50%),
		linear-gradient(135deg, #f4f8f0, #eaf2df);
	line-height: 1.4;
}
.js-z__map-placeholder::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(0,1,1, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,1,1, .06) 1px, transparent 1px);
	background-size: 38px 38px;
	-webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
	mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.js-z__map-pin {
	position: relative; z-index: 1;
	width: 64px; height: 64px; border-radius: 50%;
	display: grid; place-items: center;
	color: #fff;
	background: linear-gradient(135deg, var(--js-z-primary2), var(--js-z-primary));
	box-shadow: 0 14px 30px -8px rgba(0,1,1, .6);
	animation: js-z-bob 2.6s ease-in-out infinite;
}
@keyframes js-z-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js-z__map-txt { position: relative; z-index: 1; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--js-z-primary); font-size: 1.05rem; }

/* ---------- Blocs par activité ---------- */
.js-z__grid { display: flex; flex-direction: column; gap: 22px; }
.js-z__col {
	background: #fff;
	border: 1px solid var(--js-z-border);
	border-radius: var(--js-z-radius);
	padding: 24px 26px;
	position: relative;
	overflow: hidden;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.js-z__col::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; height: 100%;
	background: linear-gradient(180deg, var(--js-z-primary2), var(--js-z-accent));
	transform: scaleY(0); transform-origin: top;
	transition: transform .4s ease;
}
.js-z__col:hover { box-shadow: 0 24px 50px -30px rgba(0,1,1, .4); }
.js-z__col:hover::before { transform: scaleY(1); }

.js-z__col-head {
	display: flex; align-items: center; gap: 12px;
	padding-bottom: 16px; margin-bottom: 18px;
	border-bottom: 1px dashed var(--js-z-border);
}
.js-z__col-icon {
	flex: 0 0 auto;
	width: 44px; height: 44px; border-radius: 13px;
	display: grid; place-items: center;
	background: var(--js-z-light); color: var(--js-z-primary);
	transition: background .3s, color .3s, transform .3s;
}
.js-z__col-icon svg { width: 22px; height: 22px; fill: currentColor; }
.js-z__col-icon i { font-size: 21px; line-height: 1; }
.js-z__col:hover .js-z__col-icon {
	background: linear-gradient(135deg, var(--js-z-primary2), var(--js-z-primary));
	color: #fff; transform: rotate(-6deg) scale(1.05);
}
.js-z .js-z__col-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.2rem; font-weight: 700; color: var(--js-z-primary); line-height: 1.2;
}

/* ---------- Capsules villes ---------- */
.js-z__cities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 9px;
}
.js-z__pill {
	display: flex; align-items: center; gap: 9px;
	padding: 10px 13px; border-radius: 12px;
	text-decoration: none;
	color: var(--js-z-ink);
	background: #fbfcf9;
	border: 1px solid var(--js-z-border);
	transition: background .25s, border-color .25s, transform .25s, box-shadow .25s, color .25s;
	position: relative;
}
.js-z__pill-dot {
	flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
	background: var(--js-z-accent);
	transition: transform .25s, box-shadow .25s;
}
.js-z__pill-text { flex: 1; font-size: .92rem; font-weight: 600; line-height: 1.3; color: inherit; }
.js-z__pill-dept {
	flex: 0 0 auto; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
	color: #3e6d2c; background: var(--js-z-light);
	padding: 3px 7px; border-radius: 999px;
	transition: background .25s, color .25s;
}
.js-z__pill:focus-visible { outline: 2px solid var(--js-z-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.js-z__pill:hover {
		background: var(--js-z-primary);
		border-color: var(--js-z-primary);
		color: #fff;
		transform: translateY(-3px);
		box-shadow: 0 12px 22px -12px rgba(0,1,1, .35);
	}
	.js-z__pill:hover .js-z__pill-text { color: #fff; }
	.js-z__pill:hover .js-z__pill-dot { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(159,211,109, .30); }
	.js-z__pill:hover .js-z__pill-dept { background: var(--js-z-accent); color: #0d1a0b; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.js-z__cities { grid-template-columns: 1fr 1fr; gap: 8px; }
	.js-z__col { padding: 20px 18px; }
	.js-z__header { margin-bottom: 30px; }
	.js-z__map iframe, .js-z__map-placeholder { min-height: 240px; }
	.js-z__pill-text { font-size: .85rem; }
}
@media (max-width: 460px) {
	.js-z__cities { grid-template-columns: 1fr; }
}

/* ---------- Apparition au scroll (amélioration progressive) ----------
 * Cachées SEULEMENT si le JS a posé .js-z--js sur la racine. */
.js-z--js .js-z__col { opacity: 0; transform: translateY(24px); }
.js-z--js .js-z__col.is-in {
	opacity: 1; transform: translateY(0);
	transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.js-z--js .js-z__col.is-in:nth-child(1) { transition-delay: .05s; }
.js-z--js .js-z__col.is-in:nth-child(2) { transition-delay: .13s; }
.js-z--js .js-z__col.is-in:nth-child(3) { transition-delay: .21s; }
.js-z--js .js-z__col.is-in:nth-child(4) { transition-delay: .29s; }

@media (prefers-reduced-motion: reduce) {
	.js-z *, .js-z *::before, .js-z *::after { transition: none !important; animation: none !important; }
	.js-z--js .js-z__col { opacity: 1; transform: none; }
}
