
/* Couleurs : celles de la charte (global.css). Réglages propres à l'en-tête : */
:root {
    --header-height:      64px;
}

.header {
    display: flex;
    align-items: center;
    background: var(--c-surface);
    padding: 0 var(--page-gutter);
    height: var(--header-height);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s, background 0.3s, transform 0.3s ease;
}

@media (max-width: 1024px) {
    .header--hidden {
        transform: translateY(-100%);
    }
}

.header.scrolled {
    background: var(--c-surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}

.header__logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.header__logo-link {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--c-green);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.header__logo-link:hover {
    opacity: 0.8;
}


.header__menu--desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.header__menu--mobile {
    display: none;
}

.header__menu-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--c-muted);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.header__menu-link:hover {
    background: var(--c-green-light);
    color: var(--c-green);
}

.header__menu-icon {
    font-size: var(--text-md);
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.header__menu-link:hover .header__menu-icon {
    opacity: 0.8;
}

.header__menu-text {
    font-size: var(--text-sm);
}

.header__menu-item--active .header__menu-link {
    background: transparent;
    color: var(--c-green);
    font-weight: 600;
}

.header__menu-item--active .header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    border-radius: var(--radius-sm);
    background: var(--c-gold);
}

.header__menu-item--active .header__menu-icon {
    opacity: 0.8;
}

.header__actions {
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.header__avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--c-gold), var(--c-gold-hover));
    color: var(--c-green-dark);
    border-radius: 50%;
    border: 2px solid var(--c-green-light);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {                 /* tablette : l'avatar resterait agrandi une fois son menu refermé */
    .header__avatar:hover {
        transform: scale(1.08);
        box-shadow: var(--ring-gold);
    }
}

.header__avatar-text {
    font-size: var(--text-sm);
    text-transform: uppercase;
    line-height: 1;
}

.header__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.header__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    min-width: 192px;
    padding: 6px;
    margin: 0;
    list-style: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.header__dropdown-link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--c-text);
    font-size: var(--text-md);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.header__dropdown-link:hover {
    background: var(--c-green-light);
    color: var(--c-green);
}

/* Choix du thème (Components/ThemeSwitch.php) : dans le menu de l'avatar et le panneau « Plus » des membres */
.header__dropdown:has(.header__dropdown-theme) {
    min-width: 264px;
}
.header__dropdown-theme {
    margin-top: 4px;
    padding: 10px 8px 8px;
    border-top: 1px solid var(--c-border);
}
.header__dropdown-label {
    margin: 0 6px 8px;
    color: var(--c-subtle);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tab-sheet__theme {
    margin-top: 6px;
    padding-top: 2px;
    border-top: 1px solid var(--c-border);
}
.tab-sheet__theme .tab-sheet__group {
    margin-bottom: 10px;
}
.tab-sheet__theme .theme-switch__btn {
    padding: 12px 10px;
    font-size: var(--text-md);
}

/* Visiteur : bouton de l'en-tête (lune en clair, soleil en sombre) qui ouvre le choix du thème ; refermé par un clic
   à côté ou Échap (header.js). Le panneau se cale à droite des boutons de l'en-tête (.header__actions) */
.theme-menu__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--c-surface-alt);
    color: var(--c-muted);
    font-size: var(--text-xl);
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, color 0.2s;
}
.theme-menu__btn::-webkit-details-marker { display: none; }
.theme-menu__btn i { display: flex; }
.theme-menu[open] .theme-menu__btn {
    background: var(--c-border);
    color: var(--c-text);
}
@media (hover: hover) {                 /* au doigt, le bouton resterait gris une fois le panneau refermé */
    .theme-menu__btn:hover {
        background: var(--c-border);
        color: var(--c-text);
    }
}
.theme-menu__btn:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.theme-menu__icon-dark,
[data-theme="dark"] .theme-menu__icon-light { display: none !important; }
[data-theme="dark"] .theme-menu__icon-dark { display: flex !important; }
.theme-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 999;
    box-sizing: border-box;
    width: min(280px, calc(100vw - 2 * var(--page-gutter)));
    padding: 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.theme-menu__panel .header__dropdown-label {
    margin: 2px 4px 10px;
}

