/**
 * ==========================================================
 * ALPHÉA SUITE
 * Page Header Premium V2
 * ==========================================================
 */

body.alphea-v2 .alphea-page-header-premium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 26px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 84% 12%,
            rgba(59, 130, 246, .17),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .99),
            rgba(248, 250, 252, .97)
        );
    box-shadow:
        0 24px 60px rgba(15, 23, 42, .09),
        0 2px 8px rgba(15, 23, 42, .04);
}

body.alphea-v2 .alphea-page-header-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(37, 99, 235, .07) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(37, 99, 235, .055) 1px,
            transparent 1px
        );
    background-size: 34px 34px;
    mask-image:
        linear-gradient(
            to left,
            rgba(0, 0, 0, .75),
            transparent 64%
        );
}

body.alphea-v2 .alphea-page-header-premium-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    z-index: -1;
    width: 360px;
    height: 360px;
    pointer-events: none;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, .18),
            rgba(96, 165, 250, .08) 42%,
            transparent 70%
        );
    filter: blur(4px);
}

body.alphea-v2 .alphea-page-header-premium-main {
    padding: 25px 28px 22px;
}

body.alphea-v2 .alphea-page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .01em;
}

body.alphea-v2 .alphea-page-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition:
        color .18s ease,
        transform .18s ease;
}

body.alphea-v2 .alphea-page-breadcrumb a:hover {
    color: #2563eb;
}

body.alphea-v2 .alphea-page-breadcrumb span[aria-current="page"] {
    color: #334155;
}

body.alphea-v2 .alphea-page-header-premium-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

body.alphea-v2 .alphea-page-header-premium-copy {
    min-width: 0;
    max-width: 760px;
}

body.alphea-v2 .alphea-page-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 11px;
    border: 1px solid rgba(37, 99, 235, .15);
    border-radius: 999px;
    background: rgba(239, 246, 255, .92);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

body.alphea-v2 .alphea-page-module-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, .11);
}

body.alphea-v2 .alphea-page-header-premium h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 850;
    letter-spacing: -.042em;
    line-height: 1.08;
}

body.alphea-v2 .alphea-page-header-premium p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

body.alphea-v2 .alphea-page-header-premium-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

body.alphea-v2 .alphea-page-premium-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease;
}

body.alphea-v2 .alphea-page-premium-action:hover {
    transform: translateY(-1px);
}

body.alphea-v2 .alphea-page-premium-action.is-primary {
    border-color: rgba(29, 78, 216, .3);
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );
    color: #fff !important;
    box-shadow: 0 12px 25px rgba(37, 99, 235, .23);
}

body.alphea-v2 .alphea-page-premium-action.is-primary:hover {
    box-shadow: 0 16px 32px rgba(37, 99, 235, .3);
}

body.alphea-v2 .alphea-page-premium-action.is-secondary {
    border-color: #dbe3ef;
    background: rgba(255, 255, 255, .92);
    color: #334155 !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .055);
}

body.alphea-v2 .alphea-page-premium-action.is-secondary:hover {
    border-color: #bfdbfe;
    background: #fff;
    color: #1d4ed8 !important;
    box-shadow: 0 11px 22px rgba(15, 23, 42, .085);
}

body.alphea-v2 .alphea-page-premium-action.is-ghost {
    border-color: rgba(148, 163, 184, .2);
    background: rgba(248, 250, 252, .72);
    color: #475569 !important;
}

body.alphea-v2 .alphea-page-premium-action.is-danger {
    border-color: rgba(239, 68, 68, .18);
    background: #fff1f2;
    color: #be123c !important;
}

body.alphea-v2 .alphea-page-premium-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
}

body.alphea-v2 .alphea-page-premium-action-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.alphea-v2 .alphea-page-header-premium-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 28px;
    border-top: 1px solid rgba(226, 232, 240, .92);
    background: rgba(248, 250, 252, .7);
    color: #64748b;
    font-size: 11px;
    font-weight: 720;
}

body.alphea-v2 .alphea-page-header-premium-status > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
}

body.alphea-v2 .alphea-page-header-premium-status svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*
 * Ancienne navigation secondaire neutralisée uniquement dans
 * le module Immeuble. La sidebar universelle reste visible.
 */
body.alphea-v2 .alphea-module-navigation.is-retired,
body.alphea-v2 [data-alphea-retired-module-navigation] {
    display: none !important;
}

html[data-theme="dark"]
body.alphea-v2 .alphea-page-header-premium,
body.alphea-dark
.alphea-v2 .alphea-page-header-premium {
    border-color: rgba(148, 163, 184, .16);
    background:
        radial-gradient(
            circle at 84% 12%,
            rgba(59, 130, 246, .19),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(15, 23, 42, .98),
            rgba(17, 28, 48, .97)
        );
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

html[data-theme="dark"]
body.alphea-v2 .alphea-page-header-premium h1,
body.alphea-dark
.alphea-v2 .alphea-page-header-premium h1 {
    color: #f8fafc;
}

html[data-theme="dark"]
body.alphea-v2 .alphea-page-header-premium p,
body.alphea-dark
.alphea-v2 .alphea-page-header-premium p {
    color: #94a3b8;
}

html[data-theme="dark"]
body.alphea-v2 .alphea-page-header-premium-status,
body.alphea-dark
.alphea-v2 .alphea-page-header-premium-status {
    border-top-color: rgba(148, 163, 184, .12);
    background: rgba(15, 23, 42, .46);
}

@media (max-width: 1000px) {
    body.alphea-v2 .alphea-page-header-premium-content {
        align-items: flex-start;
        flex-direction: column;
    }

    body.alphea-v2 .alphea-page-header-premium-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 680px) {
    body.alphea-v2 .alphea-page-header-premium {
        border-radius: 22px;
    }

    body.alphea-v2 .alphea-page-header-premium-main {
        padding: 21px 20px 19px;
    }

    body.alphea-v2 .alphea-page-breadcrumb {
        margin-bottom: 17px;
    }

    body.alphea-v2 .alphea-page-header-premium h1 {
        font-size: 29px;
    }

    body.alphea-v2 .alphea-page-header-premium-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.alphea-v2 .alphea-page-premium-action {
        width: 100%;
    }

    body.alphea-v2 .alphea-page-header-premium-status {
        padding: 9px 20px;
    }
}
