/**
 * Bandeau cookies — habillage marque Spinach.
 * Utilise les variables de palette globales du thème (theme.json) avec replis
 * sûrs si le thème change.
 */
.sp-cookie {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	background: var(--wp--preset--color--encre, #100D17);
	color: #fff;
	border-top: 3px solid var(--wp--preset--color--rouge, #E22121);
	box-shadow: 0 12px 40px rgba(16, 13, 23, .35);
}
.sp-cookie[hidden] { display: none; }

.sp-cookie-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.sp-cookie-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow, "Barlow", system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: #D9D8DE;
	max-width: 70ch;
}
.sp-cookie-text a {
	color: var(--wp--preset--color--corail, #FF878E);
	text-decoration: underline;
}

.sp-cookie-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.sp-cookie-btn {
	font-family: var(--wp--preset--font-family--barlow, "Barlow", system-ui, sans-serif);
	font-weight: 600;
	font-size: 14px;
	padding: 11px 22px;
	border: 1.5px solid transparent;
	background: var(--wp--preset--color--rouge, #E22121);
	color: #fff;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.sp-cookie-btn:hover { background: #bd1414; }
.sp-cookie-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}
.sp-cookie-btn--ghost:hover {
	background: #fff;
	color: var(--wp--preset--color--encre, #100D17);
}
.sp-cookie-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--corail, #FF878E);
	outline-offset: 2px;
}

@media (max-width: 700px) {
	.sp-cookie-inner { flex-direction: column; align-items: flex-start; }
	.sp-cookie-actions { width: 100%; }
	.sp-cookie-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.sp-cookie-btn { transition: none; }
}