@media (max-width: 1024px) {

        .header__menu--desktop {
        display: none;
    }

        .header__menu--mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--c-surface);
        border-top: 1px solid var(--c-border);
        z-index: 1000;
        box-shadow: var(--shadow-up);
        contain: layout;
        transition: transform 0.3s ease;
    }

    .header__menu--mobile.header__menu--hidden {
        transform: translateY(calc(100% + 40px)); /* + le rond « Créer » qui dépasse de la barre, et son ombre */
    }

    /* Barre des membres : le rond « Créer » dépasse de 24 px au-dessus de la barre ; ce qui se pose juste au-dessus
       d'elle (message, proposition de notifications de l'app) monte d'autant pour ne pas passer dessous */
    html:has(.header__menu-item--create) .toast {
        bottom: calc(60px + 16px + 24px + env(safe-area-inset-bottom));
    }
    html:has(.header__menu-item--create) .app-push-offer {
        bottom: calc(60px + 12px + 24px + env(safe-area-inset-bottom));
    }

    .header__menu--mobile .header__menu-list {
        gap: 0;
        width: 100%;
        height: 100%;
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .header__menu--mobile .header__menu-item {
        flex: 1;
        min-width: 0;
        height: 100%;
    }

    .header__menu--mobile .header__menu-link {
        box-sizing: border-box;
        border-radius: 0;
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        height: 100%;
        width: 100%;
        color: var(--c-subtle);
        align-items: center;
        justify-content: center;
        display: flex;
        text-decoration: none;
        transition: color 0.15s;
    }

    .header__menu--mobile .header__menu-link:hover {
        background: transparent;
        color: var(--c-green);
    }

    .header__menu--mobile .header__menu-icon {
        margin: 0;
        font-size: var(--text-2xl);
        opacity: 1;
    }

    .header__menu--mobile .header__menu-text {
        font-size: var(--text-3xs);
        font-weight: 500;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header__menu--mobile .header__menu-item--active .header__menu-link {
        color: var(--c-green);
    }

    /* Membre : « Créer » au centre, rond vert qui dépasse de la barre */
    .header__menu--mobile .header__menu-item--create .header__menu-link {
        color: var(--c-green);
    }
    .header__menu--mobile .header__menu-item--create .header__menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 48px;
        height: 48px;
        margin-top: -24px;
        border: 3px solid var(--c-surface);
        border-radius: 50%;
        background: var(--c-green-fill);
        color: #fff;
        font-size: var(--text-xl);
        box-shadow: 0 4px 12px rgba(2, 71, 53, 0.3);
    }
    .header__menu--mobile .header__menu-item--create .header__menu-link::after {
        display: none;
    }

    /* Membre : « Plus » est un bouton (il ouvre le panneau #menu-more), présenté comme les autres onglets */
    .header__menu--mobile .header__menu-sheet-btn {
        background: none;
        border: 0;
        font: inherit;
        cursor: pointer;
    }

    /* La place sous le contenu pour cette barre est réservée par le pied de page (footer.css) */
}

/* Panneaux « Créer » et « Plus » de la barre du bas (membre, téléphone et app ; header.js) : glissent depuis le bas,
   par-dessus la barre */
.tab-sheet[hidden] {
    display: none;
}
.tab-sheet {
    position: fixed;
    inset: 0;
    z-index: 1050;                      /* au-dessus de la barre du bas (1000), sous les fenêtres (1100) */
}
.tab-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: tabSheetFade 0.2s ease;
}
.tab-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--c-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-up);
    animation: tabSheetUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.tab-sheet__title {
    margin: 8px 8px 12px;
    color: var(--c-text);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}
