/* ================================================================
   Page "Serveur non disponible" — server-down.css
   Chargée dans index.html, active uniquement via #srv-page
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#srv-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    background: #0d1b2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.srv-logo {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 44px;
}

/* ── Carte centrale ─────────────────────────────────────────── */
.srv-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 54px;
    max-width: 500px;
    width: 92%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    text-align: center;
    will-change: opacity;
    animation: srvCardIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes srvCardIn {
    from { opacity: 0; translate: 0 24px; }
    to   { opacity: 1; translate: 0 0;    }
}

/* ── Badge statut ───────────────────────────────────────────── */
.srv-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.srv-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    will-change: opacity;
    animation: srvBlink 1.1s ease infinite;
}

@keyframes srvBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .2; }
}

/* ── Texte ──────────────────────────────────────────────────── */
.srv-card h1 {
    font-size: 25px;
    font-weight: 800;
    color: #0d1b2a;
    margin-bottom: 10px;
    line-height: 1.25;
}

.srv-card > p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 26px;
}

/* ── Étapes ─────────────────────────────────────────────────── */
.srv-steps {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 26px;
    text-align: left;
}

.srv-steps h3 {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.srv-step {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 11px;
}

.srv-step:last-child { margin-bottom: 0; }

.srv-num {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0d1b2a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.srv-step p {
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}

.srv-step code {
    background: #e8f5ee;
    color: #166534;
    font-family: monospace;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 5px;
}

/* ── Bas de carte ───────────────────────────────────────────── */
.srv-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.srv-timer {
    font-size: 12px;
    color: #94a3b8;
}

.srv-timer b { color: #475569; }

.srv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #1e6b3f;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, translate .1s;
}

.srv-btn:hover  { background: #175730; translate: 0 -1px; }
.srv-btn:active { translate: 0 0; }
.srv-btn:disabled { opacity: .55; cursor: not-allowed; translate: 0 0; }

.srv-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Pied de page ───────────────────────────────────────────── */
.srv-footer {
    margin-top: 30px;
    font-size: 11px;
    color: rgba(255, 255, 255, .18);
    letter-spacing: .06em;
}
