/* LINEACRAFT – simulateurs */
.lc-sim {
	--sim-bg: #ffffff;
	--sim-line: #e2d9cc;
	--sim-soft: #f7f4ef;
	background: var(--sim-bg);
	border: 1px solid var(--sim-line);
	padding: clamp(18px, 3vw, 36px);
	margin: 0 auto;
	max-width: 1200px;
	color: var(--lc-ink, #1e1c19);
}
.lc-sim *, .lc-sim *::before, .lc-sim *::after { box-sizing: border-box; }
.lc-sim__head h2 { margin: 0 0 .35em; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lc-sim__head p { margin: 0 0 1.6rem; color: var(--lc-ink-soft, #4a463f); max-width: 62ch; }

.lc-sim__grid {
	display: grid;
	grid-template-columns: minmax(280px, 380px) 1fr;
	gap: clamp(18px, 3vw, 36px);
	align-items: start;
}
@media (max-width: 860px) { .lc-sim__grid { grid-template-columns: 1fr; } .lc-sim__view { order: -1; } }

.lc-sim__field { margin-bottom: 1.25rem; }
.lc-sim__field[hidden] { display: none; }
.lc-sim__label {
	display: flex; justify-content: space-between; gap: 8px;
	font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--lc-ink-soft, #4a463f); margin-bottom: .55rem;
}
html[lang^="ar"] .lc-sim__label { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.lc-sim__label b { text-transform: none; letter-spacing: 0; color: var(--lc-ink, #1e1c19); font-weight: 600; }

.lc-sim__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-sim__opt {
	flex: 1 1 auto; min-width: 72px;
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: .6rem .7rem; border: 1px solid var(--sim-line); background: var(--sim-soft);
	color: var(--lc-ink, #1e1c19); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
	border-radius: 2px; transition: background .15s, border-color .15s, color .15s;
	text-align: center; line-height: 1.25;
}
.lc-sim__opt small { font-weight: 400; font-size: .74rem; color: var(--lc-ink-soft, #4a463f); }
.lc-sim__opt:hover { border-color: var(--lc-wood, #a47148); }
.lc-sim__opt.is-on { background: var(--lc-ink, #1e1c19); border-color: var(--lc-ink, #1e1c19); color: #fff; }
.lc-sim__opt.is-on small { color: #e9e1d6; }
.lc-sim__opt:focus-visible, .lc-sim__sw:focus-visible { outline: 2px solid var(--lc-wood, #a47148); outline-offset: 2px; }

.lc-sim__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-sim__sw {
	width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0;
	box-shadow: 0 0 0 1px var(--sim-line);
}
.lc-sim__sw.is-on { box-shadow: 0 0 0 2px var(--lc-ink, #1e1c19); }

.lc-sim__range input[type=range] { width: 100%; accent-color: var(--lc-wood, #a47148); height: 28px; }
.lc-sim__val { font-variant-numeric: tabular-nums; color: var(--lc-ink, #1e1c19); text-transform: none; letter-spacing: 0; font-size: .95rem; }

.lc-sim__view { display: grid; gap: 16px; }
.lc-sim__fig { margin: 0; background: var(--sim-soft); border: 1px solid var(--sim-line); padding: 10px 12px 6px; }
.lc-sim__fig figcaption { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-wood, #a47148); margin-bottom: 4px; }
html[lang^="ar"] .lc-sim__fig figcaption { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.lc-sim__fig svg { display: block; width: 100%; height: auto; }

.lc-sim__warn { font-size: .85rem; color: #8a4b12; background: #fbf1e4; padding: .6rem .8rem; border-inline-start: 3px solid #c97a2b; }

.lc-sim__result {
	margin-top: clamp(18px, 3vw, 30px);
	display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px 32px; align-items: center;
	background: var(--lc-ink, #1e1c19); color: #f3eee6; padding: clamp(18px, 3vw, 30px);
}
@media (max-width: 860px) { .lc-sim__result { grid-template-columns: 1fr; } }
.lc-sim__eyebrow { grid-column: 1 / -1; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d3ae7c; }
.lc-sim__big { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
html[lang^="ar"] .lc-sim__big { font-family: "Tajawal", sans-serif; }
.lc-sim__bigsub { font-size: .85rem; color: #cfc6b8; margin-top: 4px; }
.lc-sim__result > .lc-sim__big { grid-column: 1; }
.lc-sim__lines { grid-column: 2; grid-row: 2 / span 2; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
@media (max-width: 860px) { .lc-sim__lines { grid-column: 1; grid-row: auto; } }
.lc-sim__lines div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 6px; }
.lc-sim__lines dt { color: #cfc6b8; }
.lc-sim__lines dd { margin: 0; font-variant-numeric: tabular-nums; color: #fff; }
.lc-sim__lines .is-total dd { font-weight: 700; }
.lc-sim__note { grid-column: 1 / -1; font-size: .8rem; color: #b9b0a2; margin: 6px 0 0; }
.lc-sim__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.lc-sim__actions .lc-btn--primary { background: #a47148; border-color: #a47148; color: #fff; }
.lc-sim__actions .lc-btn--primary:hover { background: #855a37; border-color: #855a37; }
.lc-sim__actions .lc-btn { flex: 1 1 220px; justify-content: center; }
.lc-sim__fig svg { direction: ltr; }
.lc-sim .lc-sim__range input[type=range] { border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0; height: 28px; border-radius: 0; }
.lc-sim .lc-sim__head p { margin: 0 0 1.6rem !important; }
.lc-sim .lc-sim__opt, .lc-sim .lc-sim__sw { box-sizing: border-box; text-transform: none; letter-spacing: 0; }
.lc-sim .lc-sim__range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; cursor: pointer; }
.lc-sim .lc-sim__range input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #d9cfc1; border-radius: 2px; }
.lc-sim .lc-sim__range input[type=range]::-moz-range-track { height: 4px; background: #d9cfc1; border-radius: 2px; }
.lc-sim .lc-sim__range input[type=range]::-moz-range-progress { height: 4px; background: #a47148; border-radius: 2px; }
.lc-sim .lc-sim__range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #a47148; border: 3px solid #fff; box-shadow: 0 0 0 1px #a47148, 0 2px 6px rgba(0,0,0,.2); }
.lc-sim .lc-sim__range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #a47148; border: 3px solid #fff; box-shadow: 0 0 0 1px #a47148; }
.lc-sim .lc-sim__range input[type=range]:focus-visible { outline: 2px solid #a47148; outline-offset: 4px; }

/* ---------- Vue 3D réaliste ---------- */
.lc-sim__fig--3d { padding: 10px 12px 10px; }
.lc-sim__3d { position: relative; background: #e9e8e3; min-height: 260px; overflow: hidden; touch-action: none; }
.lc-sim__3d canvas { display: block; width: 100%; cursor: grab; }
.lc-sim__3d canvas:active { cursor: grabbing; }
.lc-sim__3d-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #5e6a6c; }
.lc-sim__3d.is-ready .lc-sim__3d-load { display: none; }
.lc-sim__3d.is-error .lc-sim__3d-load { display: none; }
.lc-sim__3d.is-error { display: none; }
.lc-sim__3d-bar { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; gap: 4px; z-index: 2; }
.lc-sim__3d-bar button { font: 600 .78rem/1 inherit; padding: .5em .8em; border: 0; border-radius: 0; background: rgba(255,255,255,.88); color: #15211d; cursor: pointer; letter-spacing: 0; text-transform: none; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.lc-sim__3d-bar button.is-on { background: #15211d; color: #fff; }
.lc-sim__3d-bar button:focus-visible { outline: 2px solid #a47148; outline-offset: 2px; }
.lc-sim__3d-hint { margin: 8px 0 0; font-size: .8rem; color: #5e6a6c; }
.lc-sim__3d:fullscreen { background: #000; display: flex; align-items: center; }
.lc-sim__3d:fullscreen canvas { height: 100vh !important; }
