/**
 * Styles pour le système d'exposants Jurassic Bark
 */

/* ========================================
   Wrapper principal
   ======================================== */

.exposants-wrapper {
	width: 100%;
	max-width: 100%;
}

/* ========================================
   Barre de filtrage
   ======================================== */

.exposants-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px 0;
	padding: 15px;
	border-radius: 8px;
	background: none;
}

.filter-btn {
	padding: 8px 16px;
	background: transparent;
	color: #333;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.filter-btn:hover {
	color: #BF382E;
}

.filter-btn.active {
	background-color: #BF382E;
	color: #FFF7E8;
}

/* ========================================
   Grille d'exposants
   ======================================== */

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

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

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

	.exposants-filter-bar {
		flex-direction: column;
		gap: 8px;
	}

	.filter-btn {
		width: 100%;
	}
}

/* ========================================
   Carte d'exposant
   ======================================== */

.exposant-card {
	background: #fff;
	border: 1px solid #E8E8E8;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: none;
}

.exposant-card:hover {
	box-shadow: none;
	transform: translateY(-4px);
}

/* Image */
.exposant-card__image-wrapper {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.exposant-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

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

.exposant-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
	font-size: 14px;
	color: #999;
	font-weight: 500;
}

/* Contenu */
.exposant-card__content {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.exposant-card__title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
}

/* Catégories */
.exposant-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 12px 0;
}

.category-badge {
	display: inline-block;
	padding: 4px 10px;
	background-color: #91D1F7;
	color: #333;
	font-size: 12px;
	border-radius: 12px;
	font-weight: 600;
}

.category-badge a {
	color: inherit;
	text-decoration: none;
}

.category-badge a:hover {
	color: #C0E2F1;
}

/* Extrait */
.exposant-card__excerpt {
	flex: 1;
	margin: 0 0 12px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #666;
}

/* Button */
.btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	text-align: center;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

.btn-primary {
	background-color: transparent;
	color: #FFF7E8;
	font-weight: 600;
}

.btn-primary:hover {
	background-color: rgba(0, 0, 0, 0.1);
	color: #FFF7E8;
}

/* Footer CTA de la card */
.exposant-card__footer {
	background-color: #BF382E;
	margin-top: auto;
}

.exposant-card__footer .btn {
	display: block;
	width: 100%;
	border-radius: 0;
	text-align: center;
	padding: 12px 16px;
	box-sizing: border-box;
}

.btn-secondary {
	background-color: #e0e0e0;
	color: #333;
}

.btn-secondary:hover {
	background-color: #d0d0d0;
	color: #333;
}

/* ========================================
   Message vide
   ======================================== */

.no-exposants {
	grid-column: 1 / -1;
	padding: 30px;
	text-align: center;
	color: #999;
	font-size: 16px;
}

/* ========================================
   Détails d'un exposant
   ======================================== */

.exposant-details {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.exposant-details__image {
	width: 100%;
	margin-bottom: 20px;
}

.exposant-details__image img {
	width: 100%;
	height: auto;
	display: block;
}

.exposant-details__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px 0;
}

.exposant-details__content {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin-bottom: 20px;
}

.exposant-details__content h2,
.exposant-details__content h3,
.exposant-details__content h4 {
	margin-top: 20px;
	margin-bottom: 10px;
	color: #333;
}

.exposant-details__content h2 {
	font-size: 24px;
	font-weight: 600;
}

.exposant-details__content h3 {
	font-size: 20px;
	font-weight: 600;
}

.exposant-details__content p {
	margin-bottom: 15px;
}

.exposant-details__content ul,
.exposant-details__content ol {
	margin: 15px 0;
	padding-left: 20px;
}

.exposant-details__content li {
	margin-bottom: 8px;
}

.exposant-details__info {
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

/* ========================================
   Layout list (optionnel)
   ======================================== */

.exposants-wrapper[data-layout="list"] .exposants-grid {
	grid-template-columns: 1fr;
}

.exposants-wrapper[data-layout="list"] .exposant-card {
	flex-direction: row;
}

.exposants-wrapper[data-layout="list"] .exposant-card__image-wrapper {
	width: 250px;
	height: 250px;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.exposants-wrapper[data-layout="list"] .exposant-card {
		flex-direction: column;
	}

	.exposants-wrapper[data-layout="list"] .exposant-card__image-wrapper {
		width: 100%;
		height: 200px;
	}
}

/* ========================================
   Administration
   ======================================== */

.exposant-admin-notice {
	padding: 12px;
	margin: 5px 0;
	border-left: 4px solid #dc3545;
	background-color: #f8d7da;
	color: #721c24;
}

.exposant-admin-notice.success {
	border-color: #28a745;
	background-color: #d4edda;
	color: #155724;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.exposants-grid {
	animation: fadeIn 0.3s ease-out;
}

.exposant-card {
	animation: slideUp 0.3s ease-out;
}

/* ========================================
   Impression (Print)
   ======================================== */

@media print {
	.exposants-filter-bar {
		display: none;
	}

	.exposant-card {
		page-break-inside: avoid;
		border: 1px solid #999;
	}
}
