/* Maccabi – Trouver un club : carte interactive et formulaire (couleurs du site Maccabi France) */
.mtc {
	--mtc-bleu: #001a80; --mtc-neon: #38bdf8; --mtc-encre: #0a1f44; --mtc-texte: #44506a; --mtc-doux: #5b6784;
	--mtc-terre: #d3def4; --mtc-bord: rgba(10, 31, 68, .1);
	background: #fff; border-radius: 28px; padding: clamp(20px, 3.5vw, 44px); margin: 10px 0 24px;
	box-shadow: 0 1px 2px rgba(10, 31, 68, .05), 0 18px 50px rgba(12, 113, 195, .12); border: 1px solid var(--mtc-bord);
	color: var(--mtc-texte); position: relative; scroll-margin-top: 110px; /* lien « #trouver-un-club » : la rubrique n'est pas cachée sous la barre de menu */
}
.mtc .mtc-surtitre {
	display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800;
	letter-spacing: .14em; text-transform: uppercase; color: var(--mtc-bleu) !important; background: #eaf2ff;
}
.mtc-entete { text-align: center; max-width: 720px; margin: 0 auto 18px; }
.mtc-entete h2 { margin: 0 0 8px; padding: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--mtc-encre) !important; }
.mtc-entete p { margin: 0; font-size: 16px; }

