/**
 * ABORO Cookie Consent — Styles
 * Charte ABORO : rouge institutionnel #C8102E, blanc, gris neutres
 * Mobile-first, max-width 720px sur desktop, plein écran sur mobile
 */

.aboro-cc-banner, .aboro-cc-banner *,
.aboro-cc-overlay, .aboro-cc-overlay * {
	box-sizing: border-box;
}

/* ───────────────────── Bannière (1er affichage) ───────────────────── */
.aboro-cc-banner {
	position: fixed;
	bottom: 16px;
	left: 16px;
	right: 16px;
	max-width: 720px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid #ececec;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	transform: translateY(120%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.aboro-cc-banner.aboro-cc-visible {
	transform: translateY(0);
	opacity: 1;
}
.aboro-cc-banner-inner {
	padding: 22px 24px;
}
.aboro-cc-title {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #111 !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.3 !important;
	font-family: inherit !important;
	letter-spacing: -0.01em;
	text-transform: none !important;
}
.aboro-cc-desc {
	font-size: 13.5px !important;
	color: #4b5563 !important;
	line-height: 1.5 !important;
	margin: 0 0 18px 0 !important;
	font-family: inherit !important;
}
.aboro-cc-desc a {
	color: #C8102E !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	font-weight: 500;
}
.aboro-cc-desc a:hover {
	color: #a80d26 !important;
}
.aboro-cc-banner-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ───────────────────── Boutons ───────────────────── */
.aboro-cc-btn {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 16px !important;
	border-radius: 8px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	cursor: pointer;
	border: 1px solid transparent !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
	line-height: 1.3 !important;
	letter-spacing: 0;
	text-align: center;
	white-space: nowrap;
	margin: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
}
.aboro-cc-btn-primary {
	background-image: linear-gradient(90deg, #e21411 0%, #cb1112 100%) !important;
	background-color: #cb1112 !important;
	color: #ffffff !important;
	border-color: #cb1112 !important;
}
.aboro-cc-btn-primary:hover {
	background-image: linear-gradient(90deg, #cb1112 0%, #a80d10 100%) !important;
	background-color: #a80d10 !important;
	border-color: #a80d10 !important;
}
.aboro-cc-btn-primary:active {
	transform: translateY(1px);
}
/* Secondaires : visuellement égaux entre eux (refuse et personnaliser),
   et lisibles autant que l'accept — pas de dark pattern. */
.aboro-cc-btn-secondary {
	background: #ffffff !important;
	color: #1a1a1a !important;
	border-color: #d1d5db !important;
}
.aboro-cc-btn-secondary:hover {
	background: #f9fafb !important;
	border-color: #9ca3af !important;
}

@media (max-width: 560px) {
	.aboro-cc-banner {
		bottom: 8px;
		left: 8px;
		right: 8px;
		border-radius: 14px;
	}
	.aboro-cc-banner-inner { padding: 18px; }
	.aboro-cc-banner-actions {
		flex-direction: column-reverse;
		gap: 6px;
	}
	.aboro-cc-btn { flex: 1 1 100%; }
}

/* ───────────────────── Modal personnalisation ───────────────────── */
.aboro-cc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 20, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.aboro-cc-overlay.aboro-cc-visible { opacity: 1; }

.aboro-cc-modal {
	background: #ffffff;
	border-radius: 18px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 28px 24px 28px;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.96);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.aboro-cc-overlay.aboro-cc-visible .aboro-cc-modal {
	transform: scale(1);
}

.aboro-cc-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	background: #f3f4f6;
	color: #4b5563;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	padding: 0;
	transition: background 0.15s;
}
.aboro-cc-close:hover { background: #e5e7eb; color: #111; }

.aboro-cc-modal-title {
	font-size: 22px !important;
	font-weight: 600 !important;
	color: #111 !important;
	margin: 0 0 10px 0 !important;
	letter-spacing: -0.01em;
	line-height: 1.2 !important;
	font-family: inherit !important;
	text-transform: none !important;
}
.aboro-cc-modal-intro {
	font-size: 13.5px !important;
	color: #4b5563 !important;
	line-height: 1.5 !important;
	margin: 0 0 22px 0 !important;
	font-family: inherit !important;
}

/* Categories */
.aboro-cc-categories {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}
.aboro-cc-category {
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 16px;
	background: #fafafa;
	transition: border-color 0.15s;
}
.aboro-cc-category:hover { border-color: #d1d5db; }
.aboro-cc-cat-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	justify-content: space-between;
}
.aboro-cc-cat-info { flex: 1; }
.aboro-cc-cat-info h3 {
	font-size: 14.5px !important;
	font-weight: 600 !important;
	color: #111 !important;
	margin: 0 0 4px 0 !important;
	line-height: 1.3 !important;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.aboro-cc-cat-info p {
	font-size: 12.5px !important;
	color: #6b7280 !important;
	line-height: 1.45 !important;
	margin: 0 !important;
	font-family: inherit !important;
}

/* Switch toggle */
.aboro-cc-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
}
.aboro-cc-switch input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	margin: 0;
}
.aboro-cc-switch-slider {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	background: #d1d5db;
	border-radius: 999px;
	transition: background 0.2s;
}
.aboro-cc-switch-slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.aboro-cc-switch input[type="checkbox"]:checked + .aboro-cc-switch-slider {
	background: #C8102E;
}
.aboro-cc-switch input[type="checkbox"]:checked + .aboro-cc-switch-slider::after {
	transform: translateX(18px);
}
.aboro-cc-switch-locked .aboro-cc-switch-slider {
	background: #4b5563;
	cursor: not-allowed;
}
.aboro-cc-switch-locked .aboro-cc-switch-slider::after {
	transform: translateX(18px);
	background: #ffffff;
}
.aboro-cc-switch-label {
	font-size: 11.5px;
	color: #6b7280;
	font-weight: 500;
	white-space: nowrap;
}

.aboro-cc-modal-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	border-top: 1px solid #ececec;
	padding-top: 18px;
	margin-top: 4px;
}

.aboro-cc-modal-footer {
	font-size: 12px !important;
	color: #9ca3af !important;
	margin: 16px 0 0 0 !important;
	text-align: center;
	font-family: inherit !important;
	line-height: 1.4 !important;
}
.aboro-cc-modal-footer a {
	color: #6b7280 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
.aboro-cc-modal-footer a:hover { color: #C8102E !important; }

@media (max-width: 480px) {
	.aboro-cc-modal {
		padding: 22px 18px 18px 18px;
		border-radius: 16px;
		max-height: 95vh;
	}
	.aboro-cc-modal-actions {
		flex-direction: column-reverse;
	}
	.aboro-cc-modal-actions .aboro-cc-btn { flex: 1 1 100%; }
	.aboro-cc-cat-head { gap: 10px; }
}

/* ───────────────────── Lien footer "Gérer les cookies" ───────────────────── */
.aboro-cc-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.85;
	transition: opacity 0.15s, color 0.15s;
}
.aboro-cc-footer-link:hover {
	opacity: 1;
	color: #C8102E;
}
