/* ════════════════════════════════════════════════════════════
   SINGLE PROJET — MyProd
   Chargé uniquement sur is_singular('projet').
   ════════════════════════════════════════════════════════════ */

.sgl-projet {
	position: relative;
	background: #fff;
}

/* ───────────────────────────────────────────────
   Utilitaire réutilisable : soulignement animé
   (identique à single-article.css — candidat à remonter dans
   global.less pour ne plus le dupliquer entre templates)
   ─────────────────────────────────────────────── */

.u-underline-anim {
	position: relative;
	display: inline-block;
}

.u-underline-anim::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 100%;
	height: 1px;
	background: #08b9e0;
	transform: scaleX(0);
	transform-origin: left;
	animation: uUnderlineReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes uUnderlineReveal {
	to {
		transform: scaleX(1);
	}
}

/* ───────────────────────────────────────────────
   1. HERO — identique à single-article.css (même effet "volet",
   même technique de glow que le footer)
   ─────────────────────────────────────────────── */

.sgl-hero {
	position: relative;
	overflow: hidden;
	z-index: 0;
	background-color: var(--dark-blue, #101820);
	color: #fff;
}

.sgl-hero__pin {
	position: relative;
	padding-top: 200px;
	transform-origin: center top;
	will-change: transform;
}

.sgl-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.sgl-hero__glow {
	position: absolute;
	inset: 0;
}

.sgl-hero__glow--back {
	background: radial-gradient(circle clamp(500px, 70vw, 1100px) at var(--spot-x-back, 30%) var(--spot-y-back, 40%),
		rgba(41, 51, 138, 0.9) 0%,
		rgba(41, 51, 138, 0.5) 40%,
		rgba(41, 51, 138, 0) 75%);
}

.sgl-hero__glow--front {
	background: radial-gradient(circle clamp(350px, 50vw, 850px) at var(--spot-x, 65%) var(--spot-y, 25%),
		rgba(8, 185, 224, 0.55) 0%,
		rgba(8, 185, 224, 0.28) 35%,
		rgba(8, 185, 224, 0) 65%);
}

.sgl-hero__inner {
	position: relative;
	z-index: 1;
}

.sgl-hero__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 48px;
	flex-wrap: wrap;
}

.sgl-hero__title {
	font-size: clamp(28px, 3.2vw, 48px);
	font-weight: 500;
	line-height: 1.15;
	max-width: 640px;
	margin: 0;
}

.sgl-hero__tags {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
	padding-top: 6px;
}

.sgl-tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
	border-radius: 999px;
	white-space: nowrap;

	background: linear-gradient(180deg, #10182096, #10182021);
	backdrop-filter: blur(18px) saturate(180%);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 6px rgba(0, 0, 0, 0.15),
		0 4px 14px rgba(0, 0, 0, 0.18);
	position: relative;
	overflow: hidden;
}

.sgl-tag::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	width: 80%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.sgl-hero__thumb-wrap {
	margin-top: 8px;
}

.sgl-hero__thumb {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	border-radius: 24px;
}

.sgl-hero__thumb-img {
	width: 100%;
	height: clamp(280px, 45vw, 520px);
	object-fit: cover;
	display: block;
}

/* ───────────────────────────────────────────────
   2. CONTENU — recouvre le hero au scroll (identique à single-article.css)
   ─────────────────────────────────────────────── */

.sgl-content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 32px 32px 0 0;
	margin-top: -32px;
	padding: 88px 0 96px;
	box-shadow: 0 -20px 8px rgba(0, 0, 0, 0.12);;
}

.sgl-sidebar {
	position: relative;
}

