/* Variables surchargeables depuis le thème : .ha-don { --ha-don-couleur: #c0392b; } */
.ha-don {
	/* Même forme que le bouton « Prendre rendez-vous » du site : angles droits,
	   vert secondaire (--e-global-color-secondary) et texte beige (--e-global-color-9dd91b1). */
	--ha-don-couleur: var(--e-global-color-secondary, #24765F);
	--ha-don-couleur-texte: var(--e-global-color-9dd91b1, #EDDED1);
	--ha-don-rayon: 0;
	display: inline-block;
}

.ha-don .ha-don__bouton {
	text-transform: none;
	letter-spacing: normal;
	background: var(--ha-don-couleur);
	color: var(--ha-don-couleur-texte);
	border: 0;
	border-radius: var(--ha-don-rayon);
	padding: 18px 32px;
	font-family: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.ha-don .ha-don__bouton:hover,
.ha-don .ha-don__bouton:focus-visible {
	filter: brightness(0.92);
}

/* Surimpression plein écran : le fond flouté vient du ::backdrop, le dialog est transparent. */
.ha-don__dialog {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.ha-don__dialog[open] {
	display: flex;
	justify-content: center;
}

.ha-don__dialog::backdrop {
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(15px) brightness(0.5);
	backdrop-filter: blur(15px) brightness(0.5);
}

.ha-don .ha-don__fermer {
	position: absolute;
	top: 0.5rem;
	right: 1.5rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	background: #efeff4;
	color: #333;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

.ha-don .ha-don__fermer:hover,
.ha-don .ha-don__fermer:focus-visible {
	background: #e0e0e8;
}

.ha-don__contenu {
	position: relative;
	width: 100%;
	max-width: 950px;
	height: 100%;
}

.ha-don__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
}

.ha-don__merci {
	margin: 4rem 1rem 0;
	padding: 2em 1.5em;
	background: #fff;
	color: #222;
	border-radius: var(--ha-don-rayon);
	text-align: center;
	font-size: 1.25rem;
}

/* L'attribut hidden doit l'emporter sur les display ci-dessus. */
.ha-don [hidden] {
	display: none;
}
