/* Bandeau cookies (bas de page) + bouton flottant — tons violet NetSyst */

#cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
}

#cookie-consent[hidden] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	overflow: hidden !important;
}

#cookie-consent .cookie-consent-bar {
	background: #fff;
	border-top: 3px solid #7268e5;
	box-shadow: 0 -4px 24px rgba(114, 104, 229, 0.15);
}

#cookie-consent .cookie-consent-bar-inner {
	padding: 20px 16px 24px;
	max-width: 1400px;
	margin: 0 auto;
}

#cookie-consent h2,
#cookie-consent .cookie-consent-customize-title {
	margin: 0 0 8px;
	font-size: 2rem;
	font-family: "SUSE", sans-serif;
	font-weight: 600;
	color: #403a80;
	line-height: 1.25;
}

#cookie-consent .cookie-consent-customize-title {
	margin-top: 0;
}

#cookie-consent .cookie-consent-intro {
	margin: 0 0 16px;
	font-size: 1.4rem;
	line-height: 1.55;
	color: rgb(131, 141, 173);
	max-width: 960px;
}

#cookie-consent.cookie-consent--customize .cookie-consent-simple {
	display: none;
}

#cookie-consent.cookie-consent--customize .cookie-consent-bar-inner {
	max-height: min(70vh, 520px);
	overflow-y: auto;
}

#cookie-consent .cookie-consent-services {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#cookie-consent .cookie-consent-service {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	align-items: start;
	padding: 16px;
	border: 1px solid rgba(114, 104, 229, 0.15);
	border-radius: 8px;
	background: linear-gradient(130deg, rgba(104, 125, 229, 0.06), rgba(114, 104, 229, 0.08), rgba(146, 104, 229, 0.06));
}

#cookie-consent .cookie-consent-service input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	flex-shrink: 0;
	border: 2px solid #7268e5;
	border-radius: 4px;
	background-color: #fff;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
}

#cookie-consent .cookie-consent-service input[type="checkbox"]:checked {
	background-color: #7268e5;
	border-color: #7268e5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.95rem;
}

#cookie-consent .cookie-consent-service input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(114, 104, 229, 0.45);
	outline-offset: 2px;
}

#cookie-consent .cookie-consent-service input[type="checkbox"]:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#cookie-consent .cookie-consent-service input[type="checkbox"]:disabled:checked {
	background-color: #7268e5;
	border-color: #7268e5;
}

#cookie-consent .cookie-consent-service-title {
	display: block;
	font-weight: 600;
	font-size: 1.5rem;
	margin-bottom: 2px;
	color: #403a80;
}

#cookie-consent .cookie-consent-service-desc {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.45;
	color: rgb(131, 141, 173);
}

#cookie-consent .cookie-consent-badge {
	display: inline-block;
	margin-left: 4px;
	padding: 0.1rem 0.45rem;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 4px;
	background: rgba(114, 104, 229, 0.15);
	color: #403a80;
	vertical-align: middle;
}

#cookie-consent .cookie-consent-note {
	margin: 0 0 12px;
	font-size: 1.25rem;
	line-height: 1.45;
	color: rgb(131, 141, 173);
}

#cookie-consent .cookie-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

#cookie-consent button.btn-cookie-accept {
	background: linear-gradient(-130deg, #9268e5 -10%, #7268e5, #687de5 120%) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 1.4rem;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 2px 10px rgba(114, 104, 229, 0.35) !important;
}

#cookie-consent button.btn-cookie-accept:hover {
	opacity: 0.92;
	filter: none;
}

#cookie-consent button.btn-cookie-necessary {
	background: rgba(114, 104, 229, 0.12) !important;
	color: #403a80 !important;
	border: none !important;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 1.4rem;
	cursor: pointer;
	font-family: inherit;
}

#cookie-consent button.btn-cookie-necessary:hover {
	background: rgba(114, 104, 229, 0.22) !important;
}

#cookie-consent button.btn-cookie-outline {
	background: #fff !important;
	color: #403a80 !important;
	border: 1px solid rgba(114, 104, 229, 0.4) !important;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 1.4rem;
	cursor: pointer;
	font-family: inherit;
}

#cookie-consent button.btn-cookie-outline:hover {
	border-color: #7268e5 !important;
	background: rgba(114, 104, 229, 0.08) !important;
}

#cookie-consent button.btn-cookie-save {
	background: linear-gradient(-130deg, #514a80, #403a80, #3a4680) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 1.4rem;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(64, 58, 128, 0.25) !important;
}

#cookie-consent button.btn-cookie-save:hover {
	opacity: 0.92;
}

/* Bouton flottant — bas gauche, rond (comme le widget 3CX) */
.cookie-consent-fab {
	position: fixed;
	left: 20px;
	right: auto;
	top: auto;
	bottom: 20px;
	z-index: 10001;
	width: 56px;
	height: 56px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: linear-gradient(-130deg, #9268e5 -10%, #7268e5, #687de5 120%);
	color: #fff;
	font-size: 2.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(114, 104, 229, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.cookie-consent-fab:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(114, 104, 229, 0.55);
	opacity: 0.95;
}

.cookie-consent-fab[hidden] {
	display: none !important;
}

@media (max-width: 768px) {
	#cookie-consent .cookie-consent-bar-inner {
		padding: 16px 12px 20px;
	}

	#cookie-consent .cookie-consent-actions {
		flex-direction: column;
		align-items: stretch;
	}

	#cookie-consent .cookie-consent-actions button {
		width: 100%;
		text-align: center;
	}

	.cookie-consent-fab {
		left: 12px;
		bottom: 12px;
		width: 52px;
		height: 52px;
		font-size: 2.2rem;
	}
}
