/**
 * Calendanse DJs — styles front légers (single événement MEC, single DJ, annuaire).
 */

.cdj-block {
	margin: 1.5em 0;
	clear: both;
}

.cdj-block + .cdj-block {
	margin-top: 1.75em;
}

.cdj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.45em 0.9em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	font-size: 0.9em;
	line-height: 1.2;
	text-decoration: none;
	background: #f6f7f7;
	color: #1d2327;
}

.cdj-btn:hover,
.cdj-btn:focus {
	background: #f0f0f1;
	text-decoration: none;
}

.cdj-btn--primary {
	background: #1d2327;
	color: #fff;
	border-color: #1d2327;
}

.cdj-btn--primary:hover,
.cdj-btn--primary:focus {
	background: #111;
	color: #fff;
}

.cdj-btn--secondary {
	background: #fff;
}

.cdj-btn--ghost {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.14);
}

.cdj-event-djs__title,
.cdj-dj-upcoming__title {
	margin: 0 0 0.5em;
	font-size: 1.1em;
	font-weight: 600;
}

.cdj-event-djs__list,
.cdj-dj-upcoming__list {
	margin: 0;
	padding-left: 1.25em;
	list-style: disc;
}

.cdj-event-djs__item,
.cdj-dj-upcoming__item {
	margin: 0.25em 0;
}

.cdj-dj-upcoming__date {
	color: #555;
	font-size: 0.95em;
}

.cdj-dj-upcoming__empty {
	margin: 0;
	color: #555;
	font-style: italic;
}

.cdj-dj-stats__title {
	margin: 0 0 0.5em;
	font-size: 1em;
	font-weight: 600;
}

.cdj-dj-stats__list {
	margin: 0;
	padding-left: 1.25em;
	list-style: disc;
}

.cdj-dj-stats__item {
	margin: 0.2em 0;
	color: #444;
	font-size: 0.95em;
}

/* ——— Annuaire [cd_dj_list] ——— (ordre « mis en avant en tête » = logique PHP featured_first) */

.cdj-directory {
	margin: 1.5em 0;
	clear: both;
}

.cdj-archive-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 1rem 1rem 2rem;
}

.cdj-archive-page__header {
	margin-bottom: 1rem;
}

.cdj-archive-page__title {
	margin: 0 0 0.25rem;
}

.cdj-archive-page__lead {
	margin: 0;
	color: #555;
}

.cdj-directory__filters {
	margin: 0 0 1.25em;
	padding: 0.85em 1em 1em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	background: #fafafa;
	max-width: 36rem;
}

.cdj-directory__filters-row {
	margin: 0 0 0.65em;
}

.cdj-directory__filters-row--checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65em 1.25em;
	align-items: center;
}

.cdj-directory__filters-label {
	display: block;
	margin: 0 0 0.35em;
	font-size: 0.88em;
	font-weight: 600;
	color: #333;
}

.cdj-directory__filters-input,
.cdj-directory__filters-select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.4em 0.55em;
	font-size: 0.95em;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
}

.cdj-directory__filters-check {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.9em;
	color: #444;
	cursor: pointer;
}

.cdj-directory__filters-actions {
	margin: 0.5em 0 0;
	font-size: 0.92em;
}

.cdj-directory__filters-submit {
	display: inline-block;
	padding: 0.4em 0.9em;
	font-size: 0.95em;
	line-height: 1.3;
	cursor: pointer;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #f6f7f7;
	color: #1d2327;
}

.cdj-directory__filters-submit:hover,
.cdj-directory__filters-submit:focus {
	background: #f0f0f1;
}

.cdj-directory__filters-reset {
	margin-left: 0.35em;
	color: #2271b1;
	text-decoration: none;
}

.cdj-directory__filters-reset:hover,
.cdj-directory__filters-reset:focus {
	text-decoration: underline;
}

.cdj-directory__count {
	margin: 0 0 1em;
	font-size: 0.95em;
	color: #444;
}

.cdj-directory__empty {
	margin: 0;
	color: #555;
	font-style: italic;
}

.cdj-directory__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
}

.cdj-directory__grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cdj-directory__grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdj-directory__grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.cdj-directory__item {
	margin: 0;
}

.cdj-directory__card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cdj-directory__card--featured {
	border-color: rgba(201, 162, 39, 0.45);
	box-shadow: 0 1px 0 rgba(201, 162, 39, 0.2);
}

