/**
 * Musée de Collioure – Collections
 * Style épuré noir & blanc.
 */

.mc-single,
.mc-oeuvres-grid,
.mc-artistes {
	--mc-ink: #16161a;
	--mc-muted: #6b6b70;
	--mc-line: #d9d9dd;
	--mc-bg: #ffffff;
	--mc-accent: #16161a;
	--mc-max: 1200px;
	color: var(--mc-ink);
	font-family: inherit;
}

/* Conteneur générique centré */
.mc-single,
.mc-artistes {
	max-width: var(--mc-max);
	margin: 0 auto;
	padding: 40px 24px 80px;
	box-sizing: border-box;
}

.mc-empty {
	color: var(--mc-muted);
	font-style: italic;
	padding: 40px 0;
}

/* ====================================================================== */
/*  GRILLE DES ŒUVRES (masonry)                                           */
/* ====================================================================== */

.mc-oeuvres-grid {
	max-width: var(--mc-max);
	margin: 0 auto;
	padding: 8px 24px;
	box-sizing: border-box;
	column-count: 2;
	column-gap: 64px;
}

@media (max-width: 640px) {
	.mc-oeuvres-grid {
		column-count: 1;
	}
}

.mc-oeuvre-card {
	break-inside: avoid;
	margin: 0 0 56px;
	display: inline-block;
	width: 100%;
}

/* Léger décalage vertical de la 2e colonne pour l'effet "en lumière". */
.mc-oeuvre-card:nth-child(even) {
	margin-top: 40px;
}

.mc-oeuvre-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mc-oeuvre-card__media img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity .35s ease, filter .35s ease;
}

.mc-oeuvre-card__media--empty {
	display: block;
	width: 100%;
	padding-top: 72%;
	background: #eeeeee;
}

.mc-oeuvre-card__link:hover .mc-oeuvre-card__media img {
	opacity: .85;
}

.mc-oeuvre-card__caption {
	display: block;
	margin-top: 14px;
	line-height: 1.5;
}

.mc-oeuvre-card__artiste {
	display: block;
	font-weight: 600;
	letter-spacing: .01em;
}

.mc-oeuvre-card__titre {
	display: block;
	color: var(--mc-muted);
}

.mc-oeuvre-card__titre em {
	font-style: italic;
}

/* ====================================================================== */
/*  PAGINATION                                                            */
/* ====================================================================== */

.mc-pagination {
	max-width: var(--mc-max);
	margin: 32px auto 0;
	padding: 24px;
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.mc-pagination .page-numbers {
	text-decoration: none;
	color: var(--mc-muted);
	transition: color .2s ease;
}

.mc-pagination .page-numbers::after {
	content: ".";
}

.mc-pagination .page-numbers.next::after,
.mc-pagination .page-numbers.prev::after {
	content: "";
}

.mc-pagination .page-numbers:hover,
.mc-pagination .page-numbers.current {
	color: var(--mc-ink);
	font-weight: 700;
}

.mc-pagination .page-numbers.next {
	margin-left: auto;
	font-weight: 400;
}

/* ====================================================================== */
/*  RÉPERTOIRE DES ARTISTES                                               */
/* ====================================================================== */

.mc-artistes__search {
	position: relative;
	max-width: 640px;
	margin: 0 0 8px auto;
}

.mc-artistes__search-input {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--mc-line);
	background: transparent;
	padding: 10px 34px 10px 4px;
	font-size: 16px;
	color: var(--mc-ink);
	box-sizing: border-box;
}

.mc-artistes__search-input:focus {
	outline: none;
	border-bottom-color: var(--mc-ink);
}

.mc-artistes__search-icon {
	position: absolute;
	right: 6px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -10px;
	border: 1.6px solid var(--mc-muted);
	border-radius: 50%;
	pointer-events: none;
}

.mc-artistes__search-icon::after {
	content: "";
	position: absolute;
	right: -5px;
	bottom: -4px;
	width: 8px;
	height: 1.6px;
	background: var(--mc-muted);
	transform: rotate(45deg);
}

.mc-artistes__layout {
	display: grid;
	grid-template-columns: 1fr 40px;
	gap: 24px;
	border-top: 1px solid var(--mc-line);
	padding-top: 32px;
}

.mc-letter-group {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 8px 24px;
	margin: 0 0 28px;
	scroll-margin-top: 100px;
}

.mc-letter-group__heading {
	grid-row: 1 / 99;
	font-size: 30px;
	font-weight: 400;
	color: var(--mc-ink);
	margin: 0;
	line-height: 1;
}

.mc-letter-group__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mc-artiste-item {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
}

