/* ==========================================================================
   PAGES CLASSIQUES · CONTACT · CONSENTEMENT COOKIES
   ========================================================================== */

.sc-page { padding-bottom: var(--sc-s7); }

.sc-page__head {
	padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--sc-s5);
	max-width: var(--sc-article);
	margin-inline: auto;
	border-bottom: var(--sc-border-w) solid var(--sc-border);
	margin-bottom: var(--sc-s5);
}
.sc-page__title {
	font-family: var(--sc-serif);
	font-size: var(--sc-fs-h1);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: var(--sc-s2) 0 var(--sc-s3);
	text-wrap: balance;
}
.sc-page__lede {
	font-size: var(--sc-fs-lede);
	line-height: 1.62;
	color: var(--sc-text-soft);
}
.sc-page__updated {
	margin-top: var(--sc-s3);
	font-size: var(--sc-fs-sm);
	color: var(--sc-muted);
}

/* Un placeholder juridique doit se voir immédiatement (§32) */
.sc-placeholder {
	display: inline-block;
	padding: .12em .5em;
	background: #f6e9cf;
	border: 1px dashed var(--sc-gold);
	border-radius: 2px;
	font-family: var(--sc-sans);
	font-size: .82em;
	font-weight: 600;
	letter-spacing: .02em;
	color: #7a5312;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.sc-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	max-width: var(--sc-container-n);
	margin-inline: auto;
}
.sc-contact__aside {
	padding: var(--sc-s4);
	background: var(--sc-surface-alt);
	border: var(--sc-border-w) solid var(--sc-border-light);
	border-radius: var(--sc-radius);
}
.sc-contact__aside h2 {
	font-family: var(--sc-serif);
	font-size: 1.35rem;
	line-height: 1.25;
	margin-bottom: var(--sc-s2);
}
.sc-contact__aside p { font-size: var(--sc-fs-sm); line-height: 1.68; color: var(--sc-muted); }
.sc-contact__aside p + p { margin-top: var(--sc-s2); }

/* --------------------------------------------------------------------------
   Consentement cookies (§34)
   -------------------------------------------------------------------------- */

.sc-consent[hidden] { display: none; }

.sc-consent__bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 300;
	background: var(--sc-surface);
	border-top: 2px solid var(--sc-green);
	animation: sc-slideup .3s var(--sc-ease);
}
@keyframes sc-slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sc-consent__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--sc-s4);
	padding-block: var(--sc-s3);
}
.sc-consent__title {
	font-family: var(--sc-serif);
	font-size: 1.2rem;
	line-height: 1.25;
	margin-bottom: .35rem;
}
.sc-consent__desc {
	font-size: var(--sc-fs-sm);
	line-height: 1.6;
	color: var(--sc-muted);
	max-width: 78ch;
}
.sc-consent__desc a { color: var(--sc-green); }
.sc-consent__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

/* Panneau de personnalisation */
.sc-consent__panel {
	position: fixed;
	inset: 0;
	z-index: 310;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sc-s3);
	background: rgba(5, 30, 30, .45);
	backdrop-filter: blur(3px);
}
.sc-consent__panel[hidden] { display: none; }
.sc-consent__panel-inner {
	width: 100%;
	max-width: 620px;
	max-height: 86vh;
	overflow-y: auto;
	background: var(--sc-surface);
	border-radius: var(--sc-radius-md);
	padding: var(--sc-s4);
}
.sc-consent__panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sc-s3);
	padding-bottom: var(--sc-s3);
	border-bottom: var(--sc-border-w) solid var(--sc-border);
	margin-bottom: var(--sc-s3);
}
.sc-consent__panel-head h2 { font-family: var(--sc-serif); font-size: 1.5rem; line-height: 1.2; }
.sc-consent__close {
	background: transparent;
	border: 0;
	color: var(--sc-muted);
	padding: .25rem;
	flex: none;
}
.sc-consent__close:hover { color: var(--sc-green); }

.sc-consent__cat + .sc-consent__cat {
	margin-top: var(--sc-s3);
	padding-top: var(--sc-s3);
	border-top: var(--sc-border-w) solid var(--sc-border-light);
}
.sc-consent__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sc-s3);
	cursor: pointer;
	margin-bottom: .4rem;
}
.sc-consent__cat-label { font-size: var(--sc-fs-ui); font-weight: 600; color: var(--sc-text); }
.sc-consent__cat-head input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Interrupteur */
.sc-consent__switch {
	position: relative;
	flex: none;
	width: 42px; height: 24px;
	background: var(--sc-border-dark);
	border-radius: 12px;
	transition: background-color .22s var(--sc-ease);
}
.sc-consent__switch::after {
	content: '';
	position: absolute;
	top: 3px; left: 3px;
	width: 18px; height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .22s var(--sc-ease);
}
.sc-consent__cat-head input:checked + .sc-consent__switch { background: var(--sc-green); }
.sc-consent__cat-head input:checked + .sc-consent__switch::after { transform: translateX(18px); }
.sc-consent__cat-head input:disabled + .sc-consent__switch { opacity: .55; cursor: not-allowed; }
.sc-consent__cat-head input:focus-visible + .sc-consent__switch { outline: 2px solid var(--sc-green); outline-offset: 2px; }

.sc-consent__cat-desc { font-size: var(--sc-fs-sm); line-height: 1.6; color: var(--sc-muted); }

.sc-consent__panel-actions {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
	margin-top: var(--sc-s4);
	padding-top: var(--sc-s3);
	border-top: var(--sc-border-w) solid var(--sc-border);
}

.sc-consent-reopen {
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	font: inherit;
	cursor: pointer;
}