.tab-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tab-sheet__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text);
    font-size: var(--text-lg);
    font-weight: 500;
    text-decoration: none;
}
.tab-sheet__list li:last-child .tab-sheet__link:last-child {
    border-bottom: 0;
}
.tab-sheet__link i {
    display: flex;
    font-size: var(--text-xl);
    color: var(--c-green);
}
.tab-sheet__link.is-active {
    margin: 0 -8px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: var(--radius-md);
    background: var(--c-green-light);
    color: var(--c-green);
    font-weight: 600;
}
.tab-sheet__link--back {
    margin-top: 6px;
    border-top: 1px solid var(--c-border);
    border-bottom: 0;
    color: var(--c-muted);
}
/* Panneau long (menu de l'administration) : défile, intitulés de groupe */
.tab-sheet__panel--tall {
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.tab-sheet__group {
    margin: 14px 8px 2px;
    color: var(--c-subtle);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
/* « Créer » : grands choix (nouvelle liste, idée dans une liste, scan d'un produit) */
.tab-sheet__choice[hidden] {
    display: none;
}
.tab-sheet__choice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    color: var(--c-text);
    text-decoration: none;
}
.tab-sheet__choice:active {
    background: var(--c-green-light);
}
.tab-sheet__choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--c-green-fill);
    color: #fff;
    font-size: var(--text-2xl);
}
.tab-sheet__choice-icon i {
    display: flex;
}
.tab-sheet__choice-icon--gold {
    background: var(--c-gold);
    color: var(--c-green-dark);
}
.tab-sheet__choice-icon--soft {
    background: var(--c-green-light);
    color: var(--c-green);
}
.tab-sheet__choice-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.tab-sheet__choice-text strong {
    font-size: var(--text-lg);
}
.tab-sheet__choice-text small {
    color: var(--c-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}
.tab-sheet__choice-arrow {
    display: flex;
    flex-shrink: 0;
    color: var(--c-subtle);
    font-size: var(--text-xl);
}
.tab-sheet__close {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--c-surface-alt);
    color: var(--c-muted);
    font: inherit;
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
}
html.tab-sheet-open {
    overflow: hidden;                   /* la page ne défile pas derrière le panneau */
}
@keyframes tabSheetUp {
    from { transform: translateY(100%); }
    to   { transform: none; }
}
@keyframes tabSheetFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (min-width: 1025px) {
    .tab-sheet { display: none !important; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 1024px) {
        .header__menu--mobile {
            height: calc(60px + env(safe-area-inset-bottom));
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

.header__search-trigger {
    font-size: var(--text-2xl);
    color: var(--c-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--c-surface-alt);
    transition: background 0.2s, color 0.2s;
}

.header__search-trigger:hover {
    background: var(--c-border);
    color: var(--c-text);
}

.header__search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-surface);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    width: 320px;
    max-width: 90vw;
    box-sizing: border-box;      /* marges comprises : ne déborde plus à gauche sur les petits écrans */
    z-index: 999;
}

.header__search-label {
    margin: 0 0 10px 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header__search-suggestions {
    max-height: 350px;
    overflow-y: auto;
    margin-top: 10px;
    display: none;
}

.header__search-suggestions.is-active {
    display: block;
    border-top: 1px solid var(--c-border);
    padding-top: 10px;
}

.header__search-dropdown.is-active,
.header__dropdown.is-active,
.header__notification-dropdown.is-active {
    display: block;
}

.header__search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.15s;
}

.header__search-suggestion-item:hover {
    background: var(--c-green-light);
}

.header__search-suggestion-avatar {
    background-color: var(--c-green-fill);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.header__search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.header__search-suggestion-title {
    display: block;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 2px;
}

.header__search-suggestion-subtitle {
    font-size: var(--text-xs);
    color: var(--c-muted);
}

.header__search-suggestion-empty {
    padding: 14px 0;
    text-align: center;
    color: var(--c-muted);
    font-size: var(--text-sm);
    font-style: italic;
    border-bottom: 1px solid var(--c-border);
}

.header__search-suggestion-footer {
    padding: 10px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-green);
    cursor: pointer;
    margin-top: 6px;
    background: var(--c-green-light);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.header__search-suggestion-footer:hover {
    background: var(--c-green-light);
}

.header__notification-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--c-surface-alt);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.header__notification-trigger:hover {
    background: var(--c-border);
}

.header__notification-trigger i {
    font-size: var(--text-2xl);
    line-height: 1;
    color: var(--c-muted);
    transition: color 0.2s;
}

.header__notification-trigger:hover i {
    color: var(--c-text);
}

.header__notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--c-danger);
    color: #fff;
    font-size: var(--text-3xs);
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-md);
    border: 2px solid var(--c-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 360px;
    max-width: 90vw;
    box-sizing: border-box;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 999;
}

