/* ════════════════════════════════════════════════════════════
   TEMPLATE PROJETS — MyProd
   Chargé uniquement sur is_page_template('template-projet.php').
   ════════════════════════════════════════════════════════════ */

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

/* ───────────────────────────────────────────────
   1. HERO — effet "volet" (identique à template-blog.css)
   ─────────────────────────────────────────────── */

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

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

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

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

/* Mêmes couleurs/technique que le footer et les autres hero : le point
   du gradient est repositionné via "at X Y", pas l'élément.
   --spot-x/--spot-y (front) et --spot-x-back/--spot-y-back (back) sont
   posées en JS (template-projet.js). */
.sgl-projet-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-projet-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-projet-hero__inner {
	position: relative;
	z-index: 1;
}

.sgl-projet-hero__title {
	font-family: "Neulis";
	font-style: italic;
	font-weight: 500;
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1.15;
	margin: 0;
}

/* ── Filtres par type de projet — pastilles "liquid glass" ── */

.sgl-projet-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.sgl-projet-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
	backdrop-filter: blur(14px) saturate(180%);
	-webkit-backdrop-filter: blur(14px) saturate(180%);
	color: #fff;
	font-family: Gilmer;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.sgl-projet-filter__count {
	font-size: 10px;
	font-weight: 700;
	opacity: 0.7;
	vertical-align: super;
}

.sgl-projet-filter:hover {
	border-color: rgba(255, 255, 255, 0.5);
}

.sgl-projet-filter.is-active {
	background: var(--accent-blue, #08b9e0);
	border-color: var(--accent-blue, #08b9e0);
	color: #fff;
}

.sgl-projet-filter.is-active .sgl-projet-filter__count {
	opacity: 0.85;
}

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

.sgl-projet-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 60px rgba(0, 0, 0, 0.12);
}

/* Largeur du conteneur : reprise telle quelle du bloc projectlist,
   pour un rendu identique partout où cette liste apparaît. */
.project-list__container {
	width: calc(100% - 16px) !important;
	max-width: unset;
	margin: 0 auto;
}

@media (min-width: 992px) {
	.project-list__container {
		width: calc(100% - 64px) !important;
	}
}

.sgl-projet-grid-wrap {
	position: relative;
}

.sgl-projet-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid var(--grey-2, #e6e6e6);
	border-top-color: var(--accent-blue, #08b9e0);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	animation: sglProjetSpin 0.8s linear infinite;
}

.sgl-projet-loader[aria-hidden="false"] {
	opacity: 1;
}

@keyframes sglProjetSpin {
	to {
		transform: rotate(360deg);
	}
}

#sgl-projet-grid {
	transition: opacity 0.25s ease;
}

#sgl-projet-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.sgl-projet-empty {
	font-family: Gilmer;
	font-size: 16px;
	color: var(--grey-1, #999);
	text-align: center;
	padding: 48px 0;
	margin: 0;
}

/* ── Pagination — boutons pilotés en JS (AJAX), pas de vrais liens ── */

.sgl-projet-pagination-wrap {
	margin-top: 48px;
}

.sgl-projet-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.sgl-projet-pagination__numbers {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.sgl-projet-pagination__btn,
.sgl-projet-pagination__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--grey-2, #e6e6e6);
	background: #fff;
	color: var(--dark-blue, #101820);
	font-family: Gilmer;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sgl-projet-pagination__num {
	width: 40px;
	padding: 0;
}

.sgl-projet-pagination__num.is-active {
	background: var(--accent-blue, #08b9e0);
	border-color: var(--accent-blue, #08b9e0);
	color: #fff;
}

.sgl-projet-pagination__btn:hover:not(:disabled),
.sgl-projet-pagination__num:hover:not(.is-active) {
	border-color: var(--accent-blue, #08b9e0);
}

.sgl-projet-pagination__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ───────────────────────────────────────────────
   3. GRILLE "PROJECTLIST" — repris tel quel du bloc projectlist
   (mêmes noms de classes, y compris .project_list__description avec
   underscore, pour rester compatible avec le hover mask de template-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;
	position: relative;
	display: inline-block;
}

.project-list__content .project-list__name::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: #08b9e0;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}

@media (hover: hover) {
	.project-list__item:hover .project-list__name::after {
		transform: scaleX(1);
		transform-origin: left center;
	}
}

.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;
	}

	.project-list__col--right {
		margin-top: 12rem;
	}
}

/* ───────────────────────────────────────────────
   4. RESPONSIVE (hero)
   ─────────────────────────────────────────────── */

@media (max-width: 991px) {
	.sgl-projet-hero__pin {
		padding: 160px 0 48px;
	}

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