/* Amisgest Consentement témoins : apparence agencée au kit Elementor du site.
   Couleurs : #3EB1C8 (primaire), #44499C (liens), #243137 (texte), #FFFFFF,
   et leurs tintes/alpha (rgba(36,49,55,x), #3EB1C80F, #3EB1C81A).
   Tous les sélecteurs sont préfixés par un id pour l'emporter sur les règles
   génériques du kit Elementor (.elementor-kit-XXXX button) et le reset de Hello. */

#amg-ct-overlay {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 16px;
	background: rgba(36, 49, 55, 0.55);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#amg-ct-overlay[hidden],
#amg-ct-reopen[hidden] {
	display: none !important;
}

html.amg-ct-lock {
	overflow: hidden;
}

#amg-ct-overlay .amg-ct-banner {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: auto;
	padding: 24px;
	border: 1px solid #3EB1C81A;
	border-top: 5px solid #3EB1C8;
	border-radius: 12px;
	overflow: hidden;
	background: #FFFFFF;
	background-image: none;
	color: #243137;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: 0 12px 32px rgba(36, 49, 55, 0.25);
	outline: none;
	animation: amg-ct-fade-in 0.25s ease-out;
}

#amg-ct-overlay .amg-ct-banner *,
#amg-ct-overlay .amg-ct-banner *::before,
#amg-ct-overlay .amg-ct-banner *::after {
	box-sizing: border-box;
}

#amg-ct-overlay .amg-ct-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	color: #243137;
}

#amg-ct-overlay .amg-ct-text {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	color: #243137;
}

#amg-ct-overlay .amg-ct-policy-wrap {
	margin: 0 0 20px;
	padding: 0;
	font-size: 16px;
	line-height: 1.5;
}

#amg-ct-overlay a.amg-ct-policy {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	color: #44499C;
	text-decoration: underline;
	cursor: pointer;
}

#amg-ct-overlay a.amg-ct-policy:hover,
#amg-ct-overlay a.amg-ct-policy:focus-visible {
	color: #243137;
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

#amg-ct-overlay .amg-ct-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

/* Les deux boutons ont exactement la même apparence : seul le libellé diffère. */
#amg-ct-overlay .amg-ct-btn {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: auto;
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 20px;
	border: 2px solid #3EB1C8;
	border-radius: 8px;
	background: #3EB1C8;
	background-image: none;
	color: #243137;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#amg-ct-overlay .amg-ct-btn:hover,
#amg-ct-overlay .amg-ct-btn:focus {
	background: #44499C;
	background-image: none;
	border-color: #44499C;
	color: #FFFFFF;
	text-decoration: none;
	box-shadow: none;
}

#amg-ct-overlay .amg-ct-btn:focus-visible,
#amg-ct-overlay a.amg-ct-policy:focus-visible,
#amg-ct-reopen:focus-visible {
	outline: 3px solid #243137;
	outline-offset: 2px;
}

/* Bouton flottant pour rouvrir la fenêtre (visible une fois le choix fait). */
#amg-ct-reopen {
	-webkit-appearance: none;
	appearance: none;
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 99980;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	width: auto;
	min-height: auto;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid #44499C;
	border-radius: 999px;
	background: #FFFFFF;
	background-image: none;
	color: #243137;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: 0 4px 12px rgba(36, 49, 55, 0.25);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

#amg-ct-reopen:hover,
#amg-ct-reopen:focus-visible {
	background: #3EB1C81A;
	background-image: none;
	border-color: #44499C;
	color: #243137;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(36, 49, 55, 0.25);
}

#amg-ct-reopen .amg-ct-reopen-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: #44499C;
}

#amg-ct-reopen .amg-ct-reopen-label {
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: #243137;
}

/* Shortcode [amg_temoins_lien] : bouton stylé comme un lien du site. */
button.amg-ct-linklike.amg-ct-linklike {
	-webkit-appearance: none;
	appearance: none;
	display: inline;
	width: auto;
	min-height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-image: none;
	color: #44499C;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: underline;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
}

button.amg-ct-linklike.amg-ct-linklike:hover,
button.amg-ct-linklike.amg-ct-linklike:focus-visible {
	color: #243137;
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	box-shadow: none;
}

button.amg-ct-linklike.amg-ct-linklike:focus-visible {
	outline: 3px solid #243137;
	outline-offset: 2px;
}

@keyframes amg-ct-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 600px) {
	#amg-ct-overlay .amg-ct-banner {
		padding: 28px;
	}

	#amg-ct-overlay .amg-ct-actions {
		flex-direction: row;
	}

	#amg-ct-overlay .amg-ct-btn {
		flex: 1 1 0;
		width: auto;
	}
}

@media (max-width: 599px) {
	#amg-ct-reopen .amg-ct-reopen-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	#amg-ct-reopen {
		padding: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#amg-ct-overlay .amg-ct-banner,
	#amg-ct-overlay .amg-ct-btn,
	#amg-ct-reopen {
		animation: none;
		transition: none;
	}
}
