/* Hotel SmartUp - Onboarding. Toutes les nouvelles classes sont préfixées ob-. */

html.ob-no-feedback .hsu-kpi-row {
    display: none !important;
}

.ob-banner,
.ob-banner * {
    box-sizing: border-box;
}

.ob-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin: 0 0 20px;
    padding: 24px 30px;
    overflow: hidden;
    border: 1px solid #d8e7fb;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff 0%, #fbfdff 42%, #f4f8ff 100%);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .05);
    color: #0f172a;
}

.ob-banner--onboarding {
    display: block;
}

.ob-banner::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    content: "";
}

.ob-banner__glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .09), transparent 70%);
    pointer-events: none;
}

.ob-banner__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
}

.ob-banner__visual {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 205px;
    align-items: center;
    justify-content: center;
}

.ob-banner__visual img {
    display: block;
    width: 205px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, .08));
}

.ob-banner__content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.ob-banner__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ob-banner__eyebrow {
    margin: 0 0 4px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ob-banner h2 {
    margin: 0;
    color: #163b71;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 700;
    line-height: 1.2;
}

.ob-banner__intro {
    margin: 8px 0 15px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.ob-banner__guide {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 34px;
    margin-top: 4px;
    padding: 6px 10px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(191, 216, 255, .72);
    border-radius: 12px;
    background: rgba(255, 255, 255, .66);
    color: #2563eb !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ob-banner__guide:hover {
    border-color: #9cc5ff;
    background: #fff;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .08);
    text-decoration: none !important;
}

.ob-banner__guide:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .22);
    outline-offset: 2px;
}

.ob-banner__guide-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.ob-banner__guide-icon svg {
    width: 17px;
    height: 17px;
}

.ob-progress__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
    color: #475569;
    font-size: 13px;
}

.ob-progress__summary strong {
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 700;
}

.ob-progress {
    width: 100%;
    height: 10px;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dfeaf8;
}

.ob-progress span {
    display: block;
    width: var(--ob-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    box-shadow: 0 0 16px rgba(37, 99, 235, .25);
    transition: width .45s ease;
}

.ob-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--ob-step-count), minmax(0, 1fr));
    gap: 12px;
}

.ob-step {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 160px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #d9e6f7;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ob-step:hover {
    transform: translateY(-2px);
    border-color: #a8cbfb;
    box-shadow: 0 10px 24px rgba(59, 130, 246, .08);
}

.ob-step--complete {
    border-color: #ccebdc;
    background: linear-gradient(145deg, #fff 0%, #f4fbf7 100%);
}

.ob-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ob-step__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
}

.ob-step__icon svg {
    width: 19px;
    height: 19px;
}

.ob-step--complete .ob-step__icon {
    background: #e9f8f0;
    color: #15803d;
}

.ob-step__state {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ob-step--complete .ob-step__state {
    color: #15803d;
}

.ob-step h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ob-step p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.ob-step__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.ob-action-form {
    display: inline-flex;
    margin: 0;
}

.ob-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ob-button:hover {
    transform: translateY(-1px);
}

.ob-button--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    box-shadow: 0 7px 15px rgba(37, 99, 235, .18);
}

.ob-button--quiet {
    background: #eef6ff;
    color: #1d4ed8 !important;
}

.ob-button--text {
    min-height: 28px;
    padding: 0 3px;
    background: transparent;
    color: #64748b !important;
    font-size: 10px;
}

.ob-button[disabled] {
    cursor: wait;
    opacity: .62;
}

.ob-notice {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
}

.ob-notice--success {
    border: 1px solid #bbebd0;
    background: #f0fdf4;
    color: #166534;
}

.ob-notice--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ob-banner--success {
    justify-content: flex-start;
    border-color: #bfe7d1;
    background: linear-gradient(135deg, #fff 0%, #f4fbf7 100%);
}

.ob-banner--success::after {
    background: linear-gradient(180deg, #4ade80, #16a34a);
}

.ob-success__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #e8f8ef;
    color: #15803d;
}

.ob-success__icon svg {
    width: 34px;
    height: 34px;
}

.ob-success__content {
    flex: 1;
}

.ob-success__content p:last-child {
    margin: 7px 0 0;
    color: #526477;
    font-size: 15px;
}

.ob-button--success {
    min-height: 40px;
    padding: 0 20px;
    background: #15803d;
    color: #fff !important;
}

@media (max-width: 1200px) {
    .ob-banner {
        align-items: flex-start;
        padding: 24px;
    }

    .ob-banner__visual {
        flex-basis: 170px;
    }

    .ob-banner__visual img {
        width: 170px;
    }

    .ob-banner__top {
        align-items: flex-start;
    }

    .ob-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .ob-banner {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }

    .ob-banner__visual {
        flex-basis: auto;
    }

    .ob-banner__top {
        align-items: center;
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .ob-banner__content {
        width: 100%;
    }

    .ob-banner__heading {
        align-items: center;
        flex-direction: column;
        gap: 7px;
    }

    .ob-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ob-progress__summary,
    .ob-step,
    .ob-step__actions {
        text-align: left;
    }

    .ob-banner--success {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .ob-banner {
        gap: 16px;
        padding: 20px 16px;
        border-radius: 22px;
    }

    .ob-banner__visual img {
        width: 155px;
    }

    .ob-banner__top {
        gap: 16px;
    }

    .ob-banner h2 {
        font-size: 22px;
    }

    .ob-banner__intro {
        font-size: 15px;
    }

    .ob-steps {
        grid-template-columns: 1fr;
    }

    .ob-step {
        min-height: 0;
        padding: 15px;
    }

    .ob-step h3 {
        font-size: 15px;
    }

    .ob-step p {
        font-size: 13px;
    }

    .ob-step__actions,
    .ob-action-form,
    .ob-button {
        width: 100%;
    }

    .ob-button--text {
        min-height: 32px;
    }

    .ob-progress__summary {
        font-size: 12px;
    }

    .ob-banner--success .ob-action-form,
    .ob-banner--success .ob-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ob-progress span,
    .ob-step,
    .ob-button {
        transition: none;
    }
}
