/*
 * Page « Vos galeries » ([psg_access], class-psg-access.php). La page est construite comme « Appel
 * découverte » : un bloc Couverture (la photo réglée dans le Studio) avec, dedans, cette carte et son
 * champ mot de passe. La barre du menu, la photo et la vague sont gérées par le site, comme ailleurs.
 */

.psg-acc {
	--acc-ink: #3b2a1f;
	--acc-solid: #5b3f2c;
	--acc-solid-ink: #f8f1e7;
	--acc-gold: #c9a35b;
	display: grid;
	place-items: center;
	padding: 24px 0;
}

.psg-acc__card {
	width: 100%;
	max-width: 470px;
	padding: clamp(32px, 5vw, 46px) clamp(24px, 4vw, 40px);
	border: 1px solid rgba(92, 64, 44, .12);
	border-radius: 30px;
	background: rgba(251, 247, 241, .82);
	box-shadow: 0 30px 70px rgba(91, 63, 44, .16);
	color: var(--acc-ink);
	text-align: center;
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
}

/* Sur la photo du bloc Couverture : verre clair, texte blanc. */
.wp-block-cover .psg-acc__card {
	border-color: rgba(255, 255, 255, .3);
	background: rgba(250, 243, 234, .16);
	box-shadow: 0 30px 80px rgba(20, 12, 6, .35);
	color: #fff;
}

.psg-acc__lock {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	opacity: .85;
}

.entry-content .psg-acc h1.psg-acc__title,
.psg-acc__title {
	margin: 14px 0 10px !important;
	color: inherit !important;
	font-size: clamp(34px, 5vw, 54px) !important;
	font-weight: 600;
	line-height: 1.05 !important;
	letter-spacing: -.02em;
}

.entry-content .psg-acc p.psg-acc__text,
.psg-acc__text {
	max-width: 36ch;
	margin: 0 auto 26px !important;
	color: inherit !important;
	font-size: 17px;
	line-height: 1.6;
	opacity: .92;
}

.wp-block-cover .psg-acc__title,
.wp-block-cover .psg-acc__text {
	text-shadow: 0 2px 18px rgba(42, 29, 20, .45);
}

.psg-acc__form {
	display: grid;
	gap: 12px;
	margin: 0;
}

.psg-acc__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.psg-acc__input,
.psg-acc__btn {
	width: 100%;
	height: 56px;
	border-radius: 999px;
	font: inherit;
	font-size: 17px;
}

.psg-acc__input {
	padding: 0 22px;
	border: 1px solid rgba(92, 64, 44, .2);
	background: rgba(255, 255, 255, .94);
	color: var(--acc-ink);
	text-align: center;
	letter-spacing: .06em;
	transition: border-color .25s, box-shadow .25s;
}

.psg-acc__input::placeholder {
	color: #9a8473;
	letter-spacing: .02em;
}

.psg-acc__input:focus {
	outline: none;
	border-color: var(--acc-gold);
	box-shadow: 0 0 0 4px rgba(201, 163, 91, .3);
}

.entry-content .psg-acc .psg-acc__btn,
.psg-acc__btn {
	text-transform: none !important;
	letter-spacing: .01em !important;
}

.psg-acc__btn {
	border: 0;
	background: var(--acc-solid);
	color: var(--acc-solid-ink);
	font-weight: 600;
	cursor: pointer;
	transition: background-color .25s, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.psg-acc__btn:hover {
	background: #6e4d36;
	transform: translateY(-1px);
}

.psg-acc__btn:focus-visible {
	outline: 2px solid var(--acc-gold);
	outline-offset: 3px;
}

.wp-block-cover .psg-acc__btn {
	background: #faf3ea;
	color: var(--acc-ink);
}

.wp-block-cover .psg-acc__btn:hover {
	background: #fff;
}

.entry-content .psg-acc p.psg-acc__err,
.psg-acc__err {
	margin: 2px 0 0 !important;
	padding: 11px 16px;
	border-radius: 16px;
	background: rgba(255, 244, 240, .96);
	color: #8a2c1c !important;
	font-size: 14px;
	line-height: 1.45;
	text-shadow: none;
}

/* Le pied de page directement sous la bannière (2026-11-15) : pas d'espace sous le contenu, pas de
   vague beige en bas de la bannière ; la photo passe sous la vague du pied de page. */
body.psg-access-page .entry-content {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

body.psg-access-page .entry-content > .wp-block-cover:last-child {
	margin-bottom: calc(-1 * clamp(50px, 7vw, 110px)) !important;
}

body.psg-access-page .entry-content > .wp-block-cover:last-child .psu-wave {
	display: none;
}
