/* ============================================================
 * Driver & Butler — PWA Install UI
 * Bannière, modale guide, toast succès
 * ============================================================ */

/* ── Bannière install (slide depuis le bas) ── */
#db-pwa-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #1a2e3f;
    border-top: 2px solid #BD9D70;
    padding: 14px 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    font-family: 'Montserrat', sans-serif;
}

#db-pwa-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#db-pwa-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

#db-pwa-logo {
    width: 44px; height: 44px;
    background: #BD9D70;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

#db-pwa-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

#db-pwa-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

#db-pwa-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#db-pwa-btn-install {
    padding: 10px 22px;
    background: #BD9D70;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
#db-pwa-btn-install:hover { background: #d4b98a; transform: translateY(-1px); }

#db-pwa-btn-close {
    width: 32px; height: 32px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
#db-pwa-btn-close:hover { border-color: #BD9D70; color: #BD9D70; }

/* ── Overlay modal ── */
#db-pwa-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 16px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Montserrat', sans-serif;
}

#db-pwa-modal {
    background: #1a2e3f;
    border: 1px solid rgba(189,157,112,0.3);
    border-radius: 20px;
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.pwa-guide-icon {
    font-size: 48px;
    margin-bottom: 14px;
}

#db-pwa-modal h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 28px;
}

.pwa-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.pwa-step-n {
    width: 28px; height: 28px;
    background: #BD9D70;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}

.pwa-step strong { color: #fff; }

.pwa-ios-share {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 14px;
    vertical-align: middle;
    margin: 0 2px;
}

.btn-modal-ok {
    width: 100%;
    padding: 14px;
    background: #1a9e5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-modal-ok:hover { background: #17b869; }

/* ── Toast succès ── */
#db-pwa-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: #1a9e5c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(26,158,92,0.4);
    white-space: nowrap;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #db-pwa-inner { flex-wrap: wrap; }
    #db-pwa-sub   { display: none; }
    #db-pwa-btn-install { padding: 10px 16px; font-size: 10px; }
}