/* ---------- Carte ---------- */
.mtc-zone { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; max-width: 1060px; margin: 0 auto; }
.mtc-carte { position: relative; }
.mtc svg { display: block; width: 100%; height: auto; overflow: visible; }
.mtc-dep {
	fill: var(--mtc-terre); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; cursor: pointer;
	transition: fill .2s ease, filter .2s ease; outline: none;
}
.mtc-dep:hover, .mtc-dep.mtc-survol { fill: var(--mtc-neon); filter: drop-shadow(0 4px 10px rgba(56, 189, 248, .45)); }
.mtc-dep.mtc-actif { fill: var(--mtc-bleu); filter: drop-shadow(0 6px 14px rgba(0, 26, 128, .4)); }
.mtc-dep.mtc-actif:hover, .mtc-dep.mtc-actif.mtc-survol { fill: #1d3fd0; }
.mtc-bulle {
	position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
	background: var(--mtc-encre); color: #fff; font-size: 14px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
	white-space: nowrap; box-shadow: 0 10px 24px rgba(10, 31, 68, .3);
}
.mtc-bulle::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--mtc-encre); transform: rotate(45deg); }
/* noms des régions écrits sur la carte (non cliquables : le clic passe à la région en dessous) */
.mtc-noms text {
	pointer-events: none; text-anchor: middle; font-size: 21px; font-weight: 800; fill: var(--mtc-encre);
	paint-order: stroke; stroke: rgba(255, 255, 255, .75); stroke-width: 4px; stroke-linejoin: round; transition: fill .2s ease;
}
.mtc-noms text.mtc-actif { fill: #fff; stroke: rgba(0, 26, 128, .6); }
/* zoom Île-de-France par département */
.mtc-zoom { margin: 0; padding: 14px 14px 10px; border-radius: 20px; background: #f6f9ff; border: 1px solid var(--mtc-bord); }
.mtc-zoom figcaption { text-align: center; font-weight: 800; font-size: 16px; color: var(--mtc-encre); line-height: 1.25; margin-bottom: 8px; }
.mtc-zoom figcaption span { display: block; font-size: 12.5px; font-weight: 600; color: var(--mtc-doux); }
.mtc-zoom .mtc-dep { stroke-width: 1.6; }
.mtc-zoom .mtc-noms text { font-size: 17px; stroke-width: 3px; }
.mtc-zoom .mtc-zoom-sous-titre { margin: 10px 0 4px !important; padding: 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--mtc-doux) !important; border-top: 1px solid var(--mtc-bord); padding-top: 10px; }
.mtc-zoom svg.mtc-pc { width: 82%; margin: 0 auto; }
.mtc-zoom .mtc-pc .mtc-noms text { font-size: 24px; }

/* ---------- Liste accessible ---------- */
.mtc-liste { max-width: 640px; margin: 22px auto 0; text-align: center; }
.mtc-liste label { display: block; font-weight: 700; color: var(--mtc-encre); margin-bottom: 8px; }
.mtc-liste-ligne { display: flex; gap: 10px; }
.mtc-liste select { flex: 1; min-width: 0; }
.mtc-source { margin: 14px 0 0 !important; text-align: center; font-size: 11.5px; color: #8a94ab !important; }

/* ---------- Champs et boutons ---------- */
.mtc select, .mtc input[type="text"], .mtc input[type="email"], .mtc input[type="tel"], .mtc input[type="number"], .mtc textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--mtc-encre); background: #f6f8fc;
	border: 1px solid #d5dcea; border-radius: 14px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.mtc select:focus, .mtc input:focus, .mtc textarea:focus { outline: none; border-color: var(--mtc-neon); box-shadow: 0 0 0 4px rgba(56, 189, 248, .25); background: #fff; }
.mtc [aria-invalid="true"] { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .15) !important; }
.mtc textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.mtc-bouton {
	border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .02em; cursor: pointer;
	color: #fff; background: linear-gradient(135deg, #2563eb, #001a80); box-shadow: 0 10px 24px rgba(0, 26, 128, .28);
	transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; white-space: nowrap;
}
.mtc-bouton:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 30px rgba(0, 26, 128, .35); }
.mtc-bouton:focus-visible, .mtc-fermer:focus-visible, .mtc-pastilles input:focus-visible + span { outline: 3px solid var(--mtc-neon); outline-offset: 3px; }
.mtc-bouton[disabled] { opacity: .65; cursor: wait; transform: none; }
.mtc-secondaire { background: #eef2f9; color: var(--mtc-encre); box-shadow: none; }

/* ---------- Fenêtre du formulaire ---------- */
html.mtc-ouvert { overflow: hidden; }
.mtc-dialogue {
	width: min(760px, 94vw); max-height: 92vh; max-height: 92dvh; padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--mtc-texte);
	box-shadow: 0 40px 100px rgba(5, 11, 26, .45); overflow: auto;
}
.mtc-dialogue[open] { animation: mtc-entree .28s cubic-bezier(.2, .8, .2, 1); }
.mtc-dialogue::backdrop { background: rgba(5, 11, 26, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes mtc-entree { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.mtc-dialogue-contenu { position: relative; padding: clamp(22px, 4vw, 38px); }
.mtc-fermer {
	/* collée en haut de la fenêtre : reste visible et cliquable même après avoir fait défiler le formulaire */
	position: sticky; top: 12px; z-index: 3; float: right; margin: -10px -10px 0 8px; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 44px; text-align: center;
	color: var(--mtc-encre); background: #eef2f9; box-shadow: 0 4px 14px rgba(10, 31, 68, .18); touch-action: manipulation;
}
.mtc-dialogue h3 { margin: 0 0 8px; padding: 0 44px 0 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; color: var(--mtc-encre) !important; }
.mtc-intro { margin: 0 0 20px !important; font-size: 15px; line-height: 1.6; }
.mtc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.mtc-champ { margin: 0 0 14px; }
.mtc-grille .mtc-champ { margin: 0; }
.mtc-grille + .mtc-champ, .mtc-grille + fieldset { margin-top: 14px; }
.mtc-champ label, .mtc-champ legend { display: block; font-size: 13.5px; font-weight: 700; color: var(--mtc-encre); margin: 0 0 6px; padding: 0; }
.mtc-facultatif { font-weight: 500; color: #8a94ab; }
.mtc-pour { border: 0; padding: 0; margin: 14px 0; }
.mtc-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.mtc-pastilles label { position: relative; margin: 0; cursor: pointer; font-weight: 600; }
.mtc-pastilles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtc-pastilles span {
	display: inline-block; padding: 10px 18px; border-radius: 999px; background: #f2f5fb; border: 1px solid #d5dcea; color: var(--mtc-encre);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mtc-pastilles input:checked + span { background: var(--mtc-bleu); border-color: var(--mtc-bleu); color: #fff; }
.mtc-rgpd { margin: 6px 0 0 !important; font-size: 12.5px; line-height: 1.5; color: var(--mtc-doux) !important; }
.mtc-rgpd a { color: var(--mtc-bleu); text-decoration: underline; }
.mtc-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mtc-erreur { margin: 14px 0 0 !important; padding: 12px 14px; border-radius: 12px; background: #fff1f1; color: #b91c1c !important; font-weight: 700; font-size: 14px; }
.mtc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.mtc-obligatoire { margin: 10px 0 0 !important; font-size: 12px; color: #8a94ab !important; text-align: right; }
.mtc-etape-merci { text-align: center; padding: 20px 0 6px; }
.mtc-etape-merci h3 { padding: 0 !important; }
.mtc-merci-texte { margin: 0 auto 22px !important; max-width: 480px; font-size: 16px; line-height: 1.6; }
.mtc-coche {
	width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #16a34a);
	box-shadow: 0 14px 30px rgba(34, 197, 94, .35); position: relative;
}
.mtc-coche::after { content: ""; position: absolute; left: 27px; top: 17px; width: 16px; height: 30px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 860px) {
	.mtc-zone { grid-template-columns: 1fr; gap: 18px; }
	.mtc-noms text { font-size: 25px; }
	.mtc-zoom { width: 100%; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 600px) {
	.mtc { border-radius: 22px; padding: 18px 10px; margin-left: -16px; margin-right: -16px; } /* la carte prend toute la largeur utile */
	.mtc-entete, .mtc-liste { padding: 0 6px; }
	.mtc-liste-ligne { flex-direction: column; }
	.mtc-grille { grid-template-columns: 1fr; }
	.mtc-dialogue { width: 100vw; max-width: 100vw; max-height: 88vh; max-height: 88dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
	.mtc-dialogue[open] { animation: mtc-glisse .3s cubic-bezier(.2, .8, .2, 1); }
	.mtc-actions { flex-direction: column-reverse; }
	.mtc-actions .mtc-bouton { width: 100%; }
	.mtc-bulle { font-size: 13px; }
}
@keyframes mtc-glisse { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mtc-dialogue[open], .mtc-dep, .mtc-bouton { animation: none; transition: none; } }
