
/* MOBILE STICKY ATC — L2 modèle uniquement */
@media (max-width: 768px) {
    .ea-msa-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999; /* au-dessus de Complianz 9998 et bottom nav (~9990) */
        background: #FFFFFF;
        border-top: 1px solid #E6E8F2;
        box-shadow: 0 -4px 16px rgba(13,17,68,0.12);
        padding: 10px 14px;
        display: none; /* hidden by default, JS toggle après scroll */
        align-items: center;
        gap: 12px;
        min-height: 64px;
        font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

        /* iOS safe area inset */
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .ea-msa-bar.is-visible {
        display: flex;
        animation: ea-msa-slideup 0.25s ease-out;
    }
    @keyframes ea-msa-slideup {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    .ea-msa-info {
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.2;
    }
    .ea-msa-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #6B7280;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }
    .ea-msa-price {
        display: block;
        font-size: 17px;
        font-weight: 800;
        color: #0D1144;
    }
    .ea-msa-price small {
        font-size: 12px;
        font-weight: 600;
        color: #6B7280;
        margin-left: 4px;
    }
    .ea-msa-cta {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 18px;
        background: #0D1144;
        color: #FFFFFF;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        white-space: nowrap;
        line-height: 1;
        transition: background 0.15s, transform 0.1s;
        min-height: 44px; /* tactile a11y */
    }
    .ea-msa-cta:hover,
    .ea-msa-cta:focus-visible {
        background: #1E2A78;
        color: #FFFFFF;
        text-decoration: none;
    }
    .ea-msa-cta:active {
        transform: scale(0.97);
    }
    .ea-msa-cta svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Offset des éléments qui doivent rester visibles :
       le contenu body doit avoir un padding bottom pour ne pas être masqué */
    body.ea-msa-active { padding-bottom: 76px; }

    /* Bottom nav existant : remonter au-dessus du sticky ATC */
    nav.ea-mobile-bottom-nav,
    .ea-mobile-bottom-nav,
    .ea-bottom-nav-mobile {
        bottom: 76px !important;
    }

    /* v1.0.2 — Hide la sticky pré-existante (.ea-l2c-sticky-bar) sur mobile
       car elle dit juste "Votre sélection X-Trail · SUV · T32" + "Voir l'attelage ↓"
       sans prix, ce qui est moins informatif que notre nouveau sticky ATC. */
    #ea-l2c-sticky-bar,
    .ea-l2c-sticky-bar {
        display: none !important;
    }
}

/* Tablet+ : sticky ATC pas affiché (CTA classiques de la page suffisent) */
@media (min-width: 769px) {
    .ea-msa-bar { display: none !important; }
}
