/* ── GDPR Consent Bar Styles ── */
/* Matches Marche pour nos Anges design system */

.marche-gdpr-consent {
	font-family: 'Nunito', system-ui, sans-serif;
	background: rgba(45, 37, 53, 0.97);
	color: #e8d5f0;
	padding: 20px 24px;
	z-index: 9000;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	transform: translateY(100%);
	transition: transform 0.4s ease;
}

.marche-gdpr-consent.marche-gdpr-visible {
	transform: translateY(0);
}

.marche-gdpr-consent.marche-gdpr-top {
	position: fixed;
	top: 0;
	bottom: auto;
	transform: translateY(-100%);
}

.marche-gdpr-consent.marche-gdpr-top.marche-gdpr-visible {
	transform: translateY(0);
}

.marche-gdpr-consent.marche-gdpr-top-fixed {
	position: fixed;
	top: 0;
	bottom: auto;
	transform: translateY(-100%);
	box-shadow: 0 2px 20px rgba(205, 103, 175, 0.1);
}

.marche-gdpr-consent.marche-gdpr-top-fixed.marche-gdpr-visible {
	transform: translateY(0);
}

.marche-gdpr-consent.marche-gdpr-bottom-fixed {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	box-shadow: 0 -2px 20px rgba(205, 103, 175, 0.1);
}

.marche-gdpr-consent.marche-gdpr-consent--hidden {
	display: none !important;
}

.marche-gdpr-content {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
}

.marche-gdpr-text {
	flex: 1;
	min-width: 200px;
}

.marche-gdpr-title {
	margin: 0 0 8px 0;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.01em;
}

.marche-gdpr-message {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #e8d5f0;
}

.marche-gdpr-policy-link {
	color: #e8a8d8;
	text-decoration: none;
	font-weight: 600;
	margin-left: 4px;
	display: inline-block;
	transition: color 0.2s ease;
}

.marche-gdpr-policy-link:hover {
	color: #f0c0e0;
	text-decoration: underline;
}

.marche-gdpr-actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
	align-items: center;
	white-space: nowrap;
}

.marche-gdpr-btn {
	padding: 10px 22px;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
	letter-spacing: 0.02em;
}

.marche-gdpr-accept {
	background: #cd67af;
	color: #fff;
	box-shadow: 0 4px 15px rgba(205, 103, 175, 0.3);
}

.marche-gdpr-accept:hover {
	background: #b84d9a;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(205, 103, 175, 0.4);
}

.marche-gdpr-reject {
	background: transparent;
	color: #e8d5f0;
	border: 1px solid rgba(232, 213, 240, 0.3);
}

.marche-gdpr-reject:hover {
	background: rgba(232, 213, 240, 0.1);
	border-color: rgba(232, 213, 240, 0.6);
}

.marche-gdpr-preferences {
	background: transparent;
	color: #e8d5f0;
	border: 1px solid rgba(205, 103, 175, 0.4);
}

.marche-gdpr-preferences:hover {
	background: rgba(205, 103, 175, 0.15);
	border-color: rgba(205, 103, 175, 0.7);
}

/* ── COOKIE PREFERENCES MODAL ── */
.marche-cookie-preferences-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.marche-cookie-preferences-overlay.active {
	opacity: 1;
	visibility: visible;
}

.marche-cookie-preferences {
	background: white;
	border-radius: 12px;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	animation: slideUp 0.3s ease;
}

.marche-cookie-preferences-overlay.active .marche-cookie-preferences {
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.marche-cookie-prefs-header {
	padding: 24px;
	background: linear-gradient(135deg, #cd67af, #0693e3);
	color: white;
	position: sticky;
	top: 0;
	z-index: 1;
}

.marche-cookie-prefs-header h2 {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 24px;
	font-weight: 300;
}

.marche-cookie-prefs-header p {
	margin: 8px 0 0;
	font-size: 14px;
	opacity: 0.9;
}

.marche-cookie-prefs-content {
	padding: 24px;
}

.marche-cookie-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.marche-cookie-category:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.marche-cookie-category-title {
	font-weight: 600;
	color: #2d2535;
	margin: 0;
	display: block;
	cursor: pointer;
}

.marche-cookie-category-desc {
	margin: 6px 0 0;
	font-size: 13px;
	color: #5a4e6b;
	line-height: 1.5;
}

.marche-cookie-toggle {
	width: 40px;
	height: 24px;
	cursor: pointer;
	accent-color: #cd67af;
	flex-shrink: 0;
}

.marche-cookie-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.marche-cookie-badge-required {
	background: #cd67af;
	color: white;
}

.marche-cookie-badge-optional {
	background: #eee;
	color: #333;
}

.marche-cookie-prefs-footer {
	padding: 16px 24px;
	background: #faf8f6;
	border-top: 1px solid #eee;
	display: flex;
	gap: 12px;
	position: sticky;
	bottom: 0;
}

.marche-cookie-save-btn {
	flex: 1;
	padding: 12px 24px;
	background: linear-gradient(135deg, #cd67af, #b84d9a);
	color: white;
	border: none;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	font-family: 'Nunito', system-ui, sans-serif;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marche-cookie-save-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(205, 103, 175, 0.4);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.marche-gdpr-consent {
		background: rgba(10, 8, 16, 0.98);
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.marche-gdpr-consent {
		padding: 16px 20px;
		gap: 16px;
	}

	.marche-gdpr-content {
		flex-direction: column;
		gap: 16px;
	}

	.marche-gdpr-text {
		text-align: center;
		min-width: auto;
	}

	.marche-gdpr-actions {
		flex-direction: column;
		width: 100%;
		justify-content: center;
		white-space: normal;
	}

	.marche-gdpr-btn {
		width: 100%;
	}

	.marche-gdpr-title {
		font-size: 14px;
	}

	.marche-gdpr-message {
		font-size: 12px;
	}

	/* Mobile preferences modal */
	.marche-cookie-preferences-overlay {
		padding: 20px;
	}

	.marche-cookie-preferences {
		max-width: 100%;
		max-height: 85vh;
	}

	.marche-cookie-prefs-header {
		padding: 20px;
	}

	.marche-cookie-prefs-header h2 {
		font-size: 20px;
	}

	.marche-cookie-prefs-content {
		padding: 16px;
	}

	.marche-cookie-category {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.marche-cookie-toggle {
		align-self: flex-end;
	}

	.marche-cookie-prefs-footer {
		padding: 12px 16px;
	}

	.marche-cookie-save-btn {
		font-size: 13px;
		padding: 10px 20px;
	}
}
