:root {
    font-family:
        Inter,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;

    color: #172033;
    background: #f4f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            145deg,
            #eef6fb 0%,
            #f8fafc 55%,
            #edf3f8 100%
        );
}

.shell {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 28px;
}

h1 {
    margin: 5px 0 8px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
}

h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

p {
    line-height: 1.55;
    margin: 0 0 18px;
    color: #526077;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2388b5;
}

.security-badge,
.worker-status {
    padding: 8px 12px;
    border-radius: 999px;
    background: #e6f6ee;
    color: #176b45;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.panel {
    background: rgba(255,255,255,.96);
    border: 1px solid #dde6ef;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow:
        0 10px 30px rgba(28,47,72,.07);
}

.account-panel,
.section-heading,
.certificate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.session-expiry {
    font-size: 13px;
    color: #66758c;
}

.button {
    appearance: none;
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform .08s ease,
        opacity .15s ease;
}

.button:active {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.button.primary {
    background: #167fae;
    color: white;
}

.button.secondary {
    background: #edf3f7;
    color: #1b3448;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.otp-row {
    display: flex;
    gap: 10px;
    max-width: 430px;
}

.otp-input {
    width: 190px;
    font-size: 24px;
    letter-spacing: .25em;
    text-align: center;
    padding: 9px 12px;
    border: 1px solid #cbd8e4;
    border-radius: 9px;
    outline: none;
}

.otp-input:focus {
    border-color: #2388b5;
    box-shadow:
        0 0 0 3px rgba(35,136,181,.13);
}

.status-text {
    min-height: 22px;
    margin-top: 12px;
}

.secret-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.secret-card {
    border: 1px solid #e0e8ef;
    border-radius: 12px;
    padding: 18px;
    background: #fbfdff;
}

.secret-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.item-status {
    font-size: 13px;
    color: #738197;
    margin-bottom: 12px;
}

.secret-value {
    width: 100%;
    padding: 10px 11px;
    margin-bottom: 12px;
    border: 1px solid #d5e0e9;
    border-radius: 8px;
    background: white;
    font-family:
        Consolas,
        "Courier New",
        monospace;
}

.warning {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid #e1a625;
    border-radius: 7px;
    background: #fff8e7;
    color: #5d4a1d;
    line-height: 1.5;
}

.hint {
    margin-top: 13px;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.error {
    color: #a62929;
}

.success {
    color: #176b45;
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1050px);
        padding-top: 24px;
    }

    .header,
    .account-panel,
    .section-heading,
    .certificate-row {
        flex-direction: column;
        align-items: stretch;
    }

    .secret-grid {
        grid-template-columns: 1fr;
    }

    .otp-row {
        flex-direction: column;
    }

    .otp-input {
        width: 100%;
    }

    .security-badge {
        align-self: flex-start;
    }
}

.install-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dce6ef;
    border-radius: 12px;
    background: #f8fbfd;
}

.install-code {
    margin: 7px 0 5px;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #172033;
}

@media (max-width: 720px) {
    .install-code-box {
        flex-direction: column;
        align-items: stretch;
    }

    .install-code {
        font-size: 20px;
    }
}
.prep-progress {
    margin-top: 20px;
}

.prep-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edf3;
}

.prep-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: #2388b5;
    transition: width .6s ease;
}

.prep-progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #66758c;
}

.otp-information {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.info-card {
    padding: 20px;
    border: 1px solid #dce6ef;
    border-radius: 12px;
    background: #f8fbfd;
}

.info-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    color: #526077;
    line-height: 1.55;
}

.info-card li + li {
    margin-top: 7px;
}

.important-card {
    background: #fff9eb;
    border-color: #ead79d;
}

.technical-note {
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid #ead79d;
    font-size: 13px;
    color: #5d4a1d;
}

@media (max-width: 850px) {
    .otp-information {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Récupération du permalink
   ========================================================= */

.recovery-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
}

.recovery-input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.recovery-input:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
}

@media (max-width: 700px) {
    .recovery-row {
        flex-direction: column;
        align-items: stretch;
    }
}
