/* ==========================================================================
   Good Uniforme — category landings, galleries, contact & quote form
   ========================================================================== */

:root {
	--gu-chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14'%3E%3Cpath d='M0 0h5l6 7-6 7H0l6-7zM9.5 0h5l6 7-6 7h-5l6-7zM19 0h5l6 7-6 7h-5l6-7z'/%3E%3C/svg%3E");
	--gu-gutter: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.gu-section { padding-block: var(--wp--preset--spacing--60); }
.gu-section + .gu-section { padding-top: 0; }
.gu-band { padding-block: var(--wp--preset--spacing--10); }
.gu-band--surface { background: var(--gu-surface); }
.gu-band > .gu-section { padding-top: var(--wp--preset--spacing--60); }

.gu-section__head { margin-bottom: var(--wp--preset--spacing--40) !important; max-width: 760px; }
.gu-section__head--row { max-width: none; gap: 1.25rem 2rem !important; }
.wp-block-group.gu-section__head--row { max-width: var(--wp--style--global--wide-size, 1240px); }
.gu-section__head--row > :first-child { max-width: 680px; }
.gu-section__head h2 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.gu-section__head > * { margin-block: 0; }
.gu-section__head .gu-search { flex: 0 1 320px; }

.gu-eyebrow {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-top: 0 !important;
	margin-bottom: .5rem !important;
	color: var(--gu-accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
}
.gu-eyebrow::before {
	content: "";
	flex: none;
	width: 1.6em; height: .8em;
	background: var(--gu-brand);
	-webkit-mask: var(--gu-chevrons) center / contain no-repeat;
	mask: var(--gu-chevrons) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Category hero
   -------------------------------------------------------------------------- */
.gu-cat-hero {
	position: relative;
	overflow: hidden;
	padding: var(--wp--preset--spacing--40) var(--gu-gutter) 0;
	background:
		radial-gradient(50% 70% at 100% 0%, rgba(247, 147, 30, .12), transparent 70%),
		var(--gu-surface);
	border-bottom: 1px solid var(--gu-line);
}
.gu-cat-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: var(--wp--preset--spacing--50);
	align-items: center;
	max-width: 1240px;
	margin: 0 auto;
	padding-bottom: var(--wp--preset--spacing--50);
}
.gu-cat-hero--no-media .gu-cat-hero__inner { grid-template-columns: minmax(0, 1fr); max-width: 1240px; }
.gu-cat-hero__text > * { margin-block: 0; }
.gu-cat-hero__text > * + * { margin-top: 1.1rem; }
.gu-cat-hero .gu-breadcrumbs ol { margin-bottom: 1.5rem; }
.gu-cat-hero__eyebrow {
	display: flex; align-items: center; gap: .6rem;
	color: var(--gu-accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.gu-cat-hero__eyebrow::before {
	content: ""; width: 1.6em; height: .8em; background: var(--gu-brand);
	-webkit-mask: var(--gu-chevrons) center / contain no-repeat;
	mask: var(--gu-chevrons) center / contain no-repeat;
}
.gu-cat-hero__title {
	margin-top: .5rem !important;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.gu-cat-hero__lead { color: var(--gu-muted); font-size: 1.125rem; line-height: 1.7; max-width: 56ch; }
.gu-cat-hero__lead p { margin: 0; }
.gu-cat-hero .gu-devis { margin-top: 1.75rem; }

.gu-cat-hero__facts {
	display: flex; flex-wrap: wrap; gap: .5rem;
	margin: 1.5rem 0 0 !important; padding: 0; list-style: none;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--gu-muted);
}
.gu-cat-hero__facts li {
	padding: .45rem .85rem;
	background: #fff;
	border: 1px solid var(--gu-line);
	border-radius: 999px;
}
.gu-cat-hero__facts a { color: inherit; text-decoration: none; }
.gu-cat-hero__facts a:hover { color: var(--gu-accent); }
.gu-cat-hero__facts strong { color: var(--gu-navy); font-family: var(--wp--preset--font-family--heading); }

.gu-cat-hero__media { position: relative; margin: 0; }
.gu-cat-hero__media::before {
	content: "";
	position: absolute; inset: 18px -18px -18px 18px;
	border-radius: 26px;
	background: var(--gu-brand);
}
.gu-cat-hero__media img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: var(--wp--preset--shadow--lift);
}

/* Studio photos: whole outfit on white, not cropped at the chest. */
.gu-cat-hero__media--studio img { object-fit: contain; background: #fff; }

.gu-subcats {
	max-width: 1240px;
	margin: 0 auto;
	padding: 1rem 0;
	border-top: 1px solid var(--gu-line);
}
.gu-subcats ul { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.gu-subcats a {
	display: inline-block;
	padding: .5rem 1rem;
	border-radius: 999px;
	color: var(--gu-navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.gu-subcats a:hover { background: #fff; }
.gu-subcats a[aria-current="page"] { background: var(--gu-navy); color: #fff; }

@media (max-width: 900px) {
	.gu-cat-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.gu-cat-hero__media { order: -1; margin-right: 18px; }
	.gu-cat-hero__media img { aspect-ratio: 16 / 10; max-height: 340px; }
	.gu-cat-hero .gu-breadcrumbs { order: -2; }
	.gu-cat-hero__text { display: contents; }
	.gu-cat-hero__inner > * { margin: 0; }
	.gu-cat-hero__inner { gap: 1rem; }
	.gu-cat-hero__media { margin-bottom: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Galleries
   -------------------------------------------------------------------------- */
.gu-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 18vw, 230px);
	gap: 12px;
	margin: 0; padding: 0; list-style: none;
}
.gu-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gu-gallery__item a {
	position: relative;
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: var(--gu-radius-m);
	background: var(--gu-line);
}
.gu-gallery__item img {
	display: block;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s var(--gu-ease), filter .3s;
}
.gu-gallery__item--studio a { background: #fff; }
.gu-gallery__item--studio img { object-fit: contain; }
.gu-gallery__item a::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(3, 15, 39, .55), transparent 55%);
	opacity: 0;
	transition: opacity .3s;
}
.gu-gallery__zoom {
	position: absolute; right: .75rem; bottom: .75rem; z-index: 1;
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	border-radius: 50%;
	background: #fff;
	color: var(--gu-navy);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s, transform .3s var(--gu-ease);
}
.gu-gallery__item a:hover img, .gu-gallery__item a:focus-visible img { transform: scale(1.06); }
.gu-gallery__item a:hover::after, .gu-gallery__item a:focus-visible::after { opacity: 1; }
.gu-gallery__item a:hover .gu-gallery__zoom, .gu-gallery__item a:focus-visible .gu-gallery__zoom { opacity: 1; transform: none; }
@media (hover: none) {
	.gu-gallery__zoom { opacity: .9; transform: none; width: 2rem; height: 2rem; }
}
@media (max-width: 781px) {
	.gu-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 8px; }
}
.gu-gallery__more { margin: 1.5rem 0 0; text-align: center; }

/* Masonry (Réalisations) */
.gu-gallery--masonry { display: block; columns: 4 240px; column-gap: 12px; }
.gu-gallery--masonry .gu-gallery__item { break-inside: avoid; margin-bottom: 12px; }
.gu-gallery--masonry .gu-gallery__item:first-child { grid-column: auto; grid-row: auto; }
.gu-gallery--masonry .gu-gallery__item img { height: auto; }
.gu-gallery--masonry .gu-gallery__item[hidden] { display: none; }
@media (max-width: 781px) {
	.gu-gallery--masonry { columns: 2; column-gap: 8px; }
	.gu-gallery--masonry .gu-gallery__item { margin-bottom: 8px; }
}

.gu-realisations .gu-filter { margin-bottom: var(--wp--preset--spacing--40); }
.gu-filter button {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .5rem 1rem;
	border: 1px solid var(--gu-line);
	border-radius: 999px;
	background: #fff;
	color: var(--gu-navy);
	font: 600 var(--wp--preset--font-size--x-small) / 1.2 var(--wp--preset--font-family--heading);
	white-space: nowrap;
	cursor: pointer;
	transition: all .2s var(--gu-ease);
}
.gu-filter button span { padding: .1rem .45rem; border-radius: 999px; background: var(--gu-surface); color: var(--gu-muted); font-size: .7rem; }
.gu-filter button:hover { border-color: var(--gu-navy); }
.gu-filter button[aria-pressed="true"] { background: var(--gu-navy); border-color: var(--gu-navy); color: #fff; }
.gu-filter button[aria-pressed="true"] span { background: rgba(255, 255, 255, .15); color: #fff; }
/* Phones: one swipeable row instead of a tall wrap of long sector names. */
@media (max-width: 767px) {
	.gu-realisations .gu-filter ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
	.gu-realisations .gu-filter ul::-webkit-scrollbar { display: none; }
	.gu-realisations .gu-filter li { flex: none; }
}

/* Lightbox */
.gu-lightbox {
	width: 100vw; height: 100dvh;
	max-width: none; max-height: none;
	margin: 0; padding: 0;
	border: 0;
	background: rgba(3, 15, 39, .94);
	color: #fff;
}
.gu-lightbox::backdrop { background: transparent; }
.gu-lightbox[open] { display: grid; place-items: center; animation: gu-fade .25s ease; }
@keyframes gu-fade { from { opacity: 0; } }
.gu-lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; width: 100%; height: 100%; justify-content: center; margin: 0; padding: 4.5rem 4.5rem 3.5rem; box-sizing: border-box; }
.gu-lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 10rem); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.gu-lightbox__figure figcaption { max-width: 70ch; color: rgba(255, 255, 255, .8); font-size: var(--wp--preset--font-size--small); text-align: center; }
.gu-lightbox__figure figcaption:empty { display: none; }
.gu-lightbox__count { position: absolute; top: 1.4rem; left: 1.5rem; margin: 0; color: rgba(255, 255, 255, .7); font: 600 .875rem var(--wp--preset--font-family--heading); }
.gu-lightbox__btn {
	position: absolute;
	display: inline-flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.gu-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.gu-lightbox__close { top: 1rem; right: 1rem; }
.gu-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gu-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.gu-lightbox.is-single .gu-lightbox__prev, .gu-lightbox.is-single .gu-lightbox__next, .gu-lightbox.is-single .gu-lightbox__count { display: none; }
@media (max-width: 600px) {
	.gu-lightbox__figure { padding: 4rem 0 5rem; }
	.gu-lightbox__figure img { border-radius: 0; }
	.gu-lightbox__prev, .gu-lightbox__next { top: auto; bottom: 1rem; transform: none; }
	.gu-lightbox__prev { left: calc(50% - 3.5rem); }
	.gu-lightbox__next { right: calc(50% - 3.5rem); }
}
html.gu-no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   Article "Lire la suite" + sticky card
   -------------------------------------------------------------------------- */
.gu-cat-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}
@media (max-width: 900px) {
	.gu-cat-article__grid { grid-template-columns: minmax(0, 1fr); }
}

.gu-readmore__content { position: relative; max-height: 26rem; overflow: hidden; }
.gu-readmore__content::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 8rem;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
}
.gu-readmore.is-open .gu-readmore__content { max-height: none; }
.gu-readmore.is-open .gu-readmore__content::after { display: none; }
.gu-readmore__content > :first-child { margin-top: 0; }
.gu-readmore__content h2 { font-size: var(--wp--preset--font-size--x-large); }
.gu-readmore__content h3 { font-size: var(--wp--preset--font-size--large); }
.gu-readmore__content img { max-width: 100%; height: auto; }
.gu-readmore__toggle {
	display: inline-flex; align-items: center; gap: .5rem;
	margin-top: 1rem;
	padding: .7rem 1.2rem;
	border: 0; border-radius: 999px;
	background: var(--gu-surface);
	color: var(--gu-navy);
	font: 700 var(--wp--preset--font-size--small) var(--wp--preset--font-family--heading);
	cursor: pointer;
}
.gu-readmore__toggle::after { content: "↓"; transition: transform .2s; }
.gu-readmore.is-open .gu-readmore__toggle::after { transform: rotate(180deg); }
.gu-readmore__toggle:hover { background: var(--gu-line); }

.gu-sticky-card {
	position: sticky;
	top: calc(var(--wp--custom--header-height) + 2rem);
	display: flex; flex-direction: column; gap: 1rem;
	padding: 1.75rem;
	border-radius: var(--gu-radius-l);
	background: var(--wp--preset--gradient--night);
	color: #fff;
}
.gu-sticky-card .gu-eyebrow { color: var(--wp--preset--color--amber); margin: 0 !important; }
.gu-sticky-card__title { margin: 0; font: 800 var(--wp--preset--font-size--large) / 1.2 var(--wp--preset--font-family--heading); }
.gu-sticky-card .gu-btn { align-self: flex-start; }
.gu-sticky-card .gu-contact { color: rgba(255, 255, 255, .85); font-weight: 600; }
.gu-sticky-card .gu-contact:hover { color: #fff; }

.gu-steps-mini { margin: 0; padding: 0; list-style: none; counter-reset: gu-step; display: grid; gap: .65rem; }
.gu-steps-mini li { counter-increment: gu-step; display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .85); font-size: var(--wp--preset--font-size--small); }
.gu-steps-mini li::before {
	content: counter(gu-step);
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.75rem; height: 1.75rem;
	border-radius: 50%;
	background: rgba(247, 147, 30, .18);
	color: var(--wp--preset--color--amber);
	font: 800 .8rem var(--wp--preset--font-family--heading);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.gu-faq__list { display: grid; gap: .75rem; max-width: 880px; }
.gu-faq__item {
	border: 1px solid var(--gu-line);
	border-radius: var(--gu-radius-m);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.gu-faq__item[open] { border-color: transparent; box-shadow: var(--wp--preset--shadow--soft); }
.gu-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.1rem 1.25rem;
	color: var(--gu-navy);
	font: 700 var(--wp--preset--font-size--medium) / 1.35 var(--wp--preset--font-family--heading);
	cursor: pointer;
	list-style: none;
}
.gu-faq__item summary::-webkit-details-marker { display: none; }
.gu-faq__item summary::after {
	content: "";
	flex: none;
	width: 1.9rem; height: 1.9rem;
	border-radius: 50%;
	background: var(--gu-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23030F27' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .25s var(--gu-ease), background-color .2s;
}
.gu-faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--wp--preset--color--cream); }
.gu-faq__answer { padding: 0 1.25rem 1.2rem; color: var(--gu-muted); }
.gu-faq__answer p { margin: 0; }

/* --------------------------------------------------------------------------
   Other sectors
   -------------------------------------------------------------------------- */
.gu-others__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(200px, 1fr);
	gap: 1rem;
	margin: 0; padding: 0 0 .5rem; list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.gu-others__list li { scroll-snap-align: start; }
.gu-others__card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--gu-radius-m);
	background: var(--gu-navy);
	color: #fff !important;
	text-decoration: none;
}
.gu-others__card img, .gu-others__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--gu-ease); }
.gu-others__placeholder { background: var(--wp--preset--gradient--night); }
.gu-others__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 15, 39, .85), rgba(3, 15, 39, 0) 60%); }
.gu-others__name {
	position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	font: 700 var(--wp--preset--font-size--medium) / 1.25 var(--wp--preset--font-family--heading);
}
.gu-others__name::after { content: "→"; transition: transform .2s; }
.gu-others__card:hover img { transform: scale(1.06); }
.gu-others__card:hover .gu-others__name::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.gu-contact-layout { margin-top: calc(var(--wp--preset--spacing--50) * -1); position: relative; z-index: 1; padding-bottom: var(--wp--preset--spacing--40); }
.gu-contact-grid { align-items: flex-start !important; }
.gu-contact-grid__form {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--gu-line);
	border-radius: var(--gu-radius-l);
	box-shadow: var(--wp--preset--shadow--lift);
}
@media (min-width: 782px) {
	.gu-contact-grid__aside { position: sticky; top: calc(var(--wp--custom--header-height) + 2rem); padding-top: var(--wp--preset--spacing--50); }
}

