/**
 * Styles pour le part depth-gauge
 */

/* Couleur de fond initiale (le JS de depth-gauge peut l'overrider au scroll) */
html,
body {
	background-color: rgb(31, 43, 54);
}

/* Force les conteneurs WordPress à être transparents pour laisser voir le body */
.wp-site-blocks,
.is-layout-flow,
.is-layout-constrained,
.entry-content,
.wp-block-post-content,
.wp-block-group,
.wp-block-template-part,
.wp-block-nemo-hero-page,
.wp-block-nemo-blockquote,
.wp-block-nemo-ways,
.wp-block-nemo-team,
.wp-block-nemo-timeline,
.wp-block-nemo-cta-center,
.wp-block-nemo-hero-actions,
.wp-block-nemo-services,
.wp-block-nemo-references,
.wp-block-nemo-contact-form {
	background-color: transparent !important;
}

/* Permet au hero de déborder sur les sections suivantes */
.wp-site-blocks,
.is-layout-flow,
.is-layout-constrained,
.entry-content,
.wp-block-post-content {
	overflow: visible !important;
}

.depth-gauge {
	position: fixed;
	right: var(--wp--preset--spacing--40, 1.5rem);
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.depth-gauge.visible {
	opacity: 1;
	pointer-events: auto;
}

.depth-gauge__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20, 0.5rem);
}

.depth-gauge__value {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	color: var(--wp--preset--color--biolum, #7fdbff);
	margin: 0;
	text-shadow: 0 0 10px currentColor;
}

.depth-gauge__bar {
	width: 4px;
	height: 120px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.depth-gauge__fill {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(
		to top,
		var(--wp--preset--color--biolum, #7fdbff),
		var(--wp--preset--color--accent, #ef8a7d)
	);
	border-radius: 2px;
	transition: height 0.1s linear;
}

.depth-gauge__zone {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--contrast, #a0bacc);
	margin: 0;
	opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
	.depth-gauge {
		right: var(--wp--preset--spacing--20, 0.5rem);
	}

	.depth-gauge__bar {
		height: 80px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.depth-gauge {
		transition: none;
	}

	.depth-gauge__fill {
		transition: none;
	}
}
