/* ==========================================================================
   Album (fiche produit) — JXC_Widget_Album
   ========================================================================== */

/* ── Héros ─────────────────────────────────────────────────────────────── */

.jxc-alb-hero {
	display: flex;
	align-items: flex-end;
	gap: 2rem;
	padding: 3rem 2rem 2.5rem;
	background-color: var(--jxc-accent);
	color: #ffffff;
	border-radius: 0 0 1rem 1rem;
}

.jxc-alb-hero-cover-wrap {
	flex: 0 0 auto;
	width: clamp(120px, 18vw, 200px);
}

.jxc-alb-hero-cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	object-fit: cover;
}

.jxc-alb-hero-info {
	flex: 1 1 auto;
	min-width: 0;
}

.jxc-alb-hero-collection {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 0.4rem;
}

.jxc-alb-hero-collection a {
	color: inherit;
	text-decoration: none;
}

.jxc-alb-hero-collection a:hover {
	color: var(--jxc-gold);
}

.jxc-alb-hero-title {
	font-family: var(--jxc-font);
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 0.25rem;
}

.jxc-alb-hero-tome {
	display: inline-block;
	font-size: 0.7em;
	font-weight: 400;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 4px;
	padding: 0.1em 0.5em;
	margin-left: 0.5em;
	vertical-align: middle;
}

.jxc-alb-hero-byline {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0.25rem 0;
}

.jxc-alb-hero-genres {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0.25rem 0 0.75rem;
}

.jxc-alb-hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.jxc-alb-price {
	font-family: var(--jxc-font);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--jxc-gold);
}

.jxc-alb-price .woocommerce-Price-amount {
	color: inherit;
}

.jxc-alb-btn-buy,
.jxc-alb-btn-extrait {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55em 1.4em;
	font-family: var(--jxc-font);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 5px;
	text-decoration: none;
	transition: filter 0.15s, transform 0.1s;
	white-space: nowrap;
}

/* Bouton Acheter en mode widget standalone (pleine largeur) */
.jxc-album-buy-wrap {
	display: block;
	width: 100%;
}

.jxc-album-buy-wrap .jxc-alb-btn-buy {
	display: flex;
	width: 100%;
	padding: 0.9em 1.5em;
	font-size: 1.1rem;
	border-radius: 4px;
	justify-content: center;
}

.jxc-alb-btn-buy {
	background: var(--jxc-accent);
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.jxc-alb-btn-buy:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

.jxc-alb-btn-extrait {
	background: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.jxc-alb-btn-extrait:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-1px);
}

/* ── Corps (2 colonnes) ──────────────────────────────────────────────────── */

.jxc-alb-corps {
	display: grid;
	grid-template-columns: clamp(180px, 24%, 280px) 1fr;
	gap: 2.5rem;
	margin: 2.5rem 0;
	align-items: start;
}

/* Colonne gauche */

.jxc-alb-cover-col {
	position: sticky;
	top: 2rem;
}

.jxc-alb-cover-main {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	object-fit: cover;
}

.jxc-alb-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.jxc-alb-gallery-thumb {
	flex: 0 0 auto;
}

.jxc-alb-gallery-thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: border-color 0.15s;
}

.jxc-alb-gallery-thumb:hover img {
	border-color: var(--jxc-accent);
}

/* Colonne droite */

.jxc-alb-content-col {
	min-width: 0;
}

.jxc-alb-resume {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--jxc-dark);
	margin-bottom: 1.5rem;
}

/* Article événement */

.jxc-alb-article-event {
	background: #f8f5f0;
	border-left: 4px solid var(--jxc-accent);
	border-radius: 0 6px 6px 0;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.jxc-alb-article-event-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--jxc-accent);
	margin: 0 0 0.5rem;
}

.jxc-alb-article-event-link {
	display: flex;
	gap: 1rem;
	text-decoration: none;
	color: var(--jxc-dark);
}

.jxc-alb-article-event-link:hover strong {
	color: var(--jxc-accent);
}

.jxc-alb-article-event-thumb {
	flex: 0 0 80px;
}

.jxc-alb-article-event-thumb img {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

.jxc-alb-article-event-text {
	flex: 1 1 auto;
	min-width: 0;
}

.jxc-alb-article-event-text strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
	transition: color 0.15s;
}

