/* ===== WIDGET PLANNING ===== */

.arteli-planning-wrapper {
	width: 100%;
}

.arteli-planning-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
}

/* Cartes atelier */
.arteli-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arteli-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.arteli-card__image-link {
	display: block;
	overflow: hidden;
	background: #f5f5f5;
	aspect-ratio: 16/9;
}

.arteli-card__image {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.arteli-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.arteli-card:hover .arteli-card__image img {
	transform: scale(1.05);
}

.arteli-card__body {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.arteli-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.arteli-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.arteli-card__title a:hover {
	color: #0066cc;
}

.arteli-card__excerpt {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 1.5;
	color: #666;
	flex: 1;
}

.arteli-card__meta {
	list-style: none;
	margin: 0 0 15px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.arteli-card__meta-date,
.arteli-card__meta-time,
.arteli-card__meta-location {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.arteli-card__meta-location a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted #666;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.arteli-card__meta-location a:hover {
	color: #0066cc;
	border-bottom-color: #0066cc;
}

.arteli-card__meta-date .dashicons,
.arteli-card__meta-time .dashicons,
.arteli-card__meta-location .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	color: #999;
}

.arteli-card__price {
	font-size: 16px;
	font-weight: 700;
	color: #2ecc71;
	margin: 8px 0 0;
}

.arteli-price-label {
	font-size: 12px;
	font-weight: normal;
	color: #999;
}

.arteli-card__cta {
	display: inline-block;
	padding: 10px 16px;
	background: #0066cc;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s ease;
	text-align: center;
	margin-top: auto;
}

.arteli-card__cta:hover {
	background: #0052a3;
}

/* Responsive : 2 colonnes */
@media (max-width: 1024px) {
	.arteli-planning-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Responsive : 1 colonne */
@media (max-width: 768px) {
	.arteli-planning-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== WIDGET DETAIL ===== */

.arteli-detail {
	width: 100%;
}

.arteli-detail__gallery {
	display: grid;
	gap: 8px;
	margin-bottom: 30px;
	width: 100%;
}

/* Grille pour galerie 1 image */
.arteli-gallery-count-1 {
	grid-template-columns: 1fr;
}

/* Grille pour galerie 2 images */
.arteli-gallery-count-2 {
	grid-template-columns: repeat(2, 1fr);
}

/* Grille pour galerie 3+ images */
.arteli-gallery-count-3,
.arteli-gallery-count-4,
.arteli-gallery-count-5 {
	grid-template-columns: repeat(3, 1fr);
}

.arteli-detail__gallery-item {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 16/9;
	background: #f5f5f5;
}

.arteli-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.arteli-detail__title {
	margin: 0 0 20px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.arteli-detail__content {
	margin: 0 0 30px;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.arteli-detail__content p {
	margin: 0 0 15px;
}

.arteli-detail__content p:last-child {
	margin-bottom: 0;
}

.arteli-detail__meta {
	margin: 0 0 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 6px;
}

.arteli-detail__meta-row {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	align-items: flex-start;
}

.arteli-detail__meta-row:last-child {
	margin-bottom: 0;
}

.arteli-detail__meta-label {
	font-weight: 600;
	font-size: 14px;
	color: #666;
	min-width: 120px;
	flex-shrink: 0;
}

.arteli-detail__meta-value {
	font-size: 16px;
	color: #333;
	flex: 1;
}

.arteli-detail__meta-value a {
	color: #0066cc;
	text-decoration: none;
	border-bottom: 1px solid #0066cc;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.arteli-detail__meta-value a:hover {
	color: #0052a3;
	border-bottom-color: #0052a3;
}

.arteli-detail__price {
	font-weight: 700;
	font-size: 18px;
	color: #2ecc71;
}

.arteli-billetweb {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.arteli-detail__billetweb-title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 700;
}

.arteli-detail__billetweb-embed {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
}

/* Mode « Sans réservation » (marché, événement ponctuel) */
.arteli-detail__no-booking-text {
	font-size: 16px;
	line-height: 1.6;
}

.arteli-detail__no-booking-text p {
	margin: 0 0 12px;
}

.arteli-detail__no-booking-text p:last-child {
	margin-bottom: 0;
}

/* Responsive galerie */
@media (max-width: 768px) {
	.arteli-gallery-count-3,
	.arteli-gallery-count-4,
	.arteli-gallery-count-5 {
		grid-template-columns: repeat(2, 1fr);
	}

	.arteli-detail__title {
		font-size: 24px;
	}

	.arteli-detail__meta {
		padding: 15px;
	}

	.arteli-detail__meta-row {
		flex-direction: column;
		gap: 5px;
	}

	.arteli-detail__meta-label {
		min-width: auto;
	}
}

@media (max-width: 480px) {
	.arteli-gallery-count-2 {
		grid-template-columns: 1fr;
	}

	.arteli-detail__title {
		font-size: 20px;
	}

	.arteli-detail__iframe-wrapper iframe {
		min-height: 400px;
	}
}

/* ===== WIDGET GALERIE ATELIER (grille simple) ===== */

.arteli-gallery {
	width: 100%;
}

.arteli-gallery-grid {
	display: grid;
	width: 100%;
}

.arteli-gallery-item {
	display: block;
	overflow: hidden;
	background: #f5f5f5;
}

.arteli-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== WIDGET GALERIE LIBRE ===== */

/* Image principale */
.arteli-gallery-main {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f5f5f5;
}

.arteli-gallery-main img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arteli-gallery-main--auto img {
	position: static;
	inset: auto;
	width: 100%;
	height: auto;
	display: block;
}

/* Icône zoom */
.arteli-gallery-zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0);
	cursor: pointer;
	transition: background 0.2s ease;
}

.arteli-gallery-zoom:hover {
	background: rgba(0, 0, 0, 0.25);
}

.arteli-gallery-zoom .dashicons {
	color: #fff;
	font-size: 28px;
	width: 28px;
	height: 28px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.arteli-gallery-zoom:hover .dashicons {
	opacity: 1;
}

/* Grille thumbnails */
.arteli-gallery-thumbs {
	display: grid;
}

/* Thumbnail */
.arteli-gallery-thumb {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background: #f5f5f5;
	padding: 0;
	border: 3px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.arteli-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Transition de fondu lors du changement d'image (JS adds/removes .is-changing) */
.arteli-gallery-main img,
.arteli-gallery-lightbox-img {
	transition: opacity 0.15s ease;
}

.arteli-gallery-main img.is-changing,
.arteli-gallery-lightbox-img.is-changing {
	opacity: 0;
}

/* Lightbox */
.arteli-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.arteli-gallery-lightbox[hidden] {
	display: none;
}

.arteli-gallery-lightbox-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.arteli-gallery-lightbox-img {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}

.arteli-gallery-lightbox-close,
.arteli-gallery-lightbox-prev,
.arteli-gallery-lightbox-next {
	position: absolute;
	z-index: 2;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: background 0.2s ease;
}

.arteli-gallery-lightbox-close:hover,
.arteli-gallery-lightbox-prev:hover,
.arteli-gallery-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.arteli-gallery-lightbox-close {
	top: 16px;
	right: 16px;
}

.arteli-gallery-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.arteli-gallery-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.arteli-gallery-lightbox-close .dashicons,
.arteli-gallery-lightbox-prev .dashicons,
.arteli-gallery-lightbox-next .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

/* ===== WIDGET IMAGE MISE EN AVANT ===== */

.arteli-image-avant {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f5f5f5;
}

.arteli-image-avant img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* ===== WIDGET DETAILS ATOMIQUES ===== */

/* Widget Date avec séparateur stylistique */
.arteli-date {
	display: flex;
	align-items: center;
	gap: 12px;
}

.arteli-date-separator {
	display: inline-block;
	width: 1px;
	height: 1.2em;
	background-color: currentColor;
	flex-shrink: 0;
}

/* Iframe sans frameborder obsolète */
.arteli-detail__iframe-wrapper iframe {
	border: none;
}

/* Supprimer la box-shadow sur les figures dans les articles */
.ast-article-single figure {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

/* ===== WIDGET PLANNING LOOP (groupement par mois) ===== */

.arteli-planning-loop-wrapper {
	width: 100%;
	transition: opacity 0.2s ease;
}

.arteli-planning-loop-wrapper.arteli-loading {
	opacity: 0.4;
	pointer-events: none;
}

/* Grille des loop items dans chaque mois */
.arteli-loop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

/* Chaque item est un <article> */
.arteli-loop-item {
	width: 100%;
	min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.arteli-loop-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.arteli-loop-grid {
		grid-template-columns: 1fr;
	}
}

/* Legacy — conservé pour compatibilité */
.arteli-planning-loop-item {
	width: 100%;
}

/* ===== WIDGET PLANNING ITEMS (Conteneur ancien) ===== */

.arteli-planning-items-wrapper {
	width: 100%;
}

.arteli-planning-item {
	width: 100%;
}

/* ===== WIDGET PLANNING TITRE ===== */

.arteli-planning-titre {
	margin: 0;
}

.arteli-planning-titre a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.arteli-planning-titre a:hover {
	color: #0066cc;
}

/* ===== WIDGET PLANNING IMAGE ===== */

.arteli-planning-image {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.arteli-planning-image img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* ===== WIDGET PLANNING DESCRIPTION ===== */

.arteli-planning-description {
	margin: 0;
}

/* ===== WIDGET PLANNING PRIX ===== */

.arteli-planning-prix {
	display: inline;
}

.arteli-prix-label {
	font-weight: normal;
}

/* ===== WIDGET PLANNING DATE ===== */

.arteli-planning-date {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ===== WIDGET PLANNING HORAIRES ===== */

.arteli-planning-horaires {
	/* Style par le contrôleur Elementor */
}

/* ===== WIDGET PLANNING LIEU ===== */

.arteli-planning-lieu {
	/* Style par le contrôleur Elementor */
}

.arteli-planning-lieu a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.arteli-planning-lieu a:hover {
	color: #0066cc;
}

/* ===== WIDGET PLANNING PERSONNES ===== */

.arteli-planning-personnes {
	/* Style par le contrôleur Elementor */
}

/* ===== WIDGET PLANNING BOUTON ===== */

.arteli-btn-wrapper--stretch .arteli-planning-bouton {
	width: 100%;
	justify-content: center;
}

.arteli-planning-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 10px 20px;
	background: #0066cc;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 2px solid transparent;
}

.arteli-planning-bouton:hover {
	background: #0052a3;
}

.arteli-btn__icon {
	display: inline-flex;
	align-items: center;
}

/* ===== DISCIPLINE - BANDE DE COULEUR ===== */

/* Bande sur les cards widget Planning simple */
.arteli-card__discipline-band {
	height: 6px;
	width: 100%;
	flex-shrink: 0;
}

/* Bande sur les loop items (widget Planning Loop) */
.arteli-discipline-band {
	height: 6px;
	width: 100%;
	display: block;
}

/* Bande segmentée : une couleur par discipline (ateliers multi-disciplines) */
.arteli-discipline-band--multi {
	display: flex;
	overflow: hidden;
}

.arteli-discipline-band--multi .arteli-band-seg {
	flex: 1 1 0;
	height: 100%;
	display: block;
}

/* Classes générées dynamiquement par Arteli_Taxonomy::output_band_css() */
/* .band-broderie-vetement   { background: #FF8579; } */
/* .band-broderie-decorative { background: #c07d5e; } */
/* .band-couture             { background: #702928; } */
/* .band-bijoux-cuir         { background: #EE7C1B; } */

/* ===== TAGS / CARACTÉRISTIQUES (loop items) ===== */

.arteli-badges-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	font-size: .78rem;
	font-weight: 600;
	padding: .2rem .55rem;
	border-radius: 40px;
	border: 1px solid #ddd0c8;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	line-height: 1.4;
	white-space: nowrap;
}

.tag.included {
	border-color: #b8d4b8;
	color: #3a6b3a;
	background: #f0f8f0;
}

.tag.tag--text {
	border-color: #ddd0c8;
	color: #5a3d2b;
	background: #f5f0eb;
}

.tag-check {
	font-style: normal;
}

/* ===== BADGES / CARACTÉRISTIQUES (widget Planning simple) ===== */

.arteli-card__badges {
	list-style: none;
	margin: 10px 0 12px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.arteli-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: #f5f0eb;
	color: #5a3d2b;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

/* ===== PLACES RESTANTES ===== */

.arteli-places {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	margin: 8px 0;
}

.arteli-places__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.arteli-places--disponible .arteli-places__label { color: #16a34a; }
.arteli-places--last .arteli-places__label       { color: #ea580c; }
.arteli-places--complet .arteli-places__label    { color: #dc2626; }

/* ===== FILTRE PAR DISCIPLINE (widget Planning simple legacy) ===== */

.arteli-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.arteli-filter-btn {
	padding: 8px 18px;
	border: 2px solid #e5e0da;
	border-radius: 24px;
	background: #fff;
	color: #5a3d2b;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	line-height: 1.4;
}

.arteli-filter-btn:hover {
	border-color: #c07d5e;
	color: #c07d5e;
}

.arteli-filter-btn.active {
	background: #c07d5e;
	border-color: #c07d5e;
	color: #fff;
}

/* ===== WIDGET FILTRE DISCIPLINES — CSS structurel uniquement ===== */
/* Tout le visuel (couleurs, typo, padding, arrondi) vient des contrôles Elementor */

.filters-bar {
	width: 100%;
	overflow: hidden;
}

.filters-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}

.filters-inner::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.filter-label {
	flex-shrink: 0;
}

.filter-btn {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
	text-decoration: none;
	color: inherit;
}

.filter-separator {
	flex-shrink: 0;
	pointer-events: none;
	user-select: none;
}

/* ===== DISCIPLINE - WIDGET TEXTE/ICÔNE ===== */

.arteli-planning-discipline {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.3;
}

/* Espacement entre disciplines lorsqu'un atelier en compte plusieurs */
.arteli-planning-discipline + .arteli-planning-discipline {
	margin-left: 0.5em;
}

.arteli-discipline-icon {
	display: inline-block;
	line-height: 1;
}

.arteli-discipline-label {
	/* hérite de .arteli-planning-discipline */
}

/* ===== GROUPEMENT PAR MOIS ===== */

.arteli-month-group {
	margin-bottom: 48px;
}

.arteli-month-group:last-child {
	margin-bottom: 0;
}

/* En-tête : titre + ligne sur la même rangée */
.month-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.month-header .month-title {
	margin: 0;
	padding: 0;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1;
}

/* Ligne décorative : remplit l'espace restant, épaisseur via border-top */
.month-line {
	flex: 1;
	height: 0;
	border-top: 1px solid currentColor;
	align-self: center;
}

/* ===== ACCESSIBILITÉ - ICÔNES DASHICONS ===== */

/* Centralized icon spacing - remplace les style="margin-right:5px" inline */
.arteli-prix .dashicons,
.arteli-lieu .dashicons,
.arteli-age .dashicons,
.arteli-date .dashicons,
.arteli-horaires .dashicons,
.arteli-personnes .dashicons,
.arteli-planning-prix .dashicons,
.arteli-planning-lieu .dashicons,
.arteli-planning-age .dashicons,
.arteli-planning-date .dashicons,
.arteli-planning-horaires .dashicons,
.arteli-planning-personnes .dashicons {
	margin-right: 6px;
	flex-shrink: 0;
	vertical-align: middle;
}
