@charset "UTF-8";
/* ------------------------------------------------------------------
   HOME — photos des machinauts + encart newsletter discret
   Chargé UNIQUEMENT par home.php. Tous les sélecteurs sont scopés
   sous body.homepage pour ne toucher aucune autre page.
   ------------------------------------------------------------------ */

/*----------------------- photos des machinauts -----------------------*/
body.homepage section#community #machinauts-photos {
	padding-top: 3vh; /* directement sous le titre de section (bloc témoignages retiré le 17/09) */
}
body.homepage section#community .photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 0 0 3vh 0;
}
body.homepage section#community .photo-grid a.photo {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	overflow: hidden;
	background: rgba(0, 0, 0, .12);
	text-decoration: none;
	color: #fff;
}
body.homepage section#community .photo-grid a.photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
body.homepage section#community .photo-grid a.photo:hover img {
	transform: scale(1.04);
}
body.homepage section#community .photo-grid a.photo span.caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 36px 12px 12px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
	font-size: .85rem;
	line-height: 1.15rem;
	text-align: left;
	color: #fff; /* common_v3.css a un « * { color:#000 } » → forcer ici */
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
body.homepage section#community .photo-grid a.photo span.caption strong {
	display: block;
	font-weight: bold;
	color: #fff;
}
body.homepage section#community .photo-grid a.photo span.caption .flag {
	font-weight: normal;
	font-size: 1em;
	margin-left: 2px;
}
body.homepage section#community .photo-grid a.photo span.caption em {
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-style: normal;
	opacity: .9;
}
body.homepage section#community .photo-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}
body.homepage section#community .photo-links a.cta-btn {
	margin-top: 0;
}
body.homepage section#community .photo-links a.map-link {
	font-size: .9rem;
	color: inherit;
	opacity: .7;
	text-decoration: underline;
	transition: opacity .2s;
}
body.homepage section#community .photo-links a.map-link:hover {
	opacity: 1;
}

@media (max-width: 900px) {
	body.homepage section#community .photo-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	body.homepage section#community .photo-grid a.photo:nth-child(n+10) {
		display: none;
	}
}
@media (max-width: 600px) {
	body.homepage section#community .photo-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	body.homepage section#community .photo-grid a.photo:nth-child(n+9) {
		display: none;
	}
	body.homepage section#community .photo-grid a.photo span.caption {
		font-size: .8rem;
		line-height: 1.05rem;
		padding: 28px 10px 10px 10px;
	}
}

/* Lightbox : réutilise .overlay de common_v3.css (fond noir plein écran) */
body.homepage .overlay figure.lb {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
body.homepage .overlay figure.lb img {
	max-height: calc(90vh - 60px);
	border-radius: var(--radius);
}
body.homepage .overlay figure.lb figcaption {
	color: #fff;
	text-align: center;
	font-size: .95rem;
	line-height: 1.3rem;
	max-width: 80vw;
}
body.homepage .overlay figure.lb figcaption strong {
	display: block;
	color: #fff;
}

/*----------------------- encart newsletter discret -----------------------*/
body.homepage #lm-hook {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 98; /* sous le header (99) et sous .overlay */
	transform: translateY(115%);
	transition: transform .55s cubic-bezier(.2, .8, .2, 1);
	pointer-events: none;
}
body.homepage #lm-hook.show {
	transform: translateY(0);
	pointer-events: auto;
}
body.homepage #lm-hook div.card {
	position: relative;
	background: var(--jaune);
	color: #000;
	padding: 20px 22px 8px 22px;
	border-radius: var(--radius) var(--radius) 0 0;
	box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
}
body.homepage #lm-hook div.card h4 {
	margin: 0 30px 6px 0;
	font-size: 1.25rem;
	font-weight: bold;
	line-height: 1.4rem;
}
body.homepage #lm-hook div.card p {
	margin: 0 0 14px 0;
	font-size: .95rem;
	line-height: 1.3rem;
}
body.homepage #lm-hook button.close {
	position: absolute;
	top: 10px; right: 10px;
	width: 34px; height: 34px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	line-height: 34px;
}
body.homepage #lm-hook button.close::before {
	content: '\e5cd';
	font-family: 'Material Icons';
	font-size: 26px;
	color: #000;
}
body.homepage #lm-hook form.leads fieldset {
	padding-bottom: 0;
}
body.homepage #lm-hook form.leads input[type=email] {
	border-color: #fff;
}
body.homepage #lm-hook form.leads .msg div {
	min-height: 0;
}
body.homepage #lm-hook form.leads .msg:empty {
	display: none;
}

@media (min-width: 701px) {
	body.homepage #lm-hook {
		left: auto;
		right: 24px;
		bottom: 24px;
		width: 380px;
		transform: translateY(calc(100% + 40px));
	}
	body.homepage #lm-hook div.card {
		border-radius: var(--radius);
		box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
	}
}
@media (max-width: 700px) {
	body.homepage #lm-hook div.card {
		padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	}
}
