/* Galerie des réalisations (catégories sans produits) */
.chc-galerie {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	max-width: 900px;
	margin: 0 auto 48px;
}
.chc-galerie__item {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}
.chc-galerie__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .3s ease;
}
.chc-galerie__item:hover img,
.chc-galerie__item:focus-visible img {
	transform: scale(1.04);
}
@media (max-width: 689px) {
	.chc-galerie { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Agrandissement au clic */
.chc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .85);
	cursor: zoom-out;
}
.chc-lightbox img {
	width: auto;
	height: auto;
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 6px;
}
.chc-lightbox img { cursor: default; }
.chc-lightbox button {
	position: absolute;
	padding: 0;
	line-height: 1;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
}
.chc-lightbox__fermer {
	top: 12px;
	right: 16px;
	font-size: 36px;
}
.chc-lightbox__nav {
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	font-size: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15) !important;
	transition: background .2s;
}
.chc-lightbox__nav:hover,
.chc-lightbox__nav:focus-visible { background: rgba(255, 255, 255, .3) !important; }
.chc-lightbox__prec { left: 16px; }
.chc-lightbox__suiv { right: 16px; }
.chc-lightbox.is-seule .chc-lightbox__nav,
.chc-lightbox.is-seule .chc-lightbox__compteur { display: none; }
.chc-lightbox__compteur {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	color: #fff;
	font-size: 14px;
}
@media (max-width: 689px) {
	.chc-lightbox__nav { width: 40px; height: 40px; margin-top: -20px; font-size: 32px; }
	.chc-lightbox__prec { left: 6px; }
	.chc-lightbox__suiv { right: 6px; }
}

/* Demande de devis */
.chc-devis {
	max-width: 720px;
	margin: 0 auto 64px;
	text-align: center;
}
.chc-devis__titre { margin-bottom: 8px; }
.chc-devis__intro { margin-bottom: 20px; }
.chc-devis__form {
	display: none;
	margin-top: 24px;
	text-align: left;
}
.chc-devis.is-open .chc-devis__form { display: block; }
.chc-devis.is-open .chc-devis__ouvrir { display: none; }
.chc-devis__grille {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}
.chc-devis__grille p { margin: 0 0 12px; }
.chc-devis__large { grid-column: 1 / -1; }
.chc-devis label { display: block; margin-bottom: 4px; font-weight: 600; }
.chc-devis label span { font-weight: 400; opacity: .7; }
.chc-devis input[type="text"],
.chc-devis input[type="email"],
.chc-devis input[type="tel"],
.chc-devis textarea { width: 100%; }
.chc-devis__rgpd label { font-weight: 400; }
.chc-devis__rgpd input { margin-right: 6px; }
.chc-devis__piege { position: absolute; left: -9999px; }
.chc-devis__envoyer { width: 100%; }
.chc-devis__msg { padding: 12px 16px; border-radius: 6px; text-align: left; }
.chc-devis__msg--ok { background: #e8f5e9; color: #1b5e20; }
.chc-devis__msg--erreur { background: #fdecea; color: #8a1c13; }
@media (max-width: 689px) {
	.chc-devis__grille { grid-template-columns: 1fr; }
}