.sgl-sidebar__inner {
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* ── Bloc infos projet — remplace le sommaire, même forme (bordure/radius/padding) ── */

.sgl-projet-infos {
	border: 1px solid var(--grey-2, #e6e6e6);
	border-radius: 20px;
	padding: 24px 28px;
}

.sgl-projet-infos__title {
	display: block;
	color: #101820;
	font-family: "Neulis";
	font-style: italic;
	font-weight: 500;
	font-size: 2.4rem;
	margin-bottom: 24px;
}

.sgl-projet-infos__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sgl-projet-infos__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.sgl-projet-infos__label {
	display: inline-flex;
	align-items: center;
	color: var(--grey-1, #999);
	font-family: Gilmer;
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
}

.sgl-projet-infos__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-blue, #08b9e0);
	margin-right: 8px;
	flex-shrink: 0;
}

.sgl-projet-infos__value {
	color: var(--dark-blue, #101820);
	font-family: Gilmer;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
}

.sgl-projet-infos__value a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sgl-projet-infos__value p {
	margin: 0;
}

/* Bouton contact perso */
.sgl-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 28px;
	border-radius: 999px;
	background: #e8412c;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.sgl-contact-btn:hover {
	transform: translateY(-2px);
	color: #fff;
}

/* ── Contenu introductif (ACF WYSIWYG) — remplace le the_content() brut ── */

.sgl-projet-intro__title {
	font-family: "Neulis";
	font-style: italic;
	font-weight: 500;
	font-size: 2.4rem;
	color: #101820;
	margin: 0 0 24px;
}

.sgl-projet-intro__text p {
	font-family: Gilmer;
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 20px;
}

.sgl-projet-intro__text p:last-child {
	margin-bottom: 0;
}

.sgl-projet-intro__text strong {
	color: var(--dark-blue, #101820);
}

/* Blocs Gutenberg / ACF affichés après la section intro, si présents */
.sgl-projet-content {
	position: relative;
	background: #fff;
}

/* ───────────────────────────────────────────────
   3. RESPONSIVE
   ─────────────────────────────────────────────── */

@media (max-width: 991px) {
	.sgl-hero__pin {
		padding-top: 96px;
	}

	.sgl-content {
		margin-top: 0;
		border-radius: 0;
		box-shadow: none;
		padding-top: 56px;
	}

	.sgl-sidebar__inner {
		position: relative;
		top: 0;
		margin-bottom: 40px;
	}

	.sgl-hero__row {
		flex-direction: column;
	}

	.sgl-hero__tags {
		justify-content: flex-start;
	}

	.sgl-projet-infos__row {
		flex-wrap: wrap;
	}

	.sgl-projet-infos__value {
		text-align: left;
	}
}

/* ───────────────────────────────────────────────
   4. AUTRES PROJETS — même mise en page que le bloc "projectlist"
   (sélection auto par type de projet, ou manuelle via ACF)
   ─────────────────────────────────────────────── */

.sgl-projet-autres {
	padding: 96px 0;
	background: #fff;
}

.sgl-projet-autres__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.sgl-projet-autres__title {
	font-family: "Neulis";
	font-style: italic;
	font-weight: 500;
	font-size: 4rem;
	margin: 0;
	color: var(--dark-blue, #101820);
}

/* Grille reprise du bloc "projectlist" — mêmes noms de classes, y
   compris .project_list__description avec underscore (typo d'origine
   conservée volontairement), pour rester compatible avec le hover
   mask de single-projet.js. */
.project-list__items {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.project-list__col {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.project-list__item {
	cursor: pointer;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}

.project-list__item.is-visible {
	transform: none;
	opacity: 1;
}

.project-list__item-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.2rem;
	border-radius: 20px;
	border: 1px solid #e6e6e6;
	padding: 1.6rem;
}

.project-list__pictures {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 607 / 341;
}

.project-list__pictures .project-list__image {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	-webkit-mask-image: var(--sprite-mask);
	mask-image: var(--sprite-mask);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 7100% 100%;
	mask-size: 7100% 100%;
	-webkit-mask-position: 100% center;
	mask-position: 100% center;
}

.project-list__pictures .project-list__cover {
	position: relative;
	height: 100%;
	display: block;
	object-fit: cover;
}

.project-list__content .project-list__name {
	font-size: 20px;
	font-weight: 700;
	line-height: 32px;
}

.project-list__content .project_list__description {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.project-list__content .project_list__description .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #08b9e0;
	flex-shrink: 0;
}

.wp-block-pullquote {
	padding: unset;
	margin: unset;
	color: #999999;
	text-align: unset;
	font-weight: 400;
	line-height: 24px;
}

@media (min-width: 992px) {
	.project-list__items {
		flex-direction: row;
		gap: 6.4rem;
	}

	.project-list__col {
		flex: 1;
		gap: 6.4rem;
	}

	/* Décalage réduit par rapport au bloc "projectlist" d'origine
	   (12rem) : cette section affiche généralement moins d'items
	   (4 par défaut), un décalage aussi marqué déséquilibrerait la mise
	   en page. Ajuste si besoin. */
	.project-list__col--right {
		margin-top: 6rem;
	}
}

@media (max-width: 767px) {
	.sgl-projet-autres {
		padding: 56px 0;
	}
}