.gu-contact-cards { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gu-contact-card {
	display: flex; gap: 1rem; align-items: flex-start;
	padding: 1.1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--gu-line);
	border-radius: var(--gu-radius-m);
}
.gu-contact-card__icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--gu-accent);
}
.gu-contact-card--whatsapp .gu-contact-card__icon { background: #e8f8ee; color: var(--gu-whatsapp); }
.gu-contact-card__icon .gu-icon { width: 1.25rem; height: 1.25rem; }
.gu-contact-card p { margin: 0; }
.gu-contact-card__title { color: var(--gu-navy); font: 700 var(--wp--preset--font-size--medium) var(--wp--preset--font-family--heading); }
.gu-contact-card__hint { color: var(--gu-muted); font-size: var(--wp--preset--font-size--x-small); }
.gu-contact-card__value { display: flex; flex-direction: column; gap: .15rem; margin-top: .35rem; font-size: var(--wp--preset--font-size--small); }
.gu-contact-card__value a { color: var(--gu-navy); font-weight: 600; text-decoration: none; }
.gu-contact-card__value a:hover { color: var(--gu-accent); }

/* Map */
.gu-map__frame {
	position: relative;
	aspect-ratio: 21 / 8;
	min-height: 320px;
	max-width: 100%; /* aspect-ratio + min-height would otherwise widen it past its column */
	overflow: hidden;
	border-radius: var(--gu-radius-l);
	background:
		linear-gradient(rgba(3, 15, 39, .04) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(3, 15, 39, .04) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--gu-surface);
	border: 1px solid var(--gu-line);
}
.gu-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gu-map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.5rem; text-align: center; }
.gu-map__pin {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3.5rem; height: 3.5rem;
	border-radius: 50%;
	background: var(--gu-accent);
	color: #fff;
	box-shadow: 0 0 0 10px rgba(212, 67, 14, .12);
}
.gu-map__pin .gu-icon { width: 1.5rem; height: 1.5rem; }
.gu-map__address { margin: 0; color: var(--gu-navy); font: 700 var(--wp--preset--font-size--large) var(--wp--preset--font-family--heading); }
.gu-map .gu-devis { justify-content: center; }
@media (max-width: 600px) { .gu-map__frame { aspect-ratio: 4 / 5; } }

