/* LoyaltyHub — front-banner.css
   Banniere d accueil (banner.tpl, hookDisplayLoyaltyHomeBanner).
   Genere depuis front.css — ne pas editer a la main. */
.lh-banner {
    
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: stretch;
    padding: 56px 64px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--lh-brand, #5DBEC4) 0%, color-mix(in srgb, var(--lh-brand, #5DBEC4) 86%, #000) 100%);
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.35);
}
.lh-banner::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto auto;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
}
.lh-banner__promo {
    display: flex;
    flex-direction: column;
    
    justify-content: center;
    gap: 22px;
    min-width: 0;
}
.lh-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    align-self: flex-start;
}
.lh-banner__eyebrow svg {
    width: 18px;
    height: 18px;
}
.lh-banner .lh-banner__title,
.lh-banner h2.lh-banner__title {
    font-size: 2.6rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.01em;
    text-transform: none;
    text-align: left;
    
    hyphens: manual;
    -webkit-hyphens: manual;
    word-break: normal;
    overflow-wrap: break-word;
}
.lh-banner__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lh-banner__perk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.96);
}
.lh-banner__perk strong {
    color: #ffffff;
    font-weight: 700;
}
.lh-banner__perk-check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.lh-banner__perk-check svg {
    width: 12px;
    height: 12px;
    color: #ffffff;
}
.lh-banner .lh-banner__cta,
.lh-banner a.lh-banner__cta {
    align-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    padding: 14px 26px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--lh-brand, #5DBEC4) !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    cursor: pointer;
}
.lh-banner .lh-banner__cta:hover,
.lh-banner .lh-banner__cta:focus,
.lh-banner a.lh-banner__cta:hover,
.lh-banner a.lh-banner__cta:focus {
    background: #ffffff !important;
    color: var(--lh-brand, #5DBEC4) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(15, 23, 42, 0.4);
    outline: none;
}
.lh-banner .lh-banner__cta svg {
    width: 16px;
    height: 16px;
}
.lh-banner__card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px 28px;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.3);
    min-width: 0;
}
.lh-banner__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.lh-banner__card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}
.lh-banner__card-pill {
    
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--lh-tier-color, #94a3b8) 14%, #ffffff);
    color: color-mix(in srgb, var(--lh-tier-color, #94a3b8) 70%, #0f172a);
    border: 1px solid color-mix(in srgb, var(--lh-tier-color, #94a3b8) 30%, #ffffff);
    white-space: nowrap;
}
.lh-banner__card-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lh-tier-color, #94a3b8);
}
.lh-banner__card-pill.lh-banner__card-pill--demo {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.62);
    border-color: rgba(15, 23, 42, 0.10);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.lh-banner__card-pill--demo .lh-banner__card-pill-dot {
    display: none;
}
.lh-banner__balance {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 2px;
}
.lh-banner__balance-icon {
    color: #f59e0b;
    width: 24px;
    height: 24px;
    
    transform: translateY(2px);
}
.lh-banner__balance-icon svg {
    width: 24px;
    height: 24px;
}
.lh-banner__balance-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1;
}
.lh-banner__balance-label {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 500;
}
.lh-banner__progress {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.lh-banner__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lh-brand, #5DBEC4) 0%, color-mix(in srgb, var(--lh-brand, #5DBEC4) 75%, #fff) 100%);
    border-radius: 999px;
    
    transition: width 2000ms cubic-bezier(0.2, 0.8, 0.3, 1);
    will-change: width;
}
.lh-banner__progress-hint {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
}
.lh-banner__progress-hint strong {
    color: #0f172a;
    font-weight: 700;
}
.lh-banner__progress-hint--max {
    font-weight: 600;
    color: #0f172a;
}
.lh-banner__tiers {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lh-banner__tier {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid transparent;
    transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}
.lh-banner__tier.is-current {
    
    background: color-mix(in srgb, var(--lh-tier-color, #5DBEC4) 8%, #ffffff);
    border-color: color-mix(in srgb, var(--lh-tier-color, #5DBEC4) 55%, #ffffff);
    box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--lh-tier-color, #5DBEC4) 70%, transparent);
}
.lh-banner__tier-icon {
    color: var(--lh-tier-color, #94a3b8);
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: color-mix(in srgb, var(--lh-tier-color, #94a3b8) 12%, #ffffff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 220ms ease;
}
.lh-banner__tier-icon svg {
    width: 18px;
    height: 18px;
}
.lh-banner__tier.is-locked .lh-banner__tier-icon,
.lh-banner__tier.is-unlocked .lh-banner__tier-icon {
    background: color-mix(in srgb, var(--lh-tier-color, #94a3b8) 9%, #ffffff);
}
.lh-banner__tier.is-current .lh-banner__tier-icon {
    background: color-mix(in srgb, var(--lh-tier-color, #5DBEC4) 20%, #ffffff);
}
.lh-banner__tier-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.lh-banner__tier-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.lh-banner__tier-threshold {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.2;
}
.lh-banner__tier-perks {
    font-size: 0.82rem;
    color: #475569;
    text-align: right;
    line-height: 1.35;
    
    max-width: 220px;
}
.lh-banner__tier-perks--muted {
    color: #94a3b8;
    font-style: italic;
}
.lh-banner__card-guest {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

@media (max-width: 960px) {
.lh-banner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
        border-radius: 24px;
    }
.lh-banner__promo {
        justify-content: flex-start;
    }
.lh-banner .lh-banner__title,
    .lh-banner h2.lh-banner__title {
        font-size: 2.1rem !important;
    }
.lh-banner__balance-value {
        font-size: 2.1rem;
    }
}

@media (max-width: 560px) {
.lh-banner {
        padding: 32px 22px;
        border-radius: 20px;
        gap: 26px;
    }
.lh-banner .lh-banner__title,
    .lh-banner h2.lh-banner__title {
        font-size: 1.7rem !important;
    }
.lh-banner__perk {
        font-size: 0.92rem;
    }
.lh-banner .lh-banner__cta,
    .lh-banner a.lh-banner__cta {
        padding: 12px 22px !important;
        font-size: 0.94rem !important;
    }
.lh-banner__card {
        padding: 22px 20px;
        gap: 14px;
    }
.lh-banner__balance-value {
        font-size: 1.9rem;
    }
.lh-banner__tier {
        
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        row-gap: 4px;
    }
.lh-banner__tier-perks {
        grid-column: 1 / -1;
        text-align: left;
        max-width: none;
        padding-left: 52px; 
    }
}

@media (prefers-reduced-motion: reduce) {
.lh-banner__progress-fill {
        transition: none;
    }
}
