/* CSP – Provenance à l'accueil : dans la direction artistique de l'espace admin */

.csp-prov-trigger {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	color: #c9a84c;
	border-bottom: 1px dotted rgba(201, 168, 76, .55);
	padding-bottom: 1px;
	transition: color .2s ease, border-color .2s ease;
}
.csp-prov-trigger:hover,
.csp-prov-trigger:focus-visible { color: #e9d9a4; border-bottom-color: #e9d9a4; }
.csp-prov-trigger:focus-visible { outline: 2px solid rgba(201, 168, 76, .5); outline-offset: 3px; border-radius: 3px; }

.csp-prov-trigger.is-recorded { border-bottom: 0; display: inline-flex; flex-direction: column; gap: 2px; }
.csp-prov-recorded-label {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(201, 168, 76, .7);
}
.csp-prov-recorded-value { color: #e9d9a4; }
.csp-prov-trigger.is-recorded:hover .csp-prov-recorded-value { text-decoration: underline dotted rgba(233, 217, 164, .6); text-underline-offset: 3px; }

/* Fenêtre */
.csp-prov-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(4, 10, 20, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	transition: background .25s ease, backdrop-filter .25s ease;
}
.csp-prov-overlay.is-open {
	background: rgba(4, 10, 20, .62);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.csp-prov-sheet {
	position: relative;
	width: 100%;
	max-width: 500px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	padding: 30px 28px 22px;
	border-radius: 18px;
	border: 1px solid rgba(201, 168, 76, .22);
	background:
		radial-gradient(120% 80% at 50% -10%, rgba(201, 168, 76, .10), transparent 60%),
		linear-gradient(180deg, #0f1f35 0%, #0a1628 100%);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
	color: #edf0f5;
	font-family: Inter, -apple-system, system-ui, sans-serif;
	opacity: 0;
	transform: translateY(14px) scale(.985);
	transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.csp-prov-overlay.is-open .csp-prov-sheet { opacity: 1; transform: none; }

.csp-prov-close {
	all: unset;
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: rgba(237, 240, 245, .55);
	transition: background .2s ease, color .2s ease;
}
.csp-prov-close:hover,
.csp-prov-close:focus-visible { background: rgba(255, 255, 255, .06); color: #edf0f5; }

.csp-prov-kicker {
	margin: 0 0 6px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(201, 168, 76, .8);
	text-align: center;
}
.csp-prov-title {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 500;
	font-size: 25px;
	line-height: 1.25;
	color: #f3e9cf;
	text-align: center;
}
.csp-prov-hint {
	margin: 8px 0 22px;
	font-size: 12.5px;
	color: rgba(218, 224, 234, .55);
	text-align: center;
}

.csp-prov-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.csp-prov-tile {
	all: unset;
	box-sizing: border-box;
	min-height: 56px;
	padding: 12px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	border-radius: 12px;
	border: 1px solid rgba(201, 168, 76, .16);
	background: rgba(255, 255, 255, .025);
	font-size: 13.5px;
	font-weight: 500;
	color: #edf0f5;
	transition: border-color .18s ease, background .18s ease, transform .12s ease, color .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.csp-prov-tile:hover,
.csp-prov-tile:focus-visible {
	border-color: rgba(201, 168, 76, .55);
	background: rgba(201, 168, 76, .07);
	color: #f3e9cf;
}
.csp-prov-tile:active { transform: scale(.97); }
.csp-prov-tile.is-current { border-color: rgba(201, 168, 76, .7); background: rgba(201, 168, 76, .10); color: #e9d9a4; }
.csp-prov-tile.is-first {
	border-color: #c9a84c;
	background: linear-gradient(180deg, rgba(201, 168, 76, .22), rgba(201, 168, 76, .10));
	color: #f3e9cf;
}

.csp-prov-other { display: flex; gap: 10px; margin-top: 14px; }
.csp-prov-other[hidden] { display: none; }
.csp-prov-other-input {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(201, 168, 76, .25);
	background: rgba(255, 255, 255, .04);
	color: #fff;
	font: inherit;
	font-size: 14px;
	outline: none;
}
.csp-prov-other-input:focus { border-color: rgba(201, 168, 76, .65); }
.csp-prov-other-save {
	all: unset;
	cursor: pointer;
	padding: 12px 18px;
	border-radius: 12px;
	background: linear-gradient(180deg, #d4b45c, #b8963c);
	color: #0a1628;
	font-weight: 600;
	font-size: 13.5px;
}

.csp-prov-foot {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .06);
	text-align: center;
}
.csp-prov-two {
	all: unset;
	cursor: pointer;
	font-size: 12.5px;
	color: rgba(218, 224, 234, .6);
	transition: color .2s ease;
}
.csp-prov-two span { color: rgba(218, 224, 234, .38); margin-left: 4px; }
.csp-prov-two:hover,
.csp-prov-two:focus-visible,
.csp-prov-two.is-on { color: #c9a84c; }
.csp-prov-step { margin: 10px 0 0; font-size: 13px; color: #e9d9a4; }

.csp-prov-overlay.is-busy .csp-prov-tile,
.csp-prov-overlay.is-busy .csp-prov-other-save { opacity: .5; pointer-events: none; }

/* Confirmation */
.csp-prov-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100001;
	transform: translate(-50%, 12px);
	opacity: 0;
	padding: 12px 20px;
	border-radius: 999px;
	border: 1px solid rgba(201, 168, 76, .35);
	background: #0f1f35;
	color: #f3e9cf;
	font: 500 13.5px/1.3 Inter, -apple-system, system-ui, sans-serif;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	transition: opacity .25s ease, transform .25s ease;
	max-width: calc(100vw - 32px);
	text-align: center;
}
.csp-prov-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
	.csp-prov-overlay { align-items: flex-end; padding: 0; }
	.csp-prov-sheet {
		max-width: none;
		border-radius: 20px 20px 0 0;
		padding: 26px 16px calc(18px + env(safe-area-inset-bottom));
		transform: translateY(40px);
	}
	.csp-prov-title { font-size: 22px; }
	.csp-prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.csp-prov-tile { min-height: 52px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.csp-prov-overlay, .csp-prov-sheet, .csp-prov-toast, .csp-prov-tile { transition: none; }
}

.csp-prov-sheet:focus { outline: none; }

.csp-prov-foot[hidden] { display: none; }
.csp-prov-done {
	all: unset;
	cursor: pointer;
	display: inline-block;
	padding: 11px 28px;
	border-radius: 999px;
	border: 1px solid rgba(201, 168, 76, .55);
	color: #e9d9a4;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .02em;
	transition: background .2s ease, color .2s ease;
}
.csp-prov-done:hover,
.csp-prov-done:focus-visible { background: rgba(201, 168, 76, .14); color: #f3e9cf; }
.csp-prov-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.csp-prov-foot[hidden], .csp-prov-done[hidden], .csp-prov-remove[hidden] { display: none; }
.csp-prov-remove {
	all: unset;
	cursor: pointer;
	font-size: 12.5px;
	color: rgba(218, 224, 234, .5);
	border-bottom: 1px dotted rgba(218, 224, 234, .3);
	transition: color .2s ease;
}
.csp-prov-remove:hover,
.csp-prov-remove:focus-visible { color: #e8a598; border-bottom-color: rgba(232, 165, 152, .5); }
