/* ==========================================================================
   Homepage — Showroom (template-parts/home-original.php).
   One compact block in two parts: a black invitation panel (title, texts, "visite virtuelle")
   and, beside it, a tiled floor plan in perspective with a gold pin, under the address card
   ("Showroom Casablanca", address, phone, "Localisation du showroom").
   Original texts and links only. Motion: soft entrance, pin pulse, hover details.
   ========================================================================== */

.sw {
	--sw-ink: #0b0b0b;
	--sw-text: #55524c;
	--sw-muted: #8b877f;
	--sw-line: #e6e1d7;
	--sw-gold: #c99a3f;
	--sw-gold-soft: #e3c27a;
	--sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sw-head: "Red Hat Display", var(--o-heading, sans-serif);
	padding: clamp(36px, 5vw, 72px) 0;
	background: #f4f2ee;
}
.sw__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	width: min(1180px, 100% - 40px);
	margin-inline: auto;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 30px 60px -40px rgba(11, 11, 11, 0.5);
}
.sw svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ------------------------------------------------------------ Invitation */
.sw__invite {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(28px, 4vw, 52px);
	color: rgba(255, 255, 255, 0.72);
	background: var(--sw-ink);
}
.sw__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--sw-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sw-gold-soft);
}
.sw__eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--sw-gold);
}
.sw .sw__title {
	margin: 16px 0 0;
	font-family: var(--sw-head);
	font-size: clamp(1.55rem, 1.15rem + 1.1vw, 2.15rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: #fff;
}
.sw__title span {
	display: block;
	color: var(--sw-gold-soft);
}
.sw .sw__lead {
	margin: 16px 0 0;
	font-family: var(--sw-head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: #fff;
}
.sw .sw__text {
	max-width: 52ch;
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.65;
}
.sw__visit {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding: 22px 0 0;
	border: 0;
	background: none;
	font-family: var(--sw-head);
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
}
.sw__visit-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(227, 194, 122, 0.5);
	border-radius: 50%;
	color: var(--sw-gold-soft);
	transition: background-color 0.3s, color 0.3s, transform 0.5s var(--sw-ease);
}
.sw__visit-icon svg {
	width: 20px;
	height: 20px;
}
/* A ring that breathes outward, inviting the visit. */
.sw__visit-icon::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 1px solid var(--sw-gold-soft);
	border-radius: 50%;
	opacity: 0;
	animation: sw-ring 2.8s var(--sw-ease) infinite;
}
@keyframes sw-ring {
	0% {
		opacity: 0.7;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(1.55);
	}
}
.sw__visit:hover .sw__visit-icon,
.sw__visit:focus-visible .sw__visit-icon {
	background: var(--sw-gold-soft);
	color: var(--sw-ink);
	transform: scale(1.06);
}
.sw__visit:focus-visible {
	outline: 2px solid var(--sw-gold);
	outline-offset: 4px;
}

/* ------------------------------------------------------------ Place: floor plan + card */
.sw__place {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: clamp(24px, 3.4vw, 44px);
	overflow: hidden;
	background: linear-gradient(180deg, #ede9e1, #e2dbcf);
	isolation: isolate;
}
.sw__plan {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
}
.sw__floor line {
	stroke: rgba(11, 11, 11, 0.09);
	stroke-width: 1;
}
.sw__pin {
	position: absolute;
	top: 18%;
	left: 58%;
	z-index: -1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--sw-gold);
	animation: sw-float 4s ease-in-out infinite;
}
.sw__pin svg {
	position: relative;
	width: 34px;
	height: 34px;
	fill: #fff;
	stroke: var(--sw-gold);
	stroke-width: 1.8;
	filter: drop-shadow(0 6px 8px rgba(11, 11, 11, 0.18));
}
.sw__pin-pulse {
	position: absolute;
	bottom: -4px;
	left: 50%;
	width: 44px;
	height: 14px;
	border: 1.5px solid var(--sw-gold);
	border-radius: 50%;
	transform: translateX(-50%);
	opacity: 0;
	animation: sw-pulse 2.4s ease-out infinite;
}
@keyframes sw-float {
	50% {
		transform: translateY(-6px);
	}
}
@keyframes sw-pulse {
	0% {
		opacity: 0.8;
		transform: translateX(-50%) scale(0.4);
	}
	100% {
		opacity: 0;
		transform: translateX(-50%) scale(1.6);
	}
}
.sw__card {
	width: min(100%, 400px);
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--sw-line);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	box-shadow: 0 24px 40px -28px rgba(11, 11, 11, 0.45);
	transition: transform 0.5s var(--sw-ease), box-shadow 0.5s var(--sw-ease);
}
.sw__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 50px -30px rgba(11, 11, 11, 0.5);
}
.sw .sw__card-title {
	margin: 0 0 14px;
	font-family: var(--sw-head);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--sw-ink);
}
.sw__info {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sw .sw__info li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--sw-text);
}
.sw .sw__info a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s;
}
.sw__info a:hover {
	color: var(--sw-ink);
}
.sw__ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f4efe4;
	color: var(--sw-gold);
}
.sw__ico svg {
	width: 16px;
	height: 16px;
}
.sw .sw__map {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--sw-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s;
}
.sw__map svg {
	width: 16px;
	height: 16px;
	transition: transform 0.4s var(--sw-ease);
}
.sw__map:hover,
.sw__map:focus-visible {
	background: var(--sw-gold-soft);
	color: var(--sw-ink);
}
.sw__map:hover svg {
	transform: translateX(4px);
}
.sw__map:focus-visible {
	outline: 2px solid var(--sw-gold);
	outline-offset: 3px;
}

/* Entrance (browsers with scroll-driven animations; elsewhere shown at once). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sw__invite,
		.sw__card {
			animation: sw-in linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 80%;
		}
		.sw__card {
			animation-range: entry 15% entry 100%;
		}
	}
}
@keyframes sw-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 899px) {
	.sw__inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.sw__place {
		min-height: 300px;
	}
}
@media (max-width: 599px) {
	.sw__inner {
		width: calc(100% - 32px);
	}
	.sw__visit {
		padding-top: 18px;
		font-size: 16px;
	}
	.sw__place {
		min-height: 0;
		padding-top: 90px;
	}
	.sw__pin {
		top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw *,
	.sw *::after {
		animation: none !important;
		transition: none !important;
	}
}
