/* ==========================================================================
   Shortcode [valiseo_realisations] — Grille filtrée des réalisations
   v1.0.8 — hero + double filtre centré
   ========================================================================== */

/* ── Hero bloc réalisations ──────────────────────────────────────────────── */
.vs-reals__hero {
	text-align: center;
	padding: 64px 24px 48px;
}

.vs-reals__hero-label {
	display: inline-block;
	font-family: 'Oswald', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #fb8500;
	margin-bottom: 16px;
}

.vs-reals__hero-titre {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.1;
	margin: 0 0 16px;
}

.vs-reals__hero-sous {
	font-family: 'Lato', sans-serif;
	font-size: 1.05rem;
	color: #888;
	margin: 0 auto;
	max-width: 560px;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.vs-reals {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 72px;
}

/* ── Wrapper des deux lignes de filtres ──────────────────────────────────── */
.vs-reals__filtres-wrap {
	margin-bottom: 40px;
}

/* ── Ligne de filtres — centrée ─────────────────────────────────────────── */
.vs-reals__filtre-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.vs-reals__filtre-label {
	font-family: 'Oswald', sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #888888;
	white-space: nowrap;
	flex-shrink: 0;
	padding-bottom: 1px; /* alignement visuel avec les boutons */
}

/* ── Ligne de filtres (format ET secteur partagent le même style) ────────── */
.vs-reals__filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	border-bottom: 1px solid #e0e0e0;
	flex: 0 0 auto; /* ne prend que la largeur de son contenu */
}

.vs-reals__filtres--format {
	margin-bottom: 0;
}

.vs-reals__filtres--secteur {
	margin-top: 0;
}

.vs-reals__filtre {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 14px 0;
	margin-bottom: -1px; /* chevauchement sur la bordure basse */
	font-family: 'Lato', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #555;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.2s ease;
	white-space: nowrap;
	outline: none;
}

.vs-reals__filtre:hover {
	background: transparent !important;
	box-shadow: none !important;
	transform: scale(1.05);
}

/* Suppression du style :focus d'Astra (fond orange après clic) */
.vs-reals__filtre:focus,
.vs-reals__filtre:focus-visible,
.vs-reals__filtre:active {
	background: transparent !important;
	box-shadow: none !important;
	color: #555;
	transform: none;
}

.vs-reals__filtre.is-active,
.vs-reals__filtre.is-active:focus,
.vs-reals__filtre.is-active:focus-visible,
.vs-reals__filtre.is-active:active {
	background: transparent !important;
	box-shadow: none !important;
	color: #fb8500;
	border-bottom-color: #fb8500;
}

/* ── Grille ─────────────────────────────────────────────────────────────── */
.vs-reals__grille {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* ── Tuile ──────────────────────────────────────────────────────────────── */
.vs-reals__tuile {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	text-decoration: none;
	background: #111;
}

/* Masquage par filtre */
.vs-reals__tuile.is-hidden {
	display: none;
}

/* Masquage par chargement progressif */
.vs-reals__tuile.is-lazy-hidden {
	display: none;
}

/* Fade-in lors de la révélation par "Voir plus" */
@keyframes vs-reals-fadein {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0);   }
}

.vs-reals__tuile.is-fade-in {
	animation: vs-reals-fadein 0.35s ease both;
}

/* ── Badge multi-films ───────────────────────────────────────────────────── */
.vs-reals__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.58);
	color: #ffffff;
	font-family: 'Lato', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	pointer-events: none;
	white-space: nowrap;
}

/* ── Image de fond ───────────────────────────────────────────────────────── */
.vs-reals__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	/* Zoom permanent de 33% pour masquer les bandes noires */
	transform: scale(1.33);
	transition: transform 0.45s ease;
}

.vs-reals__tuile:hover .vs-reals__bg {
	transform: scale(1.39);
}

/* ── Overlay sombre progressif ───────────────────────────────────────────── */
.vs-reals__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(0, 0, 0, 0.40) 55%,
		transparent 100%
	);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 2px !important;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vs-reals__tuile:hover .vs-reals__overlay {
	opacity: 1;
}

/* Client (ligne principale, Oswald orange) */
.vs-reals__client {
	font-family: 'Oswald', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: #fb8500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.1;
	margin: 0 !important;
	padding: 0 !important;
}

/* Titre projet (Lato blanc) */
.vs-reals__titre {
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 !important;
	padding: 0 !important;
}

/* Catégorie (Lato blanc, petit, espacé) */
.vs-reals__cat {
	font-family: 'Lato', sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.80);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 !important;
	padding: 0 !important;
}

/* ── Bouton "Voir plus" ─────────────────────────────────────────────────── */
.vs-reals__voir-plus-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.vs-reals__voir-plus {
	background: transparent;
	border: 2px solid #fb8500;
	color: #fb8500;
	font-family: 'Lato', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 40px;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.vs-reals__voir-plus:hover {
	background: #fb8500;
	color: #ffffff;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.vs-reals__grille {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.vs-reals {
		padding: 0 16px 48px;
	}

	/* Ligne de filtres : aligne à gauche en mobile pour éviter le clipping
	   du débordement symétrique causé par justify-content: center */
	.vs-reals__filtre-row {
		justify-content: flex-start;
	}

	/* Cache le label "Format :" / "Secteur :" sur mobile (trop d'espace perdu) */
	.vs-reals__filtre-label {
		display: none;
	}

	/* Les deux lignes de filtres passent en scroll horizontal sur mobile */
	.vs-reals__filtres {
		flex: 1;
		max-width: 100%;
		gap: 0 16px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.vs-reals__filtres::-webkit-scrollbar {
		display: none;
	}

	.vs-reals__filtre {
		font-size: 14px;
		padding: 12px 0;
	}

	.vs-reals__grille {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.vs-reals__client {
		font-size: 15px;
	}
}
