/* NicoPhoto Consentement — design system Nico Duval Photographie */
.npc,
.npc-manage {
	--npc-bg: #FBF8F5;
	--npc-surface: #F3ECE7;
	--npc-border: #E9DFD6;
	--npc-ink: #362E28;
	--npc-ink-soft: #4A4038;
	--npc-taupe: #8A7359;
	--npc-accent: #A3603C;
	--npc-accent-hover: #8E5233;
	--npc-focus: #C68B6D;
	--npc-title-font: var(--Titre_H1-H4, "Cormorant Garamond"), Georgia, serif;
	--npc-body-font: var(--Paragraphes, "Jost"), system-ui, -apple-system, sans-serif;
}

.npc[hidden],
.npc-manage[hidden],
.npc-step[hidden] {
	display: none !important;
}

.npc {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-sizing: border-box;
	font-family: var(--npc-body-font);
	color: var(--npc-ink);
	animation: npc-in 320ms cubic-bezier(.22, .61, .36, 1);
}

.npc *,
.npc *::before,
.npc *::after {
	box-sizing: border-box;
}

.npc-panel {
	padding: 28px;
	background: var(--npc-bg);
	border: 1px solid var(--npc-border);
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(36, 30, 26, .12), 0 1px 2px rgba(36, 30, 26, .06);
}

.npc-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--npc-title-font);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--npc-ink);
	outline: none;
}

.npc-text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--npc-ink);
}

.npc-inline-link,
.npc-inline-link:visited {
	color: var(--npc-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.npc-inline-link:hover {
	color: var(--npc-accent-hover);
}

.npc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.npc-actions--stack {
	grid-template-columns: 1fr;
}

.npc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--npc-taupe);
	border-radius: 2px;
	background: var(--npc-surface);
	color: var(--npc-ink);
	font-family: var(--npc-body-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 160ms, border-color 160ms, color 160ms;
}

.npc-btn:hover {
	background: var(--npc-border);
	color: var(--npc-ink);
}

.npc-btn--primary {
	border-color: var(--npc-accent);
	background: var(--npc-accent);
	color: #FFFFFF;
}

.npc-btn--primary:hover {
	border-color: var(--npc-accent-hover);
	background: var(--npc-accent-hover);
	color: #FFFFFF;
}

.npc-link {
	display: inline-block;
	margin: 14px 0 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--npc-accent);
	font-family: var(--npc-body-font);
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none;
}

.npc-link:hover {
	background: none;
	color: var(--npc-accent-hover);
}

.npc-cats {
	display: grid;
	gap: 10px;
	margin: 6px 0 20px;
	padding: 0;
	list-style: none;
}

.npc-cat {
	margin: 0;
	padding: 14px 16px;
	background: var(--npc-surface);
	border-radius: 4px;
}

.npc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.npc-cat__name {
	font-size: 15px;
	font-weight: 500;
	color: var(--npc-ink);
}

.npc-cat__always {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--npc-ink-soft);
}

.npc-cat__desc {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--npc-ink-soft);
}

.npc-switch {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--npc-taupe);
	border-radius: 999px;
	background: var(--npc-border);
	cursor: pointer;
	box-shadow: none;
	transition: background-color 160ms, border-color 160ms;
}

.npc-switch__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(36, 30, 26, .25);
	transition: transform 160ms cubic-bezier(.22, .61, .36, 1);
}

.npc-switch[aria-checked="true"] {
	border-color: var(--npc-accent);
	background: var(--npc-accent);
}

.npc-switch[aria-checked="true"] .npc-switch__knob {
	transform: translateX(20px);
}

.npc-switch:hover {
	background: var(--npc-border);
}

.npc-switch[aria-checked="true"]:hover {
	background: var(--npc-accent-hover);
}

.npc :focus-visible,
.npc-manage:focus-visible,
.npc-open-link:focus-visible {
	outline: 2px solid var(--npc-focus);
	outline-offset: 2px;
}

.npc-manage {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99998;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--npc-border);
	border-radius: 999px;
	background: var(--npc-bg);
	color: var(--npc-ink);
	font-family: var(--npc-body-font);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(36, 30, 26, .06), 0 4px 16px rgba(36, 30, 26, .08);
	opacity: .9;
	transition: opacity 160ms, background-color 160ms;
}

.npc-manage:hover {
	opacity: 1;
	background: var(--npc-surface);
	color: var(--npc-ink);
}

.npc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.npc-table th,
.npc-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #E9DFD6;
	text-align: left;
	vertical-align: top;
}

@keyframes npc-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
	.npc {
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
		max-height: calc(100vh - 24px);
	}

	.npc-panel {
		padding: 22px 20px;
	}

	.npc-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.npc { animation: none; }
	.npc-btn,
	.npc-switch,
	.npc-switch__knob,
	.npc-manage { transition: none; }
}

@media print {
	.npc,
	.npc-manage { display: none !important; }
}
