/*
 * Informations de contact.
 * Chargée par Blocs Creator sur les seules pages qui portent le bloc.
 */

.kahel-infos-contact-section {
	/* Plus resserré qu'une section ordinaire. */
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.kahel-infos-contact-section .kahel-infos-grille {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: stretch;
}

.kahel-infos-contact-section.is-inverse .kahel-infos-carte-col {
	order: -1;
}

.kahel-infos-contact-section.is-sans-carte .kahel-infos-grille {
	grid-template-columns: minmax(0, 1fr);
}

.kahel-infos-contact-section .kahel-infos-titre {
	max-width: 13ch;
	margin: 0;
}

.kahel-infos-contact-section .kahel-infos-intro {
	max-width: 46ch;
	margin: 24px 0 0;
}

/* Les coordonnées. */
.kahel-infos-contact-section .kahel-infos-coordonnees {
	margin: clamp(30px, 4vw, 44px) 0 0;
	font-style: normal;
}

.kahel-infos-contact-section .kahel-infos-nom {
	margin: 0 0 22px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--weight--strong);
	line-height: 1.3;
}

.kahel-infos-contact-section .kahel-infos-liste {
	display: grid;
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.kahel-infos-contact-section .kahel-infos-ligne {
	position: relative;
	min-height: 44px;
	padding: 18px 0 18px 62px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.kahel-infos-contact-section .kahel-infos-ligne dt {
	margin: 0;
	color: var(--wp--preset--color--orange-deep);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--weight--strong);
	letter-spacing: var(--wp--custom--letter-spacing--kicker);
	text-transform: uppercase;
}

.kahel-infos-contact-section .kahel-infos-ligne dd {
	margin: 4px 0 0;
	color: var(--wp--preset--color--ink);
	line-height: 1.6;
}

.kahel-infos-contact-section .kahel-infos-ligne dd > :is(p, ul, ol) {
	margin: 0;
}

.kahel-infos-contact-section .kahel-infos-ligne dd > * + * {
	margin-top: 0.5em;
}

.kahel-infos-contact-section .kahel-infos-picto {
	position: absolute;
	top: 18px;
	left: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--orange-deep);
}

.kahel-infos-contact-section .kahel-infos-picto .kahel-picto {
	width: 21px;
	height: 21px;
}

.kahel-infos-contact-section .kahel-infos-picto:empty {
	display: none;
}

/* Une coordonnée pas encore remplie : visible dans l'éditeur seulement. */
.kahel-infos-contact-section .kahel-infos-ligne.is-vide {
	opacity: 0.45;
}

.kahel-infos-contact-section .kahel-infos-ligne.is-vide dd {
	font-style: italic;
}

/* Les réseaux sociaux (inc/reseaux.php). */
.kahel-infos-contact-section .kahel-infos-reseaux {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-top: clamp(24px, 3vw, 32px);
}

.kahel-infos-contact-section .kahel-infos-reseaux-titre {
	margin: 0;
	color: var(--wp--preset--color--orange-deep);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--weight--strong);
	letter-spacing: var(--wp--custom--letter-spacing--kicker);
	text-transform: uppercase;
}

.kahel-infos-contact-section .kahel-infos-reseaux .kahel-reseau a {
	border-color: transparent;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--orange-deep);
}

.kahel-infos-contact-section .kahel-infos-reseaux .kahel-reseau a:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
}

.kahel-infos-contact-section .kahel-infos-actions {
	margin-top: clamp(28px, 3.5vw, 40px);
}

.kahel-infos-contact-section .kahel-fleche-diagonale {
	display: inline-block;
	margin-left: 0.3em;
	transition: transform 420ms var(--wp--custom--motion--ease-spring);
}

.kahel-infos-contact-section .wp-element-button:is(:hover, :focus-visible) .kahel-fleche-diagonale {
	transform: translate(3px, -3px);
}

/* La carte. */
.kahel-infos-contact-section .kahel-infos-carte-col {
	position: relative;
	min-height: clamp(340px, 42vw, 520px);
}

.kahel-infos-contact-section .kahel-infos-carte {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--default);
	background: var(--wp--preset--color--cream);
	box-shadow: var(--wp--preset--shadow--media);
}

.kahel-infos-contact-section .kahel-infos-carte-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* En attendant le clic : un plan dessiné à grands traits, et le bouton. */
.kahel-infos-contact-section .kahel-infos-carte-attente {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 100%;
	padding: clamp(24px, 4vw, 48px);
	box-sizing: border-box;
	text-align: center;
	background:
		linear-gradient(118deg, transparent 46%, rgba(255, 255, 255, 0.85) 46%, rgba(255, 255, 255, 0.85) 49%, transparent 49%),
		linear-gradient(28deg, transparent 62%, rgba(255, 255, 255, 0.7) 62%, rgba(255, 255, 255, 0.7) 64%, transparent 64%),
		repeating-linear-gradient(0deg, transparent 0 46px, rgba(201, 82, 18, 0.07) 46px 47px),
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(201, 82, 18, 0.07) 46px 47px),
		var(--wp--preset--color--cream);
}

.kahel-infos-contact-section .kahel-infos-carte-repere {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50% 50% 50% 0;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--button);
	rotate: -45deg;
}

.kahel-infos-contact-section .kahel-infos-carte-repere .kahel-picto {
	width: 28px;
	height: 28px;
	rotate: 45deg;
}

.kahel-infos-contact-section .kahel-infos-carte-lieu {
	max-width: 32ch;
	margin: 0;
	font-weight: var(--wp--custom--weight--strong);
}

.kahel-infos-contact-section .kahel-infos-carte-attente .wp-block-buttons {
	justify-content: center;
}

.kahel-infos-contact-section .kahel-infos-carte-note {
	max-width: 34ch;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5;
}

@media (max-width: 900px) {
	.kahel-infos-contact-section .kahel-infos-grille {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Sur une seule colonne, la carte suit toujours les coordonnées. */
	.kahel-infos-contact-section.is-inverse .kahel-infos-carte-col {
		order: 0;
	}

	.kahel-infos-contact-section .kahel-infos-carte-col {
		min-height: 360px;
	}
}
