/* Bandeau de consentement cookies RGPD - charte graphique stere.com (#375EFB).
   Refus aussi simple que l'acceptation : les 3 boutons (Tout accepter / Tout
   refuser / Personnaliser) ont le meme niveau visuel, aucun n'est mis en
   avant au detriment des autres (pas de dark pattern). */

#stere-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: #FFFFFF;
	box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.18);
	padding: 20px 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: none;
}
#stere-cookie-banner.is-visible {
	display: block;
}
#stere-cookie-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
#stere-cookie-banner__text {
	flex: 1 1 380px;
	color: #1E293B;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}
#stere-cookie-banner__text a {
	color: #375EFB;
	text-decoration: underline;
}
#stere-cookie-banner__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}
.stere-cookie-btn {
	border-radius: 8px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid #375EFB;
	line-height: 1.3;
	white-space: nowrap;
}
.stere-cookie-btn--accept,
.stere-cookie-btn--reject {
	background-color: #375EFB;
	color: #FFFFFF;
}
.stere-cookie-btn--accept:hover,
.stere-cookie-btn--reject:hover {
	background-color: #2846d1;
	border-color: #2846d1;
}
.stere-cookie-btn--customize {
	background-color: #FFFFFF;
	color: #375EFB;
}
.stere-cookie-btn--customize:hover {
	background-color: #EFF3FF;
}

/* Modale "Personnaliser" */
#stere-cookie-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#stere-cookie-modal-overlay.is-visible {
	display: flex;
}
#stere-cookie-modal {
	background: #FFFFFF;
	border-radius: 12px;
	max-width: 520px;
	width: 100%;
	padding: 28px;
	max-height: 85vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#stere-cookie-modal h3 {
	margin: 0 0 16px;
	font-size: 19px;
	color: #1E293B;
}
.stere-cookie-category {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #E2E8F0;
}
.stere-cookie-category:last-of-type {
	border-bottom: none;
}
.stere-cookie-category__label {
	font-weight: 600;
	color: #1E293B;
	font-size: 14px;
	margin: 0 0 4px;
}
.stere-cookie-category__desc {
	color: #475569;
	font-size: 13px;
	margin: 0;
	line-height: 1.4;
}
.stere-cookie-switch {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
}
.stere-cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.stere-cookie-switch__track {
	position: absolute;
	inset: 0;
	background-color: #CBD5E1;
	border-radius: 999px;
	transition: background-color 0.15s;
	cursor: pointer;
}
.stere-cookie-switch__track::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background-color: #FFFFFF;
	border-radius: 50%;
	transition: transform 0.15s;
}
.stere-cookie-switch input:checked + .stere-cookie-switch__track {
	background-color: #375EFB;
}
.stere-cookie-switch input:checked + .stere-cookie-switch__track::before {
	transform: translateX(20px);
}
.stere-cookie-switch input:disabled + .stere-cookie-switch__track {
	background-color: #375EFB;
	opacity: 0.5;
	cursor: not-allowed;
}
#stere-cookie-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

@media (max-width: 600px) {
	#stere-cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}
	#stere-cookie-banner__actions {
		flex-direction: column;
	}
	.stere-cookie-btn {
		width: 100%;
		text-align: center;
	}
	#stere-cookie-modal {
		padding: 22px;
	}
}
