/* ============================================================
   LPL — Implantations
   Utilise les variables globales du thème
   ============================================================ */


/* ------------------------------------------------------------
   LISTE DES IMPLANTATIONS
   ------------------------------------------------------------ */

.lpl-implantations {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 70px 24px;

	width: 100%;
}


/* ------------------------------------------------------------
   FICHE
   ------------------------------------------------------------ */

.lpl-implantation {
	display: block;

	margin: 0;
	padding: 0;

	border: 0;

	color: var(--ast-global-color-0);
	font-family: var(--stack-sans-text);
}


.lpl-implantation__content {
	width: 100%;
}


/* ------------------------------------------------------------
   TYPE
   ------------------------------------------------------------ */

.lpl-implantation__type {
	margin: 0 0 8px;

	color: var(--main-color);

	font-family: var(--stack-sans-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;

	text-transform: uppercase;
	letter-spacing: .06em;
}


/* Couleurs selon le type */

.lpl-implantation--laboratoire
.lpl-implantation__type {
	color: var(--main-color);
}


.lpl-implantation--antenne
.lpl-implantation__type {
	color: var(--green-color);
}


.lpl-implantation--siege
.lpl-implantation__type {
	color: var(--orange-color);
}


/* ------------------------------------------------------------
   TITRE
   ------------------------------------------------------------ */

.lpl-implantation__title {
	margin: 0 0 20px;

	color: var(--sub-color);

	font-family: var(--quiche-sans);
	font-size: clamp(28px, 2.4vw, 38px);
	font-weight: 400;
	line-height: 1.1;
}


/* ------------------------------------------------------------
   ADRESSE / TÉLÉPHONE / EMAIL
   ------------------------------------------------------------ */

.lpl-implantation__address,
.lpl-implantation__phone,
.lpl-implantation__email {
	margin: 0 0 14px;

	color: var(--sub-color);

	font-family: var(--stack-sans-text);
	font-size: 16px;
	line-height: 1.45;
}


.lpl-implantation__address strong,
.lpl-implantation__phone strong,
.lpl-implantation__email strong {
	color: var(--sub-color);

	font-weight: 600;
}


.lpl-implantation__address p {
	margin: 0;
}


.lpl-implantation__phone a,
.lpl-implantation__email a {
	color: var(--sub-color);

	text-decoration: none;

	transition: color .2s ease;
}


.lpl-implantation__phone a:hover,
.lpl-implantation__email a:hover {
	color: var(--main-color);
}


/* ------------------------------------------------------------
   HORAIRES
   ------------------------------------------------------------ */

.lpl-implantation__hours {
	margin-top: 14px;

	color: var(--sub-color);

	font-family: var(--stack-sans-text);
	font-size: 16px;
}


.lpl-implantation__hours > strong {
	display: block;

	margin-bottom: 22px;

	color: var(--sub-color);

	font-weight: 600;
}


/* Tableau */

.lpl-implantation__hours ul {
	display: grid;
	grid-template-columns: 1fr;

	width: 100%;

	margin: 0;
	padding: 0;

	list-style: none;

	border-top: 1px solid var(--sub-color);
	border-left: 1px solid var(--sub-color);
}


.lpl-implantation__hours li {
	display: grid;
	grid-template-columns: 1fr 1fr;

	margin: 0;
	padding: 0;

	border: 0;
}


/* Cellules */

.lpl-implantation__hours li > span,
.lpl-implantation__hours li > strong {
	display: flex;

	align-items: center;

	min-height: 40px;

	margin: 0;
	padding: 7px 8px;

	border-right: 1px solid var(--sub-color);
	border-bottom: 1px solid var(--sub-color);

	color: var(--sub-color);

	font-family: var(--stack-sans-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
}


/* Jour */

.lpl-implantation__hours li > span {
	font-weight: 500;
}


/* ------------------------------------------------------------
   DESCRIPTION
   ------------------------------------------------------------ */

.lpl-implantation__description {
	margin-top: 24px;

	color: var(--sub-color);

	font-family: var(--stack-sans-text);
	font-size: 16px;
	line-height: 1.6;
}


/* ------------------------------------------------------------
   IMAGE
   ------------------------------------------------------------ */

.lpl-implantation__image {
	margin-bottom: 24px;

	overflow: hidden;
}


.lpl-implantation__image img {
	display: block;

	width: 100%;
	height: auto;

	aspect-ratio: 16 / 9;

	object-fit: cover;
}


/* ============================================================
   CARTE LEAFLET
   ============================================================ */

.lpl-map-wrapper {
	position: relative;

	width: 100%;

	overflow: hidden;
}


.lpl-map {
	width: 100%;
	min-height: 450px;

	background: var(--grey);
}


/* ------------------------------------------------------------
   POPUP LEAFLET
   ------------------------------------------------------------ */

.lpl-map .leaflet-popup-content-wrapper {
	padding: 0;

	border-radius: 0;

	background: var(--white);

	box-shadow:
		0 10px 40px
		rgba(0, 0, 0, .15);
}


.lpl-map .leaflet-popup-content {
	width: 280px !important;

	margin: 0;

	color: var(--sub-color);

	font-family: var(--stack-sans-text);
}


.lpl-map-popup {
	padding: 24px;
}


.lpl-map-popup__type {
	margin-bottom: 8px;

	color: var(--main-color);

	font-size: 11px;
	font-weight: 700;

	text-transform: uppercase;
	letter-spacing: .08em;
}


.lpl-map-popup__title {
	margin: 0 0 14px;

	color: var(--sub-color);

	font-family: var(--quiche-sans);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
}


.lpl-map-popup__address {
	margin: 0 0 10px;

	color: var(--sub-color);

	line-height: 1.5;
}


.lpl-map-popup__phone {
	margin: 0 0 18px;
}


.lpl-map-popup__phone a {
	color: var(--sub-color);

	font-weight: 600;

	text-decoration: none;
}


.lpl-map-popup__phone a:hover {
	color: var(--main-color);
}


/* Bouton itinéraire */

.lpl-map-popup__actions {
	margin-top: 18px;
}


.lpl-map-popup__actions a {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	min-height: 42px;

	padding: 9px 20px;

	background: var(--main-color);

	color: var(--white);

	font-family: var(--stack-sans-text);
	font-weight: 600;
	line-height: 1;

	text-decoration: none;

	transition:
		background-color .2s ease,
		color .2s ease;
}


.lpl-map-popup__actions a:hover {
	background: var(--sub-color);

	color: var(--white);
}


/* ============================================================
   MARQUEURS LEAFLET
   ============================================================ */

.lpl-map-marker {
	background: none !important;

	border: 0 !important;
}


.lpl-map-marker__pin {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;

	border: 4px solid var(--white);
	border-radius: 50% 50% 50% 0;

	background: var(--main-color);

	box-shadow:
		0 3px 10px
		rgba(0, 0, 0, .25);

	transform: rotate(-45deg);
}


.lpl-map-marker__dot {
	display: block;

	width: 10px;
	height: 10px;

	border-radius: 50%;

	background: var(--white);
}


/* Laboratoire = bleu/cyan */

.lpl-map-marker--laboratoire
.lpl-map-marker__pin {
	background: var(--main-color);
}


/* Antenne = vert */

.lpl-map-marker--antenne
.lpl-map-marker__pin {
	background: var(--green-color);
}


/* Siège = orange */

.lpl-map-marker--siege
.lpl-map-marker__pin {
	background: var(--orange-color);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {

	.lpl-implantations {
		grid-template-columns: 1fr;

		gap: 60px;
	}

}


@media (max-width: 768px) {

	.lpl-implantations {
		gap: 50px;
	}


	.lpl-implantation__title {
		font-size: 30px;
	}


	.lpl-implantation__address,
	.lpl-implantation__phone,
	.lpl-implantation__email,
	.lpl-implantation__hours {
		font-size: 15px;
	}


	.lpl-implantation__hours li > span,
	.lpl-implantation__hours li > strong {
		min-height: 38px;

		font-size: 15px;
	}


	.lpl-map {
		min-height: 480px;
	}

}


@media (max-width: 480px) {

	.lpl-implantation__hours li {
		grid-template-columns: 110px 1fr;
	}


	.lpl-implantation__hours li > span,
	.lpl-implantation__hours li > strong {
		padding: 8px 7px;
	}

}