/* ═══════════════════════════════════════════
   Comparateur de Modèles – mc- prefix
   ═══════════════════════════════════════════ */

/* ── Wrapper ── */
.mc-wrapper {
	position: relative;
	width: 100%;
}

/* ── Fade-in animation ── */
@keyframes mc-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mc-view--active {
	animation: mc-fade-in 0.35s ease-out both;
}

/* ── Grid View ── */
.mc-grid-view {
	display: block;
}

.mc-grid-view[hidden] {
	display: none;
}

.mc-grid-title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

/* ── Grid ── */
.mc-grid {
	display: grid;
	grid-template-columns: repeat(var(--mc-cols-desktop, 4), 1fr);
	gap: 16px;
}

/* ── Card ── */
.mc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background-color: #ffffff;
	cursor: pointer;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
	text-align: center;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.mc-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mc-card--active {
	border-color: #fe6d2c;
}

.mc-card__img {
	width: 100%;
	height: 180px;
	object-fit: contain;
	display: block;
}

.mc-card__name {
	display: block;
	padding: 12px 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

/* None card */
.mc-card--none {
	justify-content: center;
	min-height: 80px;
}

.mc-card--none .mc-card__name {
	padding: 20px 8px;
}

/* ── Back button ── */
.mc-back {
	display: inline-flex !important;
	flex-direction: row !important;   /* ← ajouter cette ligne */
	align-items: center !important;
	gap: 8px;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	padding: 8px 0 !important;
	margin-bottom: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #00090d;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}


.mc-back svg {
	stroke: currentColor;
	flex-shrink: 0;
	display: block;
	align-self: center;
}

/* ── Detail View ── */
.mc-detail-view {
	display: block;
}

.mc-detail-view[hidden] {
	display: none;
}

.mc-detail-view.mc-view--active {
	animation: mc-fade-in 0.35s ease-out both;
}

.mc-detail-header {
	margin-bottom: 20px;
}

.mc-detail__title {
	margin: 0 0 4px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.mc-detail__subtitle {
	margin: 0;
	font-size: 16px;
	color: #666666;
	line-height: 1.4;
}

/* ── Detail body : single column centered ── */
.mc-detail__body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mc-detail__img-wrap {
	width: 100%;
	max-width: 700px;
	margin-bottom: 24px;
}

.mc-detail__img {
	width: 100%;
	height: auto;
	max-height: 600px;
	object-fit: contain;
	display: block;
	border-radius: 8px;
	margin: 0 auto;
}

.mc-detail__info {
	width: 100%;
}

/* ── Specs ── */
.mc-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 32px;
}

.mc-spec {
	display: flex;
	flex-direction: column;
	padding: 16px 0;
	border-bottom: 1px solid #e0e0e0;
}

.mc-spec__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888888;
	margin-bottom: 4px;
	line-height: 1.3;
}

.mc-spec__value {
	font-size: 20px;
	font-weight: 700;
	color: #00090d;
	line-height: 1.3;
}

/* ── Detail link ── */
.mc-detail__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-size: 15px;
	font-weight: 600;
	color: #fe6d2c;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.mc-detail__link:hover {
	opacity: 0.8;
}

.mc-detail__link svg {
	stroke: currentColor;
}

/* ── Responsive < 768px ── */
@media (max-width: 767px) {
	.mc-grid {
		grid-template-columns: repeat(var(--mc-cols-mobile, 2), 1fr);
	}

	.mc-grid-title {
		font-size: 20px;
	}

	.mc-detail__title {
		font-size: 22px;
	}

	.mc-detail__img {
		max-height: 360px;
	}

	.mc-specs {
		grid-template-columns: 1fr;
	}

	.mc-spec__value {
		font-size: 17px;
	}

	.mc-card__img {
		height: 120px;
	}
}