/* --------------------------------------------------------------------------
   Quote form
   -------------------------------------------------------------------------- */
.gu-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.gu-field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .gu-form__grid { grid-template-columns: minmax(0, 1fr); } }

.gu-field label { display: block; margin-bottom: .4rem; color: var(--gu-navy); font: 600 var(--wp--preset--font-size--small) var(--wp--preset--font-family--heading); }
.gu-field__req { color: var(--gu-accent); }
.gu-field input, .gu-field select, .gu-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	border: 1px solid #cfd4de;
	border-radius: 10px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.gu-field select {
	appearance: none;
	padding-right: 2.5rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6378' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 16px no-repeat;
}
.gu-field textarea { resize: vertical; min-height: 8rem; }
.gu-field input:hover, .gu-field select:hover, .gu-field textarea:hover { border-color: #aab2c2; }
.gu-field input:focus, .gu-field select:focus, .gu-field textarea:focus {
	outline: none;
	border-color: var(--gu-navy);
	box-shadow: 0 0 0 4px rgba(3, 15, 39, .08);
}
.gu-field [aria-invalid="true"] { border-color: #c62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .08); }
.gu-field__error { margin: .35rem 0 0; color: #c62828; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; }

.gu-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.gu-form__note { margin: 0; flex: 1 1 220px; color: var(--gu-muted); font-size: var(--wp--preset--font-size--x-small); }
.gu-form__alert { margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 10px; background: #fdecea; color: #8e1c1c; font-weight: 600; }
.gu-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gu-form__captcha { margin-top: 1.25rem; min-height: 65px; }
.gu-form button[type=submit].is-loading { opacity: .7; cursor: progress; }

.gu-form-success { padding: 1rem 0; text-align: center; outline: none; }
.gu-form-success__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 4rem; height: 4rem; margin-bottom: 1rem;
	border-radius: 50%;
	background: #e8f8ee; color: var(--gu-whatsapp);
}
.gu-form-success h2 { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--x-large); }
.gu-form-success p { margin: 0 auto 1.5rem; max-width: 46ch; color: var(--gu-muted); }
.gu-form-success .gu-devis { justify-content: center; align-items: center; }
.gu-form-success .gu-contact { font-weight: 700; color: var(--gu-navy); }

/* --------------------------------------------------------------------------
   Product page gallery
   -------------------------------------------------------------------------- */
.gu-pgallery { display: grid; gap: .75rem; }
.gu-pgallery__stage {
	position: relative;
	/* Square, and never taller than the screen (minus header & thumbnails). */
	aspect-ratio: 1 / 1;
	max-height: calc(100vh - 15rem);
	min-height: 320px;
	max-width: 100%; /* aspect-ratio + min-height would otherwise widen it past its column */
	overflow: hidden;
	border-radius: var(--gu-radius-l);
	background: var(--gu-surface);
}
.gu-pgallery__slide { position: absolute; inset: 0; display: none; cursor: zoom-in; }
.gu-pgallery__slide.is-active { display: block; animation: gu-fade .25s ease; }
.gu-pgallery__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gu-pgallery__slide:hover .gu-gallery__zoom, .gu-pgallery__slide:focus-visible .gu-gallery__zoom { opacity: 1; transform: none; }
.gu-pgallery .gu-product__image { aspect-ratio: 1 / 1; max-height: calc(100vh - 15rem); min-height: 320px; border-radius: var(--gu-radius-l); margin: 0; }
.gu-pgallery__slide img { object-fit: contain; background: var(--gu-surface); }
@media (max-width: 781px) {
	.gu-pgallery__stage, .gu-pgallery .gu-product__image { aspect-ratio: 4 / 3; max-height: none; min-height: 0; }
}

.gu-pgallery__nav {
	position: absolute; top: 50%; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem;
	margin-top: -1.375rem;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--gu-navy);
	box-shadow: var(--wp--preset--shadow--soft);
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s, background-color .2s;
}
.gu-pgallery__nav--prev { left: .75rem; }
.gu-pgallery__nav--next { right: .75rem; }
.gu-pgallery__stage:hover .gu-pgallery__nav, .gu-pgallery__nav:focus-visible { opacity: 1; }
.gu-pgallery__nav:hover { background: #fff; }
@media (hover: none) { .gu-pgallery__nav { opacity: 1; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; } }
.gu-pgallery__count {
	position: absolute; left: .75rem; bottom: .75rem; z-index: 2;
	padding: .25rem .6rem;
	border-radius: 999px;
	background: rgba(3, 15, 39, .7);
	color: #fff;
	font: 600 .75rem var(--wp--preset--font-family--heading);
	pointer-events: none;
}

.gu-pgallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.gu-pgallery__thumb {
	flex: 0 0 auto;
	width: 4.75rem; height: 4.75rem;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--gu-surface);
	overflow: hidden;
	cursor: pointer;
	opacity: .65;
	transition: opacity .2s, border-color .2s;
}
.gu-pgallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gu-pgallery__thumb:hover { opacity: 1; }
.gu-pgallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--gu-accent); }
@media (max-width: 600px) { .gu-pgallery__thumb { width: 3.75rem; height: 3.75rem; } }

