/* ═══════════════════════════════════════════════════
   TOAST ASTUCES — DESIGN LIQUID GLASS
═══════════════════════════════════════════════════ */
.astuce-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: min(340px, calc(100vw - 32px));
    
    /* Liquid Glass Light */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Edge Highlights & Shadows */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 14px 16px;
    
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);

    display: flex;
    flex-direction: column;
    gap: 6px;

    /* Transition & Animation */
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* État masqué / transition */
.astuce-toast.is-hidden {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
}

/* Header de la notification */
.astuce-toast__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.astuce-toast__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffda00, #ffb700);
    color: #000;
    font-family: 'LuckiestGuy Regular', cursive;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 218, 0, 0.4);
}

.astuce-toast__icon {
    font-size: 14px !important;
    vertical-align: middle;
}

.astuce-toast__close {
    background: transparent;
    border: none;
    color: var(--color-text, #111111);
    opacity: 0.5;
    cursor: pointer;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
}

.astuce-toast__close:hover {
    opacity: 1;
    background: #ffbaba96;
    color: #ff6b6b ;    
}

.astuce-toast__close .material-symbols-outlined {
    font-size: 16px;
}

/* Contenu du texte */
.astuce-toast__body {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text, #111111);
    line-height: 1.45;
    margin: 0;
}

/* ── ADAPTATION DARK MODE ── */
body.dark-mode .astuce-toast,
html[data-theme="dark"] .astuce-toast {
    background: rgba(19, 19, 30, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color:#fff;
}
body.dark-mode .tips { color:#fff;}

body.dark-mode .astuce-toast__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .astuce-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}