html,
body {
	height: 100%;
}
body {
	margin: 0;
	display: flex;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	background-color: #222;
}

/* ..................................................... */
.TextGlitch {
	--TextGlitch-blendSize: .08em;
	--TextGlitch-blendColorA: #77f8;
	--TextGlitch-blendColorB: #ff68;
	
	position: relative;
	color: #fff;
	line-height: 1em;
	letter-spacing: -.1ch;
	font-size: 8vw;
	font-family: "Fira Code", monospace;
}

.TextGlitch::after {
	display: none;
    content: "";
    position: absolute;
    left: 100%;
    bottom: 0;
    width: .7ch;
    height: 1em;
    margin-left: .35ch;
    border-radius: 2px;
    background-color: currentColor;
    animation: cursorAnim 1s ease infinite;
}
@keyframes cursorAnim {
	0% { opacity: .5; }
	45% { opacity: .5; }
	55% { opacity: 0; }
	100% { opacity: 0; }
}

.TextGlitch-clip {
	position: relative;
	display: flex;
	align-items: baseline;
}
.TextGlitch-clip + .TextGlitch-clip {
	position: absolute;
	top: 0;
}
.TextGlitch:not( .TextGlitch-blended ) .TextGlitch-clip + .TextGlitch-clip {
	display: none;
}

.TextGlitch-word {
	margin: 0;
	white-space: nowrap;
}

.TextGlitch-blend {
	position: absolute;
	top: 0;
	opacity: 0;
	transition: .1s;
	transition-property: opacity;
}
.TextGlitch-blendA {
	color: var( --TextGlitch-blendColorA );
	margin: calc( var( --TextGlitch-blendSize ) * -1 ) 0 0 var( --TextGlitch-blendSize );
	mix-blend-mode: darken;
}
.TextGlitch-blendB {
	color: var( --TextGlitch-blendColorB );
	margin: var( --TextGlitch-blendSize ) 0 0 calc( var( --TextGlitch-blendSize ) * -1 );
	mix-blend-mode: color-burn;
}
.TextGlitch-blended .TextGlitch-blend {
	opacity: .4;
}

/* ── Signature ─────────────────────────────────────────── */
.signature {
	position: fixed;
	bottom: 8px;
	left: 0;
	width: 100%;
	text-align: center;
	font-family: "Fira Code", monospace;
	font-size: 11px;
	letter-spacing: .12em;
	color: transparent;
	user-select: none;
	cursor: default;
}
.signature.revealed {
	color: rgba(255, 255, 255, .22);
	cursor: pointer;
	animation: sig-glitch .6s ease forwards;
}
@keyframes sig-glitch {
	0%   { color: rgba(255,255,255,0);    transform: translate(0);       text-shadow: none; }
	10%  { color: rgba(119,255,136,.6);   transform: translate(-2px, 0); text-shadow: 2px 0 #ff6688, -2px 0 #77ffff; }
	20%  { color: rgba(255,255,255,.22);  transform: translate(2px, 0);  text-shadow: none; }
	35%  { color: rgba(255,100,200,.5);   transform: translate(-1px, 0); text-shadow: 3px 0 #77f8; }
	50%  { color: rgba(255,255,255,.22);  transform: translate(0);       text-shadow: none; }
	70%  { color: rgba(119,255,255,.4);   transform: translate(1px, 0);  text-shadow: -2px 0 #ff68; }
	100% { color: rgba(255,255,255,.22);  transform: translate(0);       text-shadow: none; }
}

/* ── Modal mot de passe ─────────────────────────────────── */
.pw-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.pw-modal.active {
	display: flex;
}
.pw-box {
	background: #0d0d0d;
	border: 1px solid rgba(119, 255, 136, .25);
	box-shadow: 0 0 30px rgba(119, 255, 136, .08), inset 0 0 20px rgba(0,0,0,.5);
	padding: 2.5em 3.5em;
	display: flex;
	flex-direction: column;
	gap: 1.2em;
	min-width: 300px;
	font-family: "Fira Code", monospace;
}
.pw-label {
	font-size: .95em;
	letter-spacing: .15em;
	color: rgba(119, 255, 136, .7);
}
.pw-input {
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(119, 255, 136, .3);
	color: #fff;
	font-family: "Fira Code", monospace;
	font-size: 1.4em;
	letter-spacing: .5em;
	text-align: center;
	outline: none;
	padding: .3em 0;
	transition: border-color .2s;
}
.pw-input:focus {
	border-bottom-color: rgba(119, 255, 136, .8);
}
.pw-error {
	font-size: .8em;
	letter-spacing: .1em;
	color: rgba(255, 100, 100, .8);
	min-height: 1em;
}
.pw-input.shake {
	animation: pw-shake .35s ease;
}
@keyframes pw-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-7px); }
	40%, 80% { transform: translateX(7px); }
}
.pw-submit {
	background: transparent;
	border: 1px solid rgba(119, 255, 136, .25);
	color: rgba(119, 255, 136, .6);
	font-family: "Fira Code", monospace;
	font-size: .8em;
	letter-spacing: .25em;
	padding: .6em 1.2em;
	cursor: pointer;
	align-self: center;
	transition: border-color .2s, color .2s;
}
.pw-submit:hover, .pw-submit:active {
	border-color: rgba(119, 255, 136, .7);
	color: rgba(119, 255, 136, 1);
}
