/* Bandeau cookies RGPD Designomanie — carte en bas à droite */
.dmc {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	width: 380px;
	max-width: calc(100vw - 32px);
	background: #fff;
	color: var(--ink, #111);
	border: 1px solid var(--line, #e2e2de);
	border-radius: 16px;
	box-shadow: 0 24px 60px -24px rgba(17,17,17,.28), 0 2px 8px rgba(17,17,17,.04);
	font-family: var(--text, "Inter Tight", system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.dmc.is-on { opacity: 1; transform: none; }
.dmc[hidden] { display: none; }
.dmc-in { padding: 22px 22px 20px; }
.dmc-t {
	margin: 0 0 8px;
	font-family: var(--display, "Syne", sans-serif);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.dmc-p { margin: 0 0 16px; color: var(--muted, #5f5f5b); }
.dmc-p a { color: var(--ink, #111); text-decoration: underline; text-underline-offset: 2px; }

.dmc-row { display: flex; gap: 8px; }
.dmc-btn {
	flex: 1 1 0;
	appearance: none;
	border: 1px solid var(--ink, #111);
	border-radius: 999px;
	padding: 11px 14px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	/* les deux boutons ont exactement le même style (exigence CNIL : refuser aussi visible qu'accepter) */
	background: var(--ink, #111);
	color: #fff;
	transition: background .2s ease, color .2s ease;
}
.dmc-btn:hover { background: #333; }
.dmc-btn:focus-visible, .dmc-more:focus-visible, .dmc-sw input:focus-visible + span { outline: 2px solid var(--ink, #111); outline-offset: 2px; }

.dmc-more {
	display: block;
	margin: 12px auto 0;
	padding: 2px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	color: var(--muted, #5f5f5b);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.dmc-prefs { margin: 4px 0 16px; border-top: 1px solid var(--line, #e2e2de); }
.dmc-prefs[hidden] { display: none; }
.dmc-opt {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line, #e2e2de);
}
.dmc-opt b { display: block; font-weight: 600; font-size: 14px; }
.dmc-opt small { display: block; color: var(--muted, #5f5f5b); font-size: 12.5px; line-height: 1.4; }
.dmc-fixed { flex: none; font-size: 12px; color: var(--muted, #5f5f5b); padding-top: 2px; }

/* interrupteur */
.dmc-sw { position: relative; flex: none; width: 40px; height: 24px; margin-top: 2px; cursor: pointer; }
.dmc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dmc-sw span {
	position: absolute; inset: 0;
	border-radius: 999px;
	background: var(--line, #e2e2de);
	transition: background .2s ease;
	pointer-events: none;
}
.dmc-sw span::after {
	content: "";
	position: absolute; top: 3px; left: 3px;
	width: 18px; height: 18px; border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
	transition: transform .2s ease;
}
.dmc-sw input:checked + span { background: var(--ink, #111); }
.dmc-sw input:checked + span::after { transform: translateX(16px); }

@media (max-width: 560px) {
	.dmc { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; border-radius: 14px; }
	.dmc-in { padding: 18px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.dmc { transition: none; }
}
