/* Section "contact" (sections/contact.php, prefix ct-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.ct-root {
	--ct-wm: clamp(20rem, 34vw, 30rem);
	--ct-curve: clamp(4rem, 2rem + 5vw, 7rem);
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: var(--space-section);
	background: var(--c-ivoire-100); /* plain at both edges: page header above, dark band below */
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.ct-root::before { /* the logo's crescent in mustard, top right */
	content: "";
	position: absolute;
	top: calc(var(--ct-wm) * -0.05);
	right: calc(var(--ct-wm) * -0.2);
	z-index: -1;
	width: var(--ct-wm);
	aspect-ratio: 732 / 788;
	background: var(--c-ambre-500);
	-webkit-mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	opacity: 0.16;
	transform: scaleX(-1);
	pointer-events: none;
}
.ct-root .ct-halo { top: 45%; left: -14rem; width: min(44rem, 140vw); opacity: 0.6; }
.ct-inner { position: relative; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-gutter); }

/* Head */
.ct-head { display: grid; gap: var(--space-5); margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.ct-root .ct-title { /* canvas title style, as on the home page */
	max-width: 14em;
	margin: 0;
	color: var(--c-cacao-900);
	font-family: var(--f-serif);
	font-size: var(--fs-title);
	font-weight: var(--fw-title);
	font-variation-settings: "opsz" 144, "SOFT" 100;
	line-height: var(--lh-title);
	letter-spacing: var(--ls-title);
	text-wrap: balance;
}
.ct-title-em { color: var(--c-brun-500); font-style: italic; font-weight: 400; }
.ct-intro { max-width: 52ch; margin: 0; color: var(--c-cacao-700); }

/* Icons */
.ct-icon { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-chip { width: 3rem; height: 3rem; } /* 3D pictogram, no frame (.hec3 in sections.css) */

/* Action cards: the whole card is the link */
.ct-root .ct-actions { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.ct-action-item { display: flex; min-width: 0; }
.ct-root .ct-action { /* phones: chip | label and value | arrow */
	position: relative;
	isolation: isolate; /* keeps the watermark (::before) above the card's background */
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "chip body arrow";
	align-items: center;
	gap: var(--space-4);
	width: 100%;
	padding: var(--space-5);
	overflow: hidden;
	border: 1px solid var(--c-lin-300);
	border-radius: var(--radius-lg);
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-md);
	color: var(--c-cacao-900);
	text-decoration: none;
	transition: transform 0.5s var(--ease-doux), box-shadow 0.5s var(--ease-doux), border-color 0.3s;
}
.ct-root .ct-action::before { /* watermark (client, 2026-11-27): the logo's crescent in mustard, cut by the bottom right corner, in the space right of the number; it turns upright on hover */
	content: "";
	position: absolute;
	right: -1.75rem;
	bottom: -2.75rem;
	z-index: -1;
	width: 7.5rem;
	aspect-ratio: 732 / 788;
	background: var(--c-ambre-500);
	-webkit-mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	opacity: 0.3;
	rotate: -14deg;
	transition: rotate 1.2s var(--ease-doux);
	pointer-events: none;
}
.ct-root .ct-action:hover::before { rotate: 0deg; }
.ct-root .ct-action--main::before { opacity: 0.35; } /* on the brown card */
.ct-root .ct-action::after { /* mustard line drawn along the bottom on hover */
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--c-ambre-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease-doux);
}
.ct-root .ct-action:hover { border-color: color-mix(in srgb, var(--c-ambre-500) 60%, var(--c-lin-300)); box-shadow: var(--shadow-lg); transform: translateY(-0.375rem); }
.ct-root .ct-action:hover::after { transform: scaleX(1); }
.ct-root .ct-action:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.ct-action .ct-chip { grid-area: chip; }
.ct-action-body { grid-area: body; min-width: 0; }
.ct-root .ct-action-label {
	margin: 0;
	color: var(--c-ambre-700);
	font-family: var(--f-sans);
	font-size: var(--fs-index);
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: var(--lh-ui);
	text-transform: uppercase;
}
.ct-action-value { /* one size for the three cards: the phone numbers are no larger than the address (client, 2026-11-27) */
	display: block;
	margin-top: var(--space-2);
	font-family: var(--f-serif);
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
	font-weight: 400;
	font-variation-settings: "opsz" 48, "SOFT" 100;
	font-variant-numeric: tabular-nums;
	line-height: 1.35;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.ct-action-value--text { white-space: normal; text-wrap: balance; }
.ct-arrow {
	grid-area: arrow;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--c-lin-300);
	border-radius: 50%;
	color: var(--c-btn);
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.ct-arrow .ct-icon { width: 1.125rem; height: 1.125rem; transition: translate 0.4s var(--ease-doux); }
.ct-root .ct-action:hover .ct-arrow { border-color: var(--c-ambre-500); background: var(--c-ambre-500); color: var(--c-on-accent); }
.ct-root .ct-action:hover .ct-arrow .ct-icon { translate: 2px 0; }
.ct-root .ct-action--out:hover .ct-arrow .ct-icon { translate: 2px -2px; }
.ct-root .ct-action--main { border-color: var(--c-btn); background: var(--c-btn); color: var(--c-on-brand); }
.ct-root .ct-action--main:hover { border-color: var(--c-btn-hover); background: var(--c-btn-hover); }
.ct-action--main .ct-action-label { color: var(--c-ambre-200); }
.ct-action--main .ct-arrow { border-color: color-mix(in srgb, var(--c-ivoire-100) 30%, transparent); color: var(--c-on-brand); }

/* Map and cards */
.ct-visit { display: grid; gap: var(--space-7); margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.ct-mapwrap { position: relative; isolation: isolate; min-height: 22rem; }
.ct-mapwrap::before { /* thin mustard frame, offset up and outwards */
	content: "";
	position: absolute;
	inset: calc(var(--space-4) * -1) var(--space-4) var(--space-4) calc(var(--space-4) * -1);
	z-index: -1;
	border: 1px solid var(--c-ambre-500);
	border-radius: var(--ct-curve) var(--radius-lg) var(--radius-lg) var(--radius-lg);
	pointer-events: none;
}
.ct-root .ct-map {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 22rem;
	border: 0;
	border-radius: var(--ct-curve) var(--radius-lg) var(--radius-lg) var(--radius-lg);
	background: var(--c-lin-200);
	box-shadow: var(--shadow-lg);
}
.ct-root .ct-map:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.ct-root .ct-cards { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.ct-card {
	display: flex;
	gap: var(--space-4);
	align-items: flex-start;
	padding: var(--space-5);
	border: 1px solid var(--c-lin-300);
	border-radius: var(--radius-lg);
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-sm);
}
.ct-card-body { min-width: 0; }
.ct-root .ct-label {
	margin: 0;
	color: var(--c-ambre-700);
	font-family: var(--f-sans);
	font-size: var(--fs-index);
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: var(--lh-ui);
	text-transform: uppercase;
}
.ct-value { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-2) 0 0; color: var(--c-cacao-900); font-weight: 600; }
.ct-note { margin: var(--space-1) 0 0; color: var(--c-cacao-600); font-size: var(--fs-body-sm); }
.ct-open { /* pulsing dot before "Ouvert 24h/24" */
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--c-ambre-500);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-ambre-500) 20%, transparent);
}
.ct-score { font-family: var(--f-serif); font-size: 2rem; font-weight: 400; line-height: 1; }
.ct-stars { display: inline-flex; gap: 2px; color: var(--c-ambre-500); }
.ct-stars .ct-icon { width: 1.125rem; height: 1.125rem; fill: currentColor; stroke: none; }
.ct-count { color: var(--c-cacao-600); font-size: var(--fs-body-sm); font-weight: 500; }
.ct-root .ct-link,
.ct-root .ct-link:visited { color: var(--c-cacao-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-ambre-500); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.ct-root .ct-link:hover { color: var(--c-brun-700); }
.ct-root .ct-link:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

@media (min-width: 768px) {
	.ct-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}
@media (min-width: 1024px) {
	.ct-root .ct-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
	.ct-root .ct-action { /* chip and arrow, then label and value */
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "chip arrow" "body body";
		align-items: start;
		padding: var(--space-6);
	}
	.ct-root .ct-action::before { right: -2rem; bottom: -4rem; width: 11rem; } /* below the arrow, right of the number */
	.ct-arrow { justify-self: end; }
	.ct-action-body { margin-top: var(--space-6); }
	.ct-visit { /* the map as tall as the cards */
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: var(--space-8);
		align-items: stretch;
	}
	.ct-mapwrap { min-height: 0; }
	.ct-root .ct-map { min-height: 26rem; }
	.ct-root .ct-cards { align-content: space-between; }
	.ct-card { padding: var(--space-6); }
}
@media (prefers-reduced-motion: no-preference) {
	.ct-open { animation: ct-pulse 3s ease-in-out infinite; }
}
@keyframes ct-pulse {
	0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-ambre-500) 20%, transparent); }
	50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--c-ambre-500) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
	.ct-root .ct-action, .ct-root .ct-action::before, .ct-root .ct-action::after, .ct-arrow, .ct-arrow .ct-icon { transition: none; }
	.ct-root .ct-action:hover { transform: none; }
	.ct-root .ct-action:hover::before { rotate: -14deg; }
}
