/* --- RESET & GLOBAL --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    text-align: center;
    background: #111;
}

a { color: #0ff; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
    background: #111;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    margin: 0 15px;
    font-weight: bold;
}

/* --- PAGE --- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2px 20px 20px;
    background: url("https://assets.storage.infomaniak.website/images/background/et/1-large.jpg") center/cover no-repeat;
    position: relative;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    padding: 20px;
    margin-top: 0;
}

.logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

h1 { font-size: 2em; margin-bottom: 10px; }
h2 {
    font-size: 1.3em;
    font-weight: 300;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hackerScroll 10s linear infinite, rainbow 5s linear infinite;
}

@keyframes hackerScroll {
    0% { opacity: 0; transform: translateX(-100%); }
    10% { opacity: 1; transform: translateX(0); }
    40% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}
@keyframes rainbow {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

.signature-zone { position: relative; z-index: 2; margin-bottom: 15px; text-align: center; }
.signature {
    display: inline-block;
    font-size: 0.9em;
    color: #0f0;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: signatureHack 5s steps(160) infinite;
}
@keyframes signatureHack {
    0% { width: 0; opacity: 0; }
    30% { width: 50%; opacity: 1; }
    50% { width: 100%; opacity: 1; }
    70% { width: 100%; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

.counter { margin-top: 20px; font-size: 1.1em; }

@media (max-width:600px){
    .logo { max-width: 150px; }
    h1 { font-size: 1.7em; }
    h2 { font-size: 1.1em; }
    .content { padding: 10px; }
}
