/* ==================================================================
   HOOK MUSEUM
   Reprend le design du site : noir, bronze #9e7148, filets #2e1f0a,
   cadres doubles #333, et les classes hk-mu-* de la section 25.
   Tout est prefixe .hkm-* ou limite a .hkm-fiche : aucune collision.
   ================================================================== */

/* --- Conteneur de la page fiche --------------------------------- */
.hkm-section .section_wrapper {
	background: transparent;
	box-shadow: none;
}

.hkm-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 30px 20px 60px;
}

/* --- Barre des categories (reprend .hk-bar du site) ------------- */
.hkm-nav.hk-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 28px;
	margin: 0 0 34px;
	padding: 15px 20px;
	background: #000000;
}

.hkm-nav .hk-bar-a,
.hkm-nav .hk-bar-on {
	font-family: Objektiv, sans-serif;
	font-size: 14px;
	letter-spacing: .15em;
	text-transform: uppercase;
	text-decoration: none;
}

.hkm-nav .hk-bar-a { color: #8c8c8c; }
.hkm-nav .hk-bar-a:hover { color: #ffffff; }
.hkm-nav .hk-bar-on { color: #9e7148; }

/* Deuxieme ligne (sous-categories) : plus discrete, collee a la premiere */
.hkm-nav.hk-bar.hkm-nav-1:has(+ .hkm-nav-2) {
	margin-bottom: 0;
	padding-bottom: 8px;
}

.hkm-nav.hk-bar.hkm-nav-2 {
	gap: 10px 22px;
	padding-top: 8px;
	border-top: 1px solid #2e1f0a;
}

.hkm-nav-2 .hk-bar-a,
.hkm-nav-2 .hk-bar-on {
	font-size: 12px;
	letter-spacing: .12em;
}

.hkm-nav-2 .hk-bar-marker {
	font-size: 9px;
}

.hkm-nav .hk-bar-marker {
	color: #9e7148;
	font-size: 11px;
	line-height: 1;
	transform: scaleX(1.5);
}

/* --- Fiche : titre ---------------------------------------------- */
.hkm-fiche .hk-mu-kicker {
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #9e7148;
	margin: 0 0 6px;
}

.hkm-fiche .hk-mu-title {
	font-family: "Pirate-font", serif;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: 0;
	text-transform: none;
	color: #ffffff;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
	margin: 0 0 4px;
}

.hkm-fiche .hk-mu-subtitle {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #c8c4be;
	margin: 0 0 26px;
}

/* --- Fiche : deux colonnes -------------------------------------- */
.hkm-fiche .hk-mu-sheet {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: start;
}

.hkm-fiche .hk-mu-sheet-visual {
	margin: 0;
}

.hkm-fiche .hk-mu-sheet-body {
	min-width: 0;
}

/* Cadre des images */
.hkm-fiche .hk-mu-frame {
	display: block;
	border: 4px double #333333;
	background: #000000;
	overflow: hidden;
	transition: border-color .25s ease;
}

.hkm-fiche .hk-mu-frame:hover {
	border-color: #9e7148;
}

.hkm-fiche .hk-mu-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.hkm-fiche .hk-mu-caption {
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8c8c8c;
	margin: 10px 0 0;
}

/* Miniatures */
.hkm-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.hkm-thumbs .hk-mu-frame img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Silhouette a l'echelle */
.hkm-fiche .hk-mu-scale {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	margin: 28px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #2e1f0a;
}

.hkm-scale-person {
	flex: 0 0 auto;
	width: 34px;
	height: 120px;
	border: 1px solid #333333;
	border-radius: 17px 17px 4px 4px;
}

.hkm-fiche .hk-mu-scale-shape {
	flex: 0 0 auto;
	width: 60px;
	border: 1px solid #9e7148;
	background: repeating-linear-gradient(135deg, rgba(158, 113, 72, .10) 0 2px, rgba(0, 0, 0, 0) 2px 7px);
}

.hkm-fiche .hk-mu-scale-legend {
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8c8c8c;
	line-height: 1.8;
	margin: 0;
}

.hkm-fiche .hk-mu-scale-legend b {
	display: block;
	color: #9e7148;
	font-weight: 500;
}

/* Caracteristiques */
.hkm-fiche .hk-mu-specs {
	margin: 0;
	padding: 0;
	border-top: 1px solid #2e1f0a;
}

.hkm-fiche .hk-mu-spec {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 18px;
	padding: 11px 0;
	border-bottom: 1px solid #2e1f0a;
}

.hkm-fiche .hk-mu-spec dt {
	margin: 0;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9e7148;
	line-height: 1.9;
}

.hkm-fiche .hk-mu-spec dd {
	margin: 0;
	font-size: 15px;
	color: #ffffff;
}

.hkm-fiche .hk-mu-spec dd small {
	display: block;
	font-size: 12.5px;
	color: #8c8c8c;
}

/* Histoire et sources */
.hkm-fiche .hk-mu-notes {
	margin: 34px 0 0;
	border-top: 1px solid #2e1f0a;
}

.hkm-fiche .hk-mu-notes h4 {
	margin: 22px 0 8px;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #9e7148;
}

.hkm-fiche .hkm-content,
.hkm-fiche .hkm-content p {
	color: #e4e0da;
}

.hkm-sources {
	margin: 0;
	padding-left: 1.4em;
	font-size: 14px;
	color: #c8c4be;
}

.hkm-sources li {
	margin-bottom: 6px;
}

.hkm-sources a {
	color: #ffffff;
	text-decoration: none;
	border-bottom: 1px dotted #9e7148;
}

.hkm-sources a:hover {
	color: #9e7148;
}

/* Precedente / categorie / suivante */
.hkm-pager {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-top: 44px;
	padding-top: 18px;
	border-top: 1px solid #2e1f0a;
}

.hkm-pager a {
	font-family: Objektiv, sans-serif;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8c8c8c;
	text-decoration: none;
}

.hkm-pager a b {
	display: block;
	margin-top: 2px;
	font-family: 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #ffffff;
}

.hkm-pager a:hover,
.hkm-pager a:hover b {
	color: #9e7148;
}

.hkm-pager .hkm-next {
	text-align: right;
}

.hkm-pager .hkm-up {
	align-self: center;
	border: 1px solid #2e1f0a;
	border-radius: 16px;
	padding: 6px 14px;
}

.hkm-pager .hkm-up:hover {
	border-color: #9e7148;
}

/* --- Grille de cartes (style de la grille News) ------------------- */
.hkm-grid {
	display: grid;
	gap: 16px;
	margin: 0 0 20px;
}

.hkm-cols-1 { grid-template-columns: minmax(0, 1fr); }
.hkm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hkm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hkm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hkm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #000000;
	border: 1px solid #333333;
	padding: 3px;
	text-decoration: none !important;
	transition: border-color .25s ease;
}

.hkm-card:hover {
	border-color: #9e7148;
}

.hkm-card-img {
	display: block;
	border: 4px double #333333;
	overflow: hidden;
	transition: border-color .25s ease;
}

.hkm-card:hover .hkm-card-img {
	border-color: #9e7148;
}

.hkm-card-img img,
.hkm-card-empty {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hkm-card-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #050505;
	font-family: "Pirate-font", serif;
	font-size: 28px;
	color: #2e1f0a;
}

.hkm-card-label {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	background: #000000;
	border: 1px solid #2e1f0a;
	color: #9e7148;
	font-family: Objektiv, sans-serif;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 2px 8px;
}

.hkm-card-desc {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 14px;
}

.hkm-card-title {
	display: block;
	margin: 0 0 6px;
	font-family: Objektiv, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffffff;
	transition: color .2s ease;
}

.hkm-card:hover .hkm-card-title {
	color: #9e7148;
}

.hkm-card-excerpt {
	display: block;
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #b8b8b8;
}

.hkm-card-meta {
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #2e1f0a;
	font-family: Objektiv, sans-serif;
	font-size: 10.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8c8c8c;
}

.hkm-card-meta b {
	color: #9e7148;
	font-weight: 400;
}

.hkm-card:hover .hkm-card-meta b {
	color: #ffffff;
}

.hkm-empty {
	text-align: center;
	color: #8c8c8c;
}

/* --- Tablette / mobile ------------------------------------------ */
@media (max-width: 900px) {
	.hkm-fiche .hk-mu-sheet {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.hkm-cols-3,
	.hkm-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hkm-wrap {
		padding: 20px 14px 40px;
	}

	.hkm-nav.hk-bar {
		gap: 10px 16px;
		padding: 12px;
	}

	.hkm-nav .hk-bar-a,
	.hkm-nav .hk-bar-on {
		font-size: 12px;
		letter-spacing: .08em;
	}

	.hkm-fiche .hk-mu-title {
		font-size: 30px;
	}
}

@media (max-width: 560px) {
	.hkm-cols-2,
	.hkm-cols-3,
	.hkm-cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.hkm-fiche .hk-mu-spec {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.hkm-pager {
		flex-wrap: wrap;
	}

	.hkm-pager .hkm-up {
		order: -1;
		width: 100%;
		text-align: center;
	}
}

/* --- Lightbox des fiches : pas de bandeau quand il n'y a pas de texte --- */
html.hkm-lb .mfp-figure:has(.mfp-title:empty) img.mfp-img {
	padding-bottom: 0 !important;
}

html.hkm-lb .mfp-figure:has(.mfp-title:empty) .mfp-bottom-bar {
	display: none !important;
}
