/* Stores Isol Vérandas — Bloc « realisations » — chargé seulement sur les pages qui l'utilisent. Dépend de global.css. */

.siv-project__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.siv-gallery__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.siv-gallery__head .siv-heading {
	max-width: 580px;
}

.siv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 48px;
}

.siv-chip {
	padding: 10px 16px;
	border: 1px solid var(--siv-bord);
	border-radius: 999px;
	background: #fff;
	color: var(--siv-noir);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.siv-chip:hover {
	border-color: var(--siv-orange);
}

.siv-chip.is-active {
	border-color: var(--siv-orange);
	background: var(--siv-orange);
	color: #fff;
}

.siv-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

.siv-project {
	overflow: hidden;
}

.siv-project[hidden] {
	display: none;
}

.siv-project__media {
	height: 280px;
	overflow: hidden;
	background: var(--siv-bord);
}

.siv-project__media img {
	transition: transform 0.4s;
}

.siv-project:hover .siv-project__media img {
	transform: scale(1.04);
}

.siv-project__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px;
}

.siv-project__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.siv-project__place {
	color: var(--siv-orange);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.siv-project__title {
	color: var(--siv-noir);
	font-family: var(--siv-titre);
	font-size: 20px;
	font-weight: 600;
	line-height: normal;
}

.siv-project__link {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 18px;
	background: var(--siv-orange-10);
	color: var(--siv-orange) !important;
	transition: background-color 0.2s, color 0.2s;
}

.siv-project__link:hover {
	background: var(--siv-orange);
	color: #fff !important;
}

.siv-highlight {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 32px;
}

.siv-highlight__score {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 8px;
	width: 280px;
	padding-right: 32px;
	border-right: 1px solid var(--siv-bord);
}

.siv-highlight .siv-rating {
	font-size: 13px;
}

.siv-highlight .siv-rating__value {
	font-size: 14px;
}

.siv-highlight__mention {
	color: var(--siv-texte);
	font-size: 14px;
}

.siv-highlight__quote {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.siv-highlight__quote blockquote {
	color: var(--siv-noir);
	font-size: 18px;
	font-style: italic;
	line-height: normal;
}

.siv-highlight__quote figcaption {
	color: var(--siv-orange);
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 1023px) {
	.siv-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.siv-highlight {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.siv-highlight__score {
		width: auto;
		padding: 0 0 20px;
		border-right: 0;
		border-bottom: 1px solid var(--siv-bord);
	}
}

/* Points du carrousel mobile, créés par siv.js. */
.siv-gallery__dots {
	display: none;
}

@media (max-width: 767px) {
	/* Carrousel : défilement horizontal aimanté, la carte suivante dépasse pour inviter au geste. */
	/* position: relative retient dans le carrousel les textes masqués (screen-reader-text, en absolu),
	   qui sinon élargissent la page et la font glisser à droite. */
	.siv-gallery__grid {
		position: relative;
		display: flex;
		gap: 16px;
		margin-right: calc(-1 * var(--siv-gouttiere));
		margin-left: calc(-1 * var(--siv-gouttiere));
		padding: 4px var(--siv-gouttiere) 12px;
		scroll-padding-inline: var(--siv-gouttiere);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.siv-gallery__grid::-webkit-scrollbar {
		display: none;
	}

	.siv-project {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}

	.siv-gallery__dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin: 12px 0 32px;
	}

	.siv-gallery__dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: var(--siv-bord);
		cursor: pointer;
		transition: width 0.2s, background-color 0.2s;
	}

	.siv-gallery__dot.is-active {
		width: 24px;
		background: var(--siv-orange);
	}

	.siv-gallery__dot:focus-visible {
		outline: 2px solid var(--siv-orange);
		outline-offset: 2px;
	}

	.siv-gallery__head {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 32px;
	}

	.siv-chips {
		flex-wrap: nowrap;
		margin-right: calc(-1 * var(--siv-gouttiere));
		margin-bottom: 32px;
		padding-right: var(--siv-gouttiere);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.siv-chip {
		flex-shrink: 0;
	}

	.siv-gallery__grid {
		margin-bottom: 0;
	}

	.siv-project__media {
		height: 240px;
	}

	.siv-highlight {
		padding: 24px;
	}

	.siv-highlight__quote blockquote {
		font-size: 16px;
	}
}
