/* Les couleurs et les formes d'E-Stafette, avec l'accent rouge de Redmine */
@font-face {
    font-family: 'Manrope Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
    --ink: #101010;
    --muted: #5f5b5e;
    --line: #ebe7ea;
    --line-strong: #d9d5d8;
    --row: #faf8f9;
    --accent: #c8372d;
    --link: #a12a22;
    --link-dark: #7d1f19;
    --soft: #fbf3f2;
    --warn-ink: #7a4d00;
    --warn-icon: #a86b00;
    --good: #17663b;
    --focus: #0e7f8f;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--ink);
    font-family: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

a { color: var(--link); font-weight: 700; }
a:hover { color: var(--link-dark); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.input:focus { border-color: var(--focus); outline: 1px solid var(--focus); outline-offset: 0; }

.page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 452px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 16px;
    justify-content: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); }

.card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
}

@media (min-width: 640px) { .card { padding: 32px; } }

h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

p { margin: 0; font-size: 15px; line-height: 1.6; }

.muted { color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 12px; }

.steps {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--soft);
}

.steps-title { font-size: 14px; font-weight: 800; }

.steps ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }

.steps li + li { margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }

.input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 400;
}

.input.key { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 14px; }

.input[aria-invalid='true'] { border-color: var(--warn-icon); }

.error { color: var(--warn-ink); font-weight: 600; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary { min-height: 50px; background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: 0.9; }

.btn-secondary { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.btn-secondary:hover { background: var(--row); }

.who { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

.link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--link);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.link:hover { color: var(--link-dark); text-decoration: underline; }

.copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--row);
}

.copy code {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 14px;
}

.icon-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.icon-button:hover { background: #fff; color: var(--ink); }
.icon-button.done { color: var(--good); }