.cdj-debug-score {
	margin-top: 6px;
	font-size: 11px;
	color: #888;
	line-height: 1.3;
	border-top: 1px dashed #ddd;
	padding-top: 4px;
}

.cdj-directory__thumb {
	display: block;
	line-height: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f3f3;
}

.cdj-directory__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cdj-directory__body {
	padding: 0.75rem 1rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.cdj-directory__name {
	margin: 0;
	font-size: 1.05em;
	font-weight: 600;
	line-height: 1.3;
}

.cdj-directory__name a {
	text-decoration: none;
}

.cdj-directory__name a:hover,
.cdj-directory__name a:focus {
	text-decoration: underline;
}

.cdj-directory__featured-badge {
	display: inline-block;
	margin-left: 0.45em;
	padding: 0.12em 0.45em;
	font-size: 0.68em;
	font-weight: 600;
	line-height: 1.2;
	vertical-align: 0.2em;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #5c4a10;
	background: rgba(201, 162, 39, 0.18);
	border: 1px solid rgba(201, 162, 39, 0.35);
	border-radius: 3px;
}

.cdj-directory__featured-badge-text {
	position: relative;
}

.cdj-directory__stats {
	margin: 0;
	font-size: 0.82em;
	line-height: 1.4;
	color: #555;
}

.cdj-directory__stats-sep {
	margin: 0 0.2em;
	color: #999;
	font-weight: 400;
}

.cdj-directory__styles {
	margin: 0.2em 0 0;
	font-size: 0.8em;
	line-height: 1.35;
	color: #666;
}

.cdj-directory__excerpt {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.45;
	color: #444;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cdj-directory__more {
	margin: 0.25rem 0 0;
	font-size: 0.9em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.cdj-directory__link {
	font-weight: 500;
}

.cdj-directory__pagination {
	margin: 1.25em 0 0;
	clear: both;
}

.cdj-directory__pagination-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9em;
}

.cdj-directory__pagination-item {
	margin: 0;
	padding: 0;
}

.cdj-directory__pagination-item--ellipsis {
	color: #666;
	user-select: none;
}

.cdj-directory__pagination-ellipsis {
	padding: 0 0.15em;
}

.cdj-directory__pagination-link {
	display: inline-block;
	padding: 0.28em 0.55em;
	min-width: 2em;
	text-align: center;
	text-decoration: none;
	color: #2271b1;
	border: 1px solid transparent;
	border-radius: 3px;
	line-height: 1.35;
	box-sizing: border-box;
}

.cdj-directory__pagination-link:hover,
.cdj-directory__pagination-link:focus {
	text-decoration: underline;
	background: rgba(0, 0, 0, 0.04);
}

.cdj-directory__pagination-link--disabled {
	color: #999;
	cursor: default;
	text-decoration: none;
}

.cdj-directory__pagination-link--disabled:hover,
.cdj-directory__pagination-link--disabled:focus {
	text-decoration: none;
	background: transparent;
}

.cdj-directory__pagination-current {
	display: inline-block;
	padding: 0.28em 0.55em;
	min-width: 2em;
	text-align: center;
	font-weight: 600;
	color: #1d2327;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 3px;
	line-height: 1.35;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.cdj-directory__pagination-list {
		justify-content: flex-start;
	}
}

/* ——— Suivi DJ (fiche + [cd_my_djs]) ——— */

.cdj-follow__hint,
.cdj-follow__notice {
	margin: 0 0 0.75em;
	font-size: 0.95em;
	line-height: 1.45;
	color: #444;
}

.cdj-follow__notice--limit,
.cdj-follow__notice--error {
	color: #6d4c00;
}

.cdj-follow__login {
	font-weight: 500;
}

.cdj-follow__form {
	margin: 0;
}

.cdj-follow__btn {
	display: inline-block;
	margin: 0;
	padding: 0.45em 1em;
	font-size: 0.95em;
	line-height: 1.3;
	cursor: pointer;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #f6f7f7;
	color: #1d2327;
}

.cdj-follow__btn:hover,
.cdj-follow__btn:focus {
	background: #f0f0f1;
	border-color: rgba(0, 0, 0, 0.28);
}

.cdj-follow__btn--unfollow {
	background: #fff;
}

.cdj-dj-overview {
	padding: 0.9rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	background: #fafafa;
}

.cdj-dj-overview__title {
	margin: 0;
	font-size: 1.05rem;
}

.cdj-dj-overview__subtitle {
	margin: 0.35rem 0 0;
	color: #555;
	font-size: 0.94em;
}

.cdj-dj-overview__cta {
	margin-top: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cdj-dj-upcoming__count {
	margin: 0 0 0.5rem;
	font-size: 0.9em;
	color: #555;
}

.cdj-dj-recent__title {
	margin: 0 0 0.5em;
	font-size: 1.02em;
	font-weight: 600;
}

.cdj-dj-recent__list {
	margin: 0;
	padding-left: 1.25em;
	list-style: disc;
}

.cdj-dj-recent__item {
	margin: 0.25em 0;
}

.cdj-dj-recent__date {
	color: #666;
	font-size: 0.95em;
}

@media (max-width: 782px) {
	.cdj-dj-overview {
		padding: 0.8rem 0.85rem;
	}

	.cdj-dj-overview__cta {
		flex-direction: column;
		align-items: stretch;
	}

	.cdj-dj-overview__cta .cdj-btn {
		width: 100%;
	}

	.cdj-follow__btn {
		width: 100%;
	}

	.cdj-directory__body {
		padding: 0.75rem 0.85rem 0.9rem;
	}

	.cdj-directory__more {
		flex-direction: column;
		align-items: stretch;
	}

	.cdj-directory__more .cdj-btn {
		width: 100%;
	}
}

.cdj-my-djs__title {
	margin: 0 0 0.5em;
	font-size: 1.1em;
	font-weight: 600;
}

.cdj-my-djs__guest,
.cdj-my-djs__empty {
	margin: 0;
	color: #555;
	font-size: 0.95em;
	line-height: 1.45;
}

.cdj-my-djs__empty {
	font-style: italic;
}

.cdj-my-djs__login {
	font-weight: 500;
}

.cdj-my-djs__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdj-my-djs__item {
	margin: 0 0 0.85em;
	padding: 0 0 0.75em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cdj-my-djs__item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.cdj-my-djs__dj {
	margin: 0 0 0.25em;
}

.cdj-my-djs__link {
	font-weight: 500;
	text-decoration: none;
}

.cdj-my-djs__link:hover,
.cdj-my-djs__link:focus {
	text-decoration: underline;
}

.cdj-my-djs__next-event,
.cdj-my-djs__event-empty {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.45;
	color: #555;
}

.cdj-my-djs__event-link {
	font-weight: 500;
	text-decoration: none;
}

.cdj-my-djs__event-link:hover,
.cdj-my-djs__event-link:focus {
	text-decoration: underline;
}

.cdj-my-djs__event-date {
	color: #666;
}

/* Bloc promotion / boost (fiche DJ — titulaire connecté, flux FES partners) */
.cdj-dj-boost-cta {
	padding: 20px;
	border-radius: 12px;
	background: #f8f9fb;
	margin: 20px 0;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.cdj-dj-boost-cta__inner {
	margin: 0;
}

.cdj-dj-boost-cta--action {
	background: #f0f4fb;
	border-color: rgba(30, 115, 190, 0.2);
}

.cdj-dj-boost-cta__title {
	font-size: 18px;
	margin: 0 0 8px;
	font-weight: 600;
	line-height: 1.3;
}

.cdj-dj-boost-cta__text {
	margin: 0 0 12px;
	font-size: 0.95em;
	line-height: 1.5;
	color: #333;
}

.cdj-dj-boost-cta__actions {
	margin: 0 0 10px;
}

.cdj-dj-boost-cta__hint {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.45;
}

/* Single fiche DJ (Astra : bandeau titre/meta masqué via filtre plugin) */
.cdj-dj-single .site-content .entry-content > .cdj-block:first-child {
	margin-top: 0;
}

/* Séparation visuelle entre la fiche Gutenberg et les blocs système */
.cdj-dj-single .site-content .entry-content .cdj-dj-overview {
	margin-top: 2.5em;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cdj-dj-single .site-content .entry-content > .cdj-block + .cdj-block {
	margin-top: 2em;
}

.cdj-dj-single .site-content .entry-content .cd-dj-sheet:first-child {
	margin-top: 0;
}
