/* Carte des ateliers Syklo (prototype, 01/10/2026)
   Mise en page reprise de la carte /map/ actuelle (mesures relevées le 01/10) :
   bloc arrondi 25 px, panneau 372 px #F1F5F9 rayon 25 px marge 20 px, titre DM Sans 28 px graisse 500,
   recherche rayon 8 px, pastilles blanches, titres de fiche 26 px graisse 600, bouton #258260 rayon 7 px. */
.sc {
	--sc-vert: #258260;
	--sc-vert-fonce: #1b6249;
	--sc-or: #f5a623;
	--sc-panneau: #f1f5f9;
	--sc-texte: #000;
	--sc-gris: #4b5563;
	--sc-bord: #c6c9cc;
	--sc-sep: #dfe3e8;
	--sc-beige: #efe8e2;
	position: relative;
	height: calc(100vh - 130px); /* la carte entière sous l'en-tête collant du site */
	height: calc(100svh - 130px);
	min-height: 560px;
	border-radius: 25px;
	overflow: hidden;
	isolation: isolate;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--sc-texte);
	background: var(--sc-beige);
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc [hidden] { display: none !important; }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- carte ----- */
.sc-carte { position: absolute; inset: 0; z-index: 1; background: var(--sc-beige); }
.sc .leaflet-container { font: inherit; background: var(--sc-beige); }
.sc .leaflet-control-attribution { font-size: 11px; }
.sc .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; }

/* ----- panneau ----- */
.sc-panneau {
	position: absolute;
	z-index: 2;
	top: 20px;
	left: 20px;
	bottom: 20px;
	width: 372px;
	display: flex;
	flex-direction: column;
	background: var(--sc-panneau);
	border-radius: 25px;
	overflow: hidden;
}
.sc-panneau > section { flex: 1; min-height: 0; gap: 0; margin: 0; padding: 0; align-items: stretch; } /* Automatic CSS met gap + padding sur toute <section> */
:where(.sc) :is(h2, h3, p, ul, fieldset) { margin-block: 0; } /* sans spécificité : les classes de la carte gardent la main */
.sc, .sc h2, .sc h3 { text-align: left; }
.sc h2, .sc h3 { color: var(--sc-texte); }

/* accueil : contenu centré verticalement, comme la carte actuelle */
.sc-intro { display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; }
.sc .sc-intro { padding: 18px; }
.sc-intro__titre { margin: 0 0 18px; font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: -.2px; }
.sc-intro p { margin: 0 0 12px; font-size: 13px; line-height: 18px; }
.sc-intro p strong { font-weight: 700; }
.sc-intro__note { font-style: italic; }
.sc-intro__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 10px 0 18px; }

