/* Musée virtuel Lee Kwan Young — styles du thème. */

:root {
	--lky-bg: #0a0a0a;
	--lky-surface: #141311;
	--lky-border: rgba(201, 164, 92, 0.28);
	--lky-border-strong: rgba(201, 164, 92, 0.6);
	--lky-gold: #c9a45c;
	--lky-gold-light: #ecd49a;
	--lky-gold-gradient: linear-gradient(180deg, #f7e6b3 0%, #e2be76 40%, #bb8c45 72%, #94692b 100%);
	--lky-text: #ece8e1;
	--lky-muted: #a8a197;
	--lky-font-heading: "Cormorant Garamond", Garamond, "Times New Roman", serif;
	--lky-font-body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
	--lky-font-brush: "Nanum Brush Script", "Noto Serif KR", "Nanum Myeongjo", serif;
	--lky-container: 1160px;
	--lky-nav-height: 4.25rem;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--lky-nav-height) + 1rem);
}

body {
	margin: 0;
	background-color: var(--lky-bg);
	background-image:
		radial-gradient(ellipse 55% 35% at 0% 28%, rgba(255, 255, 255, 0.035), transparent 70%),
		radial-gradient(ellipse 45% 30% at 100% 52%, rgba(201, 164, 92, 0.045), transparent 70%);
	color: var(--lky-text);
	font-family: var(--lky-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--lky-gold-light);
	text-underline-offset: 3px;
}

a:hover {
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--lky-gold);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--lky-font-heading);
	font-weight: 600;
	line-height: 1.15;
}

.container {
	width: min(100% - 2rem, var(--lky-container));
	margin-inline: auto;
}

.site-main {
	overflow-x: clip;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip-path: none;
	background: #000;
	color: var(--lky-gold-light);
}

/* Texte doré en dégradé */
.site-banner__surtitre,
.site-banner__titre,
.section-title > span,
.participer__titre,
.site-footer__surtitre,
.site-footer__titre {
	background: var(--lky-gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* Emblème calligraphié (remplacé par le logo s'il est défini) */
.emblem {
	display: inline-block;
	color: var(--lky-gold);
	font-family: var(--lky-font-brush);
	font-size: 1.45rem;
	line-height: 0.95;
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: -0.08em;
}

/* ---------- Bannière ---------- */

.site-banner {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 90% at 50% 35%, rgba(201, 164, 92, 0.12), transparent 70%),
		linear-gradient(180deg, #151412 0%, #050505 100%);
	border-bottom: 1px solid var(--lky-border-strong);
}

.site-banner__image {
	display: block;
	width: 100%;
	height: auto;
}

.site-banner__text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	pointer-events: none;
}

.site-banner.has-image .site-banner__text:not(.screen-reader-text) {
	background: radial-gradient(ellipse 40% 55% at 50% 50%, rgba(0, 0, 0, 0.45), transparent 75%);
}

.site-banner.no-image .site-banner__text {
	position: relative;
	min-height: clamp(220px, 30vw, 360px);
}

/* Calligraphie en filigrane quand aucune image n'est définie */
.site-banner.no-image::before,
.site-banner.no-image::after {
	content: "태권도";
	position: absolute;
	top: 50%;
	color: rgba(255, 255, 255, 0.045);
	font-family: var(--lky-font-brush);
	/* Trois caractères sur une seule colonne, contenus dans la hauteur de la bannière. */
	font-size: clamp(3.8rem, 9vw, 6.8rem);
	line-height: 0.9;
	white-space: nowrap;
	writing-mode: vertical-rl;
	text-orientation: upright;
	transform: translateY(-50%);
	pointer-events: none;
}

.site-banner.no-image::before {
	left: 6%;
}

.site-banner.no-image::after {
	right: 6%;
	color: rgba(201, 164, 92, 0.06);
}

.site-banner__surtitre {
	margin: 0;
	font-family: var(--lky-font-heading);
	font-size: clamp(1.5rem, 4.6vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.site-banner__titre {
	margin: 0.08em 0 0.12em;
	font-family: var(--lky-font-heading);
	font-size: clamp(2.5rem, 8.6vw, 6.4rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.01em;
	filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.75));
}

.site-banner__titre a {
	color: inherit;
	text-decoration: none;
	pointer-events: auto;
}

.site-banner__soustitre {
	display: flex;
	align-items: center;
	gap: clamp(0.6rem, 2vw, 1.25rem);
	margin: 0;
	color: #f2ede5;
	font-size: clamp(1rem, 2.5vw, 1.9rem);
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.site-banner__soustitre::before,
.site-banner__soustitre::after {
	content: "";
	width: clamp(1.5rem, 5vw, 4.5rem);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--lky-gold));
}

.site-banner__soustitre::after {
	background: linear-gradient(90deg, var(--lky-gold), transparent);
}

@media (max-width: 700px) {
	/* Sur mobile, l'image couvre la bannière pour laisser la place au titre. */
	.site-banner.has-image.has-text {
		min-height: 210px;
	}

	.site-banner.has-image.has-text .site-banner__image {
		position: absolute;
		inset: 0;
		height: 100%;
		object-fit: cover;
		opacity: 0.55;
	}
}

/* ---------- Navigation ---------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(9, 9, 9, 0.94);
	border-bottom: 1px solid var(--lky-border);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.admin-bar .site-nav {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-nav {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-nav {
		top: 0;
	}
}

.site-nav__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--lky-nav-height);
}

.site-nav__logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.site-nav__logo .site-logo {
	width: auto;
	max-height: 3rem;
}

.site-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem clamp(1.25rem, 3.6vw, 2.9rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__menu li {
	position: relative;
}

.site-nav__menu a {
	position: relative;
	display: block;
	padding: 0.55rem 0;
	color: #efe9df;
	font-size: 0.82rem;
	letter-spacing: 0.09em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}

.site-nav__menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.25rem;
	height: 1px;
	background: var(--lky-gold);
	transform: scaleX(0);
	transition: transform 0.25s;
}

.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	color: var(--lky-gold-light);
}

.site-nav__menu > li > a:hover::after,
.site-nav__menu > .current-menu-item > a::after {
	transform: scaleX(1);
}

/* Sous-menus */
.site-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 10;
	display: none;
	min-width: 13rem;
	margin: 0;
	padding: 0.5rem 1rem;
	list-style: none;
	background: #0d0d0d;
	border: 1px solid var(--lky-border);
}

.site-nav__menu li:hover > .sub-menu,
.site-nav__menu li:focus-within > .sub-menu {
	display: block;
}

.site-nav__toggle {
	display: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--lky-border);
	border-radius: 3px;
	background: transparent;
	color: var(--lky-gold-light);
	cursor: pointer;
}

