/* Smart App Banner */
.smart-app-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e1e4e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.smart-app-banner--visible {
    opacity: 1;
    transform: translateY(0);
}

.smart-app-banner--hidden {
    opacity: 0;
    transform: translateY(-100%);
}

.smart-app-banner__container {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    max-width: 100%;
    position: relative;
}

.smart-app-banner__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.smart-app-banner__close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #666;
}

.smart-app-banner__close:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.smart-app-banner__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-right: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-app-banner__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-app-banner__info {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

.smart-app-banner__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-app-banner__subtitle {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-app-banner__button {
    flex-shrink: 0;
    padding: 8px 20px;
    background: #007aff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    margin-right: 30px;
}

.smart-app-banner__button:hover {
    background: #0051d5;
}

.smart-app-banner__button:active {
    background: #004fc4;
}

/* Ajustement pour Android (style Material Design) */
@media (max-width: 768px) {
    .smart-app-banner__icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .smart-app-banner__title {
        font-size: 15px;
    }

    .smart-app-banner__subtitle {
        font-size: 12px;
    }

    .smart-app-banner__button {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* Décalage du contenu pour éviter qu'il soit caché par la bannière */
body.has-smart-banner main {
    padding-top: 90px;
}

/* Animation de chargement de l'icône */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.smart-app-banner__icon:empty {
    animation: pulse 1.5s ease-in-out infinite;
}
