    
        /* Container fixe en haut a droite */
        #mbb-toast-container {
            position: fixed;
            top: 50px;
            right: 20px;
            z-index: 999999;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none;
            max-width: 420px;
            width: calc(100vw - 40px);
        }
        @media (max-width: 782px) {
            #mbb-toast-container {
                top: 60px;
                right: 10px;
                left: 10px;
                width: auto;
                max-width: none;
            }
        }

        /* Toast */
        .mbb-toast {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
            padding: 14px 44px 14px 56px;
            position: relative;
            pointer-events: auto;
            min-height: 56px;
            display: flex;
            align-items: center;
            color: #1A1A2E;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Nunito", "Poppins", sans-serif;
            font-size: 0.94rem;
            line-height: 1.45;
            transform: translateX(120%);
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
            border-left: 4px solid #7A8B6F;
            overflow: hidden;
        }
        .mbb-toast.is-visible {
            transform: translateX(0);
            opacity: 1;
        }
        .mbb-toast.is-leaving {
            transform: translateX(120%);
            opacity: 0;
        }

        /* Icône (pseudo) */
        .mbb-toast::before {
            content: '';
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            background: #7A8B6F;
        }

        /* Variantes par type */
        .mbb-toast--success { border-left-color: #4CAF50; }
        .mbb-toast--success::before { background: #4CAF50; content: '✓'; }

        .mbb-toast--error   { border-left-color: #E53935; }
        .mbb-toast--error::before   { background: #E53935; content: '✕'; }

        .mbb-toast--warning { border-left-color: #FB8C00; }
        .mbb-toast--warning::before { background: #FB8C00; content: '!'; }

        .mbb-toast--info    { border-left-color: #1E88E5; }
        .mbb-toast--info::before    { background: #1E88E5; content: 'i'; font-style: italic; }

        /* Bouton close */
        .mbb-toast-close {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: transparent;
            border: 0;
            cursor: pointer;
            color: #6B6B6B;
            font-size: 18px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            padding: 0;
        }
        .mbb-toast-close:hover {
            background: rgba(0,0,0,0.08);
            color: #1A1A2E;
        }

        /* Contenu du message */
        .mbb-toast-message {
            flex: 1;
        }
        .mbb-toast-message strong { font-weight: 700; }
        .mbb-toast-message a { color: #5A6B4F; font-weight: 600; text-decoration: underline; }
        .mbb-toast-message p { margin: 0; padding: 0; }
        .mbb-toast-message p + p { margin-top: 4px; }

        /* Progress bar (auto-dismiss visuel) */
        .mbb-toast-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: currentColor;
            opacity: 0.35;
            width: 100%;
            transform-origin: left;
            transform: scaleX(1);
        }
        .mbb-toast--success .mbb-toast-progress { color: #4CAF50; }
        .mbb-toast--error   .mbb-toast-progress { color: #E53935; }
        .mbb-toast--warning .mbb-toast-progress { color: #FB8C00; }
        .mbb-toast--info    .mbb-toast-progress { color: #1E88E5; }

        /* Cache les notices natives WP en admin (on les re-affiche en toast)
           SAUF sur les pages d'edition de contenu/pages systeme ou WP affiche
           des messages critiques (autosave restore, session, brouillon different,
           plugin activation, theme update, etc) qui doivent rester en page. */
        body.wp-admin:not(.post-php):not(.post-new-php):not(.edit-php):not(.upload-php):not(.attachment-php):not(.media-upload-php):not(.media-new-php):not(.plugins-php):not(.themes-php):not(.update-core-php):not(.options-general-php):not(.options-permalink-php):not(.users-php):not(.user-edit-php):not(.profile-php) .notice:not(.hide-if-js),
        body.wp-admin:not(.post-php):not(.post-new-php):not(.edit-php):not(.upload-php):not(.attachment-php):not(.media-upload-php):not(.media-new-php):not(.plugins-php):not(.themes-php):not(.update-core-php):not(.options-general-php):not(.options-permalink-php):not(.users-php):not(.user-edit-php):not(.profile-php) div.updated:not(.hide-if-js),
        body.wp-admin:not(.post-php):not(.post-new-php):not(.edit-php):not(.upload-php):not(.attachment-php):not(.media-upload-php):not(.media-new-php):not(.plugins-php):not(.themes-php):not(.update-core-php):not(.options-general-php):not(.options-permalink-php):not(.users-php):not(.user-edit-php):not(.profile-php) div.error:not(.hide-if-js),
        body.wp-admin:not(.post-php):not(.post-new-php):not(.edit-php):not(.upload-php):not(.attachment-php):not(.media-upload-php):not(.media-new-php):not(.plugins-php):not(.themes-php):not(.update-core-php):not(.options-general-php):not(.options-permalink-php):not(.users-php):not(.user-edit-php):not(.profile-php) .settings-error:not(.hide-if-js) {
            display: none !important;
        }
        /* Toujours cacher les noscript fallback meme si on toaste pas la page */
        body.wp-admin .hide-if-js { display: none !important; }
        /* Echappatoire : .mbb-keep affiche la notice dans la page (en plus du toast) */
        body.wp-admin .notice.mbb-keep {
            display: block !important;
        }
        /* Frontend : sur les pages admin-bar visibles, decale le toast */
        body.admin-bar #mbb-toast-container { top: 80px; }
        @media (max-width: 782px) {
            body.admin-bar #mbb-toast-container { top: 106px; }
        }

        /* Dark mode */
        @media (prefers-color-scheme: dark) {
            .mbb-toast {
                background: #2A2A45;
                color: #ECEAE5;
                box-shadow: 0 12px 40px rgba(0,0,0,0.50), 0 4px 12px rgba(0,0,0,0.30);
            }
            .mbb-toast-close { color: #B8B8C8; }
            .mbb-toast-close:hover { background: rgba(255,255,255,0.08); color: #ECEAE5; }
            .mbb-toast-message a { color: #C8D9BA; }
        }
    
