* {
    box-sizing: border-box;
    font-family: "Poppins", system-ui, sans-serif;
}

html, body {
    margin: 0;
    height: 100%;
}

.lock-screen {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: linear-gradient(
        130deg,
        #5f9cff,
        #6e68e7,
        #4f8cff
    );
    background-size: 600% 600%;
    animation: gradientFlow 20s ease infinite,
               pulse 6s ease-in-out infinite;

    color: white;
}

/* FOND ANIMÉ */

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.05); }
    100% { filter: brightness(1); }
}

/* ÉCRANS */

.logo-zone,
.pin-panel {
    position: absolute;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* LOGO ACCUEIL */

.logo-zone {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo-zone.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.logo-zone img {
    width: 70vw;
    max-width: 900px;
    max-height: 60vh;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.logo-zone img:hover {
    transform: scale(1.04);
}

.logo-text {
    margin-top: 14px;
    font-size: 1.15rem;
    opacity: 0.9;
}

/* PIN */

.pin-panel {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.pin-panel.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pin-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}

.pin-logo img {
    width: 300px;
    max-width: 65vw;
    margin-bottom: 14px;
    opacity: 0.97;
}

.pin-label {
    font-size: 1.05rem;
    opacity: 0.85;
}

.pin-stars {
    font-size: 2rem;
    letter-spacing: 12px;
    margin-bottom: 24px;
}

/* CLAVIER */

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 88px);
    gap: 16px;
    justify-content: center;
}

.keypad button {
    height: 72px;
    font-size: 1.6rem;
    border-radius: 18px;
    border: none;
    background: rgba(255,255,255,0.18);
    color: white;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.12s ease,
                background 0.12s ease;
}

.keypad button.pressed {
    transform: scale(0.92);
    background: rgba(255,255,255,0.35);
}

.keypad button.alt {
    font-size: 1.4rem;
}