.ccma-random-commune {
	--ccma-random-commune-vert: var(--wp--preset--color--vert, #6a855a);
	--ccma-random-commune-vert-dark: #3A4932;
	--ccma-random-commune-beige: var(--wp--preset--color--beige, #f7f1e1);
	--ccma-random-commune-vert-soft: color-mix(in srgb, var(--ccma-random-commune-vert) 20%, transparent);

	position: relative;
	display: grid;
	grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6.5rem);
	min-height: clamp(300px, 34vw, 380px);
	/*padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 8vw, 7rem);*/
	padding: 0 0 0 14vw;
	background: var(--ccma-random-commune-beige);
	color: var(--ccma-random-commune-vert-dark);
	overflow: hidden;
	box-sizing: border-box;
}

.ccma-random-commune__content {
	position: relative;
	z-index: 2;
	max-width: 360px;
}

.ccma-random-commune__eyebrow {
	margin: 0 0 0.1em 0;
	color: var(--ccma-random-commune-vert);
	font-family: var(--wp--preset--font-family--rocksalt, cursive);
	font-size: clamp(1.05rem, 1.35vw, 1.35rem);
	font-weight: 500;
	line-height: 2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.ccma-random-commune__title {
	margin: 0 0 0.6rem 0;
	color: #000;
	font-size: clamp(1.85rem, 3vw, 2.85rem);
	font-weight: 800;
	line-height: 0.95;
}

.ccma-random-commune__description {
	max-width: 33em;
	margin: 0 0 1.4rem 0;
	font-size: clamp(0.92rem, 1vw, 1.05rem);
	font-weight: 500;
	line-height: 1.24;
	color: var(--ccma-random-commune-vert-dark);
}

.ccma-random-commune__infos {
	display: grid;
	gap: 0.45rem;
	margin: 0 0 1.35rem 0;
	padding: 0;
	list-style: none;
}

.ccma-random-commune__info-item {
	display: grid;
	grid-template-columns: 1.4rem minmax(0, 1fr);
	align-items: center;
	gap: 0.55rem;
	min-height: 1.4rem;
	font-size: 0.9rem;
	line-height: 1.2;
	color: var(--ccma-random-commune-vert-dark);
}

.ccma-random-commune__info-icon {
	display: inline-grid;
	place-items: center;
	width: 1.4rem;
	height: 1.4rem;
	color: var(--ccma-random-commune-vert);
}

.ccma-random-commune__info-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ccma-random-commune__info-text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.17em;
	text-decoration-thickness: 0.07em;
}

.ccma-random-commune__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.1rem;
	padding: 0rem 0.55rem 0rem 0.7rem;
	border: 2px solid var(--ccma-random-commune-vert);
	border-radius: 14px;
	color: var(--ccma-random-commune-vert);
	background: transparent;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ccma-random-commune__cta-icon {
	display: inline-grid;
	place-items: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 999px;
	background: currentColor;
	color: var(--ccma-random-commune-beige);
	font-size: 0.75rem;
	line-height: 1;
	transition: transform 0.2s ease;
}

.ccma-random-commune__cta-icon::first-letter {
	color: var(--ccma-random-commune-beige);
}

.ccma-random-commune__cta:hover,
.ccma-random-commune__cta:focus-visible {
	background: var(--ccma-random-commune-vert);
	color: var(--ccma-random-commune-beige);
	text-decoration: none;
	transform: translateY(-1px);
}

.ccma-random-commune__cta:hover .ccma-random-commune__cta-icon,
.ccma-random-commune__cta:focus-visible .ccma-random-commune__cta-icon {
	transform: translateX(2px);
}

.ccma-random-commune__visual {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(230px, 31vw, 360px);
	margin-right: clamp(-3rem, -6vw, -1rem);
	isolation: isolate;
}

.ccma-random-commune__visual {
	position: relative;
	isolation: isolate;
}

.ccma-random-commune__visual::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;

	width: min(120%, 726px);
	aspect-ratio: 726 / 728;

	background-image: url("data:image/svg+xml,%3Csvg width='726' height='728' viewBox='0 0 726 728' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M397 0C519 0 726 94.5 726 205.5C726 272.753 726 427.011 726 447C726 536.033 584.445 728 413.162 728C227.22 728.042 -44.3864 723.35 6.16176 392.486C45.805 133 151.078 0 397 0Z' fill='%23D2DCCC'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ccma-random-commune__image {
	display: block;
	width: min(100%, 620px);
	height: auto;
	/*max-height: clamp(220px, 30vw, 350px);*/
	object-fit: contain;
	object-position: center;
}

.ccma-random-commune--no-image {
	grid-template-columns: minmax(0, 1fr);
}

.ccma-random-commune--no-image .ccma-random-commune__content {
	max-width: 42rem;
}

.ccma-random-commune--empty {
	min-height: auto;
	padding: 1rem;
	font-weight: 600;
}

@media (max-width: 900px) {
	.ccma-random-commune {
		grid-template-columns: 1fr;
		gap: 1.8rem;
		padding: 2rem 1.5rem;
	}

	.ccma-random-commune__content {
		max-width: 100%;
	}

	.ccma-random-commune__visual {
		order: -1;
		min-height: 220px;
		margin-right: 0;
	}

	.ccma-random-commune__visual::before {
		inset: -1rem;
	}

	.ccma-random-commune__image {
		max-height: 240px;
	}
}

.ccma-random-commune__visual--map {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ccma-random-commune__map {
	display: block;
	width: min(100%, 520px);
	line-height: 0;
}

.ccma-random-commune__map-svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	overflow: visible;
}

.ccma-random-commune__map {
	width: min(120%, 620px);
	margin-inline: auto;
}