.mc-artiste-item a {
	text-decoration: none;
	color: var(--mc-ink);
	transition: opacity .2s ease;
}

.mc-artiste-item a:hover {
	opacity: .55;
}

.mc-artiste-prenom {
	font-weight: 400;
}

.mc-artiste-nom {
	font-weight: 400;
}

.mc-artistes__noresult {
	color: var(--mc-muted);
	font-style: italic;
}

/* Index alphabétique collant */
.mc-alpha-index {
	position: sticky;
	top: 100px;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	line-height: 1.35;
	max-height: calc(100vh - 140px);
}

.mc-alpha-index__letter {
	color: var(--mc-muted);
	text-decoration: none;
	transition: color .15s ease;
}

.mc-alpha-index__letter:hover,
.mc-alpha-index__letter.is-active {
	color: var(--mc-ink);
	font-weight: 700;
}

.mc-alpha-index__letter.is-empty {
	color: var(--mc-line);
	cursor: default;
}

@media (max-width: 640px) {
	.mc-letter-group {
		grid-template-columns: 44px 1fr;
	}
	.mc-alpha-index {
		font-size: 11px;
	}
}

/* ====================================================================== */
/*  FICHE ŒUVRE                                                           */
/* ====================================================================== */

.mc-oeuvre__header {
	margin-bottom: 32px;
}

.mc-oeuvre__titre {
	font-size: 44px;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.05;
	text-transform: uppercase;
}

.mc-oeuvre__annee {
	font-weight: 300;
	font-size: 26px;
	margin-left: 12px;
	vertical-align: middle;
}

.mc-oeuvre__artiste a {
	font-size: 22px;
	text-decoration: underline;
	text-underline-offset: 4px;
	color: var(--mc-ink);
}

.mc-oeuvre__artiste a:hover {
	opacity: .6;
}

.mc-oeuvre__body {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	align-items: start;
}

.mc-oeuvre__media {
	grid-column: 2;
	grid-row: 1;
}

.mc-oeuvre__media img {
	width: 100%;
	height: auto;
	display: block;
}

.mc-oeuvre__infos {
	grid-column: 1;
	grid-row: 1;
}

.mc-oeuvre__cartel {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 24px;
}

.mc-oeuvre__description {
	grid-column: 2;
	margin-top: 24px;
	max-width: 620px;
	line-height: 1.7;
}

/* On repositionne la description sous l'image, colonne de droite. */
.mc-oeuvre__body {
	grid-template-areas:
		"infos media"
		"infos description";
	grid-template-rows: auto auto;
}
.mc-oeuvre__media { grid-area: media; }
.mc-oeuvre__infos { grid-area: infos; }
.mc-oeuvre__description { grid-area: description; grid-column: auto; }

@media (max-width: 782px) {
	.mc-oeuvre__body {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"infos"
			"description";
	}
	.mc-oeuvre__titre { font-size: 32px; }
}

/* ====================================================================== */
/*  FICHE ARTISTE                                                         */
/* ====================================================================== */

.mc-artiste-fiche__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	border-top: 1px solid var(--mc-line);
	padding-top: 40px;
	margin-bottom: 32px;
}

.mc-artiste-fiche__nom {
	font-size: 56px;
	font-weight: 300;
	margin: 0 0 8px;
	line-height: 1.02;
}

.mc-artiste-fiche__nom .mc-artiste-nom,
.mc-artiste-fiche__nom .mc-artiste-prenom {
	font-weight: 300;
}

.mc-artiste-fiche__dates {
	font-size: 28px;
	font-weight: 300;
	color: var(--mc-ink);
	margin: 0;
}

.mc-artiste-fiche__portrait {
	flex: 0 0 auto;
}

.mc-artiste-fiche__portrait img,
.mc-artiste-fiche__portrait-placeholder {
	display: block;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	background: #16161a;
}

.mc-artiste-fiche__bio {
	max-width: 620px;
	margin-left: auto;
	line-height: 1.8;
}

@media (max-width: 640px) {
	.mc-artiste-fiche__header {
		flex-direction: column-reverse;
		align-items: flex-start;
	}
	.mc-artiste-fiche__nom { font-size: 38px; }
	.mc-artiste-fiche__bio { margin-left: 0; }
}

/* ====================================================================== */
/*  BLOC "AUTRES ŒUVRES / SES ŒUVRES"                                     */
/* ====================================================================== */

.mc-related {
	max-width: var(--mc-max);
	margin: 64px auto 0;
	border-top: 1px solid var(--mc-line);
	padding-top: 40px;
}

.mc-related__title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 32px;
}

.mc-oeuvres-grid--related {
	padding: 0;
	column-gap: 48px;
}
