/* ═══════════════════════════════════════════════════════════════
   wily_banner.css — Bannières Wily (Desktop Notice + Install)
   ═══════════════════════════════════════════════════════════════ */

/* ── Bannière Desktop (haut de page) ── */
#wily-banner-desktop {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #B11226 0%, #d41a30 100%);
    color: #fff;
    padding: 10px 16px;
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 16px rgba(177, 18, 38, 0.35);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#wily-banner-desktop.show {
    transform: translateY(0);
}

#wily-banner-desktop .wb-desktop-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

#wily-banner-desktop .wb-desktop-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

#wily-banner-desktop .wb-desktop-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#wily-banner-desktop .wb-desktop-text {
    flex: 1;
    min-width: 0;
}

#wily-banner-desktop .wb-desktop-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 1px;
}

#wily-banner-desktop .wb-desktop-sub {
    font-size: 11px;
    opacity: 0.85;
}

#wily-banner-desktop .wb-desktop-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#wily-banner-desktop .wb-btn-primary {
    padding: 7px 16px;
    border: none;
    border-radius: 20px;
    background: #fff;
    color: #B11226;
    font-weight: 700;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
}

#wily-banner-desktop .wb-btn-primary:hover {
    opacity: 0.9;
}

#wily-banner-desktop .wb-btn-dismiss {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#wily-banner-desktop .wb-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ── Bannière Installation Mobile (bas de page) ── */
#wily-banner-install {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #0f172a;
    color: #fff;
    padding: 16px 18px 20px;
    font-family: 'Poppins', -apple-system, sans-serif;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#wily-banner-install.show {
    transform: translateY(0);
}

#wily-banner-install .wb-install-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

#wily-banner-install .wb-install-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #B11226, #d41a30);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#wily-banner-install .wb-install-title {
    font-weight: 700;
    font-size: 14px;
    flex: 1;
}

#wily-banner-install .wb-install-body {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 14px;
    padding-left: 52px;
}

#wily-banner-install .wb-install-body strong {
    color: #fbbf24;
    font-weight: 600;
}

#wily-banner-install .wb-install-actions {
    display: flex;
    gap: 10px;
    padding-left: 52px;
}

#wily-banner-install .wb-btn-install {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #B11226, #d41a30);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}

#wily-banner-install .wb-btn-install:hover {
    opacity: 0.9;
}

#wily-banner-install .wb-btn-install-dismiss {
    padding: 11px 18px;
    border: 1.5px solid #334155;
    border-radius: 12px;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

#wily-banner-install .wb-btn-install-dismiss:hover {
    border-color: #64748b;
    color: #e2e8f0;
}

/* ── Animation d'entrée ── */
@keyframes wilyBannerSlideIn {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes wilyBannerSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ── Media Queries ── */
@media (max-width: 480px) {
    #wily-banner-desktop .wb-desktop-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #wily-banner-desktop .wb-desktop-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {

    /* Sur desktop, la bannière install ne s'affiche pas */
    #wily-banner-install {
        display: none !important;
    }
}