.header__notification-title {
    padding: 16px 20px 14px;
    margin: 0;
    font-size: var(--text-md);
    font-weight: 600;
    border-bottom: 1px solid var(--c-border);
}

.header__notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.header__notification-item {
    display: flex;
    padding: 14px 20px;
    position: relative;
    transition: background 0.15s;
    border-bottom: 1px solid var(--c-border);
}

.header__notification-item:hover {
    background-color: var(--c-surface-alt);
}

.header__notification-item--unread {
    background-color: var(--c-green-tint);
}

.header__notification-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--c-green-fill);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.header__notification-avatar i {
    color: #fff;
    font-size: var(--text-xl);
}

.header__notification-content {
    flex: 1;
    min-width: 0;
}

.header__notification-content p {
    margin: 0;
    font-size: var(--text-md);
    color: var(--c-text);
    line-height: 1.5;
}

.header__notification-content p strong {
    font-weight: 600;
}

.header__notification-time {
    display: block;
    font-size: var(--text-2xs);
    color: var(--c-subtle);
    margin-top: 4px;
}

.header__notification-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--c-green);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    border-top: 1px solid var(--c-border);
    transition: background 0.15s;
}

.header__notification-footer:hover {
    background-color: var(--c-green-light);
    text-decoration: none;
}

.header__create-btn {
    position: relative;
    font-size: var(--text-sm) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-pill) !important;
}

.header__create-btn i {
    font-size: var(--text-xs);
}

.header__search-trigger {
    border-radius: var(--radius-pill);
}

.header__search-trigger i {
    font-size: var(--text-2xl);
    line-height: 1;
}

@media (max-width: 1024px) {
    .header__create-btn {
        display: none !important;
    }
}

/* Membre connecté (header--member, 6 ou 7 liens) : centré sur la page, le menu passerait sous la recherche et
   « Créer une liste » jusqu'à ~1450 px. Il prend alors la place libre entre le logo et les boutons, en plus serré. */
@media (min-width: 1025px) and (max-width: 1499px) {
    .header--member .header__logo {
        margin-right: 24px;
    }
    .header--member .header__menu--desktop {
        position: static;
        transform: none;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }
    .header--member .header__menu-link {
        padding: 8px 10px;
    }
}

/* Jusqu'à 1279 px (tablette en paysage) : menu sans icônes, « Créer une liste » réduit à son « + » */
@media (min-width: 1025px) and (max-width: 1279px) {
    .header--member .header__menu-icon {
        display: none;
    }
    .header--member .header__create-btn {
        padding: 10px 12px !important;
    }
    .header--member .header__create-label {   /* masqué à l'écran, toujours lu par les lecteurs d'écran */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .header__actions .btn-primary:not(.header__create-btn) {
        display: none;
    }
}

/* Déconnexion : bouton dans un formulaire POST, présenté comme les autres liens du menu */
.header__logout-form { margin: 0; }
.header__logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ── Application iPhone (html.is-app, viewport-fit=cover : la page passe sous la barre d'état et l'encoche) ──
   L'en-tête descend d'autant ; une bande blanche fixe reste sous la barre d'état quand l'en-tête se cache au défilement */
.is-app .header { padding-top: env(safe-area-inset-top); }
.is-app body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: var(--c-surface);
    z-index: 101;                       /* au-dessus de l'en-tête (100), sous la barre du bas (1000) et les fenêtres */
}

/* Proposition d'activer les notifications (assets/js/app.js), au-dessus de la barre du bas */
.app-push-offer {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(60px + 12px + env(safe-area-inset-bottom));
    z-index: 1050;                      /* au-dessus de la barre du bas (1000), sous les fenêtres (1100) */
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    animation: toastIn .3s cubic-bezier(.22, 1, .36, 1);
}
.app-push-offer p { margin: 0 0 12px; font-size: var(--text-md); line-height: 1.5; color: var(--c-text); }
.app-push-offer__actions { display: flex; gap: 8px; justify-content: flex-end; }
