/* More – Layouts (grille + popup) */

.mct-layouts {
	--mct-accent: #c9a24f;
	--mct-btn-bg: #f6ecd8;
	--mct-btn-color: #1f1f1f;
	--mct-btn-bg-hover: #ead8b1;
	--mct-btn-color-hover: #1f1f1f;
	--mct-btn-radius: 999px;
}

/* ----- Grille ----- */
.mct-lgrid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 10px;
}

.mct-lc {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 10px 8px 14px;
	background: #fff;
	border: 1px solid #efe9de;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(30, 25, 15, .05);
	cursor: pointer;
	transition: box-shadow .2s ease, transform .2s ease;
}

.mct-lc:hover {
	box-shadow: 0 8px 24px rgba(30, 25, 15, .1);
	transform: translateY(-2px);
}

.mct-lc__img {
	width: 100%;
	height: 110px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mct-lc__img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 2px;
}

.mct-layouts .mct-lc__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #1f1f1f;
}

.mct-layouts .mct-lc__meta {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.45;
	color: #6b6b6b;
}

.mct-layouts .mct-lc__btn,
.mct-layouts .mct-lc__btn:focus {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 0;
	border-radius: var(--mct-btn-radius);
	background: var(--mct-btn-bg);
	color: var(--mct-btn-color);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}

.mct-layouts .mct-lc__btn:hover,
.mct-layouts .mct-lc:hover .mct-lc__btn {
	background: var(--mct-btn-bg-hover);
	color: var(--mct-btn-color-hover);
}

.mct-layouts .mct-lc__btn:focus-visible {
	outline: 2px solid var(--mct-accent);
	outline-offset: 2px;
}

.mct-lc__btn .mct-svg {
	width: 14px;
	height: 14px;
	transition: transform .2s ease;
}

.mct-lc:hover .mct-lc__btn .mct-svg {
	transform: translateX(3px);
}

.mct-layouts__notice {
	padding: 12px 16px;
	border: 1px dashed #c9a24f;
	border-radius: 6px;
	font-size: 13px;
	color: #6b5a2e;
	background: #fbf7ef;
}

/* ----- Popup ----- */
html.mct-lp-lock {
	overflow: hidden;
}

/* Popup fermée : toujours masquée, même si le thème force « dialog { display: block } ». */
.mct-layouts dialog.mct-lp:not([open]) {
	display: none !important;
}

.mct-layouts dialog.mct-lp[open] {
	display: block !important;
	position: fixed !important;
	inset: 0;
	height: fit-content;
	z-index: 99999;
}

.mct-lp {
	width: min(1100px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 48px 56px 32px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #2b2b2b;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
	overflow: auto;
	overscroll-behavior: contain;
}

.mct-lp[open] {
	animation: mct-lp-in .22s ease-out;
}

@keyframes mct-lp-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}

.mct-lp::backdrop {
	background-color: rgba(20, 18, 14, .6);
}

.mct-lp .mct-svg {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

.mct-lp button,
.mct-lp button:hover,
.mct-lp button:focus {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	padding: 0;
	margin: 0;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

.mct-lp button:focus-visible {
	outline: 2px solid var(--mct-accent);
	outline-offset: 2px;
}

.mct-lp .mct-lp__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 22px;
	color: #444;
}

.mct-lp .mct-lp__close:hover {
	background: #f4efe4;
}

.mct-lp__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
}

.mct-lp__info {
	padding-right: 48px;
	border-right: 1px solid #e3e3e3;
}

.mct-lp .mct-lp__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.1;
	color: #1f1f1f;
}

.mct-lp__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.mct-lp__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 17px;
}

.mct-lp__facts .mct-svg {
	font-size: 30px;
	color: var(--mct-accent);
}

.mct-lp__facts .mct-svg--check {
	font-size: 26px;
}

.mct-lp__facts sup {
	font-size: .65em;
}

.mct-lp__desc {
	font-size: 17px;
	line-height: 1.65;
}

.mct-lp__desc p {
	margin: 0 0 1em;
}

.mct-lp .mct-lp__dims-title {
	margin: 28px 0 22px;
	padding: 0;
	font-size: 20px;
	font-weight: 500;
	color: #1f1f1f;
}

.mct-lp .mct-lp__dims {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.mct-lp .mct-lp__dims td {
	padding: 6px 12px 4px 0;
	border: 0;
	border-bottom: 1.5px solid #2b2b2b;
	background: transparent;
	color: inherit;
	font-size: 15px;
	text-align: left;
	vertical-align: bottom;
	white-space: nowrap;
}

.mct-lp__media {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
	min-width: 0;
}

.mct-lp__main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.mct-lp__main img {
	max-width: 100%;
	max-height: 60vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.mct-lp__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.mct-lp .mct-lp__thumb {
	width: 124px;
	height: 80px;
	border: 2px solid transparent;
	overflow: hidden;
	opacity: .7;
	transition: opacity .2s ease, border-color .2s ease;
}

.mct-lp .mct-lp__thumb:hover,
.mct-lp .mct-lp__thumb.is-active {
	border-color: var(--mct-accent);
	opacity: 1;
}

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

.mct-lp__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #efe9de;
	font-size: 13px;
	color: #777;
}

.mct-lp .mct-lp__arrow {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e3dccd;
	border-radius: 50%;
	font-size: 18px;
	color: #333;
}

.mct-lp .mct-lp__arrow:hover {
	border-color: var(--mct-accent);
	color: var(--mct-accent);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
	.mct-lp {
		padding: 56px 24px 24px;
	}

	.mct-lp__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.mct-lp__info {
		padding-right: 0;
		border-right: 0;
	}

	.mct-lp__media {
		order: -1;
		gap: 16px;
	}

	.mct-lp__main {
		min-height: 0;
	}

	.mct-lp .mct-lp__title {
		font-size: 32px;
	}

	.mct-lp__desc {
		font-size: 16px;
	}

	.mct-lp .mct-lp__dims td {
		white-space: normal;
	}
}

/* Repli si Elementor n'a pas généré le CSS responsive des colonnes */
@media (max-width: 1024px) {
	.mct-lgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.mct-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