/* parcourir : haut fixe, liste défilante, lien en pied */
.sc-parcourir { display: flex; flex-direction: column; }
.sc-parcourir__haut { padding: 14px 14px 2px; }
.sc-parcourir__liste { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px; }
.sc-parcourir__pied { flex: none; padding: 8px 14px 10px; text-align: center; border-top: 1px solid var(--sc-sep); background: var(--sc-panneau); }
.sc .sc-nocity { display: block; width: 100%; padding: 8px 12px; border: 1px solid var(--sc-vert); border-radius: 7px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--sc-vert); cursor: pointer; }
.sc .sc-nocity:hover { background: var(--sc-vert); color: #fff; }

.sc-recherche {
	width: 100%;
	height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--sc-bord);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: inherit;
}
.sc-recherche::placeholder { color: #6b7280; }
.sc-recherche:focus-visible { outline: 2px solid var(--sc-vert); outline-offset: 1px; }

.sc-filtres { border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-filtres__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.sc-filtres__titre { font-size: 13px; font-weight: 500; color: var(--sc-gris); margin-right: 2px; }
.sc-filtre {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid var(--sc-bord);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}
.sc-filtre input { position: absolute; opacity: 0; pointer-events: none; }
.sc-filtre:has(input:checked) { background: var(--sc-vert); border-color: var(--sc-vert); color: #fff; }
.sc-filtre--kit { border-color: rgba(245, 166, 35, .6); }
.sc-filtre--kit:has(input:checked) { background: var(--sc-or); border-color: var(--sc-or); color: #1d1300; }
.sc-filtre:has(input:focus-visible) { outline: 2px solid var(--sc-vert); outline-offset: 2px; }

.sc-lien { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 500; color: var(--sc-texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sc-compte-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 2px; }
.sc-reset { padding: 0; font-size: 13px; color: var(--sc-vert); }
.sc-compte { font-size: 13px; color: var(--sc-gris); }

.sc-liste { list-style: none; margin: 0; padding: 0; }
.sc-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-bottom: 1px solid var(--sc-sep);
	background: none;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.sc-item:hover, .sc-item:focus-visible { background: rgba(255, 255, 255, .7); }
.sc-item__titre { font-size: 16px; line-height: 1.25; font-weight: 600; }
.sc-item__lieu { font-size: 13px; color: var(--sc-gris); }

.sc-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 3px;
	background: var(--sc-or);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: middle;
}

/* ----- fiche ----- */
.sc-fiche, .sc-cadre { overflow-y: auto; }
.sc .sc-fiche, .sc .sc-cadre { padding: 16px; }
.sc-retour {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	font: inherit;
	font-size: 20px;
	color: var(--sc-texte);
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.sc-retour:hover { background: #e5ebf1; }
.sc-fiche__type { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--sc-gris); }
.sc-fiche__titre { margin: 4px 0 16px; font-size: 26px; line-height: 1.1; font-weight: 600; }
.sc-fiche__lignes { list-style: none; margin: 0 0 22px; padding: 0; }
.sc-fiche__ligne { position: relative; padding: 6px 0 6px 28px; font-size: 15px; overflow-wrap: anywhere; }
.sc-fiche__ligne a { color: inherit; }
.sc-fiche__ligne::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 18px;
	height: 18px;
	background: var(--sc-vert);
	-webkit-mask: var(--ic) center / contain no-repeat;
	mask: var(--ic) center / contain no-repeat;
}
.sc-fiche__ligne.sc-ic-kit::before { background: var(--sc-or); }
.sc-fiche__actions { display: flex; flex-direction: column; gap: 10px; }

.sc-bouton {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	padding: 14px 25px;
	border-radius: 7px;
	border: 1px solid var(--sc-vert);
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}
.sc-bouton-plein { background: var(--sc-vert); color: #fff; }
.sc-bouton-plein:hover { background: var(--sc-vert-fonce); border-color: var(--sc-vert-fonce); }
.sc-bouton-contour { background: #fff; color: var(--sc-vert); }
.sc-bouton-large { width: 100%; }

.sc-cadre { display: flex; flex-direction: column; }
.sc-cadre__iframe { flex: 1; width: 100%; min-height: 480px; border: 0; background: #fff; border-radius: 10px; }

/* ----- icônes (masques SVG) ----- */
.sc-ic-lieu { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.sc-ic-tel { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.sc-ic-mail { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.sc-ic-web { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4c.8 1.2 1.5 2.5 1.9 4h-3.8c.4-1.4 1.1-2.8 1.9-4zM4.3 14a8 8 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16zM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8zm4 12c-.8-1.2-1.5-2.5-1.9-4h3.8c-.4 1.4-1.1 2.8-1.9 4zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8 8 0 0 1 0 4z'/%3E%3C/svg%3E"); }
.sc-ic-personne { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E"); }
.sc-ic-kit { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.sc-ic-maison { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-6h4v6h5v-8h3z'/%3E%3C/svg%3E"); }
.sc-ic-velo { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='5.5' cy='16.5' r='3.5'/%3E%3Ccircle cx='18.5' cy='16.5' r='3.5'/%3E%3Cpath d='M5.5 16.5 9 9h6l3.5 7.5M9 9 12 16.5 15 9M8 6h3'/%3E%3C/svg%3E"); }

/* ----- marqueurs ----- */
.sc .sc-marqueur { transition: opacity .2s, filter .2s; }
/* zoom éloigné : 28 px au lieu de 43 (Leaflet pose taille et marges en style inline) */
.sc.sc--loin .sc-marqueur { width: 28px !important; height: 31px !important; margin-left: -14px !important; margin-top: -31px !important; }
.sc.sc--loin .sc-marqueur.is-actif { width: 43px !important; height: 48px !important; margin-left: -21px !important; margin-top: -48px !important; }
.sc .sc-marqueur--kit { filter: drop-shadow(0 0 6px rgba(245, 166, 35, .75)) drop-shadow(0 0 2px rgba(245, 166, 35, .45)); }
.sc.sc--selection .sc-marqueur { opacity: .3; filter: grayscale(.8); }
.sc.sc--selection .sc-marqueur.is-actif {
	opacity: 1;
	filter: drop-shadow(0 0 8px rgba(0, 166, 81, .85)) drop-shadow(0 0 3px rgba(0, 166, 81, .55));
}

.sc-indice {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 10px 16px;
	border-radius: 10px;
	background: rgba(20, 30, 25, .78);
	color: #fff;
	font-size: 14px;
	pointer-events: none;
}

/* ----- bascule Liste / Carte (mobile) ----- */
.sc-toggle { display: none; }

@media (max-width: 767px) {
	/* bande libre en bas : boutons flottants du site (consentement Complianz, bulle Chatwoot) */
	.sc { height: calc(100svh - 160px); min-height: 500px; }
	.sc-toggle {
		display: flex;
		position: absolute;
		z-index: 4;
		top: 8px;
		left: 50%;
		transform: translateX(-50%);
		padding: 4px;
		border: 1px solid var(--sc-bord);
		border-radius: 999px;
		background: var(--sc-panneau);
	}
	.sc-toggle__btn { min-width: 96px; padding: 8px 22px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 16px; color: var(--sc-texte); cursor: pointer; }
	.sc-toggle__btn.is-active { background: var(--sc-vert); color: #fff; }
	.sc-panneau { top: 62px; left: 0; right: 0; bottom: 0; width: auto; border-radius: 25px 25px 0 0; }
	.sc-intro__photo { display: none; }
	.sc-item__titre { font-size: 16px; }
	.sc[data-vue="carte"] .sc-panneau { display: none; }
	.sc[data-vue="liste"] .sc-carte { visibility: hidden; }
	/* bulle de chat Chatwoot (fixe, en bas à droite, ~64 px) : la zone reste libre */
	.sc-parcourir__pied { padding-right: 84px; }
	.sc .sc-fiche, .sc .sc-cadre { padding-bottom: 120px; }
	.sc-fiche__actions { padding-right: 76px; }
	.sc-parcourir__liste { padding-bottom: 12px; }
	/* fiche par-dessus la carte : volet bas */
	.sc[data-vue="carte"].sc--volet .sc-panneau {
		display: flex;
		top: auto;
		max-height: 66%;
		box-shadow: 0 -6px 24px rgba(20, 40, 30, .18);
	}
}

/* ----- formulaires Fluent Forms affichés dans le panneau ----- */
.sc-cadre__intro { margin: 0 0 16px; font-size: 14px; color: var(--sc-gris); }
.sc-cadre .fluentform { font-size: 15px; }
#syklo-carte .sc-donnees { display: none; }

/* Fluent Forms : mise en page en colonnes du formulaire ramenée à une colonne dans le panneau de 332 px */
.sc-cadre .ff-t-container { display: block !important; }
.sc-cadre .ff-t-cell { width: 100% !important; max-width: none !important; flex: none !important; padding: 0 !important; }
.sc-cadre .ff-t-cell:empty { display: none !important; }
/* Champ téléphone Fluent Forms (sélecteur de pays) : le thème écrase le retrait du texte */
.sc-cadre .iti input[type="tel"], .sc-cadre .iti input.ff-el-form-control { padding-left: 52px !important; }