.jxc-alb-article-event-text p {
	font-size: 0.8rem;
	color: #555;
	margin: 0;
}

/* Section heading */

.jxc-alb-section-heading {
	font-family: var(--jxc-font);
	font-size: 40px;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 44px;
	color: var(--jxc-dark);
	margin: 0 0 1rem;
}


.jxc-alb-section-heading--inline {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}

/* À propos table */

.jxc-alb-apropos {
	margin-bottom: 2rem;
}

.jxc-alb-apropos-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.jxc-alb-apropos-table tr {
	border-bottom: 1px solid #eee;
}

.jxc-alb-apropos-table th {
	width: 38%;
	padding: 0.5em 0.75em 0.5em 0;
	text-align: left;
	font-weight: 600;
	color: var(--jxc-accent);
	white-space: nowrap;
	vertical-align: top;
}

.jxc-alb-apropos-table td {
	padding: 0.5em 0;
	color: #333;
	vertical-align: top;
}

.jxc-alb-apropos-table td a {
	color: var(--jxc-accent);
	text-decoration: none;
}

.jxc-alb-apropos-table td a:hover {
	text-decoration: underline;
}

/* Ils ont adoré */

.jxc-alb-ils-ont-adore {
	margin-bottom: 1.5rem;
}

.jxc-alb-avis-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.jxc-alb-avis-card {
	background: #fdfaf7;
	border-left: 4px solid var(--jxc-ornament);
	border-radius: 0 6px 6px 0;
	padding: 1rem 1.25rem;
	margin: 0;
}

.jxc-alb-avis-texte {
	font-size: 0.9rem;
	font-style: italic;
	color: #333;
	line-height: 1.6;
	margin: 0 0 0.4rem;
}

.jxc-alb-avis-source {
	font-size: 0.78rem;
	font-weight: 600;
	font-style: normal;
	color: var(--jxc-ornament);
}

.jxc-alb-avis-stars {
	margin: 0 0 0.35rem;
	line-height: 1;
	font-size: 1.1rem;
	letter-spacing: 0.05em;
}

.jxc-star {
	color: #ccc;
}

.jxc-star--on {
	color: var(--jxc-gold, #c9a84c);
}

/* ── Ils ont adoré — Carousel ────────────────────────────────────────────── */

.jxc-avis-carousel {
	position: relative;
}

.jxc-avis-carousel-viewport {
	overflow: hidden;
}

.jxc-avis-carousel-track {
	display: flex;
	gap: 1rem;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.jxc-avis-card {
	flex: 0 0 calc(25% - 0.75rem); /* 4 colonnes desktop (gap compensé) */
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	padding: 1.75rem 1.5rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
	box-sizing: border-box;
	min-height: 200px;
}

@media (max-width: 1024px) {
	.jxc-avis-card {
		flex: 0 0 calc(50% - 0.5rem); /* 2 colonnes tablette */
	}
}

@media (max-width: 600px) {
	.jxc-avis-card {
		flex: 0 0 100%; /* 1 colonne mobile */
	}
}

/* En-tête de carte : avatar à gauche, source + étoiles à droite */
.jxc-avis-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.jxc-avis-card-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0ece7;
	flex-shrink: 0;
}

.jxc-avis-card-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jxc-avis-card-avatar-img--placeholder {
	padding: 6px;
	object-fit: contain;
}

.jxc-avis-card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	flex: 1;
}

.jxc-avis-card-source {
	font-weight: 700;
	font-size: 0.95rem;
	color: #333;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jxc-avis-card-stars {
	margin: 0;
	font-size: 1.1rem;
	letter-spacing: 0.05em;
	line-height: 1;
}

.jxc-avis-card-texte {
	font-size: 0.92rem;
	color: #555;
	line-height: 1.65;
	margin: 0;
	flex: 1;
}

/* Navigation */

.jxc-avis-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

/* Flèches prev/next retirées — navigation par dots uniquement */

.jxc-avis-dots {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.jxc-avis-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}

.jxc-avis-dot--on {
	background: var(--jxc-gold, #c9a84c);
	transform: scale(1.4);
}

/* ── Extrait BDI ─────────────────────────────────────────────────────────── */

.jxc-alb-extrait-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	border: 2px solid #121212;
	padding: 12px 28px;
	font-family: inherit;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	border-radius: 4px;
}

