/* WattNext Groupe Silicéo — panneau du simulateur (site décalé). */
:root { --wng-w: 50vw; --wng-pw: min(100vw, max(var(--wng-w), 620px)); --wng-ease: cubic-bezier(.22, 1, .36, 1); --wng-dur: .52s; }

html.wng-lock, html.wng-lock body { overflow: hidden; }

/* Le contenu du thème glisse vers la gauche. */
.wng-push { transition: transform var(--wng-dur) var(--wng-ease), filter var(--wng-dur) ease; }
html.wng-open .wng-push { transform: translateX(calc(var(--wng-sbw, 0px) - var(--wng-pw))); }
html.wng-open .fab { opacity: 0; pointer-events: none; transition: opacity .2s; }

.wng-scrim {
	position: fixed; inset: 0; z-index: 100040; background: rgba(4, 22, 32, .5);
	opacity: 0; transition: opacity var(--wng-dur) ease; cursor: pointer;
}
html.wng-open .wng-scrim { opacity: 1; }

.wng-panel {
	position: fixed; top: 0; right: 0; z-index: 100050;
	width: var(--wng-pw); height: 100vh; height: 100dvh;
	display: flex; flex-direction: column; background: #fff;
	transform: translateX(100%); transition: transform var(--wng-dur) var(--wng-ease);
	box-shadow: -24px 0 60px rgba(11, 36, 51, .28);
	font-family: var(--wp--preset--font-family--body, "Figtree", "Segoe UI", system-ui, sans-serif);
}
html.wng-open .wng-panel { transform: none; }
.wng-panel[hidden], .wng-scrim[hidden] { display: none; }

.wng-panel-head {
	flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px 0 clamp(20px, 3vw, 44px);
	background: #0B2433; color: #fff; position: relative;
}
.wng-panel-title { font-family: var(--wp--preset--font-family--display, "Outfit", system-ui, sans-serif); font-weight: 600; font-size: 17px; flex: 1; }
.wng-panel-title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #F9B104; margin-right: 10px; vertical-align: 1px; }
.wng-panel-close {
	width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.wng-panel-close:hover, .wng-panel-close:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.wng-panel-grip { display: none; }

.wng-panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wng-panel-body .wng-app { border: 0; border-radius: 0; box-shadow: none; max-width: none; min-height: 100%; }
.wng-panel-body .wng-form { max-width: 1040px; margin: 0 auto; }
.wng-panel-loading { padding: 60px 24px; text-align: center; color: #557083; font-size: 16px; }
.wng-panel-spin {
	display: block; width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
	border: 3px solid #EEF3F7; border-top-color: #F9B104; animation: wngSpin .8s linear infinite;
}
@keyframes wngSpin { to { transform: rotate(360deg); } }

/* Tablette */
@media (max-width: 1099px) { :root { --wng-w: 90vw !important; } }

/* Mobile : fiche qui monte du bas, le site recule. */
@media (max-width: 767px) {
	html.wng-open .wng-push {
		transform: scale(.93);
		transform-origin: 50% var(--wng-oy, 0);
		filter: brightness(.9);
	}
	.wng-panel {
		top: auto; bottom: 0; left: 0; right: 0; width: 100%;
		height: 92vh; height: 92dvh; border-radius: 18px 18px 0 0; overflow: hidden;
		transform: translateY(100%); box-shadow: 0 -18px 50px rgba(11, 36, 51, .3);
	}
	.wng-panel.is-dragging { transition: none; }
	.wng-panel-head { height: 58px; padding-left: 20px; touch-action: none; }
	.wng-panel-grip {
		display: block; position: absolute; top: 7px; left: 50%; width: 42px; height: 5px; margin-left: -21px;
		border-radius: 99px; background: rgba(255, 255, 255, .45);
	}
	.wng-panel-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.wng-push, .wng-panel, .wng-scrim { transition: none !important; }
}
