:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b1020;
    color: #e5edf7;
}

* {
    box-sizing: border-box;
}

/* Fond arc-en-ciel anime, comme la vue Synchronisation du player (continuite). */
body {
    min-height: 100svh;
    margin: 0;
    background: #f97316;
    animation: ambient-background 28s ease-in-out infinite;
}

@keyframes ambient-background {
    0%, 100% { background-color: #f97316; }
    20% { background-color: #dc2626; }
    40% { background-color: #7c3aed; }
    60% { background-color: #0891b2; }
    80% { background-color: #16a34a; }
}

.boot-shell {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 28px;
}

/* Panneau minimaliste (verre depoli), aligne sur la vue Synchronisation. */
.boot-panel {
    width: min(540px, 100%);
    padding: 40px;
    border: 0;
    border-radius: 18px;
    background: rgba(9, 12, 22, 0.55);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eyebrow {
    margin: 0 0 8px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.lead {
    max-width: 680px;
    margin: 0 0 4px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
}

/* Infos device: a plat, sans encadres */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 24px 0 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.status-grid div {
    min-width: 0;
    padding: 0;
    background: none;
}

.status-grid span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
}

/* Etapes du boot: timeline verticale (rail) + loaders (coche = fait, spinner =
   en cours). La liste grandit au fur et a mesure (pas d'etapes "a venir"). */
.steps {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 34px;
    color: #64748b;
    font-size: 13px;
}

.steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    height: 100%;
    width: 2px;
    background: rgba(148, 163, 184, 0.2);
    z-index: 0;
}

.steps span {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: rgba(9, 12, 22, 0.8);
    position: relative;
    z-index: 1;
}

.steps strong {
    overflow-wrap: anywhere;
    font-weight: 500;
    font-size: 13px;
}

.steps li.is-active {
    color: #e5edf7;
}

.steps li.is-active span {
    border: 2px solid rgba(125, 211, 252, 0.25);
    border-top-color: #7dd3fc;
    background: transparent;
    animation: boot-spin 0.8s linear infinite;
}

.steps li.is-done {
    color: #cbd5e1;
}

.steps li.is-done span {
    border-color: #22c55e;
    background: #22c55e;
}

.steps li.is-done span::after {
    content: "";
    width: 3.5px;
    height: 7px;
    margin-top: -1px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes boot-spin {
    to { transform: rotate(360deg); }
}

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

@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}