.jxc-alb-extrait-btn:hover {
	background: #121212;
	color: #fff;
}

.jxc-alb-extrait-icon {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
	flex-shrink: 0;
}

/* ── Author cards ────────────────────────────────────────────────────────── */

.jxc-album-auteurs {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.jxc-alb-auteur-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.jxc-alb-auteur-photo-link {
	flex-shrink: 0;
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
}

.jxc-alb-auteur-photo {
	width: 44px;
	height: 44px;
	object-fit: cover;
	display: block;
	border-radius: 50%;
	background-color: rgba(0,0,0,0.08);
}

.jxc-alb-auteur-photo--placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(255,255,255,0.2);
	display: none; /* plus utilisé — photo BDI + onerror SVG maintenant */
}

.jxc-alb-auteur-info {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.jxc-alb-auteur-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	line-height: 1.2;
}

.jxc-alb-auteur-name:hover {
	text-decoration: underline;
}

.jxc-alb-auteur-roles {
	font-size: 0.72rem;
	opacity: 0.65;
	line-height: 1.3;
}

/* ── Lightbox Elementor : fix swiper-zoom-container height = 0 au premier rendu ── */
/* Quand la lightbox s'ouvre, Swiper calcule les dimensions alors que le conteneur  */
/* n'est pas encore visible → l'image s'affiche noire. On force les hauteurs.       */
.elementor-lightbox .swiper-slide,
.elementor-lightbox .elementor-lightbox-item {
	height: 100% !important;
}

.elementor-lightbox .swiper-zoom-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.elementor-lightbox .elementor-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.jxc-alb-extrait-strip {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
}

.jxc-alb-extrait-thumb {
	flex: 0 0 auto;
}

.jxc-alb-extrait-thumb img {
	height: 180px;
	width: auto;
	display: block;
	border-radius: 3px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: transform 0.12s;
}

.jxc-alb-extrait-thumb:hover img {
	transform: scale(1.03);
}

/* ── Albums liés (tracks horizontaux) ───────────────────────────────────── */

.jxc-alb-related-section {
	margin: 3rem 0;
}

/* Wrapper du carrousel avec flèches */
.jxc-alb-carousel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
}

/* Flèches prev/next de la même série retirées — navigation par dots uniquement */

.jxc-alb-related-track {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	padding-bottom: 0.75rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	flex: 1;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.jxc-alb-related-track::-webkit-scrollbar {
	height: 5px;
}

.jxc-alb-related-track::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 3px;
}

.jxc-alb-related-track::-webkit-scrollbar-thumb {
	background: var(--jxc-ornament);
	border-radius: 3px;
}

.jxc-alb-rcard {
	flex: 0 0 clamp(120px, 14vw, 160px);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--jxc-dark);
	scroll-snap-align: start;
	transition: transform 0.15s;
}

.jxc-alb-rcard:hover {
	transform: translateY(-3px);
}

.jxc-alb-rcard-cover {
	width: 100%;
	aspect-ratio: 7 / 10;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	background: #e8e8e8;
}

.jxc-alb-rcard-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jxc-alb-rcard-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jxc-alb-rcard-tome {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--jxc-ornament);
	margin: 0;
}

/* Dots de navigation pour la même série */
.jxc-alb-serie-dots {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;
}

.jxc-alb-serie-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}

.jxc-alb-serie-dot--on {
	background: var(--jxc-gold, #c9a84c);
	transform: scale(1.4);
}

/* ── Placeholder éditeur ─────────────────────────────────────────────────── */

.jxc-alb-placeholder {
	padding: 2rem;
	text-align: center;
	color: #888;
	border: 2px dashed #ccc;
	border-radius: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.jxc-alb-hero {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.5rem 1rem;
	}

	.jxc-alb-hero-cover-wrap {
		width: clamp(100px, 35vw, 160px);
	}

	.jxc-alb-corps {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.jxc-alb-cover-col {
		position: static;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.jxc-alb-cover-main {
		max-width: 200px;
	}

	.jxc-alb-apropos-table th {
		width: 42%;
	}
}
