/* ==========================================================================
   Guillotin — Page Réalisations (P003 / realisations) + sections photos
   des pages services — T3003 (2026-10-06)

   Complements specifiques poses sur le socle `.guillotin-service-page`
   (service-pages.css, deja enqueued global) :
   1. scope `.guillotin-realisations-page` : hero sobre compact (~350px,
      aucun key visual — aucun hero approuve), galerie native Elementor Pro
      `gallery` (filtres metiers FR, caption native = post_excerpt en
      overlay, ratio 4:3, 3/2/1 colonnes via settings responsives du widget).
   2. scope `.guillotin-photo-section` : galerie native free `image-gallery`
      (shortcode WP) injectee sur les pages services — grille responsive
      4/2/1, medias 4:3 object-fit, captions bleues lisibles sur blanc.

   A ENQUEUER PAR MAIN (meme pattern que professionnels.css, global apres
   guillotin-service-pages) — ne pas toucher functions.php ici.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Réalisations
   -------------------------------------------------------------------------- */

/* Hero sobre compact : le premier rang de la galerie affleure le premier
   viewport (hauteur ~350px desktop, auto sur mobile). */
.guillotin-service-page.guillotin-realisations-page.phero {
	min-height: 350px;
}

.guillotin-service-page.guillotin-realisations-page.phero .wrap > .elementor-widget-wrap {
	padding-top: 40px;
	padding-bottom: 48px;
}

/* Bande galerie : resserre le haut pour garder la galerie au plus pres
   du hero, conserve le souffle bas avant le CTA. */
.guillotin-service-page.guillotin-realisations-page.real-gallery {
	padding: 56px 0 88px;
}

.guillotin-service-page.guillotin-realisations-page.real-gallery .wrap {
	width: min(100% - 80px, 1320px);
	margin: 0 auto;
}

/* Barre de filtres native (`.elementor-gallery__titles-container`) :
   pilules sobres marque, etat actif or sur bleu profond. */
.guillotin-service-page.guillotin-realisations-page .elementor-gallery__titles-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
}

.guillotin-service-page.guillotin-realisations-page .elementor-gallery-title.elementor-item {
	padding: 9px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--blue-d);
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.guillotin-service-page.guillotin-realisations-page .elementor-gallery-title.elementor-item:hover {
	border-color: var(--gold);
	color: var(--blue);
}

.guillotin-service-page.guillotin-realisations-page .elementor-gallery-title.elementor-item.elementor-item-active {
	border-color: var(--blue-d);
	background: var(--blue-d);
	color: var(--gold);
}

/* Items Pro gallery : coins doux, caption native (post_excerpt) en overlay
   toujours lisible — voile degrade bleu profond, texte blanc Manrope. */
.guillotin-service-page.guillotin-realisations-page .e-gallery-item {
	border-radius: 3px;
	overflow: hidden;
}

.guillotin-service-page.guillotin-realisations-page .elementor-gallery-item__content {
	padding: 0;
	background: none;
	opacity: 1;
	text-align: left;
}

.guillotin-service-page.guillotin-realisations-page .elementor-gallery-item__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 12px 14px;
	background: rgb(0 27 54 / 88%);
	opacity: 1 !important;
	transform: none !important;
	color: #ffffff;
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	text-shadow: 0 1px 8px rgb(0 10 24 / 55%);
}

/* Bouton secondaire sur bande CTA sombre (meme traitement que P005). */
.elementor-section.guillotin-service-page.guillotin-realisations-page .elementor-widget-button.btn-alt .elementor-button {
	background: transparent;
	color: #ffffff;
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 60%);
}

.elementor-section.guillotin-service-page.guillotin-realisations-page .elementor-widget-button.btn-alt .elementor-button:hover {
	background: #ffffff;
	color: var(--blue-d);
}

@media (max-width: 1160px) {
	.guillotin-service-page.guillotin-realisations-page.real-gallery .wrap {
		width: min(100% - 52px, 1320px);
	}
}

@media (max-width: 680px) {
	.guillotin-service-page.guillotin-realisations-page.phero {
		min-height: auto;
	}

	.guillotin-service-page.guillotin-realisations-page.real-gallery {
		padding: 48px 0 64px;
	}

	.guillotin-service-page.guillotin-realisations-page.real-gallery .wrap {
		width: min(100% - 36px, 1320px);
	}

	.guillotin-service-page.guillotin-realisations-page .elementor-gallery__titles-container {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}

	.guillotin-service-page.guillotin-realisations-page .elementor-gallery-title.elementor-item {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* --------------------------------------------------------------------------
   2. Sections photos des pages services (`.guillotin-photo-section`)
   Galerie native free `image-gallery` (shortcode WP `.gallery`) : le controle
   `gallery_columns` n'est pas responsive en Elementor free — la grille est
   geree ici (4/2/1), medias 4:3 object-fit, captions bleues sur blanc.
   -------------------------------------------------------------------------- */

.guillotin-service-page.sec.guillotin-photo-section .wrap {
	width: min(100% - 80px, 1320px);
	margin: 0 auto;
}

.guillotin-service-page.guillotin-photo-section .photo-gallery {
	margin-top: 32px;
}

.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}

.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery-item {
	float: none;
	width: auto !important;
	max-width: none;
	margin: 0 !important;
	padding: 0;
	text-align: left;
}

.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery-icon {
	margin: 0;
	padding: 0;
	border: 0;
}

.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery-icon img {
	width: 100%;
	border: 0;
	border-radius: 3px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery-caption {
	margin: 10px 0 0;
	color: var(--blue-d);
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
}

.guillotin-service-page.guillotin-photo-section .elementor-widget-button.btn-link {
	margin-top: 28px;
}

@media (max-width: 1160px) {
	.guillotin-service-page.sec.guillotin-photo-section .wrap {
		width: min(100% - 52px, 1320px);
	}

	.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.guillotin-service-page.sec.guillotin-photo-section .wrap {
		width: min(100% - 36px, 1320px);
	}

	.guillotin-service-page.guillotin-photo-section .photo-gallery .gallery {
		grid-template-columns: minmax(0, 1fr);
	}
}