/* Product cards: second photo on hover */
.gu-card__media { position: relative; }
.gu-card__media .gu-card__alt {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .4s var(--gu-ease), transform .6s var(--gu-ease);
}
.gu-card:hover .gu-card__media .gu-card__alt { opacity: 1; }
@media (hover: none) { .gu-card__media .gu-card__alt { display: none; } }

/* Phones: two products per row, like a shop. */
@media (max-width: 600px) {
	.gu-products .wp-block-post-template, .gu-grid:not(.gu-grid--posts) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: .75rem !important;
	}
	.gu-products .gu-card__body, .gu-grid .gu-card__body { padding: .75rem .8rem .9rem; }
	.gu-products .gu-card__title, .gu-grid .gu-card__title { font-size: .9375rem !important; }
	.gu-products .wp-block-post-terms, .gu-grid .wp-block-post-terms { font-size: .625rem; }
}

/* --------------------------------------------------------------------------
   Google reviews ([gu_google_reviews], homepage)
   -------------------------------------------------------------------------- */
/* minmax(0, 1fr): the horizontal review scroller must not widen the column. */
.gu-reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.gu-reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.gu-reviews__head .gu-eyebrow { margin-bottom: .5rem !important; }
.gu-reviews__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.gu-reviews__summary {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem 1.1rem;
	border: 1px solid var(--gu-line);
	border-radius: var(--gu-radius-m);
	background: #fff;
}
.gu-reviews__summary .gu-reviews__g { width: 28px; height: 28px; }
.gu-reviews__score { color: var(--gu-navy); font: 800 2rem / 1 var(--wp--preset--font-family--heading); }
.gu-reviews__score small { margin-left: .1em; color: var(--gu-muted); font-size: .5em; font-weight: 700; }
.gu-reviews__meta { display: grid; gap: .15rem; font-size: var(--wp--preset--font-size--x-small); }
.gu-reviews__count { color: var(--gu-muted); }
.gu-reviews__maps { color: var(--gu-accent); font-weight: 700; }
a.gu-reviews__summary { color: inherit; text-decoration: none; transition: border-color .2s var(--gu-ease), box-shadow .2s var(--gu-ease), transform .2s var(--gu-ease); }
a.gu-reviews__summary:hover { border-color: transparent; box-shadow: var(--wp--preset--shadow--lift); transform: translateY(-2px); }
.gu-reviews__meta a:hover { color: var(--gu-accent); }