.site-nav__bars,
.site-nav__bars::before,
.site-nav__bars::after {
	position: relative;
	display: block;
	width: 1.2rem;
	height: 1px;
	background: currentColor;
	transition: transform 0.25s, top 0.25s, background-color 0.25s;
}

.site-nav__bars::before,
.site-nav__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__bars::before { top: -6px; }
.site-nav__bars::after { top: 6px; }

.site-nav__toggle[aria-expanded="true"] .site-nav__bars {
	background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

@media (max-width: 760px) {
	.js .site-nav__toggle {
		display: inline-grid;
	}

	.js .site-nav__menu {
		position: absolute;
		top: 100%;
		left: -1rem;
		right: -1rem;
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 0.5rem 1.25rem 1rem;
		background: #0b0b0b;
		border-bottom: 1px solid var(--lky-border);
	}

	.js .site-nav__menu.is-open {
		display: flex;
	}

	.site-nav__menu a {
		padding: 0.8rem 0.25rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.site-nav__menu > li > a::after {
		display: none;
	}

	.site-nav__menu .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 1rem;
		border: 0;
		background: none;
	}
}

/* ---------- Titres de section ---------- */

.section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1rem, 3.5vw, 2rem);
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	font-weight: 600;
	text-align: center;
}

.section-title::before,
.section-title::after {
	content: "";
	flex: 0 1 7.5rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--lky-gold));
}

.section-title::after {
	background: linear-gradient(90deg, var(--lky-gold), transparent);
}

.section-title > span {
	padding-bottom: 0.08em;
}

/* ---------- Boutons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-width: 12.5rem;
	padding: 0.78rem 1.8rem;
	border: 1px solid var(--lky-gold);
	border-radius: 3px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.btn--gold {
	background: linear-gradient(180deg, #efd495 0%, #c99b50 100%);
	border-color: #dcb872;
	color: #1b1307;
	box-shadow: 0 6px 20px rgba(201, 164, 92, 0.18);
}

.btn--gold:hover {
	color: #1b1307;
	box-shadow: 0 8px 26px rgba(201, 164, 92, 0.32);
	transform: translateY(-1px);
}

.btn--outline {
	background: rgba(0, 0, 0, 0.25);
	color: var(--lky-text);
}

.btn--outline:hover {
	background: rgba(201, 164, 92, 0.1);
	color: var(--lky-gold-light);
}

/* ---------- Accueil ---------- */

.hero {
	position: relative;
	padding-block: clamp(2.5rem, 5vw, 3.5rem) 2.25rem;
	text-align: center;
}

/* Coups de pinceau discrets */
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	width: 36rem;
	height: 6rem;
	border-radius: 50%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.02) 70%, transparent);
	filter: blur(5px);
	transform: rotate(-22deg);
	pointer-events: none;
}

.hero::before {
	top: 2.5rem;
	left: -16rem;
}

.hero::after {
	top: 6rem;
	right: -16rem;
}

