/* Bandeau de consentement (class-consent.php, consent.js). En bas à gauche : la bulle Chatbase est à droite. */
.sim-consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	box-sizing: border-box;
	width: 420px;
	max-width: calc(100vw - 24px);
	padding: 22px 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(45, 46, 131, .22);
	font-family: "Golos Text", sans-serif;
	color: #2d2e83;
}

.sim-consent[hidden] {
	display: none;
}

.sim-consent__title {
	margin: 0 0 8px;
	font: 600 18px/1.25 "Baloo Bhai 2", sans-serif;
	color: #2d2e83;
}

.sim-consent__text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: #4a4b6a;
}

.sim-consent .sim-consent__more {
	color: #2d2e83;
	font-weight: 600;
	text-decoration: underline;
}

.sim-consent__actions {
	display: flex;
	gap: 10px;
}

/* Refuser et Accepter : même taille, même poids (recommandation CNIL). */
.sim-consent .sim-consent__btn {
	flex: 1 1 0;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 46px;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	font: 600 15px/1.2 "Golos Text", sans-serif;
	color: #fff;
	cursor: pointer;
}

.sim-consent .sim-consent__btn--refuse {
	background: #2d2e83;
}

.sim-consent .sim-consent__btn--accept {
	background: #ff68a3;
}

.sim-consent .sim-consent__btn:hover,
.sim-consent .sim-consent__btn:focus-visible {
	filter: brightness(1.1);
	outline: 2px solid #2d2e83;
	outline-offset: 2px;
}

/* Ordinateur : barre basse (texte à gauche, boutons à droite) pour ne pas masquer les boutons du hero ; la bulle Chatbase garde sa place à droite. */
@media (min-width: 1025px) {
	.sim-consent {
		display: grid;
		grid-template-columns: 1fr auto;
		column-gap: 28px;
		align-items: center;
		width: min(980px, calc(100vw - 140px));
		max-width: none;
		padding: 18px 24px;
	}

	.sim-consent__title {
		grid-column: 1;
		margin-bottom: 4px;
		font-size: 16px;
	}

	.sim-consent__text {
		grid-column: 1;
		margin: 0;
		font-size: 13.5px;
	}

	.sim-consent__actions {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.sim-consent .sim-consent__btn {
		flex: 0 0 auto;
		min-width: 130px;
	}
}

@media (max-width: 767px) {
	.sim-consent {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		padding: 18px;
	}

	/* La bulle Chatbase recouvrirait « Accepter » : masquée tant que le bandeau est ouvert. */
	html.sim-consent-open #chatbase-bubble-button {
		display: none !important;
	}
}