.gu-stars {
	display: inline-block;
	font-size: 1rem;
	letter-spacing: .1em;
	line-height: 1;
	background: linear-gradient(90deg, #fbbc04 var(--gu-stars, 100%), #dadce0 var(--gu-stars, 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gu-reviews__scroller { position: relative; }
.gu-reviews__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
	gap: 1.25rem;
	margin: 0;
	padding: .25rem .1rem 1rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.gu-reviews__list::-webkit-scrollbar { display: none; }
.gu-review {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	padding: 1.4rem;
	border: 1px solid var(--gu-line);
	border-radius: var(--gu-radius-m);
	background: #fff;
	scroll-snap-align: start;
}
.gu-review__top { display: flex; align-items: center; justify-content: space-between; }
.gu-review__text { flex: 1; margin: 0; padding: 0; border: 0; }
.gu-review__text p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #2b3346;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	line-height: 1.65;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
}
.gu-review__author { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: var(--wp--preset--font-size--small); }
.gu-review__author img, .gu-review__initial { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.gu-review__initial { display: grid; place-items: center; background: var(--gu-navy); color: #fff; font: 700 1rem var(--wp--preset--font-family--heading); }
.gu-review__author > span { display: grid; }
.gu-review__author a, .gu-review__author strong { color: var(--gu-navy); font-weight: 700; text-decoration: none; }
.gu-review__author small { color: var(--gu-muted); font-size: .75rem; }

.gu-scroller__btn {
	position: absolute;
	top: calc(50% - 1.5rem);
	display: grid;
	place-items: center;
	width: 2.75rem; height: 2.75rem;
	padding: 0;
	border: 1px solid var(--gu-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 18px rgba(3, 15, 39, .12);
	color: var(--gu-navy);
	cursor: pointer;
}
.gu-scroller__btn:hover { background: var(--gu-navy); color: #fff; }
.gu-scroller__btn:disabled { opacity: 0; pointer-events: none; }
.gu-scroller__btn--prev { left: -1.1rem; }
.gu-scroller__btn--next { right: -1.1rem; }

.gu-reviews__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0; }
.gu-reviews__actions .gu-btn { display: inline-flex; padding: .7rem 1.4rem; border: 2px solid var(--gu-navy); border-radius: 999px; color: var(--gu-navy) !important; font: 700 var(--wp--preset--font-size--small) var(--wp--preset--font-family--heading); text-decoration: none; box-shadow: none; }
.gu-reviews__actions .gu-btn:hover { background: var(--gu-navy); color: #fff !important; }
.gu-reviews__write { color: var(--gu-accent); font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.gu-reviews-admin { margin: 0; padding: 1rem 1.25rem; border: 1px dashed var(--gu-accent); border-radius: var(--gu-radius-m); background: #fff7f2; font-size: var(--wp--preset--font-size--small); }

@media (max-width: 1024px) { .gu-reviews__list { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 640px) {
	.gu-reviews__list { grid-auto-columns: 85%; gap: .9rem; }
	.gu-scroller__btn { display: none; }
}
/* Homepage container stays hidden while the section is empty (not configured). */
.gu-h2-reviews:not(:has(.gu-reviews, .gu-reviews-admin)) { display: none !important; }
.gu-review__photos { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.gu-review__photos a { position: relative; display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; }
.gu-review__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--gu-ease); }
.gu-review__photos a:hover img { transform: scale(1.06); }
.gu-review__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3, 15, 39, .55); color: #fff; font: 700 .9rem var(--wp--preset--font-family--heading); }
.gu-review__extra { display: none; }