.hero__intro {
	max-width: 38rem;
	margin: 0 auto 1.75rem;
	color: #ebe5db;
	font-size: 1.15rem;
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 1.4rem;
}

.album {
	padding-block: 0.5rem 3.5rem;
}

.plugin-notice {
	padding: 1.5rem;
	border: 1px dashed var(--lky-border-strong);
	text-align: center;
}

.front-content {
	padding-block: 0 3rem;
}

/* ---------- Section « Participer » ---------- */

.participer {
	padding-block: clamp(2.5rem, 5vw, 3.75rem);
	border-top: 1px solid var(--lky-border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 60%);
}

.participer__grid {
	display: grid;
	grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 3.5rem);
}

.participer__citation {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding-right: clamp(1.5rem, 4vw, 3rem);
	border-right: 1px solid var(--lky-border-strong);
	text-align: center;
}

.participer__citation .emblem {
	font-size: 2.6rem;
}

.citation {
	margin: 0;
}

.citation p {
	margin: 0;
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.55;
}

.citation footer {
	margin-top: 1.1rem;
	color: #d8d1c6;
}

.participer__titre {
	margin: 0 0 0.5rem;
	font-size: clamp(1.8rem, 3.2vw, 2.35rem);
}

.participer__intro p {
	max-width: 40rem;
	margin: 0 0 1.5rem;
	font-size: 0.98rem;
}

@media (max-width: 860px) {
	.participer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.participer__citation {
		flex-direction: row;
		justify-content: center;
		padding: 0 0 2rem;
		border-right: 0;
		border-bottom: 1px solid var(--lky-border);
		text-align: left;
	}
}

/* ---------- Pages ---------- */

.page-header {
	padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.25rem;
	text-align: center;
}

.page-header__meta {
	margin: 0;
	color: var(--lky-muted);
}

.page-cover {
	max-width: 60rem;
	margin: 0 auto 2rem;
}

.page-cover img {
	display: block;
	width: 100%;
	border: 1px solid var(--lky-border);
}

.prose {
	max-width: 46rem;
	margin-inline: auto;
	padding-bottom: 4rem;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3 {
	margin-top: 2em;
	color: var(--lky-gold-light);
}

.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }

.prose blockquote {
	margin-inline: 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--lky-gold);
	font-style: italic;
}

.prose img {
	border: 1px solid var(--lky-border);
}

.prose .wp-block-button__link {
	border: 1px solid var(--lky-gold);
	border-radius: 3px;
	background: linear-gradient(180deg, #efd495 0%, #c99b50 100%);
	color: #1b1307;
}

/* Galeries et blocs larges : plus larges que le texte. */
.prose > .lky-gallery,
.prose > .alignwide {
	width: min(var(--lky-container), 100vw - 2rem);
	max-width: none;
	margin-inline: calc((100% - min(var(--lky-container), 100vw - 2rem)) / 2);
}

.post-card {
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--lky-border);
}

.post-card__title {
	margin: 0;
	font-size: 1.8rem;
}

.post-card__title a {
	color: var(--lky-gold-light);
	text-decoration: none;
}

.post-card__meta {
	margin: 0.25rem 0 0.75rem;
	color: var(--lky-muted);
	font-size: 0.9rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
	margin-top: 2rem;
}

.not-found {
	text-align: center;
}

/* ---------- Pied de page ---------- */

.site-footer {
	padding-block: 2.25rem 1.25rem;
	border-top: 1px solid var(--lky-border-strong);
	background: #060606;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 2rem clamp(1.5rem, 4vw, 3rem);
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-right: clamp(1.5rem, 4vw, 3rem);
	border-right: 1px solid var(--lky-border);
	text-decoration: none;
}

.site-footer__surtitre {
	font-family: var(--lky-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1;
}

.site-footer__titre {
	font-family: var(--lky-font-heading);
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.1;
}

.site-footer__soustitre {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #d9d2c7;
	font-size: 0.85rem;
}

.site-footer__soustitre::before,
.site-footer__soustitre::after {
	content: "";
	width: 1.8rem;
	height: 1px;
	background: var(--lky-gold);
	opacity: 0.6;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu a {
	color: #ebe5db;
	text-decoration: none;
}

.site-footer__menu a:hover {
	color: var(--lky-gold-light);
}

.site-footer__emblem {
	display: flex;
	justify-content: center;
}

.site-footer__emblem .site-logo {
	width: auto;
	max-height: 4rem;
}

.site-footer__emblem .emblem {
	font-size: 1.7rem;
}

.site-footer__mention {
	margin: 1.75rem 0 0;
	color: var(--lky-muted);
	font-size: 0.8rem;
	text-align: center;
}

@media (max-width: 760px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	.site-footer__brand {
		padding: 0 0 1.5rem;
		border-right: 0;
		border-bottom: 1px solid var(--lky-border);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
