@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --bg: #323437;
    --bg-alt: #2c2e31;
    --bg-hover: #3c3e41;
    --text: #d1d0c5;
    --muted: #646669;
    --accent: #e2b714;
    --radius: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    z-index: 100;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Roboto Mono', monospace;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

main.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

h1 {
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
}
h1 .accent { color: var(--accent); }

.subtitle {
    color: var(--muted);
    margin: 0 0 3rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

input[type="text"] {
    width: 80%;
    padding: 15px;
    font-size: 1.2rem;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--text);
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}
input[type="text"]:focus {
    background: var(--bg-hover);
    border-color: var(--accent);
    outline: none;
}
input[type="text"]::placeholder { color: var(--muted); }

button {
    padding: 12px 30px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    border: none;
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--bg);
    cursor: pointer;
    transition: background 0.2s;
}
button:hover { background: var(--text); }
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

nav.liens {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--accent); }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    input[type="text"] { width: 100%; font-size: 1rem; }